Log in

View Full Version : Remux MP4 stream to another container


DVDBob
9th June 2011, 16:14
Hello.

I have trying to remux mp4 to a MKV container.

But DGIndexNV dosent accept my new MKV file.

I need my mp4 movies to another container.

Because DGIndexNV dosent accept MP4 container.

I hope someone can help me.

rack04
9th June 2011, 16:34
Hello.

I have trying to remux mp4 to a MKV container.

But DGIndexNV dosent accept my new MKV file.

I need my mp4 movies to another container.

Because DGIndexNV dosent accept MP4 container.

I hope someone can help me.

Use MP4Box to extract the raw video stream and feed that to DGIndexNV. Assuming it is a compatible format.

DVDBob
9th June 2011, 16:41
I have trying a GUI called Yamb and it extracting the raw video stream to a cmp file.

But DGIndexNV does not support it.

Guest
9th June 2011, 17:06
Extract to a raw stream, not a 'cmp' stream (whatever that is).

DVDBob
9th June 2011, 17:24
I use "Extract All Streams to Raw Format" because i will have the audio with.

Guest
9th June 2011, 18:58
Then what is this "cmp file" you are talking about?

DVDBob
9th June 2011, 19:07
That is the raw video stream

b66pak
9th June 2011, 19:23
.cmp is the extension mp4box adds to raw mpeg4 video (xvid)...
_

Guest
9th June 2011, 20:04
DG tools don't support MPEG4 ASP raw files. Use DSS().

DVDBob
9th June 2011, 20:30
Ok so can i only use another indexer.

hello_hello
9th June 2011, 23:01
If I understand the problem correctly you have an MP4 and you want to make it an MKV.

Download and install MKVToolNix. Open the MP4 using MKVMergeGUI. Hit the "Start muxing" button and save it as an MKV.

DVDBob
9th June 2011, 23:12
Yes but i need to resize and use denoiser.

So i can only reencode my movies.

hello_hello
10th June 2011, 08:40
Well if you're re-encoding and not just remuxing, almost any encoder GUI should be able to re-encode an MP4 and save the output as MKV.
I've converted MP4s and MKVs using MeGUI. If memory serves me correctly, it uses FFMSIndex rather than DGIndexNV. I'm a GUI kind of guy so I don't really know how to use either of them manually. I'd assume it wouldn't be hard to get MeGUI to do the indexing and then create your own script for encoding once it's done, if you prefer the manual method.

Reading your post again I assume you've tried converting the video while it's in an MP4 container and while it's an MKV? Is your objective to end up with an MKV or were you only remuxing because you couldn't convert the original MP4? What format and container are you ultimately wanting to encode to? Is it x264/MKV or something else?

My quick and easy solution for encoding "problem" video is to create a DirectShow AVISynth script for opening the original video. That way there's no indexing to worry about. Something like:

DirectShowSource("D:\movie.mp4", audio=false)

Sometimes I use it as the source video rather than the video file itself. If necessary (if I'm using a converter such as AutoGK which only opens AVI) I then wrap the script into an AVI for it to encode via DirectShow (no indexing). makeAVIS is a utility which comes with ffdshow which will do that for you.

Anyway, without knowing exactly how you're going about re-encoding, doing it via DirectShow so you don't have to worry about indexing might be an answer. Other than that, encoder GUIs seem to use FFMSIndex for indexing MP4s, but I've no idea how to use it manually.
I often just use the DirectShow script method so I can use a program such as AutoGK for the encoding and of course doing it via DirectShow there's no indexing to worry about. As ffdshow does the decoding, I also use it to do the basic stuff such as resizing or setting the aspect ratio etc on the way through if necessary.

DVDBob
10th June 2011, 12:03
I have chosen to use FFMSIndex instead DGIndexNV because that DGIndexNV could not take MP4.

TheRyuu
11th June 2011, 09:06
but I've no idea how to use it manually.

LoadPlugin("X:\path\to\ffms2.dll")
ffvideosource("X:\path\to\file.mkv")

Why ffmpegsource wasn't suggested sooner is beyond me.

hello_hello
11th June 2011, 15:51
Thanks for the info TheRyuu.

If nothing else I thought if I say thank you, DVDBob might work out how it's done. ;)