
# ffmpeg -target dvd|vcd|svcd|dv|dv50 -> all options are set automagically, but you can overrule as long as they don't conflict w/ the standard This is useful for Variable Bit Rate (VBR) encoded files. The above will extract 3 minutes of mpg file from the 1 minute mark using same quality as the source file. # ffmpeg -vcodec copy -ss 00:01:00 -t 00:03:00 -i infile.mpg outfile.mpg -> this cut the file from 1 minute to 4 minutes (t=duration) # ffmpeg -i -> show info about movie file # ffmpeg -acodec libmp3lame -> use mp3 audio codec Now, if you want to resize it for some reason (show on mobile phone): MP4, for instance to show it on a mobile device Android, or to play it om xbmc, or to import into kdenlive.įor a whole directory, type: IFS=$(echo -en "\n\b") for i in *.MTS do ffmpeg -i "$i" -vcodec mpeg4 -b:v 15M -acodec libmp3lame -b:a 192k "$i.mp4" doneįind.

30.2 all video codecs that ffmpeg can encode.30.1 most used video codecs that ffmpeg can encode.29.1 Encode videos for Samsung Galaxy S Plus.26.6 Downmix of multichannel 5.1 audio to real quad 4 channel four speaker.26.5.1 Extract channels from multitrack sources.26.4 copy/convert from multistream sources.26.2 combine multiple sources to one destination.24.2 Merge pictures into an Animated GIF.24.1 Create a thumbnail image every X seconds of the video.23.1 Copying the audio without re-encoding.23 Merging video and audio, with audio re-encoding.22 record the screen, capture the desktop.21 to stream live to youtube from IPCAM.18 To list available formats (supported pixel formats, video formats, and frame sizes) for a particular input device:.

