PDA

View Full Version : Raw 264 in MP4 container?


showergel
5th March 2009, 05:39
I'm not new to using x264 to encode DVDs- been using MeGUI to do this for quite some time now.

What is new is the Blu-Ray discs I've recently been able to rip. I'm able to pull the unencrypted raw 264 video and audio, but where I'm having trouble I suppose is my understanding of the differences between RAWAVC and MP4 video & how to properly mux them.

When i take the .264 video and mux it into a MP4 container with a MP4 surround sound track, it simply doesn't play back on anything or if it does, I get all sorts of strangeness. However on both PC & PS3, I get accurate information about the video such as resolution, video length, and audio info (surround, stereo, etc).

But putting the same .264 video in a .mt2s stream with the audio works fine. However, resolution, length, and audio information is either wrong or missing.

I'm trying to stay away from .m2ts if possible. It's been really difficult trying to google information on how to do this since all of the keywords are in thousands of unrelated web pages. :)

Showergel

Blue_MiSfit
5th March 2009, 05:46
How are you extracting the H.264 elementary streams? There are many ways to this..

I personally suggest eac3to and AnyDVD HD in conjunction.

~MiSfit

showergel
5th March 2009, 14:44
How are you extracting the H.264 elementary streams?

VirtualCloneDrive to mount the BD iso, AnyDVDHD active on that volume, then tsmuxergui 2.0 to demux the original .mt2s file from the image. tsmuxer creates a resulting .264 video stream.

I'll take a look at eac3to.

Blue_MiSfit
5th March 2009, 19:27
TSMuxeR is a great app, don't get me wrong :) It shouldn't be causing any problems.

My suggestion is to do everything the same, except use eac3to instead of TSMuxeR. Output the H.264 stream to an MKV container. It will work perfectly.

If you need to load the MKV into AviSynth, then you can use DSS2(), which is part of AVSS.dll, stored by default in the Haali Media Splitter installation folder (wierd, eh?). It's frame accurate IIRC, and is pretty much hardcoded to use the Haali Media Splitter

~MiSfit

showergel
7th March 2009, 17:53
I guess my problem is whenever I take the RAWAVC .264 file and put it into a MP4 container, nothing can play it. Putting it into a MKV first doesn't seem to be doing it for me. MKV doesn't universally work for my setup, the PS3 doesn't like it though my PC can play it.

Is there a way to convert a RAWAVC stream to a MP4 stream *without* a re-encode?

kemuri-_9
7th March 2009, 18:08
mp4box -add some.264 -new some.mp4


mp4 is a container for mpeg streams... don't see why you think you need to re-encode a stream to go into .mp4

Edit:
if nothing can play your mp4 file... it was muxed wrongly or the raw stream itself could be corrupted.

showergel
7th March 2009, 19:47
don't see why you think you need to re-encode a stream to go into .mp4

You're totally right, I don't want to do a re-encode at all. :) Will give your code a whirl.