Hello,
In prior versions I was able to do the following:
MP4Box -name 1= -name 2= -force-cat -cat video_01.h264 -cat video_02.h264 -add audo_01.aac -cat audo_02.aac final.mp4
Where I would end up with a single video and audio track. However now it will error out or if I leave out -force-cat it will basically add the 2 audio tracks vs combining them.
Any help would be appreciated.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Sorry for the late response. I just did the following check:
- took an mp4 file containing H264 stream
- extracted the H264 stream into video1.h264
- duplicated video1.h264 into video2.h264
- took an mp4 file containing aac and did the same to get audio1.aac and audio2.aac
Then I ran:
MP4Box -name 1= -name 2= -cat video1.h264 -cat video2.h264 -cat audio1.aac -cat audio2.aac final.mp4
The resulting final.mp4 contains 2 tracks: 1 audio and 1 video.
I'm using the latest SVN version.
I did not mix add/cat as in your command line.
Can you confirm whether or not you still have a problem with the latest version? If so, can you provide example files? I suspect your video (or audio) files don't have the same configuration and MP4Box is not able to create only one video (or audio) track.
HTH,
Cyril
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello,
In prior versions I was able to do the following:
MP4Box -name 1= -name 2= -force-cat -cat video_01.h264 -cat video_02.h264 -add audo_01.aac -cat audo_02.aac final.mp4
Where I would end up with a single video and audio track. However now it will error out or if I leave out -force-cat it will basically add the 2 audio tracks vs combining them.
Any help would be appreciated.
Hi DTrace,
Sorry for the late response. I just did the following check:
- took an mp4 file containing H264 stream
- extracted the H264 stream into video1.h264
- duplicated video1.h264 into video2.h264
- took an mp4 file containing aac and did the same to get audio1.aac and audio2.aac
Then I ran:
MP4Box -name 1= -name 2= -cat video1.h264 -cat video2.h264 -cat audio1.aac -cat audio2.aac final.mp4
The resulting final.mp4 contains 2 tracks: 1 audio and 1 video.
I'm using the latest SVN version.
I did not mix add/cat as in your command line.
Can you confirm whether or not you still have a problem with the latest version? If so, can you provide example files? I suspect your video (or audio) files don't have the same configuration and MP4Box is not able to create only one video (or audio) track.
HTH,
Cyril