From 9deaf4b2d02773c357389c62ce30649b813b8464 Mon Sep 17 00:00:00 2001 From: alexpresso Date: Tue, 14 May 2024 00:47:22 +0200 Subject: [PATCH 1/2] Try fix vaapi args --- wrappers/ffmpeg.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/wrappers/ffmpeg.sh b/wrappers/ffmpeg.sh index 34ab2ce..82d98e7 100644 --- a/wrappers/ffmpeg.sh +++ b/wrappers/ffmpeg.sh @@ -60,6 +60,11 @@ handle_error() { fix_args() { while [[ $# -gt 0 ]]; do case "$1" in + -ss) + args+=("-ss" "$1" "-noaccurate_seek") + shift + ;; + -acodec) shift if [[ "$1" = "libfaac" ]]; then @@ -78,9 +83,9 @@ fix_args() { scale_h=$(echo "$arg" | sed -n 's/.*w=\([0-9]\+\):h=\([0-9]\+\).*/\2/p') if (( scale_w && scale_h )); then - arg="scale_vaapi=w=$scale_w:h=$scale_h:format=nv12,hwupload,setsar=sar=1" + arg="format=nv12|vaapi,hwupload,scale_vaapi=w=$scale_w:h=$scale_h:format=nv12,setsar=sar=1" else - arg="scale_vaapi=format=nv12,hwupload,setsar=sar=1" + arg="format=nv12|vaapi,hwupload,scale_vaapi=format=nv12,setsar=sar=1" fi fi From 349af6644723fdd1566cb9814be23c060600373f Mon Sep 17 00:00:00 2001 From: alexpresso Date: Tue, 14 May 2024 01:27:07 +0200 Subject: [PATCH 2/2] Try fix vaapi args --- wrappers/ffmpeg.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wrappers/ffmpeg.sh b/wrappers/ffmpeg.sh index 82d98e7..8c23ebc 100644 --- a/wrappers/ffmpeg.sh +++ b/wrappers/ffmpeg.sh @@ -61,8 +61,8 @@ fix_args() { while [[ $# -gt 0 ]]; do case "$1" in -ss) - args+=("-ss" "$1" "-noaccurate_seek") shift + args+=("-ss" "$1" "-noaccurate_seek") ;; -acodec)