Page 1 of 1

3.0.9 get colorspace

Posted: 25 Mar 2020 23:01
by mtsmox
Hi,

I'm working with libvlc_video_set_format_callbacks and have YUV/I420 working, but to get my custom pixel shader to convert the YUV data to RGB I need to know the colorspace of the video being played. (I probably need more detailed information to get totally accurate rendering, but for now tuning the colorspace will be good enough.) I just don't know of any way to get this information. I believe vlc 4 will provide this information in the libvlc_video_output_setup_cb callback, but 3.0.9 does not have anything like that as far as I can tell. Could I use the ES output module somehow as this seems to be how vlc gets the data.

Thanks,
Mox

Re: 3.0.9 get colorspace

Posted: 26 Mar 2020 07:58
by RĂ©mi Denis-Courmont
You can either use a custom video output plug-in or ask LibVLC to feed RGB.

Re: 3.0.9 get colorspace

Posted: 26 Mar 2020 10:34
by mtsmox
Thanks for your reply.

Asking for RGB will not work for my project, as this conversion is done on the CPU and I am CPU bound. So I will be looking into a custom output plugin, thanks for the advice. Let's see who finishes first, my plugin or VLC 4 :wink:

Really looking forward to VLC 4 and the new libvlc api, keep up the good work!!!