Rob Davis wrote:
John Molohan wrote:

Rob Davis wrote:

We finally got a Sat dish put up to get English TV in Italy.

I have a pci dvb-s card that works more or less with freevo. The dish is pointing at only the UK Satellite, so will only receive those programmes - ie, not the Italian Free to Air channels, hence the second question.

What I would like to know is:

1. Is it possible to have two xmltv sources (tv_grab_uk_rt) and (tv_grab_it) into Freevo?



I don't see why not. You'd just append the output of one onto the other. It would mean that you couldn't use freevo's internal tv_grab helper though unless you want to add support to it :)


Rob mentioned tv_cat which does the job nicely.



2. Can I mix a dvb input with a tv card at the same time?



AFAIK not in 1.5 but you will be able to in v2. There is one option that will work and that is you can use one as your recording device and one as your viewing device.


Not really what I was after, as the Sat is pointing at UK TV, and the tv card has Italian.. Maybe I'll look at the source and see if it can be hacked... :-)




I have commented out the old TV Card settings is local_conf.py

As an aside, I need to run the output of TV.xml through sed to change all the UTC references to +0000 to get the web interface working and the correct time as my pc is set on CET.







To follow up my own post, in case someone is searching an archive. I have managed to get this working thanks to

http://www.xiaprojects.com/www/manuali/freevo/main.php?action=index

Anyway, it required the mplayer patch described above, and found here:

http://www.xiaprojects.com/www/manuali/freevo/mplayer.py

and the following changes to local_conf.py


VCR_CMD = (CONF.mencoder + ' ' +
            '"%(channel)s" ' +
'"%(seconds)s" ' + # only mencoder uses this so do it here
            '"%(filename)s"')         # Filled in by Freevo

VIDEO_GROUPS = [
     VideoGroup(vdev=TV_DEVICE,
                adev=AUDIO_DEVICE,
                input_type='1',
                tuner_norm=CONF.tv,
                tuner_chanlist=CONF.chanlist,
                tuner_type='internal',
                desc='Default Video Group',
                 group_type='tvpippoplutoanything',
                 recordable=True),
     VideoGroup(vdev='/dev/null',
                 adev='/dev/dsp',
                 input_type='tuner',
                 input_num=4,
                 tuner_type='internal',
                 desc='DVB',
                 group_type='dvb',
                 recordable=True), ]
TV_CHANNELS = [
               ('west.bbc1.bbc.co.uk', 'BBC 1', 'BBC 1 West',0,1),
               ('london.bbc2.bbc.co.uk', 'BBC 2', 'BBC 2 England',0,1),
               ('carlton.com', 'ITV 1', 'ITV1 London',0,1),
               ('channel4.com', 'CHANNEL 4', 'Channel 4',0,1), # Encoded
               ('channel5.co.uk','five','five',0,1), # Encoded
               ('e4.channel4.com', 'E4', 'E4',0,1), #Encoded
               ('itv2.itv.co.uk','ITV2','ITV2',0,1),
               ('itv3.itv.co.uk','ITV3','ITV3',0,1),
               ('C1961.radiotimes.com','ITV4','ITV4',0,1),
               ('choice.bbc.co.uk','BBC3','BBC THREE',0,1),
               ('knowledge.bbc.co.uk','BBC4','BBC FOUR',0,1),
               ('cbbc.bbc.co.uk','CBBC','CBBC Channel',0,1),
               ('cbeebies.bbc.co.uk','CBeeBies','CBeebies',0,1),
               ('god.tv','GOD Channel','GOD Channel',0,1),
               ('itn.co.uk','ITV News','ITV News',0,1),
               ('news-24.bbc.co.uk','BBC NEWS 24','BBC NEWS 24',0,1),
                ('www.raiuno.rai.it', 'Rai Uno', 'Rai Uno'),
                ('www.raidue.rai.it', 'Rai Due', 'Rai Due'),
                ('www.raitre.rai.it', 'Rai Tre', 'Rai Tre'),
                ('www.rete4.com', 'Rete 4', 'Rete 4'),
                ('www.canale5.com', 'Canale 5', 'Canale 5'),
                ('www.italia1.com', 'Italia 1', 'Italia 1'),
                ('www.la7.it', 'La 7', 'La 7'),
                ('world-tv.bbc.com','BBC World', 'BBC World'),

               ('TinyPop','Tiny Pop','Tiny Pop',0,1),
               ('POP','POP','POP',0,1),
               ('GOD REVIVAL','GOD REVIVAL','GOD REVIVAL',0,1),
               ('GOD 2','GOD 2','GOD 2'),
               ('www.sky-news.it','Sky News','ISM Sky News v6',0,1),
               ('bbc_radio4','Radio 4','BBC R4 FM',0,1),

                ('europa7.skytv.it', 'Europa 7', 'Europa 7'),
                ('www.la8.it', 'La 8', 'La 8'),
                ('www.la9.it', 'La 9', 'La 9'),
                ('www.la10.it', 'La 10', 'La 10'),
                ('www.7gold.it', '7 Gold', '7 Gold'),
                ('www.antenna3.it', 'Antenna 3', 'Antenna 3'),
                ('www.comingsoon.it', 'Coming Soon', 'Coming Soon'),
                ('www.odeontv.com', 'Odeon TV', 'Odeon TV'),
                ('www.mtv.it', 'MTV', 'MTV'),
               ('www.sportitalia.com','Sport Italia','Sport Italia'),
                ('www.reteallmusic.it','All Music','All Music'),
                ('www.ventiquattrore.tv','24ore','"24Ore'),
                ('www.telenuovo.it','telenuovo','TeleNuovo'),
('edulab1.educational.rai.it','Rai Edu Lab 1','Rai Edu Lab 1'),
                ('www.matchmusic.it', 'Match Music', 'Match Music')]

My xmltv settings are handled by a script as follows:

#/bin/bash
/usr/bin/tv_grab_uk_rt >/tmp/listings
cat /tmp/listings | sed 's|UTC|+0000|g;' >/tmp/listings.uk
/usr/bin/tv_grab_it --slow >/tmp/listings.it
/usr/bin/tv_cat /tmp/listings.uk /tmp/listings.it >/tmp/TV.xml
cp -f /tmp/TV.xml /mnt/media/tv.xmltv

(nb, the tv.xmltv is to copy the info to my dreambox - a linux based sat set top box.)

/etc/freevo/freevo.conf

has:

mencoder = /usr/bin/record.sh

Where record.sh is:
#!/bin/bash
CANALE="tv://$1"
cat ~/.mplayer/channels.conf |grep "$1" && CANALE="dvb://$1"
echo "$1 $2 $3 $CANALE" >> /tmp/registra.log
/usr/bin/aumix -l R -l 90
exec mencoder "$CANALE" -o "$3" -endpos $2 -ovc lavc -lavcopts\ vcodec=mpeg4:vbitrate=3600:keyint=250:autoaspect -oac mp3lame\
 -lameopts vbr=0 -ffourcc divx -tv driver=v4l2:device=/dev/video0:\
input=1:norm=PAL:chanlist=italy:\
channels="D-Rai Uno,25-Rai Due,32-Rai Tre,59-Rete 4,40-Canale 5,52-Italia 1,34-La 7,21-La 9,24-La 10,42-7 Gold,61-Antenna 3,44-Coming Soon,67-Odeon TV,66-MTV,45-Sport Italia,28-All Music,36-24 Ore,51-TeleNuovo,36-Rai Edu Lab 1,47-Match Music" \
:adevice=/dev/dsp:audiorate=32000:forceaudio:forcechan=1:buffersize=64


(Sorry for the formatting above, the mencoder line is all one.)


(the aumix command selects the right channel to record, as it didn't seem to work without it.)

Hope this helps someone else.

--
Latest news on http://www.streetcredo.org.uk/rob

Rob Davis


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Freevo-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-users

Reply via email to