Page 1 of 1

Example for dvb with libVLC

Posted: 08 May 2012 17:02
by sundk911
could you tell me how to get the program list of a ts stream by using vlc ? just like the menu playback---program ?

Re: Example for dvb with libVLC

Posted: 12 May 2012 21:39
by MichaelMc
If you mean through libvlc, then it is possible if somewhat non conventional and at a risk of breaking at any point release.

Have a look at vlc_input_item.h and vlc_epg_t then try something along the lines off:

Code: Select all

input_thread_t *p_input = libvlc_get_input_thread(vlc->mp); if (p_input){ input_item_t *p_item = input_GetItem(p_input); if (p_item){ vlc_mutex_lock(&p_item->lock); if (p_item->pp_epg && p_item->i_epg){ .... } vlc_mutex_unlock(&p_item->lock); } vlc_object_release(p_input); }
Should be enough to get you going. Works for me.