mkv conversion question

If you have questions about compression/encoding/converting look here.
Locked
User avatar
Qyot27
Surreptitious fluffy bunny
Joined: Fri Aug 30, 2002 12:08 pm
Status: Creepin' between the bullfrogs
Location: St. Pete, FL
Contact:
Org Profile

Post by Qyot27 » Thu Oct 11, 2007 10:39 am

Find out which track the audio you want is, then adjust the atrack parameter. -1 will call the first usable stream (so more than likely audio stream 1), but to be more specific 1 will call it also, and 2 will call stream 2. You can't use -2 because it won't work.

Code: Select all

FFmpegSource("video.mkv", atrack=2)
or you'll have to demux both audio streams, ID which one's the right audio, and convert it to WAV. Then, like so:

Code: Select all

video = DirectShowSource("video.mkv",fps=29.97,convertfps=true,audio=false).TDecimate(mode=1)
audio = WAVSource("audio.wav")
AudioDub(video,audio)
Having to do the AudioDub routine is a necessity simply in cases where there's two or more audio streams which need to be distinguished - I'm not aware of an option for DirectShowSource which will distinguish the correct track like FFmpegSource'a atrack function can. If you don't want to go through that, use mkvmerge (part of the mkvtoolnix package) and run the MKV through it, making sure to disable the audio you don't want. It'll output a new MKV file, and just use the scripts in my last post to handle it.

User avatar
Phantasmagoriat
Joined: Mon Feb 06, 2006 11:26 pm
Status: ☁SteamPunked≈☂
Contact:
Org Profile

Post by Phantasmagoriat » Thu Oct 11, 2007 12:51 pm

Hey, that's really good to know :), I may have to try FFmpegSource for my next conversion.

@arcticstorm058: oh, and because I didn't mention, whenever it says "video.mkv" or something like that, you replace whatever is within the "" with the path of the file you need like FFmpegSource("C:\videos\file.mkv"). An easier alternative is to make sure you have your .avs file in the same folder as your audio/video files, then you don't have to type the path, just FFmpegSource("file.mkv")
PLAY FREEDOOM!! | Phan Picks! | THE424SHOW | YouTube | "Painkiller" | Vanilla MIDI's
"Effort to Understand; Effort to be Understood; to See through Different Eyes."

arcticstorm058
Joined: Fri Sep 08, 2006 4:44 pm
Location: Texas
Contact:
Org Profile

Post by arcticstorm058 » Thu Oct 11, 2007 10:08 pm

thanks for all the help i just wish all it was is that i have to turn on a certin option but oh well
“I had my suspicions you were no mere mortal, but I had no idea you were actually a cat... Wait a second, what the hell am I saying–where is that idiot?!?”
-Nicholas D. Wolfwood

Locked

Return to “Conversion / Encoding Help”