Log in

View Full Version : MP4 creation fail


kotrtim
3rd January 2006, 02:38
I read Doom9's "Creating MP4 files - ISO compliant MPEG-4 streams with AAC audio"
guide

Step 1: Encode video

Please follow one of the abovementioned guides to encode your video. As a better alternative, you can use my very own MeGUI for encoding. You can set it to produce a raw file, which is best for what we're going to do.

This is bad... The first time I tried to encode x264, (RV 391A), I followed
the mentioned method, creating a RAW stream with MeGUI-x264 (HQ-Slow) first, the encoding is ~3.8 fps and it took me ~12 hours to encode. When I tried to mux the RAW stream with AAC into MP4 with MeGUI 0.2.3.1b (MP4Box - GPAC version 0.4.1-DEV)
....the video importing halt at 84%. I tried YAMB 1.4 and have no luck
Finally, I tried to use avc2avi and it works. But too bad, its avi, I deleted
the file and encode again!

This time, I use x264 RV 392A, encode to MP4 instead of raw,
and the resulting can be also muxed with AAC with MeGUI without
any problems.

For safety reasons, I think it's safer to encode to MP4 instead of RAW since mp4box also support mp4 importing

bond
3rd January 2006, 12:59
When I tried to mux the RAW stream with AAC into MP4 with MeGUI 0.2.3.1b (MP4Box - GPAC version 0.4.1-DEV)
....the video importing halt at 84%. I tried YAMB 1.4 and have no lucksounds like a mp4box bug?
can you try again with the latest mp4box from here (http://www.aziendeassociate.it/cd.asp?dir=/gpac/dev)

also whats your video framerate? does it also stop importing if you set -fps 25?

kotrtim
4th January 2006, 07:09
I set the frame rate to 23.976 in MeGUI

anyway, when I import with yamb 1.4, I didn't set frame rate, the default is 25fps? And yet it failed

MeGUI/YAMB 1.4 also cannot import .sub file created with Vobsub ripper
... Only .srt works! I thought .sub is supported?

And the link you gave me, the mp4box version is the same as the one i'm using.

Doom9
4th January 2006, 09:04
... Only .srt works! I thought .sub is supported?Well.. the text based .sub is supported... but not VobSub (which is probably what you're looking for).. there's somebody who managed to write a vobsub mp4 muxing tool and promised a patch for mp4box.. but so far it hasn't surfaced yet

bond
4th January 2006, 21:39
kotrtim , make a bug report about this on the mp4box bug tracker (http://sourceforge.net/tracker/?atid=571738&group_id=84101&func=browse) plz

kotrtim
5th January 2006, 04:53
I don't really know what to tell the devs.... can you help me please?


The source (AVS, cropped) is 720x368, 23.976 fps

the problem is this, I encoded a RAW sample with x264 MeGUI with setings HQ-Slow which is equivalent to "x264.exe" --pass 2 --bitrate 724 --stats ".stats" --ref 5 --bframes 3 --b-pyramid --weightb --filter -2,-1 --subme 6 --trellis 1 --analyse all --8x8dct --progress --no-psnr --output "" ""

import fail

With the same settings but mp4 stream, the video can be imported successfully

Thanks for your help

raymod2
5th January 2006, 05:17
I can't think of a good reason to recommend having x264 output raw instead of mp4. Can someone enlighten me to the reasoning behind this?

bond
5th January 2006, 08:29
I don't really know what to tell the devs.... can you help me please?write all you know about the issue as detailed as possible in the bug report

Doom9
5th January 2006, 08:53
write all you know about the issue as detailed as possible in the bug reportWhich includes build number, build date (or rather: the CSV checkout date for the build) and of course the commandline. Even better, provide a raw and mp4 sample to reproduce the problem.