Log in

View Full Version : mp4creator: please help. Trouble merging video and audio.


Dirk.R.Gently
21st July 2007, 01:33
I was wondering if someone could possibly help the little fix I'm in. I've read some guides on extracting video and audio and I hoped to be able to compress my videos and encoding them in a smaller size, trouble is I'm stuck at mp4creator. This may not be so bad but my processor is slow, and I was probably hoping I wouldn't have to start again, so any ideas would be nice. Here's the setup so far:

I've pulled the video:

mplayer dvd://01 -dumpstream -dumpfile movie.vob

Then the audio:

mplayer movie.vob -aid 128 -dumpaudio -dumpfile audio128.aac

Then I detected the bitrape and crop, and encoded the video in two passes to H.264:

mencoder movie.vob -vf pullup,softskip,crop=720:480:0:0,harddup -nosound -ovc x264 -x264encopts bitrate=1103:subq=5:bframes=3:b_pyramid:weight_b:turbo=1:pass=1 -of rawvideo -o ${RIPPATH}movie.264
mencoder movie.vob -vf pullup,softskip,crop=720:480:0:0,harddup -nosound -ovc x264 -x264encopts bitrate=1103:subq=5:8x8dct:frameref=2:bframes=3:b_pyramid:weight_b:pass=2 -of rawvideo -o movie.264

Then I put the raw video in a mp4 containter:

mp4creator -create=movie.264 -timescale=29970 -rate=29.97 movie.mp4

Alls well until I see this message when I try to combine video and audio:

mp4creator -create=audio128.aac movie.mp4

Now returns:

Warning: dropped 3851 input bytes at offset 0
mp4creator: data in file doesn't appear to be valid audio
mp4creator -optimize movie.mp4

I'm lost at this point. I could use Matroska, I've heard good things, but would definitely rather, I surely wouldn't want to start again. Any mp4creator users, or ideas, that could possibly help?

bond
21st July 2007, 06:37
there is only ac3 audio in the vob, not aac

you need to change the extension of the mplayer audio output to .ac3 and reencode that ac3 to aac

Dirk.R.Gently
24th July 2007, 05:22
Nice that solved it. I found a way to encode to aac (http://forum.doom9.org/showthread.php?t=97947). Appreciate the help.