PDA

View Full Version : .AVI to .MKV (h.264/PCM)


Speediakal
29th May 2007, 03:21
so i captured a bunch of music videos off of the TV and they're all in HuffYUV and i want to convert them into an .mkv with h.264/avc and PCM or MP3. how would i go about doing that?

J_Darnley
29th May 2007, 12:47
Use x264 and MP3 encoder of your choice. Give a bit more detail and we can definately guide you through it.

Video:
Use AviSynth and a script like:
AVISource("huffyuv.avi") #replace with actual file
Denoise
Crop
Resize
Use x264 for encoding
x264 [your chosen options] --output "video.mkv" "AviSynth.avs"

Audio:
If they are seperate wav files just use lame on them directly.
lame [encode options] audio.wav audio.mp3.
If the audio is stored in the avi file you could use BeSweet, FFmpeg, mencoder, lame ACM.

Mux:
Use the mkvmerge program in the MKVtoolnix package:
mkvmerge -o "final.mkv" "video.mkv" "audio.mp3"

Speediakal
29th May 2007, 16:29
i don't know what more i can tell you about the video.

but, i'm a total noob when it comes to avisynth. what would i put for the options for the x264? and the audio and video are in one file. and what would i open the script in? VDub?

foxyshadis
29th May 2007, 21:34
You'll probably want MeGUI, automkv, staxrip, or another of the GUIs in that case. (See the forum dedicated to them.)

Speediakal
30th May 2007, 00:15
i tried automkv, but it said that the codec wasn't supported for some reason.