[Freevo-users] TV Dvbstreamer Livepause error
Hello all, I'm using Freevo since 2 weeks ago. I configured all except TV and I can't get it to work. I use Debian and I installed Freevo from .deb packages (version is 1.9.0). In my computer there is a DVB-T card Hauppauge NOVA-TD-500 that is correctly configured and working (tested with Kaffeine, and is a dual dvb-t card). I Installed from source Dvbstreamer1.2 and Livepause. I ran $setupdvbstreamer –T channel.conf to configure and I tested Dvbstreamer with these commands: on first terminal window $dvbstreamer -o udp://127.0.0.1:1234 -a 0 and then $dvbstreamer>select LA7 (LA7 is a channel name) on a second terminal window $xine udp://127.0.0.1:1234 and It works because it opens Xine showing live TV from Dvbstreamer. I builded a TV.xml file for Freevo by using this script: #!/bin/bash DVBCTRL="/usr/local/bin/dvbctrl -u dvbstreamer -p control" DELAY=300 XMLTVFILE=/tmp/TV.xml #start dvbstreamer dvbstreamer -a 0 -d # wait for recording/streaming to stop until $DVBCTRL lssfs |grep -q null do sleep 30 done # Cycle through transponders $DVBCTRL lsservices|sort |uniq -w 2 | while read service; do $DVBCTRL select "$service" sleep $DELAY done # Dump listings to file $DVBCTRL dumpxmltv > $XMLTVFILE killall dvbstreamer exit 0 I also builded a channel list for Freevo local_conf.py by using this script: #!/bin/bash dvbstreamer -a 0 -d dvbctrl lsservices -- -id | awk 'BEGIN {FS=" : "} {print $1}' | sed "s/^/ ( '/g" | sed "s/$/',/g" > /tmp/column1 dvbctrl lsservices -- -id | awk 'BEGIN {FS=" : "} {print $2}' | sed "s/^/'/g" | sed "s/$/',/g" > /tmp/column2 dvbctrl lsservices -- -id | awk 'BEGIN {FS=" : "} {print $1}' | sed "s/^/'/g" | sed "s/$/'),/g" > /tmp/column3 echo "TV_CHANNELS = [" paste /tmp/column1 /tmp/column2 /tmp/column3 echo "]" killall dvbstreamer exit 0 and then pasting the output into local_conf.py I run freevo as my user so I added my user to Freevo group Here is an extract from local_conf.py relative to TV configuration: # == # Freevo TV settings: # == TV_RECORD_DIR = '/mnt/windows/Documents and Settings/All Users/Documenti/Video' # Watching TV # #TV_SETTINGS = 'pal television italy /dev/dvb/adapter0/frontend0' # eg: TV_SETTINGS = 'ntsc television us-cable /dev/video0' #TV_DRIVER = 'v4l2' #TV_DEVICE = '/dev/dvb/adapter0/frontend0' #TV_INPUT = 0 plugin.remove('tv.mplayer') plugin.activate('tv.livepause') LIVE_PAUSE2_BUFFER_SIZE= 2048 # Size of the live buffer in MB. (Default 2GB) LIVE_PAUSE2_BUFFER_PATH='/tmp/freevo-live.buf' # Location of the live buffer. LIVE_PAUSE2_PREFERRED_PLAYER='xine' LIVE_PAUSE2_BUFFER_TIMEOUT=30 plugin.remove('tv.generic_record') plugin_record = plugin.activate('tv.dvbstreamer.record') TV_VIDEO_GROUPS = [ VideoGroup(vdev='0', group_type='dvb', desc='Watching Video Group', record_group=None) # VideoGroup(vdev='1', # group_type='dvb', # desc='Recording Video Group', # record_group=1), ] # TV_CHANNELS = [ ( '217c.6825.0043', 'Canale 10 sport', '217c.6825.0043'), … ( '.6825.038c', '038c', '.6825.038c') ] # TV_CHANNELS = None XMLTV_GRABBER = '/usr/bin/tv_grab_it' XMLTV_SORT = '/usr/bin/tv_sort' XMLTV_DAYS = 7 XMLTV_FILE = '/tmp/TV.xml' --- So before I start Freevo I check if exists /tmp/TV.xml then I start Dvbstreamer: $dvbstreamer -a 0 -d and when I run freevo and select “Watch TV” and then “TV Guide” I can see the channel list but the program guide is empty (surely because the TV.xml file contains only channel's name and no program information) and if I select a channel the screen goes black with an empty progress bar and something like “tuning channel” then nothing more happens and I must go back to the channel list. If I quit Freevo I can see this log on terminal window (I always start Freevo from terminal): You are not part of the group 'freevo', you cannot exploit shared resources (such as the cache). Your data will be saved in /home/gto/.freevo /usr/lib/python2.6/dist-packages/kaa/metadata/disc/cdrom.py:37: DeprecationWarning: the md5 module is deprecated; use hashlib instead import md5 ROM_DRIVES: Auto-detected and added "('/media/cdrom0', '/dev/cdrom', 'CD-1')" version: 1.9.0 plugin dialog.x11_overlay_display deactivated, reason: kaa.display is not installed Freevo 1.9.0 ready Traceback (most recent call last): File "/usr/share/pyshared/freevo/tv/plugins/livepause/controllers.py", line 131, in start_filling self.manager.select(device, channel) File "/usr/share/pyshared/freevo/tv/plugins/dvbstreamer/manager.py", line 86, in select controller.set_current_servic
Re: [Freevo-users] TV Dvbstreamer Livepause error
On Tue, 2 Nov 2010 07:51:20 +0100 Leonardo Calamai wrote: > I'm using Freevo since 2 weeks ago. I configured all except TV and I > can't get it to work. > > I use Debian and I installed Freevo from .deb packages (version is > 1.9.0). > > In my computer there is a DVB-T card Hauppauge NOVA-TD-500 that is > correctly configured and working (tested with Kaffeine, and is a dual > dvb-t card). > > I Installed from source Dvbstreamer1.2 and Livepause. Try using another means to get the TV - DVB streamer is not what I am using for 1.9.0 http://doc.freevo.org/DVBConfig install mplayer and mencoder from apt You also need a Tv guide source, and what is best depends on where you live. -- Nokia and AT&T present the 2010 Calling All Innovators-North America contest Create new apps & games for the Nokia N8 for consumers in U.S. and Canada $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store http://p.sf.net/sfu/nokia-dev2dev ___ Freevo-users mailing list Freevo-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freevo-users
Re: [Freevo-users] TV Dvbstreamer Livepause error
Hi Leonardo, I didn't take a deep look at your configuration, but when you followed the Wiki about configuring livepause2, that should be fine. I'm running such s setup quite happily for a while, but there is one thing that didn't work, when I set it up at first: For some reason livepause / dvbstreamer couldn't resolve localhost to the correct address even though all other standard programs could. When I used VideoGroup(vdev='127.0.0.1:0' [...] in my config, everything worked fine. I'm at work, so I can't post my complete config, but currently I'm even running dvbstreamer on a different machine in my network, which works perfectly as well. Maybe this is what you are facing, too. Cheers, Manuel -- Manuel Borchers Web: http://www.matronix.de eMail: man...@matronix.de -- Nokia and AT&T present the 2010 Calling All Innovators-North America contest Create new apps & games for the Nokia N8 for consumers in U.S. and Canada $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store http://p.sf.net/sfu/nokia-dev2dev ___ Freevo-users mailing list Freevo-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freevo-users
Re: [Freevo-users] TV Dvbstreamer Livepause error
Hi Leonardo, On Tue, 2 Nov 2010, Leonardo Calamai wrote: plugin.remove('tv.mplayer') plugin.activate('tv.livepause') LIVE_PAUSE2_BUFFER_SIZE= 2048 # Size of the live buffer in MB. (Default 2GB) LIVE_PAUSE2_BUFFER_PATH='/tmp/freevo-live.buf' # Location of the live buffer. LIVE_PAUSE2_PREFERRED_PLAYER='xine' LIVE_PAUSE2_BUFFER_TIMEOUT=30 plugin.remove('tv.generic_record') plugin_record = plugin.activate('tv.dvbstreamer.record') TV_VIDEO_GROUPS = [ VideoGroup(vdev='0', group_type='dvb', desc='Watching Video Group', record_group=None) # VideoGroup(vdev='1', # group_type='dvb', # desc='Recording Video Group', # record_group=1), ] # TV_CHANNELS = [ ( '217c.6825.0043', 'Canale 10 sport', '217c.6825.0043'), … ( '.6825.038c', '038c', '.6825.038c') ] # TV_CHANNELS = None XMLTV_GRABBER = '/usr/bin/tv_grab_it' XMLTV_SORT = '/usr/bin/tv_sort' XMLTV_DAYS = 7 XMLTV_FILE = '/tmp/TV.xml' --- This all looks fine. So before I start Freevo I check if exists /tmp/TV.xml then I start Dvbstreamer: $dvbstreamer -a 0 -d and when I run freevo and select “Watch TV” and then “TV Guide” I can see the channel list but the program guide is empty (surely because the TV.xml file contains only channel's name and no program information) and if I select a channel the screen goes black with an empty progress bar and something like “tuning channel” then nothing more happens and I must go back to the channel list. If I quit Freevo I can see this log on terminal window (I always start Freevo from terminal): You are not part of the group 'freevo', you cannot exploit shared resources (such as the cache). Your data will be saved in /home/gto/.freevo /usr/lib/python2.6/dist-packages/kaa/metadata/disc/cdrom.py:37: DeprecationWarning: the md5 module is deprecated; use hashlib instead import md5 ROM_DRIVES: Auto-detected and added "('/media/cdrom0', '/dev/cdrom', 'CD-1')" version: 1.9.0 plugin dialog.x11_overlay_display deactivated, reason: kaa.display is not installed Freevo 1.9.0 ready Traceback (most recent call last): File "/usr/share/pyshared/freevo/tv/plugins/livepause/controllers.py", line 131, in start_filling self.manager.select(device, channel) File "/usr/share/pyshared/freevo/tv/plugins/dvbstreamer/manager.py", line 86, in select controller.set_current_service(channel) File "/usr/share/pyshared/freevo/tv/plugins/dvbstreamer/comms.py", line 90, in set_current_service raise RuntimeError, errmsg RuntimeError: Service not found! Hmmm. this is the cause of the problem, DVBStreamer is reporting that the service freevo asked to tune to doesn't exist. Can you run dvbstreamer with -v and then send the log file direct to me (~/.dvbstreamer/dvbstreamer-0.log). That should give me a clue whether its DVBStreamer or freevo at fault here. By the way which version of dvbstreamer are you using? I guess version 1.1? Cheers Adam-- Nokia and AT&T present the 2010 Calling All Innovators-North America contest Create new apps & games for the Nokia N8 for consumers in U.S. and Canada $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store http://p.sf.net/sfu/nokia-dev2dev___ Freevo-users mailing list Freevo-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freevo-users
Re: [Freevo-users] TV Dvbstreamer Livepause error
Thank you all For Elizabeth: I live in Italy and I 'm not able to use properly tv_grab_it or tv_grab_it_dvb, but I can use successfully dvbstreamer on its own and I just can't use it to cooperate with freevo For Manuel: I already tried what you suggest to me and it didn't work for me. For Adam: Maybe you missed a part of the message: DVBstreamer is version 1.2 compiled from source (I was not able to compile 2.0RC) and it's working on its own. I will send you dvbstreamer-0.log to your email address. Bye -- Leonardo Calamai -- Nokia and AT&T present the 2010 Calling All Innovators-North America contest Create new apps & games for the Nokia N8 for consumers in U.S. and Canada $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store http://p.sf.net/sfu/nokia-dev2dev___ Freevo-users mailing list Freevo-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freevo-users
Re: [Freevo-users] TV Dvbstreamer Livepause error
Leonardo Calamai writes: > I live in Italy and I 'm not able to use properly tv_grab_it or > tv_grab_it_dvb, but I can use successfully dvbstreamer on its own and I just > can't use it to cooperate with freevo I live in Italy too and I cannot use tv_grab_it but I did not studied really the problem: what problem do you have? [...] -- Ciao leandro http://oivabkctz4ajdnwa.onion/blog/ gpg fingerprint: 54A4 2612 FD50 0313 7FED 6A91 DA5C 1552 E7A4 D6C2 pgpsjuUXekyfY.pgp Description: PGP signature -- Nokia and AT&T present the 2010 Calling All Innovators-North America contest Create new apps & games for the Nokia N8 for consumers in U.S. and Canada $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store http://p.sf.net/sfu/nokia-dev2dev___ Freevo-users mailing list Freevo-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freevo-users
Re: [Freevo-users] TV Dvbstreamer Livepause error
Ciao, Il problema è per tv_grab_it che trova solo pochi canali e tra l'altro sono canali di sky di cui non me ne faccio nulla avendo solo dvb-t senza canali a pagamento, mentre tv_grab_it_dvb è per il dvb-s quindi di nuovo non me ne faccio nulla. Grazie per l'interessamento Hallo, The problem for tv_grab_it is that it find few channels and many of these few are payperview, tv_grab_it_dvb work for dvb-s and I have only dvb-t. Thank you Il giorno 02 novembre 2010 19:41, Leandro sullo sgorbio < lnofe...@cybervalley.org> ha scritto: > Leonardo Calamai writes: > > > I live in Italy and I 'm not able to use properly tv_grab_it or > > tv_grab_it_dvb, but I can use successfully dvbstreamer on its own and I > just > > can't use it to cooperate with freevo > > I live in Italy too and I cannot use tv_grab_it but I did not studied > really the problem: what problem do you have? > > [...] > > > -- > Ciao > leandro > http://oivabkctz4ajdnwa.onion/blog/ > gpg fingerprint: 54A4 2612 FD50 0313 7FED 6A91 DA5C 1552 E7A4 D6C2 > > > -- > Nokia and AT&T present the 2010 Calling All Innovators-North America > contest > Create new apps & games for the Nokia N8 for consumers in U.S. and Canada > $10 million total in prizes - $4M cash, 500 devices, nearly $6M in > marketing > Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store > http://p.sf.net/sfu/nokia-dev2dev > ___ > Freevo-users mailing list > Freevo-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/freevo-users > > -- Leonardo Calamai -- Nokia and AT&T present the 2010 Calling All Innovators-North America contest Create new apps & games for the Nokia N8 for consumers in U.S. and Canada $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store http://p.sf.net/sfu/nokia-dev2dev___ Freevo-users mailing list Freevo-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freevo-users
Re: [Freevo-users] TV Dvbstreamer Livepause error
Leonardo Calamai wrote: > Hallo, > > The problem for tv_grab_it is that it find few channels and many of > these few are payperview, tv_grab_it_dvb work for dvb-s and I have > only dvb-t. > Thank you > Hi Leonardo, I can assure tv_grab_it works pretty well and provides data for all the major freeview channels available in Italy, I'm using it on a daily basis ;) Debian ships a quite old version of xmltv, which is no longer working for Italy. You should manually download and install a nightly snapshot from http://snapshot.xmltv.org I'm currently using: i...@htpc:~$ tv_grab_it --version XMLTV module version 0.5.58 This is tv_grab_it.in version 1.93, 2010/09/14 21:56:14 Cheers, izio -- Nokia and AT&T present the 2010 Calling All Innovators-North America contest Create new apps & games for the Nokia N8 for consumers in U.S. and Canada $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store http://p.sf.net/sfu/nokia-dev2dev ___ Freevo-users mailing list Freevo-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freevo-users
Re: [Freevo-users] TV Dvbstreamer Livepause error
Thanks for the log Leonardo, On Tue, 2010-11-02 at 18:11 +0100, Leonardo Calamai wrote: > Here is the log file obtained with -v option. > > I started dvbstreamer with: > $dvbstreamer -a 0 -d -v > then I started Freevo and I tried to watch a channel without success. > Right I can see the reason for it not to work but I don't know why. The select line being sent to dvbstreamer includes "" around the channel name. DVBStreamer 1.x won't handle this correctly and will think it is actually part of the channel name. Now I've checked the repository and none of the code for Freevo 1.9.0 would add this to the channel name and since the channel names in your example local_conf.py didn't include this, it makes me think this is a debian fix. I've just found the problem in the debian package, can you edit the file in /usr/share/pyshared/freevo/tv/plugins/dvbstreamer/comms.py, change line 88 from: (errcode, errmsg, msg) = self.execute_command('select "' + service + '"', True) to: (errcode, errmsg, msg) = self.execute_command('select ' + service, True) and it should work correctly. Cheers Adam -- Nokia and AT&T present the 2010 Calling All Innovators-North America contest Create new apps & games for the Nokia N8 for consumers in U.S. and Canada $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store http://p.sf.net/sfu/nokia-dev2dev ___ Freevo-users mailing list Freevo-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freevo-users
Re: [Freevo-users] TV Dvbstreamer Livepause error
I'll try the last version. Thank you 2010/11/2 Fabrizio Ferraro > Leonardo Calamai wrote: > > Hallo, > > > > The problem for tv_grab_it is that it find few channels and many of > > these few are payperview, tv_grab_it_dvb work for dvb-s and I have > > only dvb-t. > > Thank you > > > > Hi Leonardo, > I can assure tv_grab_it works pretty well and provides data for all the > major freeview channels available in Italy, I'm using it on a daily basis > ;) > Debian ships a quite old version of xmltv, which is no longer working > for Italy. > You should manually download and install a nightly snapshot from > http://snapshot.xmltv.org > > I'm currently using: > i...@htpc:~$ tv_grab_it --version > XMLTV module version 0.5.58 > This is tv_grab_it.in version 1.93, 2010/09/14 21:56:14 > > Cheers, > izio > > > -- > Nokia and AT&T present the 2010 Calling All Innovators-North America > contest > Create new apps & games for the Nokia N8 for consumers in U.S. and Canada > $10 million total in prizes - $4M cash, 500 devices, nearly $6M in > marketing > Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store > http://p.sf.net/sfu/nokia-dev2dev > ___ > Freevo-users mailing list > Freevo-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/freevo-users > -- Leonardo Calamai -- Achieve Improved Network Security with IP and DNS Reputation. Defend against bad network traffic, including botnets, malware, phishing sites, and compromised hosts - saving your company time, money, and embarrassment. Learn More! http://p.sf.net/sfu/hpdev2dev-nov___ Freevo-users mailing list Freevo-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freevo-users
Re: [Freevo-users] TV Dvbstreamer Livepause error
Now it works :) Thank you very much Adam 2010/11/2 Adam Charrett > Thanks for the log Leonardo, > > On Tue, 2010-11-02 at 18:11 +0100, Leonardo Calamai wrote: > > Here is the log file obtained with -v option. > > > > I started dvbstreamer with: > > $dvbstreamer -a 0 -d -v > > then I started Freevo and I tried to watch a channel without success. > > > > Right I can see the reason for it not to work but I don't know why. > The select line being sent to dvbstreamer includes "" around the channel > name. DVBStreamer 1.x won't handle this correctly and will think it is > actually part of the channel name. Now I've checked the repository and > none of the code for Freevo 1.9.0 would add this to the channel name and > since the channel names in your example local_conf.py didn't include > this, it makes me think this is a debian fix. > > I've just found the problem in the debian package, can you edit the file > in /usr/share/pyshared/freevo/tv/plugins/dvbstreamer/comms.py, change > line 88 from: > >(errcode, errmsg, msg) = self.execute_command('select "' + > service + '"', True) > > to: >(errcode, errmsg, msg) = self.execute_command('select ' + > service, True) > > and it should work correctly. > > Cheers > > Adam > > > > -- > Nokia and AT&T present the 2010 Calling All Innovators-North America > contest > Create new apps & games for the Nokia N8 for consumers in U.S. and Canada > $10 million total in prizes - $4M cash, 500 devices, nearly $6M in > marketing > Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store > http://p.sf.net/sfu/nokia-dev2dev > ___ > Freevo-users mailing list > Freevo-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/freevo-users > -- Leonardo Calamai -- Achieve Improved Network Security with IP and DNS Reputation. Defend against bad network traffic, including botnets, malware, phishing sites, and compromised hosts - saving your company time, money, and embarrassment. Learn More! http://p.sf.net/sfu/hpdev2dev-nov___ Freevo-users mailing list Freevo-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freevo-users