Log in

View Full Version : How to mux x264 and HE-AAC into MP4


stanleyhuang
22nd September 2005, 16:17
Could anyone kindly tell me, If I have an encoded x264 .avi file (outputed by MEncoder) and an .aac (HE-AAC) file, how can I mux them into a MP4 file? I tried mp4box, but it reports:

WARNING: "-import" is deprecated - use "-convert" option to convert a file to ISMA MP4
Video format h264 not supported - recompress the file first Error: Feature Not Supported
Import failed Feature Not Supported

Thanks in advance!

SeeMoreDigital
22nd September 2005, 16:29
Have a look at this thread....

http://forum.doom9.org/showthread.php?t=94874


And welcome to the forum

bob0r
22nd September 2005, 16:45
quick answer (but still read the links posted and use search):

MP4Box -add video.264 x264.mp4
MP4Box -sbr -add audio.aac x264.mp4
(-sbr is needed for HE-AAC/AAC+/AAC+SBR(+PS) (these 3 are the same)

http://www.codingtechnologies.com/products/aacPlus.htm

I recommand raw .264 output for x264 when you manually mux them into .mp4

Also try: 'MP4Box -h import' and 'MP4Box -h extract' and start playing with test files!

Good luck!

dimzon
22nd September 2005, 16:53
I recommand raw .264 output for x264 when you manually mux them into .mp4
Why???

bob0r
22nd September 2005, 17:00
Why???

Why not? Why put a container in a container?
Also, .mp4 output needs some updating....

movax
22nd September 2005, 17:01
IIRC, x264 was b0rking upon direct output to either mkv or mp4...it's not like it's a big deal to output to raw anyways.

dimzon
22nd September 2005, 17:02
Why not?
bcz i can preview encoding result before audio muxing!

leowai
22nd September 2005, 17:11
bcz i can preview encoding result before audio muxing!
Same here. BTW, is there any MediaPlayer plays raw 264?

SeeMoreDigital
22nd September 2005, 18:04
Same here. BTW, is there any MediaPlayer plays raw 264?Yes....

But you will have to install NeroDigital's filters ;)

By-the-way... I encode the audio and video streams separately too, prior to muxing with YAMB.


Cheers

nm
22nd September 2005, 21:08
But you will have to install NeroDigital's filters ;)
MPlayer should work too.

SeeMoreDigital
22nd September 2005, 21:35
MPlayer should work too.As long as you have NeroDigital's filters installed any direct-show capable player should be able to play RAW .H264 streams.... even WMP9/10 :eek:

http://img333.imageshack.us/img333/3898/rawh2647jt.png


Cheers

Joe Fenton
22nd September 2005, 23:36
MPlayer should work too.

It does. I do all my x264 encoding to raw and preview the results in mplayer (all 64bit in linux). The only problem is when mplayer falls a little behind the x264 development. I get mplayer from the repository, and x264 from cvs. Only ran into a decoding issue once so far.

bond
1st October 2005, 10:36
moved

if you want .mp4 output with x264, than encode directly with x264 to .mp4. you can add the audio later on without a problem

when doing a x264-in-avi conversion demux first the video stream to raw .264 and than remux to .mp4

you can play raw .264 with mplayer and afaik the moonlight directshow filters also support it