updates
This commit is contained in:
parent
b76fc64528
commit
d016d45557
2 changed files with 6 additions and 5 deletions
|
@ -3,7 +3,7 @@
|
|||
|
||||
#test to see if its already been encoded to av1 or else it converts it
|
||||
format=$(ffprobe -v error -select_streams v:0 -show_entries stream=codec_name -of default=nokey=1:noprint_wrappers=1 "$1")
|
||||
rate=28
|
||||
rate=26
|
||||
echo "Format of file $1 is ---> $format"
|
||||
|
||||
if [ "$format" != "av1" ]
|
||||
|
@ -19,5 +19,5 @@ then
|
|||
-preset 3 \
|
||||
-g 150 \
|
||||
-c:a aac \
|
||||
"/config/${1%.mp4}.mkv"
|
||||
"/config/${1%.*}_converted.mkv"
|
||||
fi
|
||||
|
|
|
@ -3,17 +3,18 @@
|
|||
|
||||
#test to see if its already been encoded to av1 or else it converts it
|
||||
format=$(ffprobe -v error -select_streams v:0 -show_entries stream=codec_name -of default=nokey=1:noprint_wrappers=1 $1)
|
||||
#rate=1M
|
||||
rate=29
|
||||
echo "Format of file $1 is ---> $format"
|
||||
|
||||
if [ "$format" != "av1" ]
|
||||
then
|
||||
docker run -it --rm --device=/dev/dri:/dev/dri -v "$(pwd)":/config linuxserver/ffmpeg \
|
||||
-hide_banner -loglevel warning -v quiet -stats \
|
||||
-hwaccel qsv -hwaccel_output_format qsv -qsv_device /dev/dri/renderD128 \
|
||||
-i "/config/$1" \
|
||||
-n \
|
||||
-vaapi_device /dev/dri/renderD128 \
|
||||
-c:v av1_qsv \
|
||||
-crf 35 \
|
||||
-global_quality $rate \
|
||||
-preset 4 \
|
||||
-g 150 \
|
||||
-c:a aac \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue