FFmpeg_Guide
FFmpeg_Guide
---------------------------------------------
Command:
Explanation:
Template:
Example:
-----------------------------------------
Command:
Explanation:
- -crf 23: CRF (Constant Rate Factor) controls the quality. 23 is default, lower = better quality.
- -preset fast: Faster compression speed with some compromise on compression rate.
Template:
Example:
"C:/Users/Imon/Downloads/video_compressed.mp4"
--------------------------------------
Command:
Explanation:
Template:
Example:
"C:/Users/Imon/Downloads/video_trimmed.mp4"
------------------------------
Command:
ffmpeg -f concat -safe 0 -i file_list.txt -c copy output_video.mp4
Explanation:
Creating file_list.txt:
file 'C:/path/to/video1.mp4'
file 'C:/path/to/video2.mp4'
file 'C:/path/to/video3.mp4'
Template:
--------------------------------------
Command (Resize):
Explanation:
Command (Crop):
Template (Resize):
Template (Crop):
"output_video_cropped.mp4"
----------------------------------------
Command:
Explanation:
Template:
Example:
"C:/Users/Imon/Downloads/frame_%04d.png"
ffmpeg -i input_video.mp4 -i subtitles.srt -c:v copy -c:a copy -c:s srt output_video.mp4
Explanation:
- -c:v copy -c:a copy: Copy video and audio streams without re-encoding
Template:
"output_video_with_subs.mp4"