19 ffmpeg commands for all needs
This page was copied from http://www.catswhocode.com/blog/19-ffmpeg-commands-for-all-needs » for archival purposes.
Getting infos from a video file
Turn X images to a video sequence
This command will transform all the images from the current directory (named image1.jpg, image2.jpg, etc…) to a video file named video.mpg. Turn a video to X images
This command will generate the files named image1.jpg, image2.jpg, …
The following image formats are also availables : PGM, PPM, PAM, PGMYUV, JPEG, GIF, PNG, TIFF, SGI. Encode a video sequence for the iPpod/iPhone
Explanations :
- Source : source_video.avi
- Audio codec : aac
- Audio bitrate : 128kb/s
- Video codec : mpeg4
- Video bitrate : 1200kb/s
- Video size : 320px par 180px
- Generated video : final_video.mp4
Encode video for the PSP
Explanations :
- Source : source_video.avi
- Audio codec : aac
- Audio bitrate : 32kb/s
- Video codec : xvid
- Video bitrate : 1200kb/s
- Video size : 320px par 180px
- Generated video : final_video.mp4
Extracting sound from a video, and save it as Mp3
Explanations :
- Source video : source_video.avi
- Audio bitrate : 192kb/s
- output format : mp3
- Generated sound : sound.mp3
Convert a wav file to Mp3
Convert .avi video to .mpg
Convert .mpg to .avi
Convert .avi to animated gif(uncompressed)
Mix a video with a sound file
Convert .avi to .flv
Convert .avi to dv
Or:
Convert .avi to mpeg for dvd players
Explanations :
- target pal-dvd : Output format
- ps 2000000000 maximum size for the output file, in bits (here, 2 Gb)
- aspect 16:9 : Widescreen
Compress .avi to divx
Compress Ogg Theora to Mpeg dvd
Compress .avi to SVCD mpeg2
NTSC format:
PAL format:
Compress .avi to VCD mpeg2
NTSC format:
PAL format:
Multi-pass encoding with ffmpeg
References
[Click to add or edit comments])
Please prepend comments below including a date