Glad to see that the API has also be been updated to 0.2, maybe soon we can have better EPG...
Glad to see that the API has also be been updated to 0.2, maybe soon we can have better EPG...
I found that if you add:
before TVSDK_AddEPGInfoCode:struct memory_status_st eit_mem; TVSDK_InitEITMemory(); TVSDK_GetEITMemoryStatus(&eit_mem);
then you can write every thing to EPG memory (some kind of initialization of Epg stuff)
EpgWriter ver 0.1
http://www.mediafire.com/?dznjja2ynxz
very simple but it works for me
regards
limak
Last edited by limak; 12-02-2010 at 04:25 PM.
Thanks,
Will test it. didn't get mine compiled :(. Worked without including the azbox files but only compiled with g++ --> azbox files gave loads of errors on g++ :(.
Will write a nice shell script around it to make use of xmltv files with multiple channels.
Regards,
Tommy
I'm not very proud of this code, I don't remember when I code ANSI C last time but if you want it send me pm
@limak:
Can you have a look at what Rytec creates? http://www.rytec.be
He provides gzipped xmltv files online, which can be downloaded and processed, for several packages.
A lot of details can be found in a convenient way on the website.
I think he has built one of the most useful EPG parsers so far.
Soory but I dont have spare time to create lookup table with channels id from xmltv and freq, sid, tid, nid, etc. But now it sould be easy to make some decent epg downloader now. I just share my code with some people.
Have a nice weekend
sorry the noobish guys.
is this an EPG plugin?
if so, can i use it in hispasat?
if not, what is it?
It's the start of a epg populator with data from internet could be called a plugin when setup. I've tried to use it without success at the moment.
Last edited by Smudger; 12-02-2010 at 08:48 PM.
it crashed my box, hehe
i dunno if i did it right. gonna wait for something more user friendly for me
I just get a black screen when accessing the plugin via the remote, but after entering anoter line for it to download the bbc1 xml , I ran ./epgdownload and it downloaded the data and created the xml files successfully
manually running ./epgwriter I get this
I take it that Ive got to put in all the right params from hereCode:MMP[EpgWriter]$ ./epgwriter EpgWriter ver 0.1 by limak Usage: epgwriter XMLTVFileName Azbox_network_id NID TID frequency SID polarisation Example: epgwriter tvn24.xmltv 6 318 1000 11393000 4312 1 ( polarisation: horizontal=0, vertical=1, Azbox_netword_id=6 for HotBird 13E )
can someone explain the parameters 6 318 12800 11075000 6 1
used when calling the program.
I see its 14 for 28.2
152 for Hispasat.
think I've got it using Maz channel editor for details.
sat number NID ??? Channel Frequency sat number H/V 0 or 1
can't work out the 12800
got it working for bbc1 on 28.2
./epgwriter bbc1.bbc.xmltv 14 2 2048 10817500 10355 1 > bbc1.bbc.xmltv.log
just noticed the previous post.
Last edited by Smudger; 12-02-2010 at 09:44 PM.
ok I think i sussed the params
I ran
is it missing the fact that this file exists bbc1.sat.xmltv do I need to set a path.?Code:./epgwriter bbc1.sat.xmltv 14 2 2048 1081800 10355 1
Also it couldnt open the Dat files which where I presume the epg is stored
Code:MMP[EpgWriter]$ ./epgwriter bbc1.sat.xmltv 14 2 2048 1081800 10355 1 EpgWriter ver 0.1 by limak HHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH BUILD: [Jan 21 2010 20:18:24] HHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH unlink fail!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!: No such file or directory AZBoxTVSDK TVSDK_CheckTunerInfo:58 # Tuner Combination Type : COMBO # AZBoxTVSDK TVSDK_CheckTunerInfo:76 find ---- /tmp/TUNER_DVBS-0 create_iso_639_code_table ok Send massage D(4), S(33) AZBoxTVSDK ChannelSDK_Load:332 (/DISK2/all_channel.dat) MAX_CHANNEL 15000 FAV GROUP 50 FAV 200 channel list version : 9 channel_st (200) * 15000 : 3000000 channel_list_st (1596296) + channel_st 3000000 : 4596296 +=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+= AZBoxTVSDK ChannelSDK_ChangeVindexType:102 USE LIST CHANGE CHANNEL LIST 1 type('FAV CH') +=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+= AZBoxTVSDK ChannelSDK_LinkRCHInfo:223 AZBoxTVSDK ChannelSDK_Load:465 ####################### channel list version : 9 load service_type : 1 load use_group_list : 'FAV' load bouquet : 65535 load net_index : 255 load original channel number : 5138 load tv channel number : 4353 load radio channel number : 785 load user channel number : 863 load vch_type : 'FAV CH' load promotion channel number : 0 AZBoxTVSDK ChannelSDK_Load:486 ####################### ERROR: ChannelSDK_LoadNetwork:765 Fail to open '/DISK2/DVBC.dat' ERROR: ChannelSDK_LoadNetwork:765 Fail to open '/DISK2/DVBTa.dat' ERROR: ChannelSDK_LoadNetwork:765 Fail to open '/DISK2/ISDBT.dat' ERROR: ChannelSDK_LoadNetwork:765 Fail to open '/DISK2/ATSC.dat' AZBoxTVSDK TVSDK_GetGMTOffset:439 Send massage D(4), S(33) AZBoxTVSDK set_GMT_offset:1305 GMT_offset 0 EpgWriter ver 0.1 by limak AZBoxTVSDK TVSDK_InitEITMemory:1172 AZBoxTVSDK TVSDK_SetUserEITMemory:1211 Send massage D(4), S(33) AZBoxTVSDK TVSDK_GetEITMemoryStatus:1135 Send massage D(4), S(33) AZBoxTVSDK TVSDK_ParseEITMemoryStatus:194 AZBoxTVSDK TVSDK_ParseEITMemoryStatus:207 DEFAULT_EIT total 20971520 AZBoxTVSDK TVSDK_ParseEITMemoryStatus:208 DEFAULT_EIT used 1959779 AZBoxTVSDK TVSDK_GetEITMemoryStatus:1154 max_eit_memory 29360128 AZBoxTVSDK TVSDK_GetEITMemoryStatus:1158 DEFAULT_EIT total 20971520 AZBoxTVSDK TVSDK_GetEITMemoryStatus:1159 DEFAULT_EIT used 1959779 AZBoxTVSDK TVSDK_GetEITMemoryStatus:1162 USER_EIT total 8388608 AZBoxTVSDK TVSDK_GetEITMemoryStatus:1163 USER_EIT used 257940 AddEpgFromFile:401 Can't find channel AZBoxTVSDK TVSDK_Deinit:381 destroy_iso_639_code_table ok Send massage D(4), S(33) MMP[EpgWriter]$
did you
wget -O bbc1.bbc.xmltv hxxp://tvprofil.net/xmltv/data/bbc1.sat/weekly_bbc1.sat_tvprofil.net.xml
first?
remove the hxxp to http
yes and the file exists in /PLUGINS/EpgWriter
#!/bin/sh
#
# epg download script
#wget -O mtv.music.xmltv hxxp://tvprofil.net/xmltv/data/mtv.music/weekly_mtv.music_tvprofil.net.xml
wget -O bbc1.bbc.xmltv hxxp://tvprofil.net/xmltv/data/bbc1.sat/weekly_bbc1.sat_tvprofil.net.xml
wget -O bbc2.bbc.xmltv hxxp://tvprofil.net/xmltv/data/bbc2.sat/weekly_bbc2.sat_tvprofil.net.xml
#./epgwriter mtv.music.xmltv 6 318 12800 11075000 6 1 > mtv.music.xmltv.log
./epgwriter bbc1.bbc.xmltv 14 2 2048 10817500 10355 1 > bbc1.bbc.xmltv.log
./epgwriter bbc2.bbc.xmltv 14 2 2045 10773250 6302 0 > bbc2.bbc.xmltv.log
exit
my script
Bookmarks