Mythtv

From SaruWiki
Revision as of 22:12, 6 January 2010 by 82.161.20.132 (talk) (→‎lirc)
Jump to navigation Jump to search

lirc

LIRC CVS is hosted at SourceForge. You can get a copy of the current CVS tree using anonymous CVS login. First log in to the cvs server (press <enter> for password):

cvs -d:pserver:anonymous@lirc.cvs.sourceforge.net:/cvsroot/lirc login

Get the sources:

cvs -z8 -d:pserver:anonymous@lirc.cvs.sourceforge.net:/cvsroot/lirc co lirc

After initial checkout, you can change into this directory and execute cvs commands without the -d option. For example:

cvs update

Compile:

cd lirc
 ./autogen.sh
 ./setup.sh
 make

/etc/lirc/hardware.conf

# /etc/lirc/hardware.conf
#
# Arguments which will be used when launching lircd
LIRCD_ARGS=""
#Don't start lircmd even if there seems to be a good config file
START_LIRCMD=false
#Try to load appropriate kernel modules
LOAD_MODULES=true

# Run "lircd --driver=help" for a list of supported drivers.
#DRIVER="pinsys"
# If DEVICE is set to /dev/lirc and devfs is in use /dev/lirc/0 will be
# automatically used instead
DEVICE="/dev/lirc0"
MODULES="lirc_mceusb" 
# Default configuration files for your hardware if any
LIRCD_CONF=""
LIRCMD_CONF=""

/etc/lirc/lircd.conf

################################################################################
# lircd.conf file for the new Microsoft Media Center remote using a new
# Microsoft Media Center receiver.
################################################################################
begin remote
 name  mceusb
 bits           16
 flags RC6|CONST_LENGTH
 eps            30
 aeps          100
 header       2667   889
 one           444   444
 zero          444   444
 pre_data_bits 21
 pre_data      0x37FF0
 gap          105000
 toggle_bit     22
 rc6_mask     0x100000000


     begin codes
# starts at A1
       BLUE         0x00007BA1
       YELLOW       0x00007BA2
       GREEN        0x00007BA3
       RED          0x00007BA4
       TELETEXT     0x00007BA5
       RADIO        0x00007BAF
       PRINT        0x00007BB1
       VIDEO        0x00007BB5 # VIDEOS button
       IMAGE        0x00007BB6 # PICTURES button
       PVR          0x00007BB7 # RECORDED TV button
       AUDIO        0x00007BB8 # MUSIC button
       TV           0x00007BB9

Metadata

Make sure you have set the filepaths right. Go to Mythtv setup - 6. Storage Directories Choose (create Fanart group) and choose the right directory

Now go to the mythfrontend and choose to watch a video. Select the video and press W. Based on the filename [1] the right data will be searched.

To configure the metadata yourself you can select the video and press I. Now configure the metadata.