Cut media files using ffmpeg: Difference between revisions

From Notes to self
Jump to navigation Jump to search
No edit summary
Line 1: Line 1:
<pre>$ ffmpeg -ss hh:mm:ss -t hh:mm:ss -i infile -vcodec copy -acodec copy outfile</pre>
<pre>$ avconv -ss hh:mm:ss -t hh:mm:ss -i infile -codec copy outfile</pre>


;<code>-ss position</code>
;<code>-ss position</code>

Revision as of 12:20, 4 July 2012

$ avconv -ss hh:mm:ss -t hh:mm:ss -i infile -codec copy outfile
-ss position
Seek to given time position
-t duration
Restrict the video to the duration