1

Topic: [Info] avi multiplexing through ffmpeg sucks!

ffmpeg -y -ss -5 -i "H:\Output\video.avi" -i "H:\Output\audio.mp3" -vcodec copy -acodec copy -map 0:0 -map 1:0 -r 25 -f avi "H:\Output\test.avi"

and

ffmpeg -y -itsoffset -00:00:05.0 -i "H:\Output\video.avi" -i "H:\Output\audio.mp3" -vcodec copy -acodec copy -map 0:0 -map 1:0 -r 25 -f avi "H:\Output\test.avi"

and

ffmpeg -y -i "H:\Output\video.avi" -ss 5 -i "H:\Output\audio.mp3" -vcodec copy -acodec copy -map 0:0 -map 1:0 -r 25 -f avi "H:\Output\test.avi"

all do the same: they start the audio 5 seconds before the video

ffmpeg -y -ss 5 -i "H:\Output\23_35_40_9910_07.avi" -i "H:\Output\iId_1_aid_1_DELAY_5000ms_23_35_40_9910_06.mp3" -vcodec copy -acodec copy -map 0:0 -map 1:0 -metadata handler_name="Hybrid 2013.05.10.1" -r 25 -f avi "H:\Output\test_ss5.avi"

-> cuts off the first 5 seconds of the video

ffmpeg -y -i "H:\Output\video.avi" -ss -5 -i "H:\Output\audio.mp3" -vcodec copy -acodec copy -map 0:0 -map 1:0 -r 25 -f avi "H:\Output\test.avi"

-> cuts of the first 5 seconds of the audio stream

ffmpeg -y -itsoffset 00:00:05.0 -i "H:\Output\video.avi" -i "H:\Output\audio.mp3" -vcodec copy -acodec copy -map 0:0 -map 1:0 -r 25 -f avi "H:\Output\test.avi"

and

ffmpeg -y -i "H:\Output\video.avi" -itsoffset 00:00:05.0 -i "H:\Output\audio.mp3" -vcodec copy -acodec copy -map 0:0 -map 1:0 -r 25 -f avi "H:\Output\test.avi"

-> both extend the playtime by 5 seconds, both video and audio end before


=> haven't found a way to:
a. start the video 5 seconds before the audio
b. a way to handle multiple audio streams (where at least one has a delay)

Seems like Hybrid needs another avi multiplexer. sad

also see:
https://ffmpeg.org/trac/ffmpeg/ticket/1349


Cu Selur

Ps,: fixing the delay through delaycut also is not always a solution, since I stumbled over a bunch off avi files which cause delaycut to loop and create 50GB+ files,..

2

Re: [Info] avi multiplexing through ffmpeg sucks!

for a single audio stream mencoder could be used:

 mencoder -ovc copy -audiofile "H:\Output\audio.mp3" -oac copy -audio-delay 5 "H:\Output\video.avi" -o "H:\Output\test.avi"

and

 mencoder -ovc copy -audiofile "H:\Output\audio.mp3" -oac copy -audio-delay -5 "H:\Output\video.avi" -o "H:\Output\test.avi"

both work, but again no solution for multiple audio streams,... hmm