头像
米牛牛
帖子: 2
注册时间: 2013-10-09 4:43

請問用ffmpeg來剪切mp4視頻時的-t參數設置問題

我用ffmpeg來剪切mp4視頻時、按照網上的參數格式如下:

ffmpeg --s 0:10:10 -t 0:0:50

就是從0:10:10 開始、剪0:0:50的視頻、但是實際上卻是從0:10:10開始、一直剪到視頻末尾。請問這是不是和該視頻的IDR有關?還是我的 -t 參數用的不對?謝謝!
头像
msg7086
帖子: 600
注册时间: 2011-02-19 0:49

Re: 請問用ffmpeg來剪切mp4視頻時的-t參數設置問題

1. --s与-s的问题,0:0:50与0:00:50的问题
2. 我自己用mplayer截图的时候,是用-ss -sstep来截的,而参数都是「秒」,也就是类似 -ss 610 -sstep 50,不知道ffmpeg里是不是也一样。

仅供参考
Delogo LGD Collections 各种台标下载 | Home Of VapourSynth Evolution

<回答が無い理由>
1. 誰も知らない
2. 質問文が意味不明
3. 知ってるが、お前の態度が気に入らない
4. 良いボケが思いつかない
头像
darkangel0224
帖子: 23
注册时间: 2012-01-24 18:18

Re: 請問用ffmpeg來剪切mp4視頻時的-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.
文档写的挺明白的,应该是时间格式问题。
Come with the wind...

回到 “视频编码器 / Video encoder discussion”