convert to mp4

This commit is contained in:
fred 2022-09-15 15:16:58 +02:00
parent 2fbe26df77
commit d3852537e0
1 changed files with 4 additions and 0 deletions

View File

@ -49,6 +49,10 @@ for yurl in $(cat ~/.zen/tmp/tiddlers.json | jq -r '.[].text' | grep 'http'); do
ZFILE=${ZFILE##/*/}
echo "$ZFILE"
# coNVERT To mp4
EXT=$(echo $ZFILE | rev | cut -d '.' -f 1 | rev)
[[ $EXT != "mp4" ]] && ffmpeg -i "$HOME/.zen/tmp/tube/$ZFILE" -c copy "$HOME/.zen/tmp/tube/$TITLE.mp4" && ZFILE="$TITLE.mp4" && rm "$HOME/.zen/tmp/tube/$ZFILE"
[[ ! -f "$HOME/.zen/tmp/tube/$ZFILE" ]] && echo "No FILE -- EXIT --" && exit 1
echo