Hi! I need to mux audio tracks insides an avi file. I would also like the first audio track have a lower sound. It's possible?
+ Reply to Thread
Results 1 to 28 of 28
-
-
Yes, is possible. Takes a little work
To alter track volume
https://www.videohelp.com/software/Audacity
http://wiredpen.com/resources/audacity/adjust-sound-audacity-envelope-tool/
To mux tracks into AVI
https://www.videohelp.com/software/AVIMux-GUI
If the two tracks are the same length all should be fine.
You may have to pad one file with 'silence' in Audacity if it has to begin at a particular point on the timeline.
You may also have to trim the files length in there too, or the file will overun on playback (so you have audio with no picture)
Pay attention to the audio types allowed in an AVI. You may need to convert.Last edited by transporterfan; 30th Sep 2017 at 19:37.
-
Thanks... I already tryed Avimux, but I can't find the option for mix audio tracks...
-
But... don't works!!! I select the avi and click "save" but the audio tracks contained in the avi remain divided.
-
Marsia MarinerGuest
It seems that by "tracks" you actually mean *audio CHANNELS*
And by "mUxing" you mean "mIxing"Last edited by Marsia Mariner; 1st Oct 2017 at 05:07. Reason: clarity? :-/
-
It is not clear what is your goal - or you trying to add to already existing video additional audio track that later during play out can be selected instead original or you trying to mix additional audio track to already existing so video will have single audio track that is combination of original and second?
-
Mix the tracks in Audacity. Mux the mix into your AVI with Avimux.
http://manual.audacityteam.org/man/mixing.html -
Audio tracks are already inside avi. I do not have to put them in the video. Enough, I give up. Programs of shit.
-
Ok, you need to start provide details - honestly - every new comment you release a bit of information that changing overall picture.
-
Open the audio in Audacity (with the ffmpeg source plugin). Mix the two tracks as desired. Export as MP2 (or whatever codec you want). Mux the original video and the new audio with your favorite muxing tool, VirtualDubMod, AviMux, MKVToolNix, etc.
-
Should work OK, download suitable ffmpeg for your OS, copy and paste bellow to some plain text editor (Notepad in Windows is fine) then save as batch (must have extension .bat or .cmd), drag & drop your source on this batch, ffmpeg must be located in same folder as batch.
Code:ffmpeg -i "%1" -filter_complex "[0:a:0]dynaudnorm,volume=volume=-12dB[aout1];[0:a:1]dynaudnorm,volume=0.5[aout2];[aout1][aout2]amix=inputs=2:duration=longest:dropout_transition=2[aout]" -map 0:v:0 -c:v copy -map [aout]:a:0 -c:a:0 libmp3lame -q:a:0 4 "%~n1_out.mkv"
-
-
Not my circus and not my monkeys but provided script take your source, video is copied unchanged, audio tracks are normalized by dynaudnorm filter to avoid significant level differences between tracks, level one of tracks (first) is reduced by constant factor (approx 4 times lower level than second audio - this can be easily changed), both tracks are mixed and output is compressed with way more popular mp3 codec, video and audio track are muxed to mkv container.
All above performed automatically and in repeatable way so it can be repeated multiple times. That's all. -
Too many unknowns. Did you put a copy of ffmpeg.exe in your \Windows\System32 folder? Or did you change the command line to reflect the full path to ffmpeg.exe? Like "C:\program files\ffmpeg\bin\ffmpeg.exe -i "%1..." -- or wherever ffmpeg is on your computer. What exactly are your audio tracks? Two mono tracks? One stereo track? Two stereo tracks? Two 5.1 tracks?
Similar Threads
-
Mux Mpeg Video File With AAC Audio File
By criggs in forum Video ConversionReplies: 12Last Post: 5th Oct 2015, 00:23 -
Question: How To Change Audio Tracks in AVI file?
By abrogard in forum Newbie / General discussionsReplies: 10Last Post: 8th Sep 2014, 06:34 -
Modify audio inside avi/mpg file
By macnab in forum Newbie / General discussionsReplies: 0Last Post: 25th Feb 2013, 04:59 -
(MUX?) AVI file - 2 audio streams - Can't get them BOTH to play.
By blujay in forum Newbie / General discussionsReplies: 5Last Post: 1st Nov 2012, 12:57 -
How to demux .avi file with multiple audio tracks?
By junglemike in forum AudioReplies: 8Last Post: 26th Oct 2012, 18:05