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 |
||
| (4 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
<pre>$ ffmpeg -ss hh:mm:ss -t hh:mm:ss | <pre>$ ffmpeg -ss hh:mm:ss -i infile -t hh:mm:ss -codec copy -avoid_negative_ts make_zero outfile</pre> | ||
;<code>-ss position</code> | ;<code>-ss position</code> | ||
| Line 7: | Line 7: | ||
:Restrict the video to the '''<code>duration</code>''' | :Restrict the video to the '''<code>duration</code>''' | ||
[[Category: | The order <code>-ss ... -i ... -t ...</code> is important. | ||
[[Category: FreeBSD]] | |||
[[Category: Linux]] | |||
Latest revision as of 21:31, 11 October 2024
$ ffmpeg -ss hh:mm:ss -i infile -t hh:mm:ss -codec copy -avoid_negative_ts make_zero outfile
-ss position- Seek to given time
position
-t duration- Restrict the video to the
duration
The order -ss ... -i ... -t ... is important.