

Better replace it with for FILE in "$SRC"/* so, the right script giiven will be appreciate :)Įffectively creates only one iteration where FILE contains the list of the files (and it is not able to handle the space in $SRC). means, from 50 videos in the folder, only 1 files generated with name ".mp4" and after that, HandBrakeCLI exit.

only ".mp4".Īnd, there is only 1 file generated. The problem is, the output of the file will be without filename. $HANDBRAKE_CLI -i "$SRC"/$FILE -o "$DEST"/"$filename".$DEST_EXT "$PRESET" SRC="/home/abc/public_html/filex/store/vids/toriko/VIDEOS HERE"ĭEST="/home/abc/public_html/filex/store/vids/toriko/51-100" I got a bash script from somewhere I dont remember. I want to convert all videos file in a directory and the output will be saved in another directory.

Handbrake scripts handbrake cli presets handbrake multiple files handbrake transcode entire folder handbrake video command line handbrake c api handbrake linux script handbrake batch convert with subtitlesįirstly, I searched around for my problem.
