-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
--vf=scale
isn't supported after ffmpeg 95568c4
#14047
Comments
it's FFmpeg/FFmpeg@bb80445 Lines 980 to 997 in a26bbbd
|
Does this fix it? commit ce996d2d80a6d184856c9d3a869a10e8f1414e9b
Author: Niklas Haas <git@haasn.dev>
Date: Fri May 3 22:07:30 2024 +0200
avfilter/vf_scale: add missing filter flag
Fixes: bb8044581366fe286e16b14515d873979133dbda
diff --git a/libavfilter/vf_scale.c b/libavfilter/vf_scale.c
index bc53571c1c..696ee272ec 100644
--- a/libavfilter/vf_scale.c
+++ b/libavfilter/vf_scale.c
@@ -1261,6 +1261,7 @@ const AVFilter ff_vf_scale = {
FILTER_QUERY_FUNC(query_formats),
.activate = activate,
.process_command = process_command,
+ .flags = AVFILTER_FLAG_DYNAMIC_INPUTS,
};
static const AVFilterPad avfilter_vf_scale2ref_inputs[] = { |
I bet it does but isn't that misusing the flag? /**
* The number of the filter inputs is not determined just by AVFilter.inputs.
* The filter might add additional inputs during initialization depending on the
* options supplied to it.
*/ I suppose Edit: Based on the ffmpeg documentation I noticed we're not actually checking the pad count correctly and proposed #14052. Incidentally this would make your patch no longer work. |
Huh, then indeed |
Yes, that is my interpretation. |
Fixed by FFmpeg/FFmpeg@6a5b021 |
Important Information
Provide following Information:
v0.38.0-99-gd61d2946
mpv and ffmpeg version:
Reproduction steps
run
mpv --vf=scale=help
mpv with FFmpeg/FFmpeg@69b4d97 is good ,but FFmpeg/FFmpeg@95568c4 broken.So some commits between 69b4d97 and 95568c4 broken
--vf=scale
optionExpected behavior
Get help info about
--vf=scale
,like:Actual behavior
The text was updated successfully, but these errors were encountered: