Log in

View Full Version : One video and two audio tracks in MP4?


AlexeyS
2nd May 2005, 10:12
How I can mux video track with 2 audio tracks in MP4?

Video is AVC without audio (encoded with Nero Digital AVC).
Audio tracks are AAC.

Tried MP4Box - can't get any output files... :(

bond
2nd May 2005, 10:30
:search:
if you look at the bottom of the page you see that this has been discussed already:
http://forum.doom9.org/showthread.php?s=&threadid=93087


there is currently a bug in mp4box, which prevents this described here (http://sourceforge.net/tracker/index.php?func=detail&aid=1188550&group_id=84101&atid=571738)

you can use mp4creator for adding multiple audio streams to .mp4 too

AlexeyS
2nd May 2005, 10:34
Originally posted by bond
[B]:search:
if you look at the bottom of the page you see that this has been discussed already:
http://forum.doom9.org/showthread.php?s=&threadid=93087
Yes, I've read this topic, but people discuss MP4Box and MP4BoxGUI there...

you can use mp4creator for adding multiple audio streams to .mp4 too
I've tried this also, but can't get any output file too. Could you tell me some example command line?

For example for audio1.mp4, audio2.mp4, video.mp4?

bond
2nd May 2005, 10:47
Originally posted by AlexeyS
I've tried this also, but can't get any output file too. Could you tell me some example command line?

For example for audio1.mp4, audio2.mp4, video.mp4? mp4creator -c input.264 -rate 25 -optimize output.mp4
mp4creator -c input1.aac -optimize output.mp4
mp4creator -c input2.aac -optimize output.mp4

with these commandlines you can add raw streams to existing .mp4 files or create new .mp4 files
mp4creator does not handle the adding of a .mp4 file to an existing .mp4 file

-rate defines the framerate for the video stream

make sure to use mp4creator 1.2.18:
http://www.aziendeassociate.it/cd.asp?dir=/mpeg4iptools

AlexeyS
2nd May 2005, 11:01
Originally posted by bond
[B]mp4creator -c input.264 -rate 25 -optimize output.mp4
mp4creator -c input1.aac -optimize output.mp4
mp4creator -c input2.aac -optimize output.mp4
I've tried and can't hear audio in .mp4 file. :confused:

I've renamed audio.mp4 to audio.aac and added it to video file few times...

bond
2nd May 2005, 11:10
Originally posted by AlexeyS
I've renamed audio.mp4 to audio.aac and added it to video file few times... [/B] ahm, you cant rename .mp4 to .aac of course :rolleyes:

you will have to extract the aac stream from the .mp4 first via
mp4creator --extract=1 audio.mp4

AlexeyS
2nd May 2005, 11:12
Originally posted by bond
ahm, you cant rename .mp4 to .aac of course :rolleyes:

you will have to extract the aac stream from the .mp4 first via
mp4creator --extract=1 audio.mp4
Ok, and how I can delete 4 audio tracks from .mp4 now? :)

Drachir
2nd May 2005, 11:38
You can do that with MP4Box. I would backup my files before.

man MP4Box
-rem trackID removes track from input file.
Up to 20 cumulated -rem operations can be used

With MP4Box -info yourFile.mp4 you will get the information about the ID.

Doom9
2nd May 2005, 11:38
how about you just run mp4creator without parameters and have a look at the commandline options it lists?

AlexeyS
2nd May 2005, 12:14
Originally posted by Doom9
how about you just run mp4creator without parameters and have a look at the commandline options it lists?
:)

Ok. Found only one interesting command - extract.

But it only extract audio tracks from file and not delete them...

Also, if I'll extract raw video stream - I will not be able to mux normal MP4.

Or I missed something?

bond
2nd May 2005, 12:31
you can mux raw video too into .mp4 with mp4creator or mp4box

btw you first added 4 streams to a .mp4 and now you want to delete them again, or...? :D

AlexeyS
2nd May 2005, 12:36
Originally posted by bond
you can mux raw video too into .mp4 with mp4creator or mp4box
Can you tell me example? I've read a lot about this programs but everything is mixed in the head - I don't know how to create new MP4...

Buy the way, is there some normal GUI (for creating MP4) for Windows noob users? :) Like Matroska GUI.

btw you first added 4 streams to a .mp4 and now you want to delete them again, or...? :D
I've made .bat file and run it 4 times, cause mp4creator didn't said "Finished" or "Done". :)

bond
2nd May 2005, 12:46
Originally posted by AlexeyS
Can you tell me example? I've read a lot about this programs but everything is mixed in the head - I don't know how to create new MP4... well i wrote commandlines doing exactly this above already...

Buy the way, is there some normal GUI (for creating MP4) for Windows noob users? :) Like Matroska GUI.try "mp4muxer"


I've made .bat file and run it 4 times, cause mp4creator didn't said "Finished" or "Done". :) i expected something like that :rolleyes: