Smetvid
5th August 2009, 20:40
I have been trying to convert video from a AVCHD camera into mpeg2 files with FFMPEG. The conversion happens but the framerate sort of gets messed up. The file says it is 29.97 but it seems to duplicate blocks of frames. For example 3 frames will be fine and then it will duplicate the last frame for 3 frames and so on. This makes the file double in length and not really of any use since the framerate is messed up. Is there some special trick in FFMPEG to get this to work correctly?
D:\>ffmpeg -i D:\ezsm021.mts -vcodec mpeg2video -qscale 1 -qmin 1 -intra -an out
put.m2v
FFmpeg version SVN-r16573, Copyright (c) 2000-2009 Fabrice Bellard, et al.
configuration: --extra-cflags=-fno-common --enable-memalign-hack --enable-pthr
eads --enable-libmp3lame --enable-libxvid --enable-libvorbis --enable-libtheora
--enable-libspeex --enable-libfaac --enable-libgsm --enable-libx264 --enable-lib
schroedinger --enable-avisynth --enable-swscale --enable-gpl
libavutil 49.12. 0 / 49.12. 0
libavcodec 52.10. 0 / 52.10. 0
libavformat 52.23. 1 / 52.23. 1
libavdevice 52. 1. 0 / 52. 1. 0
libswscale 0. 6. 1 / 0. 6. 1
built on Jan 13 2009 02:57:09, gcc: 4.2.4
Input #0, mpegts, from 'D:\ezsm021.mts':
Duration: 00:00:11.00, start: 0.502656, bitrate: 23991 kb/s
Program 1
Stream #0.0[0x1011]: Video: h264, yuv420p, 1920x1080 [PAR 1:1 DAR 16:9], 29.
97 tb(r)
Stream #0.1[0x1100]: Audio: ac3, 48000 Hz, stereo, s16, 256 kb/s
Output #0, mpeg2video, to 'output.m2v':
Stream #0.0: Video: mpeg2video, yuv420p, 1920x1080 [PAR 1:1 DAR 16:9], q=1-3
1, 200 kb/s, 29.97 tb(c)
Stream mapping:
Stream #0.0 -> #0.0
Press [q] to stop encoding
frame= 306 fps= 8 q=1.0 size= 346167kB time=10.18
D:\>ffmpeg -i D:\ezsm021.mts -vcodec mpeg2video -qscale 1 -qmin 1 -intra -an out
put.m2v
FFmpeg version SVN-r16573, Copyright (c) 2000-2009 Fabrice Bellard, et al.
configuration: --extra-cflags=-fno-common --enable-memalign-hack --enable-pthr
eads --enable-libmp3lame --enable-libxvid --enable-libvorbis --enable-libtheora
--enable-libspeex --enable-libfaac --enable-libgsm --enable-libx264 --enable-lib
schroedinger --enable-avisynth --enable-swscale --enable-gpl
libavutil 49.12. 0 / 49.12. 0
libavcodec 52.10. 0 / 52.10. 0
libavformat 52.23. 1 / 52.23. 1
libavdevice 52. 1. 0 / 52. 1. 0
libswscale 0. 6. 1 / 0. 6. 1
built on Jan 13 2009 02:57:09, gcc: 4.2.4
Input #0, mpegts, from 'D:\ezsm021.mts':
Duration: 00:00:11.00, start: 0.502656, bitrate: 23991 kb/s
Program 1
Stream #0.0[0x1011]: Video: h264, yuv420p, 1920x1080 [PAR 1:1 DAR 16:9], 29.
97 tb(r)
Stream #0.1[0x1100]: Audio: ac3, 48000 Hz, stereo, s16, 256 kb/s
Output #0, mpeg2video, to 'output.m2v':
Stream #0.0: Video: mpeg2video, yuv420p, 1920x1080 [PAR 1:1 DAR 16:9], q=1-3
1, 200 kb/s, 29.97 tb(c)
Stream mapping:
Stream #0.0 -> #0.0
Press [q] to stop encoding
frame= 306 fps= 8 q=1.0 size= 346167kB time=10.18