| 
  • If you are citizen of an European Union member nation, you may not use this service unless you are at least 16 years old.

  • Files spread between Dropbox, Google Drive, Gmail, Slack, and more? Dokkio, a new product from the PBworks team, integrates and organizes them for you. Try it for free today.

View
 

MythTV on Xandros 4 Desktop

Page history last edited by PBworks 12 years, 9 months ago
MythTV on Xandros 4.0


The best document I have ever seen is here: http://wilsonet.com/mythtv/fcmyth.php

I used the document in the above link to achive my install. Since that web-site is Fedora specific, I am going to try about make this document specific to Xandros.

What does this document lack?
1. I have not yet tried configuring my remote that came with my Huappauge WinTV 150 card. Once I have that configured, I will add to this document.
2. I am currently running mysql, MythTV backend and MythTV frontend all on the same PC. Most of the MythTV document, talks of a distributed architecture, for starters, I am going to run all these components on the same PC.

Hardware:
The hardware I used: XPC Shuttle Intel 945G based motherboard. CPU: E4300 Core 2 Duo, 80 GB SATA disk, Hauppauge WinTV 150 (250, and 350 works too).

Software Installation:
01. Install Xandros 4.0 Home Premium

02. Install all updates in order using Xandros Network.

03. Install the following applications in any order: C/C++, Qt-Dev, mpeg, mpegtools, libdvdcss, win32codecs, mplayer, ffmpeg, faad, faac, xmltv and mysql. These are easily installed at the command prompt.

# apt-cache search faad
# apt-get install faad

and so on.

04. I dont know much about mysql, so I didnt know much about testing it. But here are the steps I gathered from different web-sites

MythTV requires this. Setup the ip-address in /etc/mysql/my.cnf

$ grep -i bind-address /etc/mysql/my.cnf
bind-address = 127.0.0.1

 

Edit this file as root and change 127.0.0.1 to your ip-address on which you are running the mysql server. (in my case 10.20.30.44)
example:  bind-address = 10.20.30.44

 

Restart mysqld: (as root)

# /etc/init.d/mysqld stop ; /etc/init.d/mysqld start

 

05. Setup the root password on mysql:  {example: setting it to root } ( as any user )

mysqladmin -u root password 'root'

 

Check the database. If you know mysql, try out your scripts. (as any user )

$ mysqlcheck -u root -p mysql
password: root

 

mysql.columns_priv                                 OK

mysql.db                                           OK

mysql.func                                         OK

mysql.help_category                                OK

mysql.help_keyword                                 OK

mysql.help_relation                                OK

mysql.help_topic                                   OK

mysql.host                                         OK

mysql.proc                                         OK

mysql.procs_priv                                   OK

mysql.tables_priv                                  OK

mysql.time_zone                                    OK

mysql.time_zone_leap_second                        OK

mysql.time_zone_name                               OK

mysql.time_zone_transition                         OK

mysql.time_zone_transition_type                    OK

mysql.user                                         OK


06. Install MythTV from XN. Since I was doing most of my work at the command prompt, I did the installation from the command prompt itself.

# apt-cache search mythtv | grep ^mythtv

mythtv - A personal video recorder application (client and server)

mythtv-backend - A personal video recorder application (server)

mythtv-common - A personal video recorder application (common data)

mythtv-database - A personal video recorder application (database)

mythtv-doc - A personal video recorder application (documentation)

mythtv-frontend - A personal video recorder application (client)

mythtv-themes - Additional themes for MythTV


# apt-get install mythtv


This will install all the required packages for MythTV. For my install it gave couple of errors. apt-get told me to run dpkg --reconfigure ... mythtv-database at the command prompt. I think this might not be shown on the XN GUI, so at this point command line install is better. Run that command and it will ask you for the root password. It will tell you that by default, to leave it blank, but do type the password you have already setup in step-04.


Update the package database.

# apt-get update



07. Verify if the mythtv user has been created.

# grep mythtv /etc/passwd /etc/group


There should be an entry for the mythtv user, mythtv group. audio and video groups should have mythtv and any other users as its members.


Set the password for mythtv user as mythtv itself. (You can set it to what want)

Grant mythtv user full access into the database mythtv install just created. This command will grant mythtv user to access the database from any computer within your network.

 

$ mysql -u root mythconverg -p
password: root

mysql> grant all privileges on *.* to root@"%" identified by 'root' with grant option;

mysql> grant all privileges on *.* to mythtv@"%" identified by "mythtv" with grant option;

mysql> flush privileges;

mysql> quit

Check all the databases on your mysql database:


$ mysqlcheck -A -u root -p


Enter password:
mysql.columns_priv                                 OK
mysql.db                                           OK
mysql.func                                         OK
mysql.help_category                                OK
mysql.help_keyword                                 OK
mysql.help_relation                                OK
mysql.help_topic                                   OK
mysql.host                                         OK
mysql.proc                                         OK
mysql.procs_priv                                   OK
mysql.tables_priv                                  OK
mysql.time_zone                                    OK
mysql.time_zone_leap_second                        OK
mysql.time_zone_name                               OK
mysql.time_zone_transition                         OK
mysql.time_zone_transition_type                    OK
mysql.user                                         OK
mythconverg.archiveitems                           OK
mythconverg.callsignnetworkmap                     OK
mythconverg.capturecard                            OK
mythconverg.cardinput                              OK
mythconverg.channel                                OK
mythconverg.codecparams                            OK
mythconverg.credits                                OK
mythconverg.customexample                          OK
mythconverg.diseqc_config                          OK
mythconverg.diseqc_tree                            OK
mythconverg.dtv_multiplex                          OK
mythconverg.dtv_privatetypes                       OK
mythconverg.dvdinput                               OK
mythconverg.dvdtranscode                           OK
mythconverg.eit_cache                              OK
mythconverg.favorites                              OK
mythconverg.filemarkup                             OK
mythconverg.gallerymetadata                        OK
mythconverg.gamemetadata                           OK
mythconverg.gameplayers                            OK
mythconverg.housekeeping                           OK
mythconverg.inuseprograms                          OK
mythconverg.jobqueue                               OK
mythconverg.jumppoints                             OK
mythconverg.keybindings                            OK
mythconverg.keyword                                OK
mythconverg.music_albums                           OK
mythconverg.music_artists                          OK
mythconverg.music_genres                           OK
mythconverg.music_playlists                        OK
mythconverg.music_smartplaylist_categories         OK
mythconverg.music_smartplaylist_items              OK
mythconverg.music_smartplaylists                   OK
mythconverg.music_songs                            OK
mythconverg.music_stats                            OK
mythconverg.musicmetadata                          OK
mythconverg.musicplaylist                          OK
mythconverg.mythlog                                OK
mythconverg.networkiconmap                         OK
mythconverg.newssites                              OK
mythconverg.oldfind                                OK
mythconverg.oldprogram                             OK
mythconverg.oldrecorded                            OK
mythconverg.people                                 OK
mythconverg.pidcache                               OK
mythconverg.playgroup                              OK
mythconverg.profilegroups                          OK
mythconverg.program                                OK
mythconverg.programgenres                          OK
mythconverg.programrating                          OK
mythconverg.recgrouppassword                       OK
mythconverg.record                                 OK
mythconverg.record_tmp                             OK
mythconverg.recorded                               OK
mythconverg.recordedcredits                        OK
mythconverg.recordedmarkup                         OK
mythconverg.recordedprogram                        OK
mythconverg.recordedrating                         OK
mythconverg.recordedseek                           OK
mythconverg.recordingprofiles                      OK
mythconverg.recordmatch                            OK
mythconverg.romdb                                  OK
mythconverg.schemalock                             OK
mythconverg.settings                               OK
mythconverg.tvchain                                OK
mythconverg.videocategory                          OK
mythconverg.videocountry                           OK
mythconverg.videogenre                             OK
mythconverg.videometadata                          OK
mythconverg.videometadatacountry                   OK
mythconverg.videometadatagenre                     OK
mythconverg.videosource                            OK
mythconverg.videotypes                             OK
mythconverg.websites                               OK

08. Verify if the video devices are present:
$ ls -la  /dev/video*
lrwxrwxrwx  1 root root 10 2007-04-26 10:44 /dev/video0 -> v4l/video0
lrwxrwxrwx  1 root root 11 2007-04-26 10:44 /dev/video24 -> v4l/video24
lrwxrwxrwx  1 root root 11 2007-04-26 10:44 /dev/video32 -> v4l/video32

09. Now to test the Tuner:

$ /usr/bin/v4l2-ctl -i 0

Video input set to 0 (Tuner 1)


Check the card for its inputs and outputs:

$ /usr/bin/v4l2-ctl -n

ioctl: VIDIOC_ENUMINPUT

        Input   : 0

        Name    : Tuner 1

        Type    : 0x00000001

        Audioset: 0x00000007

        Tuner   : 0x00000000

        Standard: 0x000000000000B000 ( NTSC )

        Status  : 0

 

        Input   : 1

        Name    : S-Video 1

        Type    : 0x00000002

        Audioset: 0x00000007

        Tuner   : 0x00000000

        Standard: 0x0000000000FFFFFF ( PAL NTSC SECAM )

        Status  : 0

 

        Input   : 2

        Name    : Composite 1

        Type    : 0x00000002

        Audioset: 0x00000007

        Tuner   : 0x00000000

        Standard: 0x0000000000FFFFFF ( PAL NTSC SECAM )

        Status  : 0

 

        Input   : 3

        Name    : S-Video 2

        Type    : 0x00000002

        Audioset: 0x00000007

        Tuner   : 0x00000000

        Standard: 0x0000000000FFFFFF ( PAL NTSC SECAM )

        Status  : 0

 

        Input   : 4

        Name    : Composite 2

        Type    : 0x00000002

        Audioset: 0x00000007

        Tuner   : 0x00000000

        Standard: 0x0000000000FFFFFF ( PAL NTSC SECAM )

        Status  : 0


10. Now to test capturing some video:
$ cat /dev/video0 > /tmp/testingcard.mpg
Let it run for 10 seconds before you stop it (ctrl-c to stop capture)

 

Test the video just captured:

$ mplayer -vo xv /tmp/testingcard.mpg


If you see the video, your card and mythtv is working fine. Now to change channel and capture some more video.

$ /usr/bin/ivtv-tune -c 33

(33 is SciFi on my cable) Follow the steps for capturing some video as before.


11. Now to create an account on zap2it.com so that you can download TV Listings for free in XML format.
Go to Zap2it and register and create your account.
It will ask you for a Certificate code, use whichever works for you: ZIYN-DQZO-SBUT or ZYZM-TE5O-SBUT or DQXM-ZA5O-CBUT
Make sure you type this in upper case, as the certificate is case sensitive.
After logging in there, put in your zip code and select you cable provider and add the line up and save it.

Now to configure mythtv. Logged in as a normal user, run mythtv-setup
$ mythtv-setup
I am not going to tell you what to do here, as there is a wonderful screen by screen setup movie at this web-site
If you have 2 computers you can configure it very easily. I had noted down, what I needed to do and make the appropriate setup.

Startup mythtv backend as a normal user in a command window and let it run in the back ground.
For some reason, I could not start mythtvbackend as root. Everytime I ran /etc/init.d/mythbackend start, it would seem to start, but die immediately.
Or maybe it is not meant to startup as root. I guess you can put it in your Autostart folder ~/.kde/Autostart
Once it is running it is time to download the TV Listings from Zap2it. Run the script responsible for downloading the TV listing.
# su - mythtv
$ /usr/bin/mythfilldatabase
If mythtv setup went in fine, you must have the login ID and password put in there. This script will use that information to download the XML file from Zap2it.

Now to add some more plugins which are very handy and nice.

# apt-cache search myth | grep ^myth

mytharchive - create and burn DVD's from MythTV - binary file

mytharchive-data - create and burn DVD's from MythTV - data files

mythbrowser - A small web browser module for MythTV

mythcontrols - External controls for MythTV

mythdvd - DVD add-on module for MythTV

mythflix - netflix module for MythTV

mythgallery - Image gallery/slideshow add-on module for MythTV

mythgame - xmame add-on module for MythTV

mythmusic - Music add-on module for MythTV

mythnews - An RSS feed news reader module for MythTV

mythphone - a phone and videophone module for MythTV

mythplugins - Wrapper package for MythTV plugins

mythtv - A personal video recorder application (client and server)

mythtv-backend - A personal video recorder application (server)

mythtv-common - A personal video recorder application (common data)

mythtv-database - A personal video recorder application (database)

mythtv-doc - A personal video recorder application (documentation)

mythtv-frontend - A personal video recorder application (client)

mythtv-themes - Additional themes for MythTV

mythvideo - A generic video player frontend module for MythTV

mythweather - Weather add-on module for MythTV

mythweb - Web interface add-on module for MythTV


Now startup the frontend.
$ mythfrontend
Use your keyboard to navigate through the menus and play around.

Once I get the IR remote working, I will add to this document.

 

Please refer to http://wilsonet.com/mythtv/fcmyth.php for any extra questions.

If you have any Xandros specific questions, please post them on Xandros Forum.

 

 

 

 

-GGR (04/28/2007)

Rajiv G Gunja

 

Comments (1)

Anonymous said

at 3:29 pm on Apr 28, 2007

Fantastic Wiki!!!
I hope you don't mind, but I'm moving this article to the resource page where the how-to links are.

Thanks!

You don't have permission to comment on this page.