Get access to DVB module or open the stream descriptor ID
Posted: 20 Jan 2012 11:26
Hi there,
I'm using libVLC to display DVB TV signals in my application. Everything is working fine so far but now I would need to implement a frequency scan and get the PID information out of a stream. I think I have two ways to go now after searching a lot.
The first way will be to get access to the "modules -> access -> dvb" module and be able to call the functions used there. Can anyone tell me, if it is possible to get a handle for the specific module libVLC is currently using. Then I would be able to use the functions defined in scan.h of the DVB module.
The other way would be use libdvbpsi directly in my code to analyse the ts stream but then I will need to find a way to get a handle to the open stream from libVLC to be able to send the stream data through libdvbpsi...
I think the first way might be better (VLC Player also seems to do it like this) because in the debug output of VLC I can find all the important Program specific Information (PSI) I would like to have inside of my app like the output of "PATCallBack" or "PMTCallBack", or "SDTCallback". Also the EPG information is send to debug output.
How will I be able to access this info?
Thanks for any help
Cheers,
Ben
I'm using libVLC to display DVB TV signals in my application. Everything is working fine so far but now I would need to implement a frequency scan and get the PID information out of a stream. I think I have two ways to go now after searching a lot.
The first way will be to get access to the "modules -> access -> dvb" module and be able to call the functions used there. Can anyone tell me, if it is possible to get a handle for the specific module libVLC is currently using. Then I would be able to use the functions defined in scan.h of the DVB module.
The other way would be use libdvbpsi directly in my code to analyse the ts stream but then I will need to find a way to get a handle to the open stream from libVLC to be able to send the stream data through libdvbpsi...
I think the first way might be better (VLC Player also seems to do it like this) because in the debug output of VLC I can find all the important Program specific Information (PSI) I would like to have inside of my app like the output of "PATCallBack" or "PMTCallBack", or "SDTCallback". Also the EPG information is send to debug output.
How will I be able to access this info?
Thanks for any help
Cheers,
Ben