Rafostar / clapper

Level up your video experience with a modern and user-friendly media player.
https://rafostar.github.io/clapper/
GNU General Public License v3.0
773 stars 36 forks source link

Video Processing #110

Open kkanungo17 opened 3 years ago

kkanungo17 commented 3 years ago

Are there any plans to add custom scalers and color management options like mpv?

Rafostar commented 3 years ago

There are plans to add options to allow configuring what individual gstreamer plugins allow to configure, yes. As a very, very advanced settings.

Rafostar commented 3 months ago

On current clapper-git this is possible from command line usage. Unlike mpv, GStreamer uses plugins to do its stuff, so as long as you have (can find or make yourself) right plugin for the right job you can do a lot of different things.

Plugins that are provided by GStreamer itself are documented here. You can also use gst-inspect-1.0 tool for this. For anything other (3rd party) refer to the source that provides it.

Example: We combine fisheye element together with chromahold and set it config options to remove all colors except blue.

clapper --video-filter="fisheye ! chromahold target-r=0 target-g=0 target-b=255"

When used with VA (vaapi hw acceleration), you probably gonna need to insert vapostproc there too so it will download pixels from GPU letting other image editing filters work (another reason why this is for advanced users).

clapper --video-filter="vapostproc ! fisheye ! chromahold target-r=0 target-g=0 target-b=255"