Mhwepg
(→Installation) |
(→Konfiguration) |
||
Zeile 45: | Zeile 45: | ||
Einträge [[commands.conf]] | Einträge [[commands.conf]] | ||
− | [http://jrepetto.free.fr/cd/index.htm Canal Digitaal (Netherlands)] : echo " | + | [http://jrepetto.free.fr/cd/index.htm Canal Digitaal (Netherlands)] : echo "/usr/local/bin/loadepg.pl -d localhost -p 2001 -s S19.2E -f 12515"|at now |
− | [http://jrepetto.free.fr/csd/index.htm Digital+ (Spain)] : echo " | + | [http://jrepetto.free.fr/csd/index.htm Digital+ (Spain)] : echo "/usr/local/bin/loadepg.pl -d localhost -p 2001 -s S19.2E -f 10847"|at now |
− | [http://jrepetto.free.fr/csn/index.htm Canal+/CanalSatellite (France)] : echo " | + | [http://jrepetto.free.fr/csn/index.htm Canal+/CanalSatellite (France)] : echo "/usr/local/bin/loadepg.pl -d localhost -p 2001 -s S19.2E -f 12363"|at now |
− | [http://jrepetto.free.fr/telepiu/index.htm Sky (Italia)] : echo " | + | [http://jrepetto.free.fr/telepiu/index.htm Sky (Italia)] : echo "/usr/local/bin/loadepg.pl -d localhost -p 2001 -s S13.0E -f 11880"|at now |
− | [http://jrepetto.free.fr/cyfra/index.htm Cyfra+ (Poland)] : echo " | + | [http://jrepetto.free.fr/cyfra/index.htm Cyfra+ (Poland)] : echo "/usr/local/bin/loadepg.pl -d localhost -p 2001 -s S13.0E -f 10719"|at now |
Viel verkehrt kann man nicht machen, der mhwepg.log ist unter /var/log zu finden, bei Erfolg: | Viel verkehrt kann man nicht machen, der mhwepg.log ist unter /var/log zu finden, bei Erfolg: | ||
Zeile 69: | Zeile 69: | ||
open( FILE, "/tmp/epg.tmp" ); | open( FILE, "/tmp/epg.tmp" ); | ||
^^^^^^^^^^^^</pre> | ^^^^^^^^^^^^</pre> | ||
+ | |||
==Probleme== | ==Probleme== | ||
Don't know if something changed in the driver in kernel 2.6, but I couldn't get the program to work even after patching. It seems that the default buffer size is too small for everything to work smoothly. | Don't know if something changed in the driver in kernel 2.6, but I couldn't get the program to work even after patching. It seems that the default buffer size is too small for everything to work smoothly. |
Version vom 27. Dezember 2004, 12:09 Uhr
Inhaltsverzeichnis |
Beschreibung
(M)edia(H)igh(W)ay EPG ist ein Programm um EPG Daten via Satelite zu empfangen, die Informationen werden von der Canal+ group (Mediahighway receivers) bereit gestellt.
Mhwepg bringt die Daten in ein VDR konformes Format.
Kanäle
Canal Digitaal (Netherlands)
Digital+ (Spain)
Canal+/CanalSatellite (France)
Sky (Italia)
Cyfra+ (Poland)
Hardwareanforderungen
(Driver API 3), heißt das Mhwepg im Moment nicht mit den neuen Kernel-drivern (1.1.1) zusammen arbeitet.
Softwareanforderungen
Mhwepg, Loadepg, Perl, At (Job-Manager)
Installation
cd $SOURCEDIR wget http://jrepetto.free.fr/mhwepg-<VERSION>.tar.gz tar zxvf mhwepg-<VERSION>.tar.gz mv mhwepg-<VERSION> mhwepg cd mhwepg wget www.lukkinosat.altervista.org/loadepg-0.4.tar.bz2 tar jxvf loadepg-0.4.tar.bz2 patch < mhwepg-0.4.2.diff make
loadepg.pl PATH wie folgt anpassen:
- system( "./mhwepg -o /tmp/epg.tmp &>/var/log/mhwepg.log" ); + system( "/usr/local/bin/mhwepg -o /tmp/epg.tmp &>/var/log/mhwepg.log" );
Kopieren:
cp mhwepg loadepg.pl /usr/local/bin
Konfiguration
Einträge commands.conf
Canal Digitaal (Netherlands) : echo "/usr/local/bin/loadepg.pl -d localhost -p 2001 -s S19.2E -f 12515"|at now Digital+ (Spain) : echo "/usr/local/bin/loadepg.pl -d localhost -p 2001 -s S19.2E -f 10847"|at now Canal+/CanalSatellite (France) : echo "/usr/local/bin/loadepg.pl -d localhost -p 2001 -s S19.2E -f 12363"|at now Sky (Italia) : echo "/usr/local/bin/loadepg.pl -d localhost -p 2001 -s S13.0E -f 11880"|at now Cyfra+ (Poland) : echo "/usr/local/bin/loadepg.pl -d localhost -p 2001 -s S13.0E -f 10719"|at now
Viel verkehrt kann man nicht machen, der mhwepg.log ist unter /var/log zu finden, bei Erfolg:
UTC Offset = 0 Country = ESP, Region = 1 Local Time Offset = 3600 Next Local Time Offset = 7200 Date of change = 25/03/2001 Reading titles ... Reading summaries ... Nb of summaries : 12419 Nb of titles : 11588 Writing EPG data to file ... Nb of channels = 82
Auslagerort ist /tmp:/var beides ist in der loadepg.pl definiert, und kann dort angepasst werden:
system( "./mhwepg -o /tmp/epg.tmp &>/var/log/mhwepg.log" ); ^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^ .... open( FILE, "/tmp/epg.tmp" ); ^^^^^^^^^^^^
Probleme
Don't know if something changed in the driver in kernel 2.6, but I couldn't get the program to work even after patching. It seems that the default buffer size is too small for everything to work smoothly.
What solved my problem was adding the following lines at the beginning of SetFiltSection, right after the line struct dmx_sct_filter_params sctFilterParams;
if (ioctl(fd, DMX_SET_BUFFER_SIZE, 10*188*1024)<0) { perror("DMX SET BUFFER SIZE"); exit(0); }
I'm puzzled because 10*188*1024 should be the default buffer size, but before the modification it didn't work, now it does so....
Optionen
Parameter | Beschreibung |
---|---|
-a number | use given adapter (default 0) |
-d number | use given demux (default 0) |
-s string | source (such as S19.2E) |
-e string | list of equivalent channels |
-l | send the channels list to stderr |
-o string | output to file <string> (default stdout) |
Links
[1] | http://jrepetto.free.fr | Homepage Mhwepg |
[2] | http://www.www.lukkinosat.altervista.org/loadepg-0.4.tar.bz2 | Aktuelle Scripts |