multi-platfom cli tool for media extractor using ffmpeg
- extract movie/audio exclude silent parts
- extract movie exclude blackout parts
go install github.com/MasahiroSakoda/ffextractor@latest
Available commands:
silent
- extract media exclude silent partsblackout
- extract movie exclude blackout partsconfig
- configure options
extract media exclude silent parts
# extract media exclude silent parts (split & merge)
ffextractor silent path_to_file
# extract media exclude silent parts (split only)
ffextractor silent path_to_file split
# filter by extension
ffextractor silent path_to_dir extensions=mp4
# filter by regexp
ffextractor silent path_to_dir filter "*\.mp4"
extract movie exclude silent parts
# extract media exclude silent parts (split & merge)
ffextractor blackout path_to_file
# extract media exclude silent parts (split only)
ffextractor blackout path_to_file split
# filter by extension
ffextractor blackout path_to_dir extensions mp4
# filter by regexp
ffextractor blackout path_to_dir filter "*\.mp4"
configure options
ffextractor config overwrite false
ffextractor config annotation "_merged"
ffextractor config threshold 10
ffextractor config silence_duration 10.0
ffextractor config blackout_duration 10.0
[file]
overwrite = false # Overwrite basefile
annotation = "_merged" # Annotation for merged file
[extract]
threshold = 10 # threshold to detect silence (dB) [negative value]
silence_duration = 10.0 # ducration to detect silence (second)
blackout_duration = 10.0 # ducration to detect blackout (second)
[encode]
split_with_encode = true # split with encoding or not
concat_with_encode = true # concat with encoding or not
- split media
- merge media
- config file