Difference between revisions of "Ffmpeg syntax"

From MyWiki
Jump to: navigation, search
Line 1: Line 1:
 
ffmpeg -i inputfile.fmt1 outputfile.fmt2<br>
 
ffmpeg -i inputfile.fmt1 outputfile.fmt2<br>
 
ffmpeg -i input.avi -target dvd output.mpg<br>
 
ffmpeg -i input.avi -target dvd output.mpg<br>
 +
ffmpeg -i input.fmt1  -t 30 output.fmt2<br>
 +
The time specified is in seconds. But the format hh.mm.ss is also supported.<br>
 +
This command will convert the first 30 seconds of the file input.fmt2  into output.fmt2.<br>

Revision as of 15:32, 19 December 2014

ffmpeg -i inputfile.fmt1 outputfile.fmt2
ffmpeg -i input.avi -target dvd output.mpg
ffmpeg -i input.fmt1 -t 30 output.fmt2
The time specified is in seconds. But the format hh.mm.ss is also supported.
This command will convert the first 30 seconds of the file input.fmt2 into output.fmt2.