View Full Version : muxing splited audio with another video
khan sahab
17th December 2011, 10:08
i have 2 movies as
movie 1
video -25 FPS - low quality
audio - split audio with preload as well
Audio #2
ID : 2
Format : MPEG Audio
Format version : Version 1
Format profile : Layer 3
Codec ID : 55
Codec ID/Hint : MP3
Duration : 3h 40mn
Bit rate mode : Constant
Bit rate : 128 Kbps
Channel(s) : 2 channels
Sampling rate : 48.0 KHz
Compression mode : Lossy
Stream size : 201 MiB (12%)
Alignment : Aligned on interleaves
Interleave, duration : 738 ms (18.46 video frames)
Interleave, preload duration : 216 ms
Writing library : LAME3.93
Movie 2
video -23.976 fps - high quality
audio - dont need this audio
what i have done is remuxed movie 2 to 25 FPS and removed audio with mkvmerge
now i want to mux movie 2 video to movie 1 audio .... since audio in movie 1 is splited i cant get the desired result
is there any way to mux these without re-encoding them specially video
hello_hello
17th December 2011, 10:54
I don't think the pre-load stuff has any relevance.
When you say the audio is split, how is it split? Is the "movie 1" file itself split into multiple parts? What container do the original video files use?
Taking a guess at a possible scenario....
The "movie 1" file might be an AVI split into multiple segments, in which case I'd use VirtualDubMod to append them, then resave the segments as one complete AVI (direct stream copy for the video), open the new AVI with VirtualDubMod and demux the audio stream which will now be in one piece. Assuming both files are AVIs you could use VirtualDubMod to change the frame rate of "movie 2" while deleting the original audio stream and adding the new one, or MKVToolnix to do the same to do the same with MKVs. That sort of thing...
sneaker_ger
17th December 2011, 11:54
While hello_hello's suggestion probably works just fine, you can actually do everything in just a single operation with mkvmerge (GUI):
1.) Add movie 1 part 1 and append part 2, uncheck the video(s), (adding "--append-mode track" in the audio track's "Extra options" tab might be better for sync)
2.) Add movie 2, set video fps to 25 and uncheck the audio, you might want to move the new video track to the top as to get the "usual" track order of video coming before audio.
khan sahab
17th December 2011, 12:03
i don't think the pre-load stuff has any relevance.
When you say the audio is split, how is it split? Is the "movie 1" file itself split into multiple parts? What container do the original video files use?
Taking a guess at a possible scenario....
The "movie 1" file might be an avi split into multiple segments, in which case i'd use virtualdubmod to append them, then resave the segments as one complete avi (direct stream copy for the video), open the new avi with virtualdubmod and demux the audio stream which will now be in one piece. Assuming both files are avis you could use virtualdubmod to change the frame rate of "movie 2" while deleting the original audio stream and adding the new one, or mkvtoolnix to do the same to do the same with mkvs. That sort of thing...first thing first
i have 2 video
movie 1 -avi -single file -i want audio of this movie
movie 2 -mkv- want to use video stream of this movie
actually following lines are confusing me to assume that audio is timed ... not a continuous single audio steam
Interleave, duration : 738 ms (18.46 video frames)
Interleave, preload duration : 216 ms
sneaker_ger
17th December 2011, 12:08
Oh, then ignore what hello_hello and me said.
Streams in AVI are never timed and you can safely ignore those two interleaving values, they have nothing to do with timing, just how the AVI is stored.
Did you actually experience any issues after merging those two files or are you just asking to be sure that everything is OK?
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.