Pushing everything

This commit is contained in:
Matheus Albino
2024-12-20 11:19:34 -03:00
parent 1fbca22b75
commit 764c5d66ab
7 changed files with 61 additions and 21 deletions

View File

@@ -5,7 +5,7 @@ filename=$1
if [ -z "$filename" ]; then
echo "You must provide a file for the script."
echo "Example:"
echo " `basename $0` foo.mp4"
echo " $(basename $0) foo.mp4"
exit 1
fi
@@ -14,6 +14,8 @@ if [ ! -f "$filename" ]; then
exit 1
fi
friendly_filename=`sed -E 's/[^[:alnum:][:space:]]+/_/g' <<< "$filename"`
friendly_filename=$(sed -E 's/[^[:alnum:][:space:]]+/_/g' <<<"$filename")
ffmpeg -i $filename -vframes 1 ${friendly_filename}-image.png
command="ffmpeg -i $filename -vframes 1 ${friendly_filename}-image.png"
echo $command
$command