From 736f9a1cb9a60b0026f9701773225e37e3e0ec58 Mon Sep 17 00:00:00 2001 From: Matheus Albino Date: Sat, 17 Aug 2024 03:19:44 -0300 Subject: [PATCH] ffmpeg-helper.sh uses windows version for gpu accel --- scripts/shell/ffmpeg-helper.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/shell/ffmpeg-helper.sh b/scripts/shell/ffmpeg-helper.sh index 28a05e1..c8e8aea 100755 --- a/scripts/shell/ffmpeg-helper.sh +++ b/scripts/shell/ffmpeg-helper.sh @@ -139,7 +139,8 @@ if [ "$remove_audio" = true ] && [ "$audio_track_no" != 1 ]; then exit 1 fi -ffmpeg_command="ffmpeg -i \"$input_file\"" +# ffmpeg_command="ffmpeg -progress - -nostats -i \"$input_file\"" +ffmpeg_command="/mnt/e/programs/ffmpeg-2024-08-15-git-1f801dfdb5-full_build/bin/ffmpeg.exe -i \"$input_file\"" # if command -v ffmpeg.exe &> /dev/null; then # ffmpeg_command="ffmpeg.exe -hwaccel d3d11va" @@ -158,7 +159,8 @@ if [ -n "$trim_start" ] && [ -n "$trim_end" ]; then fi if [ -n "$crf" ]; then - ffmpeg_command+=" -c:v libx265 -crf $crf" + # ffmpeg_command+=" -c:v libx265 -crf $crf" + ffmpeg_command+="-c:v hevc_amf -rc cqp -qp_i $crf -qp_p $crf" fi if [ -n "$new_fps" ]; then