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:
parent
36aba3c993
commit
dde26cc752
1 changed files with 2 additions and 0 deletions
|
@ -31,6 +31,7 @@ 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/ -name '*.mkv' -print0 -o -name '*.avi' -print0)
|
||||||
|
chown -R streama:users /home/yunohost.app/streama/
|
||||||
}
|
}
|
||||||
|
|
||||||
avidemux_convert(){
|
avidemux_convert(){
|
||||||
|
@ -41,6 +42,7 @@ 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/ -name '*.mkv' -print0 -o -name '*.avi' -print0)
|
||||||
|
chown -R streama:users /home/yunohost.app/streama/
|
||||||
}
|
}
|
||||||
|
|
||||||
parse_args ()
|
parse_args ()
|
||||||
|
|
Loading…
Add table
Reference in a new issue