Page 1 of 1

Get access to DVB module or open the stream descriptor ID

Posted: 20 Jan 2012 11:26
by Monty811
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 :D

Cheers,

Ben

Re: Get access to DVB module or open the stream descriptor I

Posted: 08 May 2012 16:03
by sundk911
have you successfully implemented a frequency scan and get the PID information out of a stream by using vlc ?
what I want to realize is to get the PID information out of a stream by using vlc. I see that there may be to ways to realize the function. And I have do a lot of research but i am confused by the plenty of source codes of vlc.
could you tell me how to realize the function or give some suggestions ?

Re: Get access to DVB module or open the stream descriptor I

Posted: 09 May 2012 17:48
by rvs75
I don't know if Monty811 has implemented a frequency scan but I create for Windows a scanner for dvb-t for my program that use libvlc.
Actually it's a (buggy) private beta and only in french and only for DVB-T.
DVB-C and DVB-S is planned but I need hardware !

Image

For linux, you must use DVB-Apps for scanning

Re: Get access to DVB module or open the stream descriptor I

Posted: 12 May 2012 09:50
by sundk911
thanks for your reply.
What I want to realize is to get theprogram list of a ts stream(DVB-T) and choose any one of the list to play. Just like the menu->playback->program button on vlc.exe.Could you tell which dll and functions should I call to realize it ? thanks a lot !

Best Regards

Re: Get access to DVB module or open the stream descriptor I

Posted: 23 May 2012 15:13
by Monty811
Hi there,

sorry for my late reply, I have started to set up a VLC debugging environment for investigating how vlc uses the DVB module or libdvbpsi, but I stopped somewhere because of my missing time for it.
But it is good to see that others are trying the same thing.
RVS75, can you tell us how your trial program is working. I have done something similar for DVB-T using the DirectShow components of MS but I would like to use one thing like VLC for all.
So if you have used VLC or libdvbpsi for your trial program, will it be possible to have a look at the sources?

Thank you an best regards,

Ben

Re: Get access to DVB module or open the stream descriptor I

Posted: 24 May 2012 10:42
by rvs75
I use DirectShow too (to be precise, a wrapper for .NET http://directshownet.sourceforge.net/).
I don't use VLC nor libdvbpsi.
Good news, the source will be accessible because the licence will be GPL2 :D
Bad news, it's written in VB.NET :lol:

If you want test the private beta (and you understand french), You have to join the ZGuideTV.NET forum (http://www.zguidetv.net/) and go to http://www.zguidetv.net/viewtopic.php?f=13&t=1032)