[mythtv-users] Newbie: FC3 - MythTV backend setup - stuck. 2. Alsosetup GUI issue. 3. Also UK settings?

mail.com mikechoy at mail.com
Fri Dec 31 12:42:31 UTC 2004

Hi Clive

Sorry that you seem to be having so much problems with your myth install.
I'm not familiar with your card, as I am using a Nova-T with the new connexant chips on FC3 and this has been working for
some weeks now. Here are some thoughts that might help.

1. The Winfast card that you have seems to be a Analogue Terrestrial card not a DVB freeview card
    I'm not sure if I have thisis  right but you do say in your thread that you are trying to ge the Freeview UK channels.
2. If you are using a DVB Card and trying to tune into UK Freeview, You have not made it clear if you were successful
    with having your card tune outside of MythTV. This is absolutley critical cause Myth objects violently when it cant
    tune, cause it buggers up the database and then its all down hill from there.

Assuming that you are talking about DVB, here is what I found, if not I have no experience with Analogue card so this will
not be much use for you.

So How do you tune DVB Card and load up Mythdatabase without manually entering the channel info one at a time like
I did when I started. First I would ignore the Myth TV TV grab utilities, cause if you cant tune your card, you are wasting a lot
of time in Myth.

1. I assume that you have all drivers installed for your card. In the Case of the newer connexant based Nova-T cards you sadly
    have to install a custom kernel and patch it with the driver patchs from bytesex.org. Let me know if you need help here.

2. You now need some tools, I created a directory for each in /usr/src so that I could build them.
       - DVB Apps 
       - Zap2myth
       - tv_grab_dvb.

Zap2myth is here http://www.cs.man.ac.uk/~brejc8/dvb/
tv_grab_dvb is here  http://www.darkskiez.co.uk/index.php?page=tv_grab_dvb
dvb apps  is available from linuxtv.org -you can get from CVS with the following commands

#cvs -d :pserver:anonymous at linuxtv.org:/cvs/linuxtv login
#carriage return to login
#cd /usr/src/dvb-apps
#cvs -d :pserver:anonymous at linuxtv.org:/cvs/linuxtv co dvb-apps
#cd dvb-apps
Once this has been built you will now see a directory called utils/scan  use dvbscan example below
(Assume that you are on the CrystalPalace transmitter, other transmitters are under the dvb-t directory)

# cd /usr/src/dvb-apps/util/scan
#./dvbscan dvb-t/uk-CrystalPalace | tee  /home/mythtv/.tzap/channels.conf

If all is well then you will have a channels.conf file populated with your freeview channel tuning info.

You can now have a look a live tv using tzap to tune into an individual channel and pipe it into mplayer like so.

# tzap -c /home/mythtv/.tzap/channels.conf -r 'ITV 2
# mplayer - < /dev/dvb/adapter0/dvr0.

===============Loading Mythtv with channel information===================================

1. We build a clean channels.conf file that contains the tuned channels that we have recepton for using dvbscan above.

2. We then use the Zap2myth script to convert this information into a mysql script that can be loaded into the Myth Converg database

3. !!! as of Nov 04 Myth TV will hang if it can tune a channel, so any missing fields such as the PID or wrong frequency will hang the system

4. We then load the the Mythtv database with the channel information

5. We then use the tv_grab_dvb program to load up the latest TV listings and pipe this the Myth database

Files and what they do (assumes that I have built all of these in /usr/src )
~/.tzap/channels.conf ( This holds the DVB tuned channels information from the dvbscan utility)

/usr/src/zap2myth/zap2myth/uk_dvb/common.channels contains the standard freeview tv channels with some config information

/usr/src/zap2myth/zap2myth/uk_dvb/radio.channels contains the standard freeview radio channels with som config information

/usr/src/zap2myth/zap2myth/uk_dvb/regions/london.channels contains the standard freeview tv channels in london

/usr/src/zap2myth/zap2myth/uk_dvb/regions/other.channels contains the interactive channels 

# cd /usr/src/dvb-apps/util/scan

# ./dvbscan dvb-t/uk-CrystalPalace | tee ~/.tzap/channels.conf 

# cd /usr/src/zap2myth/zap2myth

# ./zap2myth.pl uk_dvb/common.channels uk_dvb/other.channels >channels.sql

# mysql -p <channels.sql

# enter your mysql password from when you set up Mythtv

Go into mythtvsetup and check that your channels are now installed

==============Loading up the program guide=========================

tv_grab_dvb uses the following files, and you will need to edit the tv_grab_dvb.c
source code to change if you decided to put these somewhere else.

Code snippet
{#define CHANNELS_CONF "/home/mythtv/.tzap/channels.conf"

# define CHANIDENTS /usr/local/etc/chanidents
# cd /usr/src/tv_grab_dvb 

Then just make to rebuild.

The chanidents file provides translation between the normal XMLTV idents of 
"4479.dvb.guide" for bbci for instance to a custome channel ident of bbci.bbc.co.uk
I left this blank cause I wanted to to keep the 4479.dvb.guide syntax

Now lets get a test version of the programme guide.
# cd /usr/src/tvgrab/tv_grab_dvb-0.9
#tv_grab_dvb -c -t 30 > /tmp/test.xml

Have a look at /temp/test.xml, if all is well then lets load up the guide int Mythtv for real.

#tv_grab_dvb|mythfilldatabase --no-delete --file 1 0 -

or manually

#mythfilldatabase --manual --file 1 0 /tmp/test.xml
Mythtv should now work, and you should do your first database backup like so.

Backup your mythdatabase

#mysqldump -c -a -p mythconverg > /home/mythtv/mythsql.dump
In case you blow up your database you can restore like so.

# mysql -u mythtv -p mythconverg < /home/mythtv/mythsql.dump

----- Original Message ----- 
From: "Clive at Rational" <clive at rational-communications.com>
To: <mythtv-users at mythtv.org>
Sent: Tuesday, December 28, 2004 10:31 PM
Subject: [mythtv-users] Newbie: FC3 - MythTV backend setup - stuck. 2. Alsosetup GUI issue. 3. Also UK settings?

> Hello,
>     I have searched through the MythTV mailing list
> and not found answer to this - sorry if it HAS already
> been answered.
>      Setup: Conexant WinFast TV2000 XP input card
> (a.k.a GDI Black Gold) - works fine under WinXPPro SP2
> Trying to run card under MythTV on a Fedora Core 3
> (FC3) kernel 2.6.9.something.
> The TV signal is being provided from a "terrestrial"
> aerial / antenna.
>     MythTv software install was performed according to
> the excellent instructions in "Installing and using
> MythTV" by Robert Kulagowski
>     I used the "apt-get" method to install all
> required MythTV (0.16) & other packages as the
> "manual" process seemed fantastically tedious.
>     As far as I can tell the software is installed OK.
> I can start the backend and front end GUIS and they
> display fine.
>   1. I am at section 9 of the install instructions -
> Configure back-end.
>   I have tried various options and none seem to work.
>    I guessed certain settings for the GUI and the
> termianl displayed the following results from a
> typical run of mythsetup
> [root at localhost bin]# ./mythtvsetup
> DisplaRes::switch_res: desired resolution not
> available
> 2004-12-28 21:57:47 switchToGUI: xrandr failed for 0 x
> 0
> Somehow, your screen size settings are bad.
> GuiHeight: 0
> GuiWidth: 0
> m_height: 0
> m_width: 0
> Falling back to 640x480
> Would you like to clear all capture card
> settings before starting configuration? [no]  no
> Would you like to clear all program/channel
> settings before starting configuration? [no]
> mythtv: could not connect to socket
> mythtv: No such file or directory
> lirc_init failed for mythtv, see preceding messages
> 2004-12-28 21:58:30 Please wait while MythTV retrieves
> the list of available channels
> sh: tv_grab_uk: command not found
> 2004-12-28 21:58:30 tv_grab_uk --config-file
> '/root/.mythtv/CRL DVB card.xmltv' --configure
> 2004-12-28 21:58:30 exited with status 32512
> 2004-12-28 21:58:45 Please wait while MythTV retrieves
> the list of available channels
> sh: tv_grab_uk: command not found
> 2004-12-28 21:58:45 tv_grab_uk --config-file
> '/root/.mythtv/CRL DVB card.xmltv' --configure
> 2004-12-28 21:58:45 exited with status 32512
> Couldn't open 0 to probe its inputs.
> If this is the master backend server:
> Now, please run 'mythfilldatabase' to populate the
> database
> with channel information.
> It seems (obviously) that tv_grab_uk is not found
> However, in /usr/bin the following DOES exist
> [root at localhost bin]# ls | grep tv_grab_uk
> tv_grab_uk_rt
> So what do I do to achieve the back-end config?
> For completeness I include the result of running
> "mythfilldatabase" but I think the errors occuring are
> as a result of the tv_grab_uk failure
> [root at localhost bin]# mythfilldatabase
> 2004-12-28 22:28:18 mythfilldatabase: Listings
> Download Started
> ----------------- Start of XMLTV output
> -----------------
> nice: tv_grab_uk: No such file or directory
> ------------------ End of XMLTV output
> ------------------
> Error in 1:1: unexpected end of file
> Updating icons for sourceid: 1
> ----------------- Start of XMLTV output
> -----------------
> nice: tv_grab_uk: No such file or directory
> ------------------ End of XMLTV output
> ------------------
> Error in 1:1: unexpected end of file
> Updating icons for sourceid: 2
> Failed to fetch some program info
> 2004-12-28 22:28:18 mythfilldatabase: Failed to fetch
> some program info
> 2. Also,the back-end setup GUI screens seem to be
> "larger" than the window opened and the window is not
> scrollable hence it is not always possible to see the
> "Cancel" "Back" and "next" buttons on a screen. Is
> there a fix for this?
> 3. Any recommendations or documentation on setting up
> the  software for UK Freeview supplied through
> standard aerial / antenna.
> Thanks for any help or pointers
> Clive
> _______________________________________________
> mythtv-users mailing list
> mythtv-users at mythtv.org
> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mythtv.org/pipermail/mythtv-users/attachments/20041231/2b6bfcda/attachment.html

More information about the mythtv-users mailing list