zen.org Communal Weblog

April 10, 2005

First milestone with Our TiV—er, MythTV Box

Filed under: — brendan @ 11:29 GMT

About a week ago we were able to display live TV thru the box, but the remote didn’t work and we couldn’t move through channels. It’s much happier now. Problems that still need to be fixed:

  • Sound for non-AVI video files is out of sync
  • The X display is bigger than the TV screen
  • I have to switch the audio output between the Shuttle’s L/R audio out for video files and the audio out of the PVR-350 for live and recorded TV.
  • I need a way to make MythTV be able to change channels on the NTL Pace 4001NC box, which reportedly uses RC-5 protocol for the remote. Given that, we can also record everything coming from NTL Digital Cable. There is one cool serial hack that on its main page seems to clearly indicate it will work with my box, which after some clarification is confirmed to work with it. So we’re ordering one now and will share the results once we’ve got it.
  • Sometimes after a reboot the live TV doesn’t work for more than a few seconds, and more notably the name of the tuner and the current time don’t appear at the top of the screen. After only a minute or two, it goes back to the menu. If I restart mythbackend, it’s then all happy and can keep going.
  • The PVR-350 can accept the FM antenna; can MythTV record radio shows too into mp3 format? A google for “MythRadio” has a few hits for recent conversation. But anything I’d try for this has to wait til everything else works. :)

What we’ve got now is pretty usable for day-to-day stuff, with the one physical hurdle of having to use an audio switch box to change which of the two audio sources actually gets emitted. There must be a system/MythTV fix, or we could just get some sort of an RCA jack Y-joiner/junction thing to accept output from either one…Hmm….

Some details on how we got it working:

  1. The remote problem was because /etc/lircd.conf defines particular names for each button like


    CH+ 0X00000000000017E0
    CH- 0X00000000000017E1
    VOL+ 0X00000000000017D0

    The entries in ~/.mythtv/lircrc need to match those names in some fashion. I just had to change

    begin
    prog = mythtv
    button = chanup
    repeat = 5
    config = Up
    end

    to instead have

    begin
    prog = mythtv
    button = CH+
    repeat = 5
    config = Up
    end

    This helped improve watching live TV or shows recorded by the box. But we were stuck when watching a video file like an MPG (which has its own problems anyway) or AVI file; you couldn’t get it to return to the menu after starting to watch it.

  2. I came across Adam Rubin’s description of how he made the remote more usable with MythTV. So I just needed to give ~/.mythtv/lircrc a few entries like

    begin
    remote = hauppauge_pvr
    button = Pause
    prog = mplayer
    repeat = 3
    config = Pause
    end

    to help improve things.
  3. The file ~/.mythtv/NTL Basic Cable.xmltv contains the final list of channels I’m using. It omits the pay channels.
  4. I had to make /etc/rc.d/rc.local do modprobe ivtv so the driver, and its ivtv_fb framebuffer driver, are all loaded up before anything else. I also added the lines

    /usr/X11R6/bin/xset -dpms
    /usr/X11R6/bin/xset s off

    to make it stop having a blank screen until I hit a key on the (tucked away) keyboard.
  5. My final /etc/X11/xorg.conf file makes everything show up on the TV from the PVR-350’s S-Video feed, but the X display is still just slightly larger than the TV screen. When I’m going through the MythTV setup menus it’s impossible to see the selection boxes along the left side.
  6. Playing AVI files using the default mplayer now works by giving it the options
    -ao oss -vo x11 -nocache
    However, playing MPG files doesn’t work quite as well. I found others talking about this and how audio seems to come out directly via the sound port, but the video is going through the MPG decoder first. I did find some bits in the MythTV Digital Sound HOWTO and put them into my ~/.asoundrc. But I’ve not spent enough time looking at it to remember how to make MythTV use that, as opposed to the default /dev/dsp device.

So far so good; much more productive than the efforts with KnoppMyth, seemingly just because the version of the mythtv stuff is much more up-to-date.

4 Comments »

  1. handy info! I’ve been hacking around setting one up here too, and just installed KnoppMyth, got the remote working, but haven’t tried TV out yet… and I’ve just found the damn hard disk won’t fit in the box I’ve got. argh.

    have you read http://www-isl.mach.uni-karlsruhe.de/~hi93/myth/mythtv_debian_epia_pvr350_walkthrough
    ? that discusses the “X bigger than TV” issue iirc.

    Comment by Justin Mason — April 11, 2005 @ 16:01 GMT

  2. Hey, BTW, if you’re interested in my results so far — http://taint.org/2005/04/19/215011a.html

    Comment by Justin Mason — April 19, 2005 @ 17:49 GMT

  3. ‘The PVR-350 can accept the FM antenna; can MythTV record radio shows too into mp3 format? A google for “MythRadio” has a few hits for recent conversation. But anything I’d try for this has to wait til everything else works.’

    looking into this, it appears that no, it can’t — that feature was never implemented in MythTV, and it’s unsure whether the PVR-350 drivers support it anyway.

    however, if you have radio via DVB-S or DVB-T, apparently that may be workable.

    Comment by Justin Mason — May 19, 2005 @ 02:04 GMT

  4. MythRadio support MP3 record. Compile it with lame support:

    $ ./configure –enable-lame
    $ qmake mythv4lradio.pro
    $ make
    # make install

    Insert entry for MythRadio in /usr/share/mythtv/library.xml and /usr/share/mythtv/media_settings.xml

    Enable MP3 Record Format in MythRadio Settings.

    Good Luck,

    Jaelson Lima
    Brasil

    Comment by Jaelson Lima — September 18, 2005 @ 01:59 GMT

RSS feed for comments on this post.

Leave a comment

Line and paragraph breaks automatic, e-mail address never displayed, HTML allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

(required)

(required)


Powered by WordPress