1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/streama_ynh.git synced 2024-09-03 20:26:30 +02:00

Update convert.sh

This commit is contained in:
liberodark 2020-05-29 16:57:17 +02:00 committed by GitHub
parent 718324f34b
commit e637ade007
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,6 +1,6 @@
#! /bin/bash #! /bin/bash
for file in $(find /home/yunohost.app/streama/ -iname "*.mkv" -o -iname "*.avi") while IFS= read -r -d '' file
do do
ffmpeg -i "$file" -vcodec h264 -acodec aac -strict -2 "${file%.*}.mp4" ffmpeg -nostdin -i "$file" -vcodec h264 -acodec aac -strict -2 "${file%.*}.mp4"
rm -f "$file" rm -f "$file"
done done < <(find /home/yunohost.app/streama/ -name '*.mkv' '*.avi' -print0)