Skip to main content
2 of 4
deleted 5 characters in body

Constantly check folder for specific file type and run terminal command with new filename as an argument

I have a folder ~/Downloads

I'm checking (using entr) it for .webm videos and when new file is added I need it to be converted to .mp4 BUT can't figure out the arguments passed...

ls . | entr handbrakecli --encoder x264 --width 700 --format av_mp4 --optimize --non-anamorphic --rate 30 -i <new_webm> -o <same_name_append_mp4>