1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/streama_ynh.git synced 2024-09-03 20:26:30 +02:00

add auto convert

This commit is contained in:
liberodark 2018-11-27 14:46:43 +01:00
parent 512fc43a13
commit e26d166911

12
conf/convert.sh Normal file
View file

@ -0,0 +1,12 @@
#! /bin/bash
for file in "$( find ./ -iname "*.mkv")"
do
ffmpeg -i "$file" -vcodec h264 -acodec aac -strict -2 "${file%.*}.mp4"
rm "$file"
done
for file in "$( find ./ -iname "*.avi")"
do
ffmpeg -i "$file" -vcodec h264 -acodec aac -strict -2 "${file%.*}.mp4"
rm "$file"
done