2013-04-23 33 views
2

我新的這個工具avconvavconv幀選項(avconv -r 1)

我想從視頻中提取每秒1幀中,我使用

avconv -i sample.avi -r 1 -s 200x200 -f image2 frames/foo-%03d.png 

sample.avi是長度爲30秒,但該轉換給出了920幀的輸出。

怎麼辦?我只想要30

+0

它適用於我... 也許嘗試通過mencoder而不是avconv。 – mousomer 2013-04-29 10:00:56

回答

0

您可能需要指定-vsync選項。

我曾經使用以下命令從視頻文件中獲取每秒幀數。

avconv -i video_file -f image2 -vsync 1 -r 1 %03d.png