[FFmpeg-user] codec frame rate differs from container frame rate for mpeg2video in mov container generated from AVCHD
Robert Krüger
krueger at signal7.de
Wed Jul 1 15:49:18 CEST 2009
Hi,
I converted an interlaced AVCHD file from a Sony HDR-CX-6 Camcorder to
mpeg2video in a mov container with the following command line
ffmpeg -i mayrhofen-full-507-seconds-1080i.m2ts -t 5 -y -vcodec
mpeg2video -acodec copy -deinterlace test.mov
with the output:
FFmpeg version SVN-r19313, Copyright (c) 2000-2009 Fabrice Bellard, et
al.
configuration: --enable-libx264 --enable-gpl --enable-libfaac --
enable-nonfree --enable-libmp3lame --enable-libxvid
libavutil 50. 3. 0 / 50. 3. 0
libavcodec 52.32. 0 / 52.32. 0
libavformat 52.36. 0 / 52.36. 0
libavdevice 52. 2. 0 / 52. 2. 0
libswscale 0. 7. 1 / 0. 7. 1
built on Jul 1 2009 12:23:03, gcc: 4.0.1 (Apple Inc. build 5490)
Input #0, mpegts, from 'mayrhofen-full-507-seconds-1080i.m2ts':
Duration: 00:08:28.07, start: 1.000067, bitrate: 7386 kb/s
Program 1
Stream #0.0[0x1011]: Video: h264, yuv420p, 1440x1080 [PAR 4:3 DAR
16:9], 50 tbr, 90k tbn, 50 tbc
Stream #0.1[0x1100]: Audio: ac3, 48000 Hz, 5.1, s16, 448 kb/s
Output #0, mov, to 'test.mov':
Stream #0.0: Video: mpeg2video, yuv420p, 1440x1080 [PAR 4:3 DAR
16:9], q=2-31, 200 kb/s, 50 tbn, 50 tbc
Stream #0.1: Audio: ac3, 48000 Hz, 5.1, s16, 448 kb/s
Stream mapping:
Stream #0.0 -> #0.0
Stream #0.1 -> #0.1
Press [q] to stop encoding
frame= 141 fps= 26 q=31.0 Lsize= 2228kB time=5.03
bitrate=3626.9kbits/s
video:1952kB audio:273kB global headers:0kB muxing overhead 0.134928%
and the resulting file causes the following warning
ffmpeg -i test.mov
FFmpeg version SVN-r19313, Copyright (c) 2000-2009 Fabrice Bellard, et
al.
configuration: --enable-libx264 --enable-gpl --enable-libfaac --
enable-nonfree --enable-libmp3lame --enable-libxvid
libavutil 50. 3. 0 / 50. 3. 0
libavcodec 52.32. 0 / 52.32. 0
libavformat 52.36. 0 / 52.36. 0
libavdevice 52. 2. 0 / 52. 2. 0
libswscale 0. 7. 1 / 0. 7. 1
built on Jul 1 2009 12:23:03, gcc: 4.0.1 (Apple Inc. build 5490)
Seems stream 0 codec frame rate differs from container frame rate:
100.00 (100/1) -> 25.00 (25/1)
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'test.mov':
Duration: 00:00:05.66, start: 0.000000, bitrate: 3224 kb/s
Stream #0.0(eng): Video: mpeg2video, yuv420p, 1440x1080 [PAR 4:3
DAR 16:9], 104857 kb/s, 25 tbr, 50 tbn, 100 tbc
Stream #0.1(eng): Audio: ac3, 48000 Hz, 6 channels, s16
At least one output file must be specified
Is this normal? Both ffplay and VLC play the resulting file at the
correct speed but one posting in the mailing list by dark shikari
stated that a mismatch of these frame rates indicate a problem on the
encoding side.
If this is indeed a bug and you need additional info, please let me
know.
A file from that camera has already been uploaded for the (now fixed)
bug report #475.
Regards,
Robert
More information about the ffmpeg-user
mailing list