Difference between revisions of "Ffmpeg syntax"
From MyWiki
Line 7: | Line 7: | ||
ffmpeg -sn -i "/run/media/george/My Passport/FRINGE_SEASON_1_DISC_1/BDMV/STREAM/00001.m2ts" -target film-dvd output.mp4 | ffmpeg -sn -i "/run/media/george/My Passport/FRINGE_SEASON_1_DISC_1/BDMV/STREAM/00001.m2ts" -target film-dvd output.mp4 | ||
<br> | <br> | ||
− | To convert from mkv to mp4 :<br> | + | '''To convert from mkv to mp4 :'''<br> |
ffmpeg -i LostInTranslation.mkv -vcodec copy -acodec copy LostInTranslation.mp4<br> | ffmpeg -i LostInTranslation.mkv -vcodec copy -acodec copy LostInTranslation.mp4<br> |
Revision as of 10:15, 6 January 2015
The below taken from : http://linuxers.org/book/export/html/593
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.
ffmpeg -sn -i "/run/media/george/My Passport/FRINGE_SEASON_1_DISC_1/BDMV/STREAM/00001.m2ts" -target film-dvd output.mp4
To convert from mkv to mp4 :
ffmpeg -i LostInTranslation.mkv -vcodec copy -acodec copy LostInTranslation.mp4