Log in

View Full Version : muxing .264 and wav?


BabaG
25th November 2014, 01:21
i haven't been able to come up with any info on this. specifically, i have a .264 video i need to mux with a 5.1 wav file into an mp4 container. can this be done?

i use gpac and mp4box to do this with simple stereo but i have to convert the audio to m4a first. what would be the best way, using my existing tools, if possible, to get the best quality mp4/5.1 surround from my elements?

i have many tools including:

gpac
mp4box
x264
ffmbc
mpegstreamclip
final cut v5

thanks for any help,
BabaG

LoRd_MuldeR
25th November 2014, 03:28
AFAIK, the MP4 container does not "officially" support uncompressed PCM (link (http://en.wikipedia.org/wiki/MPEG-4_Part_14#Data_streams)). And here I assume your WAV file contains uncompressed PCM.

Try like this:
neroAacEnc.exe -if input.wav -of audio.mp4
mp4box.exe -add video.264 -add audio.mp4 -new output.mp4

SeeMoreDigital
25th November 2014, 17:46
Sufficed to say, even if you managed to mux a multi-channel PCM stream (as a 'private stream') into the .mp4 container, your playback device most probably wont support it :eek:

Blue_MiSfit
25th November 2014, 18:26
^^. If you need PCM audio you'll need to use MKV, MOV, or TS. All of these formats support PCM in some format or another. In the open-source / freeware world you'll likely find the best support for MKV. In the payware world, likely MOV.

You probably don't _need_ PCM audio though :) Just encode to high bitrate AAC!