Log in

View Full Version : Extracting usable h264 from .mkv?


aNToK
3rd July 2011, 19:02
There's probably a simple solution for this but I can't seem to find it.

I ripped several Blue-ray disks to filter and recode for my collection, filtered them with MCTemporaldenoise, and used Megui to compress them with h.264/avc and merged them into an mkv file.

After viewing them, there's a few tweaks I want to make, but using MKVExtract or any other method leaves me with a video file with the .h264 extension that nothing seems to want to read.

I've worked around it with the mkv plugin for VDub to resave it as an avi file but is there a more direct way to do this?

Is there a plugin or filter to allow me to use the h264 extension in my avisynth scripts or is it some kind of container issue? I'm a bit lost...

sneaker_ger
3rd July 2011, 22:55
You can use ffmpegsource (http://code.google.com/p/ffmpegsource/) to open the mkv files in your script:
ffvideosource("source.mkv")

Demuxing to .h264 has no benefits.

hello_hello
4th July 2011, 03:15
What sort of tweaks are you trying to make? It sounds like you're wanting to re-encode your encode?

aNToK
4th July 2011, 03:29
Yeah, the original had huge amounts of grain and it's very inconsistent with some scenes being fairly sharp and some so soft they're almost blurry. Spent good money on the Rocky "Undisputed Collection" on Blu-ray and frankly, my dvd version's easier on the eyes so I've been back and forth between how much grain and noise to keep and it's decent, but I want to sharpen it up some, hence the tweaking.

Sneaker_ger's suggestion with ffmpegsource is working nicely, so I'm good for now.

Thanks, Sneaker! and thanks for the reply, hello!

mswaino2
10th July 2011, 04:15
I just used an MKVextract freeware program that I found and it will take everything that was muxed into the MKV file and extract them as if it were a zip file. I havent had any problem with Megui reading the files.