Log in

View Full Version : Converting audio only?


lellouchftw
26th April 2011, 12:36
Sup guys; was wondering if someone could recommend me a GUI program to do the following:

Take an mkv file - convert the audio, copy the video stream, copy over any .ass subtitles; and mux into an mkv.

The reason for this is; I have a samsung galaxy tab that can playback all the h264 videos i've thrown at it, but it doesn't seem to support a few types of audio. So i figured it'd be quicker and better to just copy the video while converting the audio stream.

Can someone please point me to a program that can do this (preferably in batch) ?

So far I've checked out Handbrake & MeGUI + a few more, but with no luck >.<

LoRd_MuldeR
26th April 2011, 12:40
The MKV Toolnix suite should be able to do what you want:
http://www.videohelp.com/tools/MKVtoolnix

You can 'extract' the audio stream with MKVExtract, convert it with your favorite audio converted, and finally 'mux' everything together with MKVMerge(GUI).

lellouchftw
26th April 2011, 13:24
The problem is I'm trying to do it in batch, and doing it that route will take a few minutes per file. If I were a batch guru I could somehow get around that, but unfortunately im not :s

Zathor
26th April 2011, 13:59
Take an mkv file - convert the audio, copy the video stream, copy over any .ass subtitles; and mux into an mkv.
You can try the OneClick tool in MeGUI. It can do what you want. You need only to configure the OneClick profile once (disable video encoding, select desired autio conversion method, subtitles + chapters will be copied by default).

LoRd_MuldeR
26th April 2011, 15:09
The problem is I'm trying to do it in batch, and doing it that route will take a few minutes per file. If I were a batch guru I could somehow get around that, but unfortunately im not :s

Well, all these tools have CLI programs (there also are GUI's available tough), so you can easily call them from a batch file...

Like this:
set "SRC_PATH=C:\Some Folder\My Videos\Source"
set "OUT_PATH=C:\Some Folder\My Videos\Processed"

for %%f in (%SRC_PATH%\*.mkv) do (
"%~dp0\mkvextract.exe" <arguments>
"%~dp0\some audio encoder.exe" <arguments>
"%~dp0\mkvmerge.exe" <arguments>
)

lellouchftw
27th April 2011, 02:22
You can try the OneClick tool in MeGUI. It can do what you want. You need only to configure the OneClick profile once (disable video encoding, select desired autio conversion method, subtitles + chapters will be copied by default).
Thanks! wasn't aware of that >.<


Like this:
set "SRC_PATH=C:\Some Folder\My Videos\Source"
set "OUT_PATH=C:\Some Folder\My Videos\Processed"

for %%f in (%SRC_PATH%\*.mkv) do (
"%~dp0\mkvextract.exe" <arguments>
"%~dp0\some audio encoder.exe" <arguments>
"%~dp0\mkvmerge.exe" <arguments>
)
Seems interesting, i'll give it a try in the future sometime ;p, thanks >.<