2015-01-21 69 views
0

我想將可變幀率的視頻轉換爲常量。除了使幀速率保持不變之外,我不想搞亂視頻的其他部分。可變幀率轉換爲常量Avconv

我使用:

avconv -i input.mp4 -codec copy -codec:a mp3 -r 30 output.mp4 

最後,它給了我這個命令行迴應:

Non-monotonous DTS in output stream 0:1; previous: 1794, current: 1794; changing to 1795. This may result in incorrect timestamps in the output file. 
frame= 1272 fps=196 q=-1.0 Lsize= 378144kB time=42.77 bitrate=72423.5kbits/s  
video:287196kB audio:670kB global headers:0kB muxing overhead 31.361036% 

我可以發揮很好的output.mp4(音頻視頻同步是罰款) 。然而,當我檢查output.mp4 mediainfo它說幀率是

Frame rate : 90 000.000 fps 

發生了什麼事?我如何強制輸出爲30或25 fps?

回答

1

好吧,我得到它固定通過:

avconv -i input.mp4 -c:v h264 -crf 25 -c:a mp3 -r 30 output.mp4 

-crf number部分所做的工作。選擇一個適合您的數字,因爲它越低,使用的比特率就越高。

我試過'5',並得到了250k比特率的地方。