You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
#!/bin/bash |
|
|
|
count=0; |
|
( for file in "$@"; do |
|
ffmpeg -nostdin -y -i "$file" "$file.mp3" |
|
count=$(echo "($count + 1)" | bc) |
|
|
|
percent=$(echo " scale=2; ( 100 * ($count/$#))" | bc ) |
|
echo "$percent" |
|
done ) | zenity --progress --percentage=0 --auto-close --text="Converting files"
|
|
|