[FFmpeg-trac] #978(undetermined:new): wrong container fps when muxing raw Xvid to avi

FFmpeg trac at avcodec.org
Sat Feb 4 12:09:54 CET 2012


#978: wrong container fps when muxing raw Xvid to avi
-------------------------------------+-------------------------------------
             Reporter:  Selur        |                    Owner:
                 Type:  defect       |                   Status:  new
             Priority:  normal       |                Component:
              Version:  git-master   |  undetermined
             Keywords:  m4v avi fps  |               Resolution:
             Blocking:               |               Blocked By:
Analyzed by developer:  0            |  Reproduced by developer:  0
-------------------------------------+-------------------------------------

Comment (by Selur):

 I uploaded a new sample: 1. used:
 ffmpeg -y -i "D:\Encoding Output\test.avi" -vcodec copy -an -f rawvideo
 "D:\Encoding Output\small.m4v"
 to extract the raw video stream
 ffmpeg -i "d:\Encoding Output\small.m4v"
 gives:
 -------------------------
 ffmpeg version N-37208-g01fcbdf Copyright (c) 2000-2012 the FFmpeg
 developers
   built on Jan 27 2012 18:39:49 with gcc 4.6.2
   configuration: --enable-gpl --enable-version3 --disable-w32threads
 --enable-runtime-cpudetect --enable-avisynth --enable-bzlib --enable-
 frei0r --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-
 libfreetype --enable-libgsm --enable-libmp3lame --enable-libopenjpeg
 --enable-librtmp --enable-libschroedinger --enable-libspeex --enable-
 libtheora --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis
 --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid
 --enable-zlib
   libavutil      51. 34.101 / 51. 34.101
   libavcodec     53. 60.100 / 53. 60.100
   libavformat    53. 31.100 / 53. 31.100
   libavdevice    53.  4.100 / 53.  4.100
   libavfilter     2. 60.100 /  2. 60.100
   libswscale      2.  1.100 /  2.  1.100
   libswresample   0.  6.100 /  0.  6.100
   libpostproc    52.  0.100 / 52.  0.100
 [m4v @ 0000000001D9F290] max_analyze_duration 5000000 reached at 5000000
 [m4v @ 0000000001D9F290] Estimating duration from bitrate, this may be
 inaccurate
 Input #0, m4v, from 'd:\Encoding Output\small.m4v':
   Duration: N/A, bitrate: N/A
     Stream #0:0: Video: mpeg4 (Advanced Simple Profile), yuv420p, 640x352
 [SAR 1:1 DAR 20:11], 25 fps, 25 tbr, 1200k tbn, 25 tbc
 -------------------------
 for this.

 calling:
 ffmpeg -y -i "D:\Encoding Output\small.m4v" -vtag xvid -vcodec copy -map
 0:0 -f avi "D:\Encoding Output\small.avi"
 gives:
 -------------------------
 ffmpeg -y -i "D:\Encoding Output\small.m4v" -vtag xvid -vcodec copy -map
 0:0 -f avi "D:\Encoding Output\small.avi"
 ffmpeg version N-37208-g01fcbdf Copyright (c) 2000-2012 the FFmpeg
 developers
   built on Jan 27 2012 18:39:49 with gcc 4.6.2
   configuration: --enable-gpl --enable-version3 --disable-w32threads
 --enable-runtime-cpudetect --enable-avisynth --enable-bzlib --enable-
 frei0r --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-
 libfreetype --enable-libgsm --enable-libmp3lame --enable-libopenjpeg
 --enable-librtmp --enable-libschroedinger --enable-libspeex --enable-
 libtheora --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis
 --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid
 --enable-zlib
   libavutil      51. 34.101 / 51. 34.101
   libavcodec     53. 60.100 / 53. 60.100
   libavformat    53. 31.100 / 53. 31.100
   libavdevice    53.  4.100 / 53.  4.100
   libavfilter     2. 60.100 /  2. 60.100
   libswscale      2.  1.100 /  2.  1.100
   libswresample   0.  6.100 /  0.  6.100
   libpostproc    52.  0.100 / 52.  0.100
 [m4v @ 000000000200F760] max_analyze_duration 5000000 reached at 5000000
 [m4v @ 000000000200F760] Estimating duration from bitrate, this may be
 inaccurate
 Input #0, m4v, from 'D:\Encoding Output\small.m4v':
   Duration: N/A, bitrate: N/A
     Stream #0:0: Video: mpeg4 (Advanced Simple Profile), yuv420p, 640x352
 [SAR 1:1 DAR 20:11], 25 fps, 25 tbr, 1200k tbn, 25 tbc
 Output #0, avi, to 'D:\Encoding Output\small.avi':
   Metadata:
     ISFT            : Lavf53.31.100
     Stream #0:0: Video: mpeg4 (xvid / 0x64697678), yuv420p, 640x352 [SAR
 1:1 DAR 20:11], q=2-31, 25 fps, 50 tbn, 50 tbc
 Stream mapping:
   Stream #0:0 -> #0:0 (copy)
 Press [q] to stop, [?] for help
 frame=  429 fps=  0 q=-1.0 Lsize=    1539kB time=00:00:17.14 bitrate=
 735.4kbits/s
 video:1513kB audio:0kB global headers:0kB muxing overhead 1.716616%
 -------------------------

 here's
 ffmpeg -i "d:\Encoding Output\small.avi"
 -------------------------
 ffmpeg version N-37208-g01fcbdf Copyright (c) 2000-2012 the FFmpeg
 developers
   built on Jan 27 2012 18:39:49 with gcc 4.6.2
   configuration: --enable-gpl --enable-version3 --disable-w32threads
 --enable-runtime-cpudetect --enable-avisynth --enable-bzlib --enable-
 frei0r --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-
 libfreetype --enable-libgsm --enable-libmp3lame --enable-libopenjpeg
 --enable-librtmp --enable-libschroedinger --enable-libspeex --enable-
 libtheora --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis
 --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid
 --enable-zlib
   libavutil      51. 34.101 / 51. 34.101
   libavcodec     53. 60.100 / 53. 60.100
   libavformat    53. 31.100 / 53. 31.100
   libavdevice    53.  4.100 / 53.  4.100
   libavfilter     2. 60.100 /  2. 60.100
   libswscale      2.  1.100 /  2.  1.100
   libswresample   0.  6.100 /  0.  6.100
   libpostproc    52.  0.100 / 52.  0.100
 Input #0, avi, from 'd:\Encoding Output\small.avi':
   Metadata:
     encoder         : Lavf53.31.100
   Duration: 00:00:17.14, start: 0.000000, bitrate: 735 kb/s
     Stream #0:0: Video: mpeg4 (Advanced Simple Profile) (xvid /
 0x64697678), yuv420p, 640x352 [SAR 1:1 DAR 20:11], 25 tbr, 50 tbn, 25 tbc
 -------------------------

 -> tbn should be 25


 uploaded all files (test.avi, small.m4v, small.avi) to:
 http://www.selur.info/test.7z

-- 
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/978#comment:2>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list