Greetings, all! I have a video file (fairly long) that I'd like to place specific audio files (each fairly short) onto, mixed in with the existing audio from the main input file. In theory, this ought to be possible, but I'm having trouble getting itsoffset and amix to work together, so I must be doing something wrong somewhere!
(Note: I'm running this on Debian Wheezy, which ships with avconv 0.8.16; so my command lines here are calling on my locally-built avconv which is straight from git today, version v12_dev0-183-g1d4579e.) Here's an initial attempt: $ ~/libav/avconv -i main_video.mkv -itsoffset 4 -i test.wav -filter_complex amix Test.mkv The main video, for this test, is 70 seconds long, and test.wav is about one second long. I'm trying to place test.wav at the four-second mark in the main video. If I place the -itsoffset before the main video input, it delays both the main and the overlay: $ ~/libav/avconv -itsoffset 4 -i main_video.mkv -i test.wav -filter_complex amix Test.mkv That creates four "dead" seconds at the beginning of the output file (VLC sits there for four seconds with a frozen image, although avplay just starts straight in), and then the wav file is still overlaid at the very beginning of the file. Are there any convenient ways around this? I suppose I could brute-force it by adding the requisite silence to the beginning of each file, but that seems extremely wasteful. All advice appreciated! ChrisA _______________________________________________ libav-tools mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-tools
