[FFmpeg-user] Wrong input framerate detected
Brendan Brewster
brendan.brewster at gmail.com
Fri May 11 02:25:14 CEST 2012
Hi,
It seems that ffmpeg is incorrectly detecting the input framerate of a
video I have.
My encode attempt utilized the concat protocol. Just to demonstrate the
framerate, I have the following stripped down to just the input.
$ /cygdrive/c/ffmpeg/bin/ffmpeg -i
concat:VTS_02_1.VOB\|VTS_02_2.VOB\|VTS_02_3.VOB\|VTS_02_4.VOB\|VTS_02_5.VOB
ffmpeg version N-40517-ga548671 Copyright (c) 2000-2012 the FFmpeg
developers
built on May 9 2012 13:01:47 with gcc 4.6.3
configuration: --disable-static --enable-shared --enable-gpl
--enable-version3 --disable-w32threads --enable-runtime-cpudetect
--enable-avisynth --enable-bzlib --enable-frei0r --enable-libass
--enable-libcelt --enable-libopencore-amrnb --enable-libopencore-amrwb
--enable-libfreetype --enable-libgsm --enable-libmp3lame --enable-libnut
--enable-libopenjpeg --enable-librtmp --enable-libschroedinger
--enable-libspeex --enable-libtheora --enable-libutvideo
--enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis
--enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid
--enable-zlib
libavutil 51. 50.100 / 51. 50.100
libavcodec 54. 21.100 / 54. 21.100
libavformat 54. 4.100 / 54. 4.100
libavdevice 53. 4.100 / 53. 4.100
libavfilter 2. 72.105 / 2. 72.105
libswscale 2. 1.100 / 2. 1.100
libswresample 0. 11.100 / 0. 11.100
libpostproc 52. 0.100 / 52. 0.100
[mpeg @ 003ed840] max_analyze_duration 5000000 reached at 5021500
Input #0, mpeg, from
'concat:VTS_02_1.VOB|VTS_02_2.VOB|VTS_02_3.VOB|VTS_02_4.VOB|VTS_02_5.VOB':
Duration: 01:40:30.97, start: 0.041500, bitrate: 6199 kb/s
Stream #0:0[0x1e0]: Video: mpeg2video (Main), yuv420p, 720x480 [SAR
32:27 DAR 16:9], 9800 kb/s, 26.69 fps, 59.94 tbr, 90k tbn, 59.94 tbc
Stream #0:1[0x82]: Audio: ac3, 48000 Hz, stereo, s16, 192 kb/s
Stream #0:2[0x81]: Audio: ac3, 48000 Hz, 5.1(side), s16, 448 kb/s
Stream #0:3[0x80]: Audio: ac3, 48000 Hz, 5.1(side), s16, 448 kb/s
At least one output file must be specified
I show two individual VOBs just for reference and note they're detected
differently.
$ /cygdrive/c/ffmpeg/bin/ffmpeg -i VTS_02_1.VOB
ffmpeg version N-40517-ga548671 Copyright (c) 2000-2012 the FFmpeg
developers
built on May 9 2012 13:01:47 with gcc 4.6.3
configuration: --disable-static --enable-shared --enable-gpl
--enable-version3 --disable-w32threads --enable-runtime-cpudetect
--enable-avisynth --enable-bzlib --enable-frei0r --enable-libass
--enable-libcelt --enable-libopencore-amrnb --enable-libopencore-amrwb
--enable-libfreetype --enable-libgsm --enable-libmp3lame --enable-libnut
--enable-libopenjpeg --enable-librtmp --enable-libschroedinger
--enable-libspeex --enable-libtheora --enable-libutvideo
--enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis
--enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid
--enable-zlib
libavutil 51. 50.100 / 51. 50.100
libavcodec 54. 21.100 / 54. 21.100
libavformat 54. 4.100 / 54. 4.100
libavdevice 53. 4.100 / 53. 4.100
libavfilter 2. 72.105 / 2. 72.105
libswscale 2. 1.100 / 2. 1.100
libswresample 0. 11.100 / 0. 11.100
libpostproc 52. 0.100 / 52. 0.100
[mpeg @ 003ed7a0] max_analyze_duration 5000000 reached at 5021500
Input #0, mpeg, from 'VTS_02_1.VOB':
Duration: 00:22:46.17, start: 0.041500, bitrate: 6286 kb/s
Stream #0:0[0x1e0]: Video: mpeg2video (Main), yuv420p, 720x480 [SAR
32:27 DAR 16:9], 9800 kb/s, 26.69 fps, 59.94 tbr, 90k tbn, 59.94 tbc
Stream #0:1[0x82]: Audio: ac3, 48000 Hz, stereo, s16, 192 kb/s
Stream #0:2[0x81]: Audio: ac3, 48000 Hz, 5.1(side), s16, 448 kb/s
Stream #0:3[0x80]: Audio: ac3, 48000 Hz, 5.1(side), s16, 448 kb/s
At least one output file must be specified
$ /cygdrive/c/ffmpeg/bin/ffmpeg -i VTS_02_2.VOB
ffmpeg version N-40517-ga548671 Copyright (c) 2000-2012 the FFmpeg
developers
built on May 9 2012 13:01:47 with gcc 4.6.3
configuration: --disable-static --enable-shared --enable-gpl
--enable-version3 --disable-w32threads --enable-runtime-cpudetect
--enable-avisynth --enable-bzlib --enable-frei0r --enable-libass
--enable-libcelt --enable-libopencore-amrnb --enable-libopencore-amrwb
--enable-libfreetype --enable-libgsm --enable-libmp3lame --enable-libnut
--enable-libopenjpeg --enable-librtmp --enable-libschroedinger
--enable-libspeex --enable-libtheora --enable-libutvideo
--enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis
--enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid
--enable-zlib
libavutil 51. 50.100 / 51. 50.100
libavcodec 54. 21.100 / 54. 21.100
libavformat 54. 4.100 / 54. 4.100
libavdevice 53. 4.100 / 53. 4.100
libavfilter 2. 72.105 / 2. 72.105
libswscale 2. 1.100 / 2. 1.100
libswresample 0. 11.100 / 0. 11.100
libpostproc 52. 0.100 / 52. 0.100
[mpeg @ 003ed7a0] Adjusting PTS forward
Last message repeated 337 times
[mpeg @ 003ed7a0] max_analyze_duration 5000000 reached at 5024000
Input #0, mpeg, from 'VTS_02_2.VOB':
Duration: 00:23:16.92, start: 1366.249500, bitrate: 6148 kb/s
Stream #0:0[0x1e0]: Video: mpeg2video (Main), yuv420p, 720x480 [SAR
32:27 DAR 16:9], 9800 kb/s, 23.94 fps, 59.94 tbr, 90k tbn, 59.94 tbc
Stream #0:1[0x81]: Audio: ac3, 48000 Hz, 5.1(side), s16, 448 kb/s
Stream #0:2[0x80]: Audio: ac3, 48000 Hz, 5.1(side), s16, 448 kb/s
Stream #0:3[0x82]: Audio: ac3, 48000 Hz, stereo, s16, 192 kb/s
Stream #0:4[0x21]: Subtitle: dvd_subtitle
Stream #0:5[0x20]: Subtitle: dvd_subtitle
At least one output file must be specified
I know this is 29.97 and MediaInfo comes up with that (just showing the
first VOB here).
$ MediaInfo VTS_02_1.VOB; echo $?
General
Complete name : VTS_02_1.VOB
Format : MPEG-PS
File size : 1 024 MiB
Duration : 22mn 46s
Overall bit rate : 6 286 Kbps
Video
ID : 224 (0xE0)
Format : MPEG Video
Format version : Version 2
Format profile : Main at Main
Format settings, Matrix : Default
Duration : 22mn 46s
Bit rate mode : Variable
Bit rate : 4 949 Kbps
Nominal bit rate : 9 800 Kbps
Width : 720 pixels
Height : 480 pixels
Display aspect ratio : 16:9
Frame rate : 29.970 fps
Standard : NTSC
Colorimetry : 4:2:0
Bits/(Pixel*Frame) : 0.478
Stream size : 806 MiB (79%)
Audio #1
ID : 128 (0x80)
Format : AC-3
Format/Info : Audio Coding 3
Duration : 22mn 46s
Bit rate mode : Constant
Bit rate : 448 Kbps
Channel(s) : 6 channels
Channel positions : Front: L C R, Surround: L R, LFE
Sampling rate : 48.0 KHz
Stream size : 73.0 MiB (7%)
Audio #2
ID : 129 (0x81)
Format : AC-3
Format/Info : Audio Coding 3
Duration : 22mn 46s
Bit rate mode : Constant
Bit rate : 448 Kbps
Channel(s) : 6 channels
Channel positions : Front: L C R, Surround: L R, LFE
Sampling rate : 48.0 KHz
Stream size : 73.0 MiB (7%)
Audio #3
ID : 130 (0x82)
Format : AC-3
Format/Info : Audio Coding 3
Format profile : Dolby Digital
Duration : 22mn 46s
Bit rate mode : Constant
Bit rate : 192 Kbps
Channel(s) : 2 channels
Channel positions : L R
Sampling rate : 48.0 KHz
Stream size : 31.3 MiB (3%)
Text
ID : 224 (0xE0)-DVD-1
Format : EIA-608
Muxing mode : MPEG Video / DVD-Video
Muxing mode, more info : Muxed in Video #1
Stream size : 0.00 Byte (0%)
Menu
0
Any thoughts here?
Thanks,
Brendan
More information about the ffmpeg-user
mailing list