2009-12-15 80 views
0

我有一堆,我認爲,我想要轉換爲m4v,以便我可以玩Quicktime x264編碼的AVI。以下是我創造了他們從h264 AVI文件remuxing mpv文件

首先我轉儲VOB從DVD與此:

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

然後我壓縮它:

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

我試圖做這convertthem爲M4V,但它吹起來......

我試圖傾銷H264/ACC流:

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

而且remuxing與MP4Box但我發現了一個錯誤(?):

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

所以不知道現在做什麼...

回答

-1

您應該使用handbrake

+4

手剎不能做視頻直通...我用手動剎車的任何東西都會再次壓縮視頻(甚至比現在還要多) – jsharpe 2009-12-15 03:25:55

1

如果我是你,我只會使用ffmpeg。 ffmpeg有一個名爲copy的魔術'編解碼器',它簡單地複製內容,而不是重新編碼,這對於您的用例而言非常有用 - 更改容器而無需重新編碼。

從FFmpeg的手冊頁:

-vcodec codec

Force video codec to codec. Use the " copy " special value to tell that the raw codec data must be copied as is.

-acodec codec

Force audio codec to codec. Use the " copy " special value to specify that the raw codec data must be copied as is.

所以,把這個付諸實踐:

$ ffmpeg -i new.avi -acodec copy -vcodec copy new.m4v 

我用這個技術來重新格式化FLV容器中的H.264視頻轉換爲MP4容器,這在某些情況下極大地改善了脣部同步。