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 03:19:47 +02:00 committed by GitHub
parent c70b4ecde6
commit c45a491fd9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,4 +1,21 @@
#! /bin/bash
#!/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"