Loading...
Loading...
Compare original and translation side by side
ffmpeg -versionundefinedffmpeg -versionundefinedundefinedundefined| Flag/Filter | Purpose |
|---|---|
| Video filter |
| Audio filter |
| Complex filter graph for multi-stream filtering |
| All streams from first input (0-based) |
| Video stream from first input |
| Audio stream from second input |
| First input, first video stream |
| First input, second audio stream |
| Named stream, used with |
| Select stream for output |
| Auto-overwrite output files without confirmation |
ffmpeg -i input.mp4 -c copy output.mkvffmpeg -i input.mp4 -c copy output.movffmpeg -i input.mp4 output.aviffmpeg -i input.mp4 -c copy output.mkvffmpeg -i input.mp4 -c copy output.movffmpeg -i input.mp4 output.aviffmpeg -i input.mp4 -vf "scale=w=1080:h=1920:force_original_aspect_ratio=decrease,pad=1080:1920:(ow-iw)/2:(oh-ih)/2:color=black,setsar=1:1" output.mp4force_original_aspect_ratio=decreaseforce_original_aspect_ratio=increasescale=w=1080:h=-1scale=w=1080:h=-2pad=width:height:x:y:color(ow-iw)/2:(oh-ih)/2ffmpeg -i input.mp4 -i logo.png \
-filter_complex "[0:v]split=2[s0][s1]; \
[s0]scale=w=1920:h=1080:force_original_aspect_ratio=decrease,pad=1920:1080:(ow-iw)/2:(oh-ih)/2:color=black,setsar=1:1[out1]; \
[s1]scale=w=720:h=1280:force_original_aspect_ratio=decrease,pad=720:1280:(ow-iw)/2:(oh-ih)/2:color=black,setsar=1:1[s2]; \
[s2][1]overlay=(main_w-overlay_w)/2:(main_w-overlay_w)/5[out2]" \
-map [out1] -map 0:a output_youtube.mp4 \
-map [out2] -map 0:a output_shorts.mp4ffmpeg -i input.mp4 -vf "scale=w=1080:h=1920:force_original_aspect_ratio=decrease,pad=1080:1920:(ow-iw)/2:(oh-ih)/2:color=black,setsar=1:1" output.mp4force_original_aspect_ratio=decreaseforce_original_aspect_ratio=increasescale=w=1080:h=-1scale=w=1080:h=-2pad=width:height:x:y:color(ow-iw)/2:(oh-ih)/2ffmpeg -i input.mp4 -i logo.png \
-filter_complex "[0:v]split=2[s0][s1]; \
[s0]scale=w=1920:h=1080:force_original_aspect_ratio=decrease,pad=1920:1080:(ow-iw)/2:(oh-ih)/2:color=black,setsar=1:1[out1]; \
[s1]scale=w=720:h=1280:force_original_aspect_ratio=decrease,pad=720:1280:(ow-iw)/2:(oh-ih)/2:color=black,setsar=1:1[s2]; \
[s2][1]overlay=(main_w-overlay_w)/2:(main_w-overlay_w)/5[out2]" \
-map [out1] -map 0:a output_youtube.mp4 \
-map [out2] -map 0:a output_shorts.mp4ffmpeg -i input.mp4 -ss 00:00:10 -to 00:00:25 output.mp4references/encoding-and-settings.md-c copyreferences/core-concepts.mdffmpeg -i input.mp4 -ss 00:00:10 -to 00:00:25 output.mp4references/encoding-and-settings.md-c copyreferences/core-concepts.mdffmpeg -formatsffmpeg -codecsffmpeg -formatsffmpeg -codecsffprobe -show_streams -i input.mp4ffprobe -v trace -i input.mp4type:'moov'ffprobe -show_streams -i input.mp4ffprobe -v trace -i input.mp4type:'moov'| File | Topics |
|---|---|
| |
| Replace audio, extract audio, mix audio, combine MP3 tracks, crossfade, change audio format, merge and normalise |
| Playback speed, FPS change, jump cuts, video cropping for social, drawtext overlay, subtitles (burn/embed/extract), combine media (overlay, logo, background, concat intro/main/outro, vstack) |
| Image to video, slideshow with fade, Ken Burns (zoompan), GIFs, video compilation with fades, thumbnails (single/multiple/scene), image thumbnails, storyboards (scene tile/keyframe/Nth frame) |
| Optimised daily command, H264 (libx264) deep-dive, H265 (libx265) Apple compat, VP9 (libvpx-vp9) constant quality, 1-pass vs 2-pass, |
| 文件 | 主题 |
|---|---|
| |
| 替换音频、提取音频、混音、合并MP3轨道、交叉淡入淡出、转换音频格式、合并与归一化 |
| 播放速度调整、帧率修改、跳剪、社交平台视频裁剪、drawtext水印、字幕(硬刻录/嵌入/提取)、媒体合成(水印、logo、背景、拼接片头/正片/片尾、垂直拼接) |
| 图片转视频、带淡入淡出的幻灯片、Ken Burns效果(zoompan)、GIF生成、带淡入淡出的视频合集、缩略图(单张/多张/场景)、图片缩略图、故事板(场景分镜/关键帧/第N帧) |
| 日常优化命令、H264(libx264)深入解析、H265(libx265)苹果兼容性、VP9(libvpx-vp9)恒定质量、1-pass vs 2-pass编码、 |