mpv-player / mpv

🎥 Command line video player
https://mpv.io
Other
28.29k stars 2.9k forks source link

How do you apply a chromakey to a video overlay, and toggle/play it at runtime? #10535

Closed codecnotsupported closed 2 years ago

codecnotsupported commented 2 years ago

Hi, I'm trying to apply a chromakey to a video overlay to a video. I need to able to play the overlay at runtime.

Overlay video (paused) -> ChromaKey -\
                                      +-> Overlaid video -> Time passes -> Unpause overlay video
Video -------------------------------/

I've seen it's possible to toggle at runtime by using transparency as seen here. I'm quite new to video filters, though I've read a bit of mpv & FFMPEG documentation regarding the subject, however I remain confused as how to apply them. Some pointers would be useful.

Log file

Traneptora commented 2 years ago

You can't pause playback on some input files and not others. You're better off generating this in advance and then just playing it back as a finished video.

codecnotsupported commented 2 years ago

You can't pause playback on some input files and not others. You're better off generating this in advance and then just playing it back as a finished video.

That's going to be difficult if the video is a stream. But I'll take no for a answer and close this issue as it would seem to be unsupported.