Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
appwiki:ffmpeg [2021/06/18 19:12] – [REF] ying | appwiki:ffmpeg [2022/12/07 07:21] (current) – [Common Convertion] ying | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== REF ====== | ||
- | * about -ss before -i and after -i difference, which can make cut video works or not works | ||
- | * https:// | ||
====== FFmpeg - the core command app of open source transcoder ====== | ====== FFmpeg - the core command app of open source transcoder ====== | ||
Line 53: | Line 50: | ||
ffmpeg.exe -i " | ffmpeg.exe -i " | ||
</ | </ | ||
+ | |||
+ | * copy portion of video < | ||
+ | # about -ss before -i and after -i difference, which can make cut video works or not works | ||
+ | # ref: https:// | ||
+ | |||
+ | ffmpeg.exe -i video.mp4 -c copy -ss 00:00:09 -to 00:00:21 video_cut.mp4 | ||
+ | |||
+ | # -ss in front means: start time (from 9s), duration time (21s) | ||
+ | ffmpeg.exe -ss 00:00:09 -i video.mp4 -c copy -to 00:00:21 video_cut.mp4 | ||
+ | </ | ||
+ | * combine list of videos into 1 video | ||
+ | * ref: https:// | ||
+ | |||
+ | * gif maker < | ||
+ | ffmpeg -i input.mp4 -vf " | ||
+ | </ | ||
+ | |||
+ | * 2x2 stack < | ||
+ | #ref: https:// | ||
+ | ffmpeg -i input0.mp4 -i input1.mp4 -i input2.mp4 -i input3.mp4 -filter_complex " | ||
+ | </ | ||
+ | |||
+ | * image to square size (like convert image to texture size format) < | ||
+ | ffmpeg -i image.jpg -vf " | ||
+ | |||
+ | # longest side, so basically original size with padding to square | ||
+ | ffmpeg -i image.jpg -vf " | ||
+ | </ | ||
+ | |||
+ | ====== GIF related ====== | ||
+ | |||
+ | * use every 1 from out of 10 frame from a huge frame-by-frame gif recording, and save as a 600px width gif <code dos> | ||
+ | ffmpeg.exe -i big_recording.gif -vf " | ||
+ | </ | ||
+ | |||
+ |