View Full Version : Mux prob in MEGUI
oddball
12th January 2006, 12:19
If I run a job it gets to the end and says muxing done but the output MP4 file is not there and the log gives this error.
Log for job job1-4
IsoMedia import - track ID 1 - Video (size 640 x 352)
an exception ocurred when trying to read from stdout: Could not find file 'D:\test\test-muxed.mp4'.
----------------------------------------------------------------------------------------------------------
Muxjob ended and deletion of intermediate files is activated
Found intermediate output file 'D:\test\test.mp4', deleting...
Found intermediate output file 'D:\test\test LPCM T01 48KHz.mp4', deleting...
---
I get no muxed output at all.
Doom9
12th January 2006, 12:24
and where's the commandline of the job?
oddball
12th January 2006, 12:34
Generating jobs. Desired size: 10485760 bytes
Encoded audio file is present: D:\test\test LPCM T01 48KHz.mp4 It has a size of 377267 bytes.
Setting desired size of video to 10485760 bytes
Next job job1-4 is a mux job. mp4box commandline:
"D:\Software\H264\MP4Box\MP4Box.exe" -add "D:\test\test.mp4" -add "D:\test\test LPCM T01 48KHz.mp4" -fps 25 -new "D:\test\test-muxed.mp4"
successfully set up muxer and callbacks for job job1-4
----------------------------------------------------------------------------------------------------------
Log for job job1-4
IsoMedia import - track ID 1 - Video (size 640 x 352)
an exception ocurred when trying to read from stdout: Could not find file 'D:\test\test-muxed.mp4'.
----------------------------------------------------------------------------------------------------------
Sorry. That's what MEGUI uses by default. I thought it might be a long folder name issue for MP4BOX but I changed the folder names and it made no difference.
Maybe it's a long filename issue with the audio? Testing...
Doom9
12th January 2006, 12:37
now go to the commandline, copy and paste
"D:\Software\H264\MP4Box\MP4Box.exe" -add "D:\test\test.mp4" -add "D:\test\test LPCM T01 48KHz.mp4" -fps 25 -new "D:\test\test-muxed.mp4"press enter, and report the results please. I'm having a feeling the process pretty much crashes right away.
oddball
12th January 2006, 12:51
It gives a different error at the command line.
D:\Software\H264\MP4Box>"D:\Software\H264\MP4Box\MP4Box.exe" -add "D:\
mp4" -add "D:\test\test LPCM T01 48KHz.mp4" -fps 25 -new "D:\test\test
"
IsoMedia import - track ID 1 - Video (size 640 x 352)
Unknown input file type (Feature Not Supported)
Error importing D:\test\test LPCM T01 48KHz.mp4: Feature Not Supported
---
Also on my Pentium PC in the other room it gives an exception. Same error in log BUT also a XP exception popup error appears. There is only 1 version of MP4BOX right? Maybe I have not got the right version?
EDIT: I tried a different version of MP4BOX from rarewares.org but the command line says 'Option -fps unknown. Please check usage' :(
Doom9
12th January 2006, 13:26
well then.. mp4box exits that fast that I can't even connect a reader to stdout.. there's not much I can do in such a case. I'm pretty sure they only have old versions at rarewares.. you're better off using the one from CelticDruid. How did you create that audio mp4 file? What does mp4box report is in it? (mp4box -info .. or something like that... if you can't figure it out, try YAMB) And can you play that audio MP4 file?
oddball
12th January 2006, 13:32
Just tried Celtic Druids build of MP4BOX (and installed the GPAC stuff too just in case). It gives no errors at all (Except the stdout error in MEGUI log) but still no muxed MP4 output. Also tried MP4BOXGUI. It just finished with no muxed output again.
Yes I can play the MP4 files (Video and Audio)
D:\Software\H264\MP4Box>mp4box -info d:\test\audio.mp4
* Movie Info *
Timescale 90000 - Duration 00:00:23.276
Fragmented File no - 3 track(s)
File Brand mp42 - version 0
File has root IOD
Scene PL 0xff - Graphics PL 0xff - OD PL 0xff
Visual PL: No visual capability required (0xff)
Audio PL: High Quality Audio Profile @ Level 2 (0x0f)
Track # 1 Info - TrackID 1 - TimeScale 48000 - Duration 00:00:23.276
Media Info: Language "und" - Type "soun" - Sub Type "mp4a" - 546 samples
MPEG-4 Config: Audio Stream - ObjectTypeIndication 0x40
MPEG-4 Audio AAC LC - 2 Channel(s) - SampleRate 24000 - SBR SampleRate 48000
Synchronized on stream 2
Track # 2 Info - TrackID 2 - TimeScale 1000 - Duration 00:00:23.276
Track is present in Root OD
Media Info: Language "und" - Type "odsm" - Sub Type "mp4s" - 1 samples
MPEG-4 Config: ObjectDescriptor Stream - ObjectTypeIndication 0x01
Self-synchronized
Track # 3 Info - TrackID 3 - TimeScale 1000 - Duration 00:00:23.276
Track is present in Root OD
Media Info: Language "und" - Type "sdsm" - Sub Type "mp4s" - 1 samples
MPEG-4 Config: SceneDescription Stream - ObjectTypeIndication 0x02
Synchronized on stream 2
oddball
12th January 2006, 13:58
I give up for now. Might have to mux to MKV instead since MP4 muxing does not appear to work for me.
EDIT: There may be a clue in this. I muxed in mkvtoolnix and it gives this error.
"will be out-of-order, and the 'CTTS' atom is needed for getting the timecodes right. As it is missing the timecodes for this track might be wrong. You should watch the resulting file and make sure that it looks like you expected it to."
I am wondering is there is some problem with the source MPEG2 source file itself. I recorded it on a DVD-RW on a stand alone machine (It's not a VOB it's a renamed .VR file).
Doom9
12th January 2006, 14:23
I'll move this to the container forum.. megui can't do anything if mp4box cannot mux it.. any other software that uses mp4box will run in the same problem.
Doom9
12th January 2006, 15:20
if you look at this: http://forum.doom9.org/showthread.php?p=766765#post766765, could it be that you're using a build that's affected?
bond
12th January 2006, 21:41
it seems mp4box has problems with your audio file. you till now didnt answer the question how it was created
oddball
13th January 2006, 15:23
The audio was created with AAC.DLL from Nero 7 latest.
Reading elsewhere it says MP4BOX does not support AVC. AVC was the default encoding method in MEGUI so I used it. Maybe that is the problem? Anyhow I cannot find a Celtic Druid build of MP4BOX pre 22 december as that thread suggests it works better.
EDIT: BTW I used FAAC instead of NAAC and same problem. I don't think it's the audio format of the .MPŁ audio file that is at issue.
Can someone point me to a pre-december 22 version of Celtic Druids MP4BOX please?
bond
13th January 2006, 15:35
mp4box supports avc
i have no idea why a pre22 december build should work better, simply use the latest from here:
http://www.aziendeassociate.it/cd.asp?dir=/gpac/dev
about your audio .mp4 file. sometimes newbies do stupid things like renaming .aac or .264 files to .mp4 aso which of course borks things
so describe exactly how you produced the audio and video file, step by step
also try muxing with plain mp4box via commandline (so not via megui or yamb), so we can be sure there is not some gui related problem kicking in
oddball
13th January 2006, 16:57
I finally managed to get a file to mux. But only when I used MP4Box_20060104.zip
However it does not play and during the muxing reports this...
MP4Box.exe -add D:\test\audio.aac -add D:\test\test.mp4
-fps 25 -new muxed.mp4
AAC import - sample rate 24000 - MPEG-2 audio - 6 channels
IsoMedia import - track ID 1 - Video (size 640 x 352)
Saving muxed.mp4: 0.500 secs Interleaving
It seems to think it's MPEG-2 audio with 6 channels and a sample rate of 24000. I assure it's not. I play it and ffdshow reports it as a realaac file in stereo. It was encoded as stereo and the original wav file is stereo (BTW I tried downsampling from 48khz to 44.1khz wav just to be sure it was not that). I have tried NAAC from Nero 6 and 7 DLL's (Both properly registered AFAIK) and FAAC.
Celtic Druids build 4 reports NOTHING at the command line. It just runs and goes back to an empty prompt. Using the same command line as above. Older versions of MP4Box like that downloaded from rareware.org do not support -fps or -new so is no good either.
I cannot figure this one out for the life of me. The audio and video files look correct. The command line looks correct. I still think there is a problem with the MP4Box versions I have. If someone can provide me a link to the version they are using that they KNOW works I can try that too.
BTW why is there not a pack with all the required files for MEGUI to work (Apart from the Nero AAC files of course due to those not being free)? It would make a bit more sense than me and others trying to track down the correct files/builds/binaries etc. It only takes one file to be incorrect for the whole process to fail.
oddball
13th January 2006, 17:13
Aha! I did an encode of an AAC (With .MP4 extension) in BeSweet GUI and then used Yamb with the included MP4Box to mux and it all works! There is a problem in MEGUI not encoding the wav to aac correctly for some reason. The resulting AAC file encoded in BeSweet was about half the size of the one encoded using MEGUI. So it is possible that there IS 6 channel crap going on in that file. Let me try changing the profile in MEGUI for audio and make sure it encodes to 2 channels and not 6 (Perhaps by using the auto encode option it's just encoding as 6 channels instead of 2....brb).
EDIT:
I finally figured out what the problem was (Apart from using problematic versions of MP4Box).
Nothing to do with the AAC format at all.
It was *USER ERROR* LOL.
I did not realise you had to tick a certain box in AutoEncode to add the audio and subs. DUUUUH!!!
All works now.
Thanks for all the tips. Of all the things it was the simplest thing that was tripping me up. :P
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.