0% found this document useful (0 votes)
9 views

FFMPEG

The document provides a list of FFmpeg commands for various video and audio processing tasks. Key commands include converting video formats, extracting audio, merging videos, compressing video, changing resolution, adding background music, extracting portions of video, converting images to video, adding subtitles, and recording the screen. Each command is presented with its syntax for easy reference.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
9 views

FFMPEG

The document provides a list of FFmpeg commands for various video and audio processing tasks. Key commands include converting video formats, extracting audio, merging videos, compressing video, changing resolution, adding background music, extracting portions of video, converting images to video, adding subtitles, and recording the screen. Each command is presented with its syntax for easy reference.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

FFmpeg Commands

1. Convert Video Format:


ffmpeg -i input.mp4 output.avi

2. Extract Audio from Video:


ffmpeg -i input.mp4 -q:a 0 -map a output.mp3

3. Merge Multiple Videos:


ffmpeg -f concat -safe 0 -i filelist.txt -c copy output.mp4

4. Compress Video:
ffmpeg -i input.mp4 -vcodec libx265 -crf 28 output.mp4

5. Change Video Resolution:


ffmpeg -i input.mp4 -vf scale=1280:720 output.mp4

6. Add Background Music to Video:


ffmpeg -i video.mp4 -i audio.mp3 -c:v copy -c:a aac -strict experimental output.mp4

7. Extract a Portion of a Video:


ffmpeg -i input.mp4 -ss 00:00:30 -to 00:01:00 -c copy output.mp4

8. Convert Images to Video:


ffmpeg -framerate 30 -i img%d.png -c:v libx264 -r 30 -pix_fmt yuv420p output.mp4

9. Add Subtitles to Video:


ffmpeg -i input.mp4 -vf subtitles=subs.srt output.mp4

10. Record Screen:


ffmpeg -video_size 1920x1080 -framerate 30 -f x11grab -i :0.0 output.mp4

You might also like