ffmpeg截取视频
ffmpeg -i ./suen071520.mp4 -vcodec copy -acodec copy -ss 00:55:00 -to 01:14:50 ./suen071520sp3.mp4
-----
* ffmpeg -ss 01:02:00 -i ./hu.mp4 -acodec copy -vcodec copy -t 00:00:20 ./hus.mp4 (截取时间不精确,各播放器播放效果不同)
-----
ffmpeg -ss 00:55:00 -i ./suen071520.mp4 -acodec copy -vcodec copy -to 01:14:50 ./suen071520sp2.mp4
----
ffmpeg -i ./suen071520.mp4 -vcodec copy -acodec copy -ss 00:55:00 -t 00:19:50 ./suen071520sp7.mp4
---
** ffmpeg -ss 01:02:00 -t 00:00:20 -accurate_seek -i ./hu.mp4 -acodec copy -vcodec copy -avoid_negative_ts 1 ./hus.mp4 (截取时间不精确,但各播放器效果相同)
----
ffmpeg -ss 00:55:00 -t 00:19:50 -accurate_seek -i ./suen071520.mp4 -acodec copy -vcodec copy ./suen071520sp8.mp4
---
ffmpeg -i ./suen071520.mp4 -ss 00:55:00 -t 00:19:50 -codec copy ./suen071520sp7.mp4
----
** ffmpeg -ss 01:02:00 -t 00:00:20 -accurate_seek -i ./hu.mp4 -codec copy -avoid_negative_ts 1 ./hus.mp4 (截取时间不精确,但各播放器效果相同)
--------
ffmpeg -ss 01:02:00 -t 00:00:20 -i hu.mp4 -c:v libx264 -c:a aac -strict experimental -b:a 98k hus.mp4 (截取时间精确,但码率似乎和源视频有差异,而且截取耗时很长!)