Log in

View Full Version : h264 .mkv to lagerith\uncompressed .avi


dbzman1995
22nd April 2007, 20:55
How could I convert a h264 encoded .mkv to a lossless .avi thanks!

Blue_MiSfit
22nd April 2007, 21:54
There's a couple ways of doing it. Both involve AviSynth.

1) Demux the MKV to a raw 264 file, index with DGAVCDec, and load with AviSynth into VirtualDub, and then re-encode to Lagarith. This is similar to how you usually work with MPEG-2 in AviSynth by using DGIndex

2) Load the MKV directly with DirectShowSource into AviSynth and VirtualDub, and then re-encode to Lagarith.

Both should be fine if you're just encoding, but if you want to seek around in the file before encoding (I dunno, to trim out a portion for example), DGAVCDec is the only way to go. DirectShowSource seeking is.... unpredictable ;)

But yeah, its rather simple.

Just out of curiosity, why do you want to do this?

~MiSfit

Dark Shikari
23rd April 2007, 03:08
2) is probably the easiest there. I use it all the time if I want to, for example, convert an H.264 MKV to a .WMV file for whatever reason, as the Windows Media Encoder doesn't take MKV.