From 491d17850ab894954c04c0dacf0e2e86ab35cc9d Mon Sep 17 00:00:00 2001 From: Alex <15526962+AlexPresso@users.noreply.github.com> Date: Mon, 2 Oct 2023 10:01:04 +0200 Subject: [PATCH 1/3] Fix scale vaapi (#96) * Fix scale_vaapi --- wrappers/ffmpeg.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wrappers/ffmpeg.sh b/wrappers/ffmpeg.sh index 5b989c7..c9a1aad 100644 --- a/wrappers/ffmpeg.sh +++ b/wrappers/ffmpeg.sh @@ -70,9 +70,9 @@ fix_args() { arg="$1" if [[ "$arg" =~ "scale_vaapi" ]]; then - scale_w=$(echo "$arg" | sed -e 's/.*=w=//g' | sed -e 's/:h=.*//g') - # shellcheck disable=SC2001 - scale_h=$(echo "$arg" | sed -e 's/.*:h=//g') + scale_w=$(echo "$arg" | sed -n 's/.*w=\([0-9]\+\):h=\([0-9]\+\).*/\1/p') + 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" else From 212d6f0fcc7a85a403365451242852a040a0f547 Mon Sep 17 00:00:00 2001 From: Alex <15526962+AlexPresso@users.noreply.github.com> Date: Mon, 2 Oct 2023 16:43:08 +0200 Subject: [PATCH 2/3] Update question---help.md (#98) --- .github/ISSUE_TEMPLATE/question---help.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/ISSUE_TEMPLATE/question---help.md b/.github/ISSUE_TEMPLATE/question---help.md index 02277da..03c35b1 100644 --- a/.github/ISSUE_TEMPLATE/question---help.md +++ b/.github/ISSUE_TEMPLATE/question---help.md @@ -7,5 +7,7 @@ assignees: '' --- +Please check the [FAQ](https://github.com/AlexPresso/VideoStation-FFMPEG-Patcher/wiki/FAQ) before posting any question. + **Question** [ask your question here, please put every logs / code in codeblocks or in a [gist](https://gist.github.com/)] From cea11263e30fefb9fd3dbfc5605e21c677170e20 Mon Sep 17 00:00:00 2001 From: Alex <15526962+AlexPresso@users.noreply.github.com> Date: Mon, 2 Oct 2023 16:43:19 +0200 Subject: [PATCH 3/3] Update bug_report.md (#99) --- .github/ISSUE_TEMPLATE/bug_report.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md index 5e6e415..cbee34a 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -7,7 +7,7 @@ assignees: '' --- -# Before posting any bug issue, please make sure you have patched a clean VideoStation / AME install by doing the following: +# Before posting any bug issue, please check the [FAQ](https://github.com/AlexPresso/VideoStation-FFMPEG-Patcher/wiki/FAQ) and make sure you have patched a clean VideoStation / AME install by doing the following: - Uninstall VideoStation (keep your library) - Uninstall Advanced Media Extensions - Re-install VideoStation (it should also ask to install Advanced Media Extensions)