[mythtv-users] German tv_grab_de

Arnd Münzebrock ClumsieRW at gmx.net
Thu Jun 19 20:13:27 EDT 2003


Hans Hansen wrote:
> Hi,
> 
> sorry to post this question again, but i can't seem to get it done
> right. I am running mythtv v.0.9.1 on a linuxfromscratch-system. Thanks
> to the great support on the mailing-list-archives I was able to get
> mythtv up and running.
> 
> Here is the (already posted and answered) problem that i can't solve:

[...]

> Would some user who is using tv_grab_de successfully please be so kind
> to give me any hints/tips how i can get this working? A mysql-dump
> would of course be the best (since i might be to bugtrace and/or write
> my own tool), but i appreciate any possible solutions. Also any kind of
> hints on your naming of the channels would be nice, since this may be a
> problem too.

Because of the problems with tv_grab_de I switched to nxtvepg. This tool 
grabs the epg-data that is broadcasted by RTL2 3sat and Kabel1 and is 
able to export it in XML. It is configured to start at boottime in 
daemon mode and doesn't interrupt other applications, that are using the 
tv-device. A cron-job is used to generate an xml-dumb of the 
nxtvepg-database and this file is then passed to mythfilldatabase. If 
you want to use this, you have to name your channels according to the 
channel-ids in nxtvepg. These id's can be easily get from the first 
lines of xml-dumb.

My channel-table:

+--------+---------+----------+-----------+-----------+------+----------+--------------+-------------------+----------+------------+--------+
| chanid | channum | sourceid | callsign  | name      | icon | finetune 
| videofilters | xmltvid           | contrast | brightness | colour |
+--------+---------+----------+-----------+-----------+------+----------+--------------+-------------------+----------+------------+--------+
|   1000 | E2      |        1 | ARD       | ARD       |      |        0 
| NULL         | CNI0DC1           |    32768 |      32768 |  32768 |
|   1001 | E4      |        1 | ZDF       | ZDF       |      |        0 
| NULL         | CNI0DC2           |    32768 |      32768 |  32768 |
|   1002 | E8      |        1 | WDR       | WDR       |      |        0 
| NULL         | CNI0DE6           |    32768 |      32768 |  32768 |
|   1003 | E11     |        1 | VOX       | VOX       |      |        0 
| NULL         | CNI0D8E           |    32768 |      32768 |  32768 |
|   1004 | E10     |        1 | Sat1      | Sat1      |      |        0 
| NULL         | CNI0DB9           |    32768 |      32768 |  32768 |
|   1005 | E5      |        1 | RTL       | RTL       |      |        0 
| NULL         | CNI0DAB           |    32768 |      32768 |  32768 |
|   1006 | SE13    |        1 | ProSieben | ProSieben |      |        0 
| NULL         | CNI0D94           |    32768 |      39318 |  32768 |
|   1007 | E3      |        1 | Kabel1    | Kabel1    |      |        0 
| NULL         | CNI0D92           |    32768 |      32768 |  32768 |
|   1008 | SE7     |        1 | RTL2      | RTL2      |      |        0 
| NULL         | CNI0D8F           |    32768 |      44558 |  32768 |
|   1009 | E6      |        1 | N24       | N24       |      |        0 
| NULL         | CNI0D7A           |    32768 |      32768 |  32768 |
|   1010 | E7      |        1 | SWR       | SWR       |      |        0 
| NULL         | CNI0DCF           |    32768 |      32768 |  32768 |
|   1011 | E9      |        1 | 3SAT      | 3SAT      |      |        0 
| NULL         | CNI0DC7           |    32768 |      32768 |  32768 |
|   1012 | SE4     |        1 | BBC       | BBC       |      |        0 
| NULL         | BBC World         |    32768 |      32768 |  32768 |
|   1013 | SE6     |        1 | QVC       | QVC       |      |        0 
| NULL         | QVC               |    32768 |      32768 |  32768 |
|   1014 | SE8     |        1 | ntv       | ntv       |      |        0 
| NULL         | CNI0D8C           |    32768 |      32768 |  32768 |
|   1015 | SE9     |        1 | superRTL  | superRTL  |      |        0 
| NULL         | CNI0D8A           |    32768 |      32768 |  32768 |
|   1016 | SE10    |        1 | journaal  | journaal  |      |        0 
| NULL         | journaal          |    32768 |      32768 |  32768 |
|   1017 | SE11    |        1 | DSF       | DSF       |      |        0 
| NULL         | CNI0D8D           |    32768 |      32768 |  32768 |
|   1018 | SE12    |        1 | RTBF1     | RTBF1     |      |        0 
| NULL         | RTBF1             |    32768 |      32768 |  32768 |
|   1019 | SE14    |        1 | BR        | BR        |      |        0 
| NULL         | CNI0DCB           |    32768 |      32768 |  32768 |
|   1020 | SE15    |        1 | Holland1  | Holland1  |      |        0 
| NULL         | Holland 1         |    32768 |      32768 |  32768 |
|   1021 | SE16    |        1 | Eurosport | Eurosport |      |        0 
| NULL         | CNI0D91           |    32768 |      32768 |  32768 |
|   1022 | SE17    |        1 | arte      | arte      |      |        0 
| NULL         | CNI0D85           |    32768 |      32768 |  32768 |
|   1023 | SE18    |        1 | MTV       | MTV       |      |        0 
| NULL         | CNIFFEF           |    32768 |      32768 |  32768 |
|   1024 | SE19    |        1 | Phoenix   | Phoenix   |      |        0 
| NULL         | CNI0DC8           |    32768 |      32768 |  32768 |
|   1025 | SE20    |        1 | nrwTV     | nrwTV     |      |        0 
| NULL         | nrw TV            |    32768 |      32768 |  32768 |
|   1026 | S21     |        1 | NDR       | NDR       |      |        0 
| NULL         | CNI0DD4           |    32768 |      32768 |  32768 |
|   1027 | S22     |        1 | CNN       | CNN       |      |        0 
| NULL         | CNN International |    32768 |      32768 |  32768 |
|   1028 | S24     |        1 | NBC       | NBC       |      |        0 
| NULL         | NBC               |    32768 |      32768 |  32768 |
|   1029 | S25     |        1 | VivaPlus  | VivaPlus  |      |        0 
| NULL         | Viva Plus         |    32768 |      32768 |  32768 |
|   1030 | S35     |        1 | HOT       | HOT       |      |        0 
| NULL         | HOT               |    32768 |      32768 |  32768 |
|   1031 | SE5     |        1 | TRT       | TRT       |      |        0 
| NULL         | CNI9001           |    32768 |      32768 |  32768 |
|   1032 | E12     |        1 | Viva      | Viva      |      |        0 
| NULL         | CNI0D88           |    32768 |      32768 |  32768 |
|   1033 | SE17    |        1 | KiKa      | KiKa      |      |        0 
| NULL         | CNI0DC9           |    32768 |      32768 |  32768 |
+--------+---------+----------+-----------+-----------+------+----------+--------------+-------------------+----------+------------+--------+

In addition the init.d-script to start nxtvepg and the cronjob-script 
are attached.

> Thank you very much in advance and sorry again for posting this
> question again in the list, but i have lost sooo many hairs since i
> tried to get it going (which was 1 week ago).
> 
> Hans


Hope that helps,
	Arnd
-- 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Arnd Münzebrock                                      ClumsieRW at gmx.net
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Seit ich das Alphabet kenne, versuche ich es zu benutzen...
-------------- next part --------------
#! /bin/sh
#
# nxtvepg program-guide grabber (daemon-mode)
#
# Based on:
#
# skeleton      example file to build /etc/init.d/ scripts.
#               This file should be used to construct scripts for /etc/init.d.
#
#               Written by Miquel van Smoorenburg <miquels at cistron.nl>.
#               Modified for Debian GNU/Linux
#               by Ian Murdock <imurdock at gnu.ai.mit.edu>.
#
# Version:      @(#)skeleton  1.9.1  08-Apr-2002  miquels at cistron.nl
#               self-made 30.5.2003 Mün 

PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
DAEMON=/usr/bin/nxtvepg
NAME="nxtvepg-daemon"
DESC="NxTVepg-Daemon-Mode"

test -x $DAEMON || exit 0

set -e

USER=mythtv

ARGS="-rcfile /home/mythtv/.nxtvepgrc -daemon"

case "$1" in
  start)
        echo -n "Starting $DESC: $NAME"
        start-stop-daemon --start --chuid $USER --exec $DAEMON -- $ARGS
        echo "."
        ;;
  stop)
        echo -n "Stopping $DESC: $NAME "
        start-stop-daemon --stop --oknodo --chuid $USER --exec $DAEMON -- $ARGS
        echo "."
        ;;
  restart|force-reload)
        echo -n "Restarting $DESC: $NAME"
        start-stop-daemon --stop --oknodo --chuid $USER --exec $DAEMON -- $ARGS
        echo "."
        sleep 3
        start-stop-daemon --start --chuid $USER --exec $DAEMON -- $ARGS
        echo "."
        ;;
  *)
        N=/etc/init.d/$NAME
        # echo "Usage: $N {start|stop|restart|reload|force-reload}" >&2
        echo "Usage: $N {start|stop|restart|force-reload}" >&2
        exit 1
        ;;
esac

exit 0
-------------- next part --------------
#!/bin/sh
su mythtv -c "nxtvepg -dump xml -provider FF > /tmp/nxtvepg-report.xml"
sleep 10
su mythtv -c "mythfilldatabase --quiet --update --file 1 -1 /tmp/nxtvepg-report.xml"


More information about the mythtv-users mailing list