FFMPEG command builder
command to take 1 inputs and transcode them to 1 outputs
Have
Input #1
pipe from stdin?
add another
Want
Output #1
out.mp4
out.webm
out.m3u8
out.gif
out.jpg
out.png
Trim
From start
sec
Duration
sec
Video
from input
unspecified
#1 cat.mp4
codec
default (always re-encode)
copy (no transcoding)
x264
x265
webm
gif
average bitrate (k)
resolution
240p (426x240)
360p (640x360)
480p (856x480)
720p (1280x720)
1080p (1920x1080)
x
Audio
from input
unspecified
#1 cat.mp4
codec
default (always re-encode)
copy (no transcoding)
New output
ffmpeg -i cat.mp4 out.mp4
Examples
Add audio to a video in-place
Create a HLS playlist with separate audio and video