Jean-Baptiste <[email protected]> added the comment:
I am experiencing a similar problem with mpeg files, but the problem
only happens when combining -vcodec copy with file cropping (through
-ss 2).
I originally reported the problem as issue #748, because I had not
realized the problem only happened with -vcodec copy. so my test
video is available at:
incoming/mpeg1seek/mpeg1_seek_error.mpg
ffmpeg -i gives:
ffmpeg -i MOV06552.MPG
FFmpeg version SVN-r19759, Copyright (c) 2000-2009 Fabrice Bellard,
et al.
configuration: --prefix=/usr --enable-shared --enable-libmp3lame
--enable-gpl --enable-libfaad --enable-libvorbis --enable-pthreads
--enable-libfaac --enable-libxvid --enable-postproc --enable-x11grab
--enable-libgsm --enable-libx264 --enable-libtheora --enable-
enable-libdirac --disable-decoder=libdirac --enable-libschroedinger
--disable-encoder=libschroedinger --enable-avfilter-lavf
libavutil 50. 3. 0 / 50. 3. 0
libavcodec 52.35. 0 / 52.35. 0
libavformat 52.38. 0 / 52.38. 0
libavdevice 52. 2. 0 / 52. 2. 0
libavfilter 0. 5. 0 / 0. 5. 0
libswscale 0. 7. 1 / 0. 7. 1
libpostproc 51. 2. 0 / 51. 2. 0
built on Sep 4 2009 23:00:12, gcc: 4.3.3
[mpeg @ 0x9166860]invalid dts/pts combination
Last message repeated 87 times
Input #0, mpeg, from 'MOV06552.MPG':
Duration: 00:00:11.36, start: 0.070000, bitrate: 10482 kb/s
Stream #0.0[0x1c0]: Audio: mp2, 32000 Hz, 1 channels, s16, 64
kb/s
Stream #0.1[0x1e0]: Video: mpeg1video, yuv420p, 640x480 [PAR 1:1
DAR 4:3], 104857 kb/s, 30 tbr, 90k tbn, 30 tbc
At least one output file must be specified
trying to transcode with the following command gives a working
video:
ffmpeg -i MOV06552.MPG -ss 5 -acodec mp2 -vcodec mpeg1video test.mpg
the resulting video shows the following properties:
Input #0, mpeg, from 'test.mpg':
Duration: 00:00:06.40, start: 0.500000, bitrate: 860 kb/s
Stream #0.0[0x1e0]: Video: mpeg1video, yuv420p, 640x480 [PAR 1:1
DAR 4:3], 104857 kb/s, 30 tbr, 90k tbn, 30 tbc
Stream #0.1[0x1c0]: Audio: mp2, 32000 Hz, 1 channels, s16, 64
kb/s
However, the exact same command with -vcodec copy:
ffmpeg -i MOV06552.MPG -ss 5 -acodec mp2 -vcodec copy test2.mpg
gives a broken file (no video):
Seems stream 0 codec frame rate differs from container frame rate:
inf (1/0) -> 90000.00 (90000/1)
Input #0, mpeg, from 'test2.mpg':
Duration: 00:00:06.33, start: 0.500000, bitrate: 9490 kb/s
Stream #0.0[0x1e0]: Video: 0x0000, 90k tbr, 90k tbn
Stream #0.1[0x1c0]: Audio: mp2, 32000 Hz, 1 channels, s16, 64
kb/s
Please note that the original video file is taken straight from a
Sony DSC-T20 camcorder.
____________________________________________________
FFmpeg issue tracker <[email protected]>
<https://roundup.ffmpeg.org/roundup/ffmpeg/issue807>
____________________________________________________