New submission from Selur <[email protected]>:

Probably a clone of https://roundup.ffmpeg.org/issue1498 but since it was
closed, I opened a this one.

Trying to convert Elephants Dream to (Xvid, ac3) I did the following:

1. extract 5.1 ac3 audio with mplayer:
mplayer -v -mc 0 -vc dummy -nocorrect-pts -aid 128 dvd://1 -dvd-device
"D:\ElephantsDream\VIDEO_TS" -endpos 0 -dumpaudio -dumpfile "D:\Encoding
Output\audio.ac3"

-> Output: audio.ac3

ffmpeg -i reports:
Input #0, ac3, from 'D:\Encoding Output\audio.ac3':
  Duration: 00:00:26.38, bitrate: 448 kb/s
    Stream #0.0: Audio: ac3, 48000 Hz, 5.1, s16, 448 kb/s

2. encoder video with mencoder&x264:
1st pass:
mencoder -dvd-device "D:\ElephantsDream\VIDEO_TS" dvd://1 -chapter 1-1 -noskip
-vc mpeg12 -vf scale,format=i420 -forcedsubsonly -noautosub -nosound -mc 0
-lavdopts threads=8 -fps 25 -aspect 1.7775:1 -ovc xvid -xvidencopts
pass=1:bitrate=1500:turbo:profile=unrestricted:me_quality=6:min_iquant=1:max_iquant=31:min_pquant=1:max_pquant=31:min_bquant=1:max_bquant=31:max_key_interval=250:quant_type=h263:max_bframes=2:bquant_ratio=150:bquant_offset=100:bf_threshold=0:vhq=2:bvhq=1:curve_compression_high=0:curve_compression_low=0:overflow_control_strength=10:max_overflow_improvement=10:max_overflow_degradation=10:trellis:noqpel:nogmc:nocartoon:chroma_opt:chroma_me:nointerlacing:keyframe_boost=10:kfthreshold=1:kfreduction=20:par=ext:par_width=16:par_height=11:closed_gop:nopacked:threads=0
-passlogfile "D:\Encoding Output\video.stats" -o NUL
2nd pass:
mencoder -dvd-device "D:\ElephantsDream\VIDEO_TS" dvd://1 -chapter 1-1 -noskip
-vc mpeg12 -vf scale,format=i420 -forcedsubsonly -noautosub -nosound -mc 0
-lavdopts threads=8 -fps 25 -aspect 1.7775:1 -ovc xvid -xvidencopts
pass=2:bitrate=1500:profile=unrestricted:me_quality=6:min_iquant=1:max_iquant=31:min_pquant=1:max_pquant=31:min_bquant=1:max_bquant=31:max_key_interval=250:quant_type=h263:max_bframes=2:bquant_ratio=150:bquant_offset=100:bf_threshold=0:vhq=2:bvhq=1:curve_compression_high=0:curve_compression_low=0:overflow_control_strength=10:max_overflow_improvement=10:max_overflow_degradation=10:trellis:noqpel:nogmc:nocartoon:chroma_opt:chroma_me:nointerlacing:keyframe_boost=10:kfthreshold=1:kfreduction=20:par=ext:par_width=16:par_height=11:closed_gop:nopacked:threads=0
-passlogfile "D:\Encoding Output\video.stats" -of rawvideo -o "D:\Encoding
Output\video.m4v"

-> Output: video.m4v

ffmpeg -i reports:
Input #0, m4v, from 'D:\Encoding Output\video.m4v':
  Duration: N/A, bitrate: N/A
    Stream #0.0: Video: mpeg4, yuv420p, 720x576 [PAR 16:11 DAR 20:11], 25 fps,
25 tbr, 1200k tbn, 25 tbc

=> so far no problem both files play fine with mplayer and other players

3. Multiplex using ffmpeg:

FFmpeg version SVN-r26084, Copyright (c) 2000-2010 the FFmpeg developers
  built on Dec 24 2010 04:08:19 with gcc 4.4.2
  configuration: --enable-gpl --enable-version3 --enable-libgsm
--enable-libvorbis --enable-libtheora --enable-libspeex --enable-libmp3lame
--enable-libopenjpeg --enable-libschroedinger --enable-libopencore_amrwb
--enable-libopencore_amrnb --enable-libvpx --disable-decoder=libvpx --arch=x86
--enable-runtime-cpudetect --enable-libxvid --enable-libx264 --enable-librtmp
--extra-libs='-lrtmp -lpolarssl -lws2_32 -lwinmm' --target-os=mingw32
--enable-avisynth --enable-w32threads --cross-prefix=i686-mingw32- --cc='ccache
i686-mingw32-gcc' --enable-memalign-hack

  libavutil     50.36. 0 / 50.36. 0
  libavcore      0.16. 0 /  0.16. 0
  libavcodec    52.100. 0 / 52.100. 0
  libavformat   52.88. 0 / 52.88. 0
  libavdevice   52. 2. 2 / 52. 2. 2
  libavfilter    1.70. 0 /  1.70. 0
  libswscale     0.12. 0 /  0.12. 0


ffmpeg -i "D:\Encoding Output\video.m4v" -vtag xvid -i "D:\Encoding
Output\video.ac3" -vcodec copy -acodec copy -map 0:0 -map 1:0 "D:\Encoding
Output\test.avi"

-> Output: test.avi

ffmpeg -i reports:
Input #0, avi, from 'D:\Encoding Output\test.avi':
  Metadata:
    encoder         : Lavf52.88.0
  Duration: 00:00:26.52, start: 0.000000, bitrate: 623 kb/s
    Stream #0.0: Video: mpeg4, yuv420p, 720x576 [PAR 16:11 DAR 20:11], 25 tbr,
25 tbn, 25 tbc
    Stream #0.1: Audio: ac3, 48000 Hz, 5.1, s16, 448 kb/s

which looks fine,...

=> causes problems on different players (asynch, no audio at all, or broken 
sound)

Looking around I found https://roundup.ffmpeg.org/issue1498 which describes the
problem.
Not sure if thie is the only, but instead of writing CodecID 2000 ffmpeg writes
00001000-0000-0020-8000-00AA00389B71 (according to mediainfo) when muxing 5.1
ac3 audio into an .avi container.


Uploaded all the files to: http://www.multiupload.com/5FYGJ6FL80 (< 2MB) and
attached them
Elephants Dream DVD can befound over at: http://www.elephantsdream.org/
File 'ffmpegOutputbroken.7z' not attached - you can download it from 
https://roundup.ffmpeg.org/file1235.

----------
files: ffmpegOutputbroken.7z
messages: 13038
priority: normal
status: new
substatus: new
title: Muxing Xvid and 5.1 ac3 into .avi container broken
topic: ffmpeg
type: bug

________________________________________________
FFmpeg issue tracker <[email protected]>
<https://roundup.ffmpeg.org/issue2446>
________________________________________________

Reply via email to