TA的每日心情 | 慵懒 2024-6-24 08:09 |
---|
签到天数: 7 天 [LV.3]偶尔看看II
星辰大海
- 积分
- 396462
|
本帖最后由 QS0x01 于 2020-6-29 13:19 编辑
无损视频裁剪 只能精确定位到最近的关键帧
也就是说如果你想要做到时间精确是办不到的
精确到时间点(非关键帧)肯定需要重编码
详情可以看一下 FFMpeg 的 Documentation
http://ffmpeg.org/ffmpeg-all.html
-ss position (input/output)
When used as an input option (before -i), seeks in this input file to position. Note that in most formats it is not possible to seek exactly, so ffmpeg will seek to the closest seek point before position. When transcoding and -accurate_seek is enabled (the default), this extra segment between the seek point and position will be decoded and discarded. When doing stream copy or when -noaccurate_seek is used, it will be preserved. -accurate_seek (input)
This option enables or disables accurate seeking in input files with the -ss option. It is enabled by default, so seeking is accurate when transcoding. Use -noaccurate_seek to disable it, which may be useful e.g. when copying some streams and transcoding the others.
PS: 因为视频编码不是每帧数据独立存储的,就像你不能把超市里的套装拆开买回家。
|
|