Wie m4v Video (Xvid) + ac3 Audio mit ffmpeg richtig multiplexen?

  • Ich mache folgendes:
    1. AC3 Audio extrahieren:

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


    2. Xvid 1stPass:

    Code
    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=8776: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\StatFile.stats" -o NUL


    3. Xvid 2nd Pass:

    Code
    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=8776: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\StatFile.stats" -of rawvideo -o "D:\Encoding Output\video.m4v"


    4. Löschen der "D:\Encoding Output\StatFile.stats" Datei

    Jetzt kommt mein Problem.

    5. Audio&Video multiplexen:

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


    -> Audio kann nicht abgespielt werden, Dateilänge entspricht der Länge von beiden Dateien zusammen. :(

    Code
    ffmpeg -y -i "D:\Encoding Output\video.m4v" -i "D:\Encoding Output\audio.ac3" -vcodec copy -acodec copy "D:\Encoding Output\test.avi"


    -> Audio kann nicht abgespielt werden, Dateilänge entspricht der Länge von beiden Dateien zusammen. :(

    Da der Audiostream sich alleine ohne Probleme anhören lässt und mediainfo "D:\Encoding Output\audio.ac3" auch keien Probleme zeigt:

    vermute ich nicht, dass es am Audiostream an sich sondern am Multiplexaufruf liegt.


    Hat jemand ne Idee woran es liegt?

    Cu Selur

    Ps.: Hab zum Testen das video.m4v und das audio.ac3 file hochgeladen (ca. 13MB).

    PPs.: scheint so als ob ffmpeg den .ac3 Stream als pcm markiert wenn es den Stream in den .aiv container packt,.. (why?!)
    Hier mal die gemuxte Datei:


    scheint als ob die CodecID falsch ist,.. Grummel,...

    Hab mal im englischen Forum einen Beitrag erstellt (http://forum.doom9.org/showthread.php?t=158428) vielleicht weiß da jemand was genaueres,...

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!