我用ffmpeg來剪切mp4視頻時、按照網上的參數格式如下:
ffmpeg --s 0:10:10 -t 0:0:50
就是從0:10:10 開始、剪0:0:50的視頻、但是實際上卻是從0:10:10開始、一直剪到視頻末尾。請問這是不是和該視頻的IDR有關?還是我的 -t 參數用的不對?謝謝!
‘-ss position (input/output)’
When used as an input option (before -i), seeks in this input file to position. When used as an output option (before an output filename), decodes but discards input until the timestamps reach position. This is slower, but more accurate.
position may be either in seconds or in hh:mm:ss[.xxx] form.
文档写的挺明白的,应该是时间格式问题。‘-t duration (output)’
Stop writing the output after its duration reaches duration. duration may be a number in seconds, or in hh:mm:ss[.xxx] form.
-to and -t are mutually exclusive and -t has priority.
‘-to position (output)’
Stop writing the output at position. position may be a number in seconds, or in hh:mm:ss[.xxx] form.
-to and -t are mutually exclusive and -t has priority.