PDA

View Full Version : x264 video+m4a audio muxing without mp4box gui


anX
4th August 2007, 06:33
I'm looking to combine an encoded video file (x264, .mp4 encoded with megui) with an encoded audio file (.m4a encoded with faac).

I just use YAMB, but a person I know is getting errors with the program.

Could anyone just type out the commands to use in command line in order to mux the two files with mp4box? I used to use toxik's guide (http://toxik.no-ip.info/x264/guide.html), but he changed his muxing section and no longer has the commands but instead uses megui. I can't remember them for the life of me because I've been using YAMB for a while now.

I know this is very basic and is probably posted somewhere else, but I did some looking and couldn't find it. If this thread is breaking any rules I apologize.

Thanks in advance.

nurbs
4th August 2007, 13:38
Just open a dos window and type "mp4box" when you are in the directory the .exe is in. That will list the available help topics.
You can also take a look at the yamb logs to see what a typical command line looks like.

mic64
9th August 2007, 14:21
mp4box.exe -add video.x264 -add audio.aac -fps 23.976. (or 25) outputfile.mp4

SeeMoreDigital
9th August 2007, 16:29
I just use YAMB, but a person I know is getting errors with the program.What kind of errors?

SealTooGreat
9th August 2007, 20:43
mp4box.exe -add video.x264 -add audio.aac -fps 23.976. (or 25) outputfile.mp4

If audio is raw he-aac than this is the wrong way! mp4box can't read sbr signaling from the raw he-aac, so you have to put this command (sbr) in cmd line.

mp4box.exe -add "video.x264:fps=X" -add "audio.aac:sbr" outputfile.mp4

...wher X is fps. MP4Box use 25 by default. If video's fps is other than that you must type this different value.

For other case like raw lc-aac and (he/lc)aac/mp4 you don't have to use sbr command. sbr is not the part of lc-aac standard, and if you use he-aac/mp4, mp4box will take that info(sbr) from mp4 container.

The most h264 square pixel encodes don't have par=1:1 info. For more compatibility, I would add par command like this:

mp4box.exe -add "video.x264:fps=X:par=1:1" -add "audio.aac:sbr" outputfile.mp4

If encode is anamorphic use other values for "par".