Bit of a noob question, I know...
I want to batch convert my videos to h265, which I can do with the help of Zernity and ffmpeg, but I'm having a little problem with the progress bar, in that there isn't one.
The actual "meaty bit" works wonderfully, with or without the last part, which is:
zenity --pulsate --title "Processing " --text "${filename} " --pulsate --auto-close --auto-kill
The whole code is:
d1="$(zenity  --file-selection --title="Bulk Move    Choose starting directory"  --directory)"
d2="$(zenity  --file-selection --title="Bulk Move    Choose destination directory"  --directory)"
if [ "$?" != 0 ]; then
   exit
fi
##
for i in "$d1"/*
  do
## filter out the actual file name
  filename=$(basename -- "$i")
## the meaty bit
ffmpeg -i "$i" -c:v libx265 -preset medium -x265-params crf=28 -c:a aac -strict experimental -b:a 128k "$d2"/"${filename%.*}.mkv" ; done | zenity --pulsate --title "Processing " --text "${filename} " --pulsate --auto-close --auto-kill
The only way I know it's working is by either calling the script on a command line and watching the ffmpeg (very verbose) output, or monitoring CPU usage.
Can someone point me in the right direction?
Thanks
 
    
