Fix ffmpeg7 filters (#144)

main 3.3
Alex 11 months ago committed by GitHub
parent 9592737591
commit 589836597a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -1,5 +1,5 @@
A new version of the wrapper was deployed (v2.6) fixing an issue with offline transcoding. A new version of the wrapper was deployed (v3.2) fixing an issue with video filters on ffmpeg7.
You can find the changelog here: https://github.com/AlexPresso/VideoStation-FFMPEG-Patcher/releases/tag/2.6 You can find the changelog here: https://github.com/AlexPresso/VideoStation-FFMPEG-Patcher/releases/tag/3.2
/!\ PLEASE FOLLOW THE UPDATE PROCEDURE IN THE CHANGELOG TO UPDATE /!\ /!\ PLEASE FOLLOW THE UPDATE PROCEDURE IN THE CHANGELOG TO UPDATE /!\

@ -5,6 +5,7 @@
######################### #########################
ffmpeg_version=@ffmpeg_version@ ffmpeg_version=@ffmpeg_version@
ffmpeg_major_version=$(echo "$ffmpeg_version" | grep -oE '[0-9]+')
pid=$$ pid=$$
child="" child=""
stderrfile="/tmp/ffmpeg-$pid.stderr" stderrfile="/tmp/ffmpeg-$pid.stderr"
@ -92,6 +93,22 @@ fix_args() {
args+=("-vf" "$arg") args+=("-vf" "$arg")
;; ;;
-vbsf)
shift
param="-vbsf"
arg="$1"
if [[ "$ffmpeg_major_version" -gt 4 ]]; then
param="-bsf:v"
if [[ "$arg" == *"repeatheader"* ]]; then
arg="${arg//repeatheader/repeat_header=1}"
fi
fi
args+=("$param" "$arg")
;;
-r) -r)
shift shift
;; ;;

Loading…
Cancel
Save