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:
parent
512fc43a13
commit
e26d166911
1 changed files with 12 additions and 0 deletions
12
conf/convert.sh
Normal file
12
conf/convert.sh
Normal 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
|
Loading…
Add table
Reference in a new issue