#253: invalid stream time_base for avi/aac, after av_write_header() -------------------------------------------------+------------------------- Reporter: Andrew | Owner: Type: defect | Status: open Priority: normal | Component: avformat Version: git-master | Resolution: Keywords: avi aac after av_write_header stream | Blocked By: time_base | Reproduced: 0 Blocking: | Analyzed: 0 | -------------------------------------------------+-------------------------
Comment (by rhuddusa): I think I am seeing the same issue , trying to convert to AC3 inside AVI container. Regardless if I use 2 channel or 6 channel, i get 4/125 for audio stream time_base. unfortunately, when playing on an xbox360, only the 2 channel will play, and the 6 channel will fail. i have another video which does play on the xbox360 (which I did not encode), it has 6 channels, sample_rate=48000.000000, and time_base=1/56000. so it is possible to play 6 channel ac3 on the xbox360 in the avi format. this is the failing video: ffmpeg -i '/mnt/storage/tmp/Input.mkv' -map 0.0 -vcodec libxvid -vtag XVID -qmin 1.1 -qmax 45 -b 10000k -bt 4500k -maxrate 15000k -bufsize 20000k -level 5 -bf 1 -vsync 1 -sn -async 1000 -map 0.1 -acodec ac3_fixed -ac 6 -ab 448k -ar 48000 -channel_layout 1551 -f avi -y 'Output.avi' ffmpeg version N-31897-g10b7b4a, Copyright (c) 2000-2011 the FFmpeg developers built on Aug 14 2011 22:10:45 with gcc 4.4.3 configuration: --disable-static --enable-shared --enable-gpl --enable- nonfree --disable-stripping --enable-postproc --enable-runtime-cpudetect --enable-libfaac --enable-libmp3lame --enable-zlib --enable-libvorbis --enable-libopenjpeg --enable-libspeex --enable-libdirac --enable- libtheora --enable-libschroedinger --enable-libx264 --enable-libvpx --enable-libxvid --disable-ffserver libavutil 51. 12. 0 / 51. 12. 0 libavcodec 53. 10. 0 / 53. 10. 0 libavformat 53. 7. 0 / 53. 7. 0 libavdevice 53. 3. 0 / 53. 3. 0 libavfilter 2. 31. 1 / 2. 31. 1 libswscale 2. 0. 0 / 2. 0. 0 libpostproc 51. 2. 0 / 51. 2. 0 [matroska,webm @ 0x2557640] Estimating duration from bitrate, this may be inaccurate Seems stream 0 codec frame rate differs from container frame rate: 47.95 (20000000/417083) -> 23.98 (24000/1001) Input #0, : Duration: 00:55:41.25, start: 0.000000, bitrate: 1536 kb/s Stream #0.0(eng): Video: h264 (High), yuv420p, 1280x720, SAR 1:1 DAR 16:9, 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc (default) Stream #0.1(eng): Audio: dca (DTS), 48000 Hz, 5.1, s16, 1536 kb/s (default) [buffer @ 0x255c740] w:1280 h:720 pixfmt:yuv420p tb:1/1000000 sar:1/1 sws_param: Output #0, avi,: Metadata: Stream #0.0(eng): Video: mpeg4, yuv420p, 1280x720 [SAR 1:1 DAR 16:9], q=1-45, 10000 kb/s, 23.98 tbn, 23.98 tbc (default) Stream #0.1(eng): Audio: ac3, 48000 Hz, 5.1, s16, 448 kb/s (default) Stream mapping: Stream #0.0 -> #0.0 Stream #0.1 -> #0.1 --------------------------------- ffprobe -show_streams Output.avi [mpeg4 @ 0xc9a6c0] Invalid and inefficient vfw-avi packed B frames detected Input #0, avi, : Metadata: encoder : Lavf53.7.0 Duration: 00:03:16.35, start: 0.000000, bitrate: 10264 kb/s Stream #0.0: Video: mpeg4 (Advanced Simple Profile), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 23.98 tbr, 23.98 tbn, 23.98 tbc Stream #0.1: Audio: ac3, 48000 Hz, 5.1, s16, 448 kb/s [STREAM] index=0 codec_name=mpeg4 codec_long_name=MPEG-4 part 2 codec_type=video codec_time_base=1001/24000 codec_tag_string=XVID codec_tag=0x44495658 width=1280 height=720 has_b_frames=1 sample_aspect_ratio=1:1 display_aspect_ratio=16:9 pix_fmt=yuv420p level=5 r_frame_rate=24000/1001 avg_frame_rate=0/0 time_base=1001/24000 start_time=0.000000 duration=196.321125 nb_frames=4707 [/STREAM] [STREAM] index=1 codec_name=ac3 codec_long_name=ATSC A/52A (AC-3) codec_type=audio codec_time_base=0/1 codec_tag_string=[0] [0][0] codec_tag=0x2000 sample_rate=48000.000000 channels=6 bits_per_sample=0 r_frame_rate=0/0 avg_frame_rate=0/0 time_base=4/125 start_time=0.000000 duration=196.352000 nb_frames=6136 [/STREAM] -- Ticket URL: <http://avcodec.org/trac/ffmpeg/ticket/253#comment:4> FFmpeg <http://ffmpeg.org> FFmpeg issue tracker _______________________________________________ FFmpeg-trac mailing list FFmpeg-trac@avcodec.org http://avcodec.org/mailman/listinfo/ffmpeg-trac