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
c6f273b2c9
commit
98c8a68550
1 changed files with 7 additions and 6 deletions
|
@ -5,7 +5,7 @@
|
||||||
# Thanks :
|
# Thanks :
|
||||||
# License: GNU GPLv3
|
# License: GNU GPLv3
|
||||||
|
|
||||||
version="0.1.0"
|
version="0.2.0"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# RETRIEVE ARGUMENTS FROM THE MANIFEST AND VAR
|
# RETRIEVE ARGUMENTS FROM THE MANIFEST AND VAR
|
||||||
|
@ -35,14 +35,15 @@ chown -R streama:users /home/yunohost.app/streama/upload/
|
||||||
}
|
}
|
||||||
|
|
||||||
avidemux_convert(){
|
avidemux_convert(){
|
||||||
VIDEOCODEC="mp4"
|
video_codec="h264"
|
||||||
AUDIOCODEC="aac"
|
audio_codec="LavAAC"
|
||||||
|
output_format="MP4"
|
||||||
while IFS= read -r -d '' file
|
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 --nogui --video-codec "$video_codec" --audio-codec "$audio_codec" --load "$file" --output-format "$output_format" --save "${file%.*}.mp4" --quit
|
||||||
rm -f "$file"
|
rm -f "$file"
|
||||||
done < <(find /home/yunohost.app/streama/upload/ -name '*.mkv' -print0 -o -name '*.avi' -print0)
|
done < <(find /home/pc/Téléchargements/Movies/ -name '*.mkv' -print0 -o -name '*.avi' -print0)
|
||||||
chown -R streama:users /home/yunohost.app/streama/upload/
|
#chown -R streama:users /home/yunohost.app/streama/upload/
|
||||||
}
|
}
|
||||||
|
|
||||||
parse_args ()
|
parse_args ()
|
||||||
|
|
Loading…
Add table
Reference in a new issue