diff --git a/conf/convert.sh b/conf/convert.sh index 50937d5..6ba9d9a 100644 --- a/conf/convert.sh +++ b/conf/convert.sh @@ -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"