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
c70b4ecde6
commit
c45a491fd9
1 changed files with 18 additions and 1 deletions
|
@ -1,4 +1,21 @@
|
|||
#!/bin/bash
|
||||
#
|
||||
# About: Convert movies automatically
|
||||
# Author: liberodark
|
||||
# Thanks :
|
||||
# License: GNU GPLv3
|
||||
|
||||
version="0.1.0"
|
||||
|
||||
#=================================================
|
||||
# RETRIEVE ARGUMENTS FROM THE MANIFEST AND VAR
|
||||
#=================================================
|
||||
|
||||
lock="/tmp/wp-sync.lock"
|
||||
|
||||
exec 9>"${lock}"
|
||||
flock -n 9 || exit
|
||||
|
||||
while IFS= read -r -d '' file
|
||||
do
|
||||
ffmpeg -nostdin -i "$file" -vcodec h264 -acodec aac -strict -2 "${file%.*}.mp4"
|
||||
|
|
Loading…
Add table
Reference in a new issue