3.0.9 get colorspace

This forum is about all development around libVLC.
mtsmox
New Cone
New Cone
Posts: 2
Joined: 25 Mar 2020 22:51

3.0.9 get colorspace

Postby mtsmox » 25 Mar 2020 23:01

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

Rémi Denis-Courmont
Developer
Developer
Posts: 15267
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: 3.0.9 get colorspace

Postby Rémi Denis-Courmont » 26 Mar 2020 07:58

You can either use a custom video output plug-in or ask LibVLC to feed RGB.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

mtsmox
New Cone
New Cone
Posts: 2
Joined: 25 Mar 2020 22:51

Re: 3.0.9 get colorspace

Postby mtsmox » 26 Mar 2020 10:34

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!!!


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 11 guests