ffmpeg : Extract part of video file.

English Русский Español ภาษาไทย 中文 한국어 日本語
Update 16 JAN 2024 vr180g.com
ffmpeg
DanceXR : ffmpeg
Tips

ffmpeg -ss 00:00:10.500 -i input.mp4 -to 00:01:23.400 -c copy output.mp4
Extract part of input.mp4 from 10.5 seconds to 1 minute 23.4 seconds.
Output to output.mp4. input.mp4 does not change.
If you don't write -ss first, processing time may be slower.
If -c copy is specified, the quality will not deteriorate.
If you want to output to another format, remove -c copy.
00:00:12.000 and 00:00:12 have same meaning.

ffmpeg -ss 00:00:08.700 -i input.mp4 -t 13 -c copy output.mp4
Extract 13 seconds from 8.7 seconds of input.mp4.
Output to output.mp4. input.mp4 does not change.
If you don't write -ss first, processing time may be slower.
If -c copy is specified, the quality will not deteriorate.
If you want to output to another format, remove -c copy.
00:00:12.000 and 00:00:12 have same meaning.


vr180g.com