remuxing mpv files from h264 AVI files

Posted by crankharder on Stack Overflow See other posts from Stack Overflow or by crankharder
Published on 2009-12-15T03:18:48Z Indexed on 2010/06/18 14:13 UTC
Read the original article Hit count: 370

Filed under:
|
|

I have a bunch of, I think, x264 encoded AVIs that I'd like to convert to m4v so that I can play with Quicktime. Here's how I created them

First I dump the vob from DVD with this:

$ mplayer -dumpstream -dumpfile new.vob dvd://1

Then I compress it:

$ mencoder -oac copy -o new.avi -ovc x264 -x264encopts crf=18 new.vob

I tried doing this to convertthem to m4v, but it's blowing up...

I tried dumping the h264/acc streams:

$ mplayer new.avi -dumpvideo -dumpfile new.h264
$ mplayer new.avi -dumpaudio -dumpfile new.acc

And remuxing(?) with MP4Box but I'm getting an error:

$ MP4Box -add new.h264#video -add new.aac#audio new.m4v
Cannot find H264 start code
Error importing new.h264#video: BitStream Not Compliant

So not sure what to do now...

© Stack Overflow or respective owner

Related posts about mp4

Related posts about h264