-
-
Notifications
You must be signed in to change notification settings - Fork 0
commands
Commands are parser helpers that says what options, flags and values are required to do something. For example, the trim
command requires at least two flags, from
and to
.
Commands have one-word aliases (e.g. o
for optimize
)
- Requires value
Reduces TBN, making a light output file without not much loss of quality.
The value should be between 1k
and 10k
for efficient optimization.
Example
fftools optimize -i video.mp4 output.mp4 4k
- Requires at least
from
orto
options
Trim input between timestamps. If only from
is provided, media will start at that timestamp. If only to
is provided, media will end at that timestamp.
Timestamp syntax is the FFmpeg time duration.
Examples
# Trimming between a range
fftools trim -i video.mp4 --from 00:03:40 --to 00:32:00 output.mp4
# Set start
fftools t -i video.mp4 --from 00:05:00 output.mp4
# set end
fftools t -i video.mp4 --to 00:24:30 output.mp4
Transform a video into a lossless gif.
If output is really big, use scale
option for reduce resolution.
Examples
# Lossless gif
fftools gif -i video.mp4 output.gif
# With scale (-50%)
fftools gif -i video.mp4 --scale 50 output.gif
- Requires value Scales video resolution by percentage.
Examples
# Reduce size (-50%)
fftools scale -i video.mp4 output.mp4 50
# Enlarge size (+50%)
fftools scale -i video.mp4 output.mp4 150
- Requires value Set audio volume level. Value syntax is decibels or percentage.
Examples
# With percentage (-50%)
fftools volume -i audio.mp3 output.mp3 50
# With decibels (+10dB)
fftools volume -i audio.mp3 output.mp3 10dB
- Requires two inputs
Merge two input files. Useful for merge video and audio.
By default, the two inputs are trimmed to the shortest one. You can override it with
notrim
flag. The first input must be the audio and the second the video.
Examples
# Merging video and audio
fftools merge -i audio.mp3 -i video.mp4 output.mp4
# Avoid trim
fftools merge -i audio.mp3 -i video.mp4 output.mp4 --notrim
- Requires value Set framerate.
Example
fftools fps -i video.mp4 output.mp4 20
Free command that doesn't require any flag or value. Useful for use options and flags as you like.