Utility scripts media file management.
Generally moves files with a specific mime-type to a directory.
The utility scripts do not delete the files but move them to a directory.
All scripts take the -quiet
argument to disable logging output,
and the -verbose
argument to enable per-file logging output.
Additionally, you can use the -h
flag to show all options.
filter-videos
moves all videos to a new directoryfilter-images
moves all images to a new directoryflatten
moves all images or videos from subdirectories to a new directory (experimental, only supportsdepth=1
)batch-download
download files from a textfile of urls asynchronously.download
downloads all urls given via cli args.filter-images-ar
filters images based on their aspect ratiogpu-convert
converts all videos with Nvidia'sh264_nvenc
encoder.
Requires go 1.16
.
cd /cmd/<script_name>
go build
to create a binary in the current directorygo install
to install the binary to$GOPATH/bin
- alternatively, install all scripts with
go install ./...
from the projects root directory
Easiest solution is to add $GOPATH/bin
to your $PATH
.
The pkg
directory contains general utility functions for directory filters.
Look at the code for more info.