modify video filter chain realtime via command socket? #16862
Replies: 1 comment 1 reply
-
With a bit of experimentation I've partially answered my own question.
changes the filter chain while playing, which is the behaviour I need. an anomoly though is that when querying the "vf" property each field contains the char literals '%4%' before each numerical value...as contrast=%4%1.21:saturation=%4%1.40:gamma=%4%1.26:gamma_r=%4%0.97 I'm not aware of any json requirement for this syntax so it's a bug in the mpv, right? And yes, I'm using an older mpv version since I haven't upgrade Debian to 13 yet. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Several years ago I wrote a pyQt NLE video editor and used mplayer as the clip presentation window. One thing I relied upon was the ability to insert video filter equalization changes to the stream at runtime. Since mplayer is deprecated I've been looking at replacing that part of the system with mpv. Obviously the command function in mpv is way different than controlling mplayer. How might I use the command socket to make changes to the video filter chain while a clip is loaded/running? I'd prefer to not have to add lua to my knowledge of programming languages because I'm afraid I'd have to forget a language to make room in my brain. IOW, I want to avoid learning another scripting language.
Are there any online examples of controlling the player window via the command socket? what's not clear from man/input.rst is whether the socket returns status information when a command is sent, or how queuing of commands is handled. Must I wait for a command to be processed before sending another, or are they queued and processed in order received?
I'm about ready to start writing a prototype mpv frontend with socket level player control and if there is an existing model I can refer to then that would be awesome.
Beta Was this translation helpful? Give feedback.
All reactions