ffmpeg -i infile.mpg -map 0:1 -vn -ac 2 -ar 48000 -ab 256k -ss hh:mm:ss -t hh:mm:ss outfile.mp3
-map = selecteer de stream (zie de output van ffmpeg voor meer informatie)
-vn = Disable video recording
-ac = aantal kanalen
-ar = Set the audio sampling frequency (default = 44100 Hz)
-ab = Set the audio bitrate in kbit/s (default = 64)
-ss = Seek to given time position in seconds. “hh:mm:ss[.xxx]” syntax is also supported.
-t = Set the recording time in seconds. “hh:mm:ss[.xxx]” syntax is also supported.
How-to gids op: http://howto-pages.org/ffmpeg/
En tips om snel klaar te zijn http://www.tuxradar.com/content/ffmpeg-made-easy
Handige opties:
-target pal-dvd = Predefined settings
-aspect 4:3 = Aspect ratio videobeel
-b 2000k = Videobitrate
-r 10 = Videoframerate
-ar 22050 = Audio samplerate
-ab 64k = Audiobitrate -aq 0 .. 9 = Audio quality -acodec copy -vcodec copy -ss 00:11:37.458 -t 00:42:43.452 -map 0.0:0.0 -map 0.2:0.1
Ondertiteling extract
ffmpeg -i file.mkv -vn -an -codec:s:0.1 srt sub.srt
Ondertiteling toevoegen
ffmpeg -i infile.mkv -vcodec copy -acodec copy -vf subtitles=sub.srt outfile.mkv
Fouten uit een (mpg) file halen:
ffmpeg -i "1003_20130405181500.mpg" -vcodec copy -acodec copy "/media/media/1003_20130405181500.mpg" mencoder "1003_20130405181500.mpg" -oac copy -ovc copy -o "/media/media/1003_20130405181500.mpg"