FFmpeg - 闪汇惠惠 - 爱扫码·i3m.cn:3hhh.cn/13220 -扫一扫.cn·二维码.cn 333e.cn/13220 搜一搜.cn/13220


153
153
风云使者
风云使者
楼主#
更多 发布于:2019-12-28 16:25
FFmpeg




Notes



Cutting small sections

To extract only a small segment in the middle of a movie, it can be used in combination with -t which specifies the duration, like -ss 60 -t 10 to capture from second 60 to 70. Or you can use the -to option to specify an out point, like -ss 60 -to 70 to capture from second 60 to 70. -t and -to are mutually exclusive. If you use both, -t will be used.
Note that if you specify -ss before -i only, the timestamps will be reset to zero, so -t and -to have not the same effect. If you want to keep the original timestamps, add the -copytsoption.
The first command will cut from 00:01:00 to 00:03:00 (in the original), using the faster seek.
 The second command will cut from 00:01:00 to 00:02:00, as intended, using the slower seek.
 The third command will cut from 00:01:00 to 00:02:00, as intended, using the faster seek.

ffmpeg -ss 00:01:00 -i video.mp4 -to 00:02:00 -c copy cut.mp4
ffmpeg -i video.mp4 -ss 00:01:00 -to 00:02:00 -c copy cut.mp4
ffmpeg -ss 00:01:00 -i video.mp4 -to 00:02:00 -c copy -copyts cut.mp4


http://trac.ffmpeg.org/wiki/Seeking

具体用法参考: ffmpeg参数中文详细解释
详细的使用说明(英文): http://ffmpeg.org/ffmpeg.html
https://ffmpeg.zeranoe.com/builds/
https://dl.pconline.com.cn/download/53703.html
https://blog.csdn.net/class_brick/article/details/82893967
https://blog.csdn.net/weixin_38372482/article/details/79703703
  • 喜欢0 评分0
    游客
    

    返回顶部