Page 1 of 1

Acessing the KLV data from a TS stream

Posted: 21 Aug 2019 19:51
by ravingmadcat
Succinct question: How do I get the KLV packets from my H.264+MP3 (TS) stream?

Using libVLC package from 2016 (handed off by another person at work, it's currently approved so I'm hoping I don't need to update)
Windows 10
C++
OpenGL for the GUI (probably not relevant)

I've embedded a video player into a GUI application using libVLC. The next step is to get KLV data from the Transport Stream. I'm not interested in interpreting the data right now, and I understand that I will have to create that functionality myself.

Do libvlc_media_parse_with_options() or libvlc_media_get_meta() return KLV?

Re: Acessing the KLV data from a TS stream

Posted: 22 Aug 2019 17:00
by Rémi Denis-Courmont
No.

Re: Acessing the KLV data from a TS stream

Posted: 23 Aug 2019 16:52
by ravingmadcat
No, the two functions I listed can't get me the KVL, or no libVLC can't do KLV at all?

I've seen a couple of forum posts that implied or said that you could use libVLC in projects where you need to add/get KLV packets, but none of them were particularly helpful with my specific question.

My understanding is that I need the demuxer to separate the video/audio/KLV packets and hand them off to their respective decoders. Which demuxer do I use and how do I do this?

Re: Acessing the KLV data from a TS stream

Posted: 23 Aug 2019 22:23
by Rémi Denis-Courmont
Those functions return the input's permanent meta-infos. They are not suitable for streaming data.

Re: Acessing the KLV data from a TS stream

Posted: 24 Aug 2019 00:16
by ravingmadcat
Ok, so how do I get the KLV stuff then?