Comments (7)
from mpv.
it's FFmpeg/FFmpeg@bb80445
mpv rejects filters with more than one in-/output for use with --vf
:
Lines 980 to 997 in a26bbbd
from mpv.
Does this fix it?
commit ce996d2d80a6d184856c9d3a869a10e8f1414e9b
Author: Niklas Haas <[email protected]>
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[] = {
from mpv.
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 scale
could be changed to dynamically add the ref input if any of the relevant vars are used.
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.
from mpv.
The pad count serves as a minimum even if the filter has dynamic inputs/outputs, so we should reject them here.
Huh, then indeed vf_scale
would need to be fixed to only add the second input dynamically if it's being used. I'm not sure if I read the same into that documentation as you, though. You think that implies it can only ever strictly add inputs, rather than also removing them?
from mpv.
Yes, that is my interpretation.
from mpv.
Fixed by FFmpeg/FFmpeg@6a5b021
from mpv.
Related Issues (20)
- Force dark-mode independently of system settings.
- overlay-add not displaying an image properly HOT 2
- Playing "Bad Apple!! PV" with libsixel HOT 7
- HDR brightness incorrect in XDR screen(1600nit) level
- Video does not play when interpolation option is set HOT 11
- Failed to seek when reading header element using a locally built instance of mpv HOT 16
- occasional right channel muted with stereo mp3 on start (flatpak) HOT 1
- mpv slowly leaking memory when listening to network stream HOT 7
- --sub-ass-style-overrides not applied when --sub-ass-override is set to force HOT 17
- Recognise .sdh, .hi, and .cc in subtitle filenames not as language codes but as hearing-impaired tags.
- Some videos stutters ever since mpv-x86_64-20240820-git-67e087d release HOT 8
- spam msg of video-crop
- Crash in Common.getTargetScreen(forFullscreen:) HOT 2
- Alternate HDR10 metadata handling HOT 7
- Bug #8008 happens if external display was connected after boot
- `deinterlace` fails with `hwdec` for `mpeg2video` HOT 7
- heap-use-after-free in queue_add_tail input.c:287
- Problems setting `sub-langs` for ytdl
- Fails to load and play playlists above 10mb size HOT 1
- How to view performance metrics (upload/render/present times) HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mpv.