Cut media files using ffmpeg: Difference between revisions
Jump to navigation
Jump to search
m Verbovet moved page Cut media files using avconv to Cut media files using ffmpeg without leaving a redirect |
No edit summary |
||
| Line 1: | Line 1: | ||
<pre>$ ffmpeg -ss hh:mm:ss -t hh:mm:ss | <pre>$ ffmpeg -i infile -codec copy -ss hh:mm:ss -t hh:mm:ss outfile</pre> | ||
;<code>-ss position</code> | ;<code>-ss position</code> | ||
| Line 6: | Line 6: | ||
;<code>-t duration</code> | ;<code>-t duration</code> | ||
:Restrict the video to the '''<code>duration</code>''' | :Restrict the video to the '''<code>duration</code>''' | ||
It's important to place -ss and -t <u>after the input</u>. | |||
[[Category: Debian GNU/Linux]] | [[Category: Debian GNU/Linux]] | ||
Revision as of 10:17, 1 October 2020
$ ffmpeg -i infile -codec copy -ss hh:mm:ss -t hh:mm:ss outfile
-ss position- Seek to given time
position
-t duration- Restrict the video to the
duration
It's important to place -ss and -t after the input.