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-videosmoves all videos to a new directoryfilter-imagesmoves all images to a new directoryflattenmoves all images or videos from subdirectories to a new directory (experimental, only supportsdepth=1)batch-downloaddownload files from a textfile of urls asynchronously.downloaddownloads all urls given via cli args.filter-images-arfilters images based on their aspect ratiogpu-convertconverts all videos with Nvidia'sh264_nvencencoder.
Requires go 1.16.
cd /cmd/<script_name>go buildto create a binary in the current directorygo installto 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.