3.0.9 get colorspace
Posted: 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
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