Mhwepg

Aus VDR Wiki
(Unterschied zwischen Versionen)
Wechseln zu: Navigation, Suche
(M)
K (Änderungen von 91.121.85.162 (Diskussion) rückgängig gemacht und letzte Version von 80.108.206.135 wiederhergestellt)
 
(40 dazwischenliegende Versionen von 20 Benutzern werden nicht angezeigt)
Zeile 1: Zeile 1:
 
==Beschreibung==
 
==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.
+
'''(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.  
 +
 
 +
Die Canal+ Group besteht derzeit aus:
 +
Canal Digitaal (Netherlands)
 +
Canal+/CanalSatellite (France)
 +
Sky (Italia)
 +
Cyfra+ (Poland)
  
 
Mhwepg bringt die Daten in ein VDR konformes Format.
 
Mhwepg bringt die Daten in ein VDR konformes Format.
  
 
==Kanäle==
 
==Kanäle==
[http://jrepetto.free.fr/cd/index.htm Canal Digitaal (Netherlands)]<br>
+
[http://jrepetto.free.fr/csn/index.htm Canal Satellite Numérique]<br>
[http://jrepetto.free.fr/csd/index.htm Digital+ (Spain)]<br>
+
[http://jrepetto.free.fr/cd/index.htm Canal Digitaal]<br>
[http://jrepetto.free.fr/csn/index.htm Canal+/CanalSatellite (France)]<br>
+
[http://jrepetto.free.fr/telepiu/index.htm Sky Italia]<br>
[http://jrepetto.free.fr/telepiu/index.htm Sky (Italia)]<br>
+
[http://jrepetto.free.fr/cyfra/index.htm Cyfra+]<br>
[http://jrepetto.free.fr/cyfra/index.htm Cyfra+ (Poland)]
+
  
 
==Hardwareanforderungen==
 
==Hardwareanforderungen==
(Driver API 3), heißt das Mhwepg im Moment nicht mit den neuen Kernel-drivern (1.1.1) zusammen arbeitet.
+
* DVB(s)
  
 
==Softwareanforderungen==
 
==Softwareanforderungen==
Mhwepg, Loadepg, Perl, At (Job-Manager)
+
* mhwepg
 +
* loadepg
 +
* perl
 +
* at (Job-Manager)
  
 
==Installation==
 
==Installation==
<pre>cd $SOURCEDIR
+
<pre>
wget http://jrepetto.free.fr/mhwepg-0.4.2.tar.gz
+
cd $SOURCEDIR
tar zxvf mhwepg-0.4.2.tar.gz
+
wget http://jrepetto.free.fr/mhwepg-<VERSION>.tar.gz
mv mhwepg-0.4.2 mhwepg
+
tar zxvf mhwepg-<VERSION>.tar.gz
cd mhwepg
+
cd mhwepg-<VERSION>
wget www.lukkinosat.altervista.org/loadepg-0.4.tar.bz2
+
make
tar jxvf loadepg-0.4.tar.bz2
+
wget http://gentoo.fh-luh.de/files/mhwepg/loadepg.pl
patch < mhwepg-0.4.2.diff</pre>
+
install -m 755 loadepg.pl mhwepg /usr/local/bin
 +
</pre>
 +
 
 
==Konfiguration==
 
==Konfiguration==
 
Einträge [[commands.conf]]
 
Einträge [[commands.conf]]
 
   
 
   
  [http://jrepetto.free.fr/cd/index.htm Canal Digitaal (Netherlands)]  : echo "cd $SOURCEDIR/mhwepg && ./loadepg.pl -d localhost -p 2001 -s S19.2E -f 12515"|at now
+
  [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 "cd $SOURCEDIR/mhwepg && ./loadepg.pl -d localhost -p 2001 -s S19.2E -f 10847"|at now
+
  [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/csn/index.htm Canal+/CanalSatellite (France)] : echo "cd $SOURCEDIR/mhwepg && ./loadepg.pl -d localhost -p 2001 -s S19.2E -f 12363"|at now
+
  [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/telepiu/index.htm Sky (Italia)]                  : echo "cd $SOURCEDIR/mhwepg && ./loadepg.pl -d localhost -p 2001 -s S13.0E -f 11880"|at now
+
  [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
  [http://jrepetto.free.fr/cyfra/index.htm Cyfra+ (Poland)]                : echo "cd $SOURCEDIR/mhwepg && ./loadepg.pl -d localhost -p 2001 -s S13.0E -f 10719"|at now
+
 
 +
Die '''loadepg.pl''' ist anzupassen.
 +
 
 +
'''Winterzeit'''
 +
 
 +
system( "mhwepg -t '''3600''' -o /tmp/epg.tmp &>/var/log/mhwepg.log" );
 +
 
 +
'''Sommerzeit'''
 +
 
 +
system( "mhwepg -t '''7200''' -o /tmp/epg.tmp &>/var/log/mhwepg.log" );
  
Viel verkehrt kann man nicht machen, der mhwepg.log ist unter /var/log zu finden, bei Erfolg:
 
<pre>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</pre>
 
Auslagerort ist '''/tmp:/var''' beides ist in der '''loadepg.p'''l definiert, und kann dort angepasst werden:
 
<pre>system( "./mhwepg -o /tmp/epg.tmp &>/var/log/mhwepg.log" );
 
                    ^^^^^^^^^^^^  ^^^^^^^^^^^^^^^^^^^
 
....
 
open( FILE, "/tmp/epg.tmp" );
 
            ^^^^^^^^^^^^</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.
Zeile 67: Zeile 68:
 
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....
 
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....
  
==Links==
+
Wer trotzdem noch Probleme hat, EPG-Informationen zu empfangen, kann versuchen das Modul 'dvb-core' mit der Option 'dvb_shutdown_timeout=0' zu laden. Dadurch soll verhindert werden, dass die Karte nach kurzer Zeit das Signal verliert.
{|
+
 
| [1]
+
==Optionen==
| http://jrepetto.free.fr
+
{| border=1 cellpadding=2 cellspacing=0
| Homepage Mhwepg
+
|- bgcolor=#efefef
 +
!Parameter
 +
!Beschreibung
 
|-
 
|-
| [2]
+
| -a <adapter number> || Number of the DVB adapter (default : 0)
| http://www.www.lukkinosat.altervista.org/loadepg-0.4.tar.bz2
+
|-
| Aktuelle Scripts
+
| -d <demux number>  || Number of the DVB demux (default : 0)
 +
|-
 +
| -s <source>        || Name of the source, as defined by the "sources.conf' file of VDR. If no source is specified, only the SID will be written to the output file.
 +
|-
 +
| -e <file>          || Name of the file containing the channels equivalences.
 +
|-
 +
| -t number          || local time offset (in seconds)
 +
|-
 +
| -o <output file>    || Output file (default: stdout)
 +
|-
 +
| -l                  || Send the channels list to stderr
 +
|-
 +
| -h                  || Help
 
|}
 
|}
 +
 +
==Links==
 +
# [http://jrepetto.free.fr Homepage Mhwepg]
 +
# {{spiegel 1|mhwepg}}
 +
 +
[[Kategorie:EPG und Co]]
 +
{{i18n|Mhwepg}}

Aktuelle Version vom 19. Oktober 2009, 16:14 Uhr

Inhaltsverzeichnis

[Bearbeiten] 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.

Die Canal+ Group besteht derzeit aus: Canal Digitaal (Netherlands) Canal+/CanalSatellite (France) Sky (Italia) Cyfra+ (Poland)

Mhwepg bringt die Daten in ein VDR konformes Format.

[Bearbeiten] Kanäle

Canal Satellite Numérique
Canal Digitaal
Sky Italia
Cyfra+

[Bearbeiten] Hardwareanforderungen

  • DVB(s)

[Bearbeiten] Softwareanforderungen

  • mhwepg
  • loadepg
  • perl
  • at (Job-Manager)

[Bearbeiten] Installation

cd $SOURCEDIR
wget http://jrepetto.free.fr/mhwepg-<VERSION>.tar.gz
tar zxvf mhwepg-<VERSION>.tar.gz
cd mhwepg-<VERSION>
make
wget http://gentoo.fh-luh.de/files/mhwepg/loadepg.pl
install -m 755 loadepg.pl mhwepg /usr/local/bin

[Bearbeiten] 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
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

Die loadepg.pl ist anzupassen.

Winterzeit

system( "mhwepg -t 3600 -o /tmp/epg.tmp &>/var/log/mhwepg.log" );

Sommerzeit

system( "mhwepg -t 7200 -o /tmp/epg.tmp &>/var/log/mhwepg.log" );

[Bearbeiten] 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....

Wer trotzdem noch Probleme hat, EPG-Informationen zu empfangen, kann versuchen das Modul 'dvb-core' mit der Option 'dvb_shutdown_timeout=0' zu laden. Dadurch soll verhindert werden, dass die Karte nach kurzer Zeit das Signal verliert.

[Bearbeiten] Optionen

Parameter Beschreibung
-a <adapter number> Number of the DVB adapter (default : 0)
-d <demux number> Number of the DVB demux (default : 0)
-s <source> Name of the source, as defined by the "sources.conf' file of VDR. If no source is specified, only the SID will be written to the output file.
-e <file> Name of the file containing the channels equivalences.
-t number local time offset (in seconds)
-o <output file> Output file (default: stdout)
-l Send the channels list to stderr
-h Help

[Bearbeiten] Links

  1. Homepage Mhwepg
In anderen Sprachen