FFMpeg Cheat Sheets
FFmpeg is complete, cross platform solution to record, convert, stream audio and video. It has the leading libavcodec library. Here in this post, I am going to post a small cheat sheet compilation I have done.
- Install FFMpeg
- Download from http://www.ffmpeg.org/download.html
- Yum users: sudo yum install ffmpeg -i
- Check supported codecs:
ffmpeg -codecs - View a files detail information
ffmpeg -i input_file_name - Convert wav to mp3 (128 kbps)
ffmpeg -i Input.wav -ab 128 Output.mp3 - Convert wmv video file to mp4
ffmpeg -i wmv_file.wmv OutputFile.mp4 - Change frame rate of a video
ffmpeg -i input.avi -r 24 output.avi - Set video bitrate of output file
ffmpeg -i input.avi -b:v 64k -bufsize 64k output.avi - Record video from webcam ( webcam(laptop integrated) for me is /dev/video0 )
ffmpeg -f video4linux2 -r 25 -s 640x480 -i /dev/video0 out.avi - Record Desktop Screen
ffmpeg -f x11grab -video_size cif -framerate 24 -i :0.0 foo.avi - Publish video to rtmp server
ffmpeg -re -i video.avi -c copy -f flv rtmp_url
Comments
Post a Comment