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-30 09:29:20 +02:00 committed by GitHub
parent dde26cc752
commit dc67462a45
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -30,8 +30,8 @@ while IFS= read -r -d '' file
do do
ffmpeg -nostdin -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 < <(find /home/yunohost.app/streama/ -name '*.mkv' -print0 -o -name '*.avi' -print0) done < <(find /home/yunohost.app/streama/upload/ -name '*.mkv' -print0 -o -name '*.avi' -print0)
chown -R streama:users /home/yunohost.app/streama/ chown -R streama:users /home/yunohost.app/streama/upload/
} }
avidemux_convert(){ avidemux_convert(){
@ -41,8 +41,8 @@ while IFS= read -r -d '' file
do do
avidemux3_cli --video-codec $VIDEOCODEC --audio-codec $AUDIOCODEC --force-alt-h264 --load "$file" --save "${file%.*}.mp4" --quit avidemux3_cli --video-codec $VIDEOCODEC --audio-codec $AUDIOCODEC --force-alt-h264 --load "$file" --save "${file%.*}.mp4" --quit
rm -f "$file" rm -f "$file"
done < <(find /home/yunohost.app/streama/ -name '*.mkv' -print0 -o -name '*.avi' -print0) done < <(find /home/yunohost.app/streama/upload/ -name '*.mkv' -print0 -o -name '*.avi' -print0)
chown -R streama:users /home/yunohost.app/streama/ chown -R streama:users /home/yunohost.app/streama/upload/
} }
parse_args () parse_args ()