MythTV, HVR-850Q, and Analog Support Woes - Arghhh

OK, as you can guess from the thread title a few things need some fixin’!

A little background. I have been trying to get my linux experience to replace windows media center (watch, record, sched, PVR my analog cable through my computer), for 15 months since I bought a laptop with a tuner card (HVR-1500), and have finally given up on it (100’s of hours trying, close but finally no analog support yet! - arghhhh)

SO onto what was supposed to be a good one for linux a new HVR-950Q. At this point I have 1/setup a MYSQL database, 2/ setup the MythTV backend (though something seems amuk), 3/ setup the frontend partly, and 4/ have THANKFULLY the setup the driver and hvr-950Q tuner card as they are being recognized through dmesg and by MythTV - YAHOOOO! BUT>>>> Here a are the start of the new obstacles, and special thanks to a 2 guys named Ben and Ken for there help to daterotfl!. so here we go.

1/ The frontend continually complains that it can’t connect to the backend server while I am doing its initial setup,

2/ I can’t get a successful scan for channels with MythTV or presumably also can’t do something called initially populate my channel file,

3/ Xawtv, Motv, and aletv all only see my CAM as a video source (though not an issue if I can get mythtv setup), and

4/ Have not yet seen anything with my tuner card (analog or digital, though my source is presently only analog cable here in Vancouver Canada through Shaw)

Any help would sure be appreciated, thanks Mark

More specifically for the #1 problem, the error says:

“Could not connect to the master backend server–is it running? Is the IP address set for it in the setup program correct?”

OK, here is an update.

I just opened up mythtv frontend with out the problem#1, yeah! progress.
I think what made the difference was renaming the database from mythtv to mythconverg as used in the mythtv website examples. But still no success configuring my tuner card successfully … help please!

I am sad to see no comments, but it is late. Here is some information that might shed some light into my situation. When trying another program called tvheadend it shows this.

ack@linux-26yx:~> ls /dev/dvb/*
demux0 dvr0 frontend0 net0
ack@linux-26yx:~> tvheadend
[INFO]:dvb: Found adapter /dev/dvb/adapter0 (Auvitek AU8522 QAM/8VSB Frontend) via USB (480 Mbit/s)
[INFO]:v4l: /dev/video0: uvcvideo HP Webcam usb-0000:00:1d.7-4 capabilities: 0x04000001
[INFO]:v4l: /dev/video0: Input #0: Camera 1 (Camera), audio:0x0, tuner:0, standard:0000000000000000,
[INFO]:v4l: /dev/video0: Format #0: YUV 4:2:2 (YUYV) [YUYV]
[WARNING]:v4l: /dev/video0: Device does not have a tuner, device skipped
[INFO]:v4l: /dev/video1: au0828 Hauppauge HVR950Q au0828 1-4:1.0 capabilities: 0x05030001
[INFO]:v4l: /dev/video1: Standard #0: 0000000000001000 NTSC-M, frameperiod: 1001/30000, 525 lines
[INFO]:v4l: /dev/video1: Input #0: Television (Tuner), audio:0x0, tuner:0, standard:0000000000001000,
[INFO]:v4l: /dev/video1: Input #1: Composite (Camera), audio:0x0, tuner:0, standard:0000000000001000,
[INFO]:v4l: /dev/video1: Input #2: S-Video (Camera), audio:0x0, tuner:0, standard:0000000000001000,
[INFO]:v4l: /dev/video1: Format #0: Packed YUV2 [UYVY]
[WARNING]:v4l: /dev/video1: Device lacks MPEG encoder, device skipped
[WARNING]:dvr: Output directory for video recording is not yet configured. Defaulting to to “/home/ack/Videos”. This can be changed from the web user interface.
[INFO]:CSA: Using SSE2 128bit parallel descrambling
[NOTICE]:START: HTS Tvheadend version 2.10 started, running as PID:27008 UID:1000 GID:100, settings located in '/home/ack/.hts/tv

At least the 950q is being recognized, the error “[WARNING]:v4l: /dev/video1: Device lacks MPEG encoder, device skipped” seems to be an issue … any suggesytions anyone?

Some more info to help troubleshooting come from MythTV frontend which at least is running without complaints. I was even able to find weather information from it so I know it can access the internet and at least think, haha.

Here is the System Status/ Listings Status errors:

  • There is no guide data available!
  • Have you run mythfilldatabase? and yes I have!, I will show you its results below
  • WARNING:is mythfilldatabase running? I don’t know

and System Status/ Tuner Status error:
-Tuner 1 has an error
specifically - Tuner {V4L:/dev/video1} has an error.
at least it is the right tuner location!

and here is my #mythfilldatabase
Resolving webservices.schedulesdirect.tmsdatadirect.com… 144.142.232.53
Connecting to webservices.schedulesdirect.tmsdatadirect.com|144.142.232.53|:80… connected.
HTTP request sent, awaiting response… 401 Unauthorized
Reusing existing connection to webservices.schedulesdirect.tmsdatadirect.com:80.
HTTP request sent, awaiting response… 401 Unauthorized
Authorization failed.
2010-03-15 06:10:20.067 DataDirect, Error: Failed to save DD cache! redownloading data…
–2010-03-15 06:10:20-- http://webservices.schedulesdirect.tmsdatadirect.com/schedulesdirect/tvlistings/xtvdService

200 more lines

2010-03-15 06:10:25.805 Grabbing data for Mon Mar 15 2010 offset 13
2010-03-15 06:10:25.805 From Sun Mar 28 04:00:00 2010 to Mon Mar 29 04:00:00 2010 (UTC)
2010-03-15 06:10:25.806 Grabbing listing data
2010-03-15 06:10:25.806 DataDirect: Copying from DD cache
2010-03-15 06:10:25.813 Grab complete. Actual data from to (UTC)
2010-03-15 06:10:25.813 Main temp tables populated.
2010-03-15 06:10:25.816 Did not find any new program data.
2010-03-15 06:10:25.816 Failed to fetch some program info
2010-03-15 06:10:25.817 Adjusting program database end times.
2010-03-15 06:10:25.817 0 replacements made
2010-03-15 06:10:25.817 Marking generic episodes.
2010-03-15 06:10:25.817 Found 0
2010-03-15 06:10:25.817 Fudging non-unique programids with multiple parts.
2010-03-15 06:10:25.818 Found -1
2010-03-15 06:10:25.818 Marking repeats.
2010-03-15 06:10:25.819 Found 0
2010-03-15 06:10:25.819 Unmarking new episode rebroadcast repeats.
2010-03-15 06:10:25.819 Found 0
2010-03-15 06:10:25.820 Marking episode first showings.
2010-03-15 06:10:25.820 Found 0
2010-03-15 06:10:25.820 Marking episode last showings.
2010-03-15 06:10:25.821 Found 0
2010-03-15 06:10:25.822 Grabbing next suggested grabbing time
2010-03-15 06:10:26.117

| Attempting to contact the master backend for rescheduling. |
| If the master is not running, rescheduling will happen when |
| the master backend is restarted. |

2010-03-15 06:10:26.120 MythContext: Connecting to backend server: 127.0.0.1:6543 (try 1 of 1)
2010-03-15 06:10:26.121 Using protocol version 50
2010-03-15 06:10:26.125 mythfilldatabase run complete.
2010-03-15 06:10:26.125 DataDirect: Deleting temporary files
linux-26yx:/home/ack/Download/hts-tvheadend-2.10 #

Does this shed any light on my problems?

Thanks at least for looking!

Here is some more data that might narrow down some troubleshooting… so far I am the only one leaving comments but at least when someone else is a newbie and running into problems this might help. Boy mythtv can be overwhelming!

linux-26yx:~ # /usr/bin/mythbackend
2010-03-15 07:00:28.724 mythbackend version: branches/release-0-22-fixes [Unknown] MythTV, Open Source DVR
2010-03-15 07:00:28.724 Using runtime prefix = /usr
2010-03-15 07:00:28.724 Using configuration directory = /root/.mythtv
2010-03-15 07:00:28.724 Empty LocalHostName.
2010-03-15 07:00:28.724 Using localhost value of linux-26yx
2010-03-15 07:00:28.734 New DB connection, total: 1
2010-03-15 07:00:28.737 Connected to database ‘mythtv’ at host: localhost
2010-03-15 07:00:28.737 Closing DB connection named ‘DBManager0’
2010-03-15 07:00:28.738 Connected to database ‘mythtv’ at host: localhost
2010-03-15 07:00:28.742 Current MythTV Schema Version (DBSchemaVer): 1244
2010-03-15 07:00:28.744 MythBackend: Starting up as the master server.
2010-03-15 07:00:28.747 New DB connection, total: 2
2010-03-15 07:00:28.748 Connected to database ‘mythtv’ at host: localhost
2010-03-15 07:00:28.751 TVRec(1) Error: Problem finding starting channel, setting to default of ‘3’.
2010-03-15 07:00:28.784 ChannelBase(1) Error: InitializeInputs():
Could not get inputs for the capturecard.
Perhaps you have forgotten to bind video
sources to your card’s inputs?
2010-03-15 07:00:28.786 TVRec(2) Error: Problem finding starting channel, setting to default of ‘3’.
2010-03-15 07:00:28.819 ChannelBase(2) Error: InitializeInputs():
Could not get inputs for the capturecard.
Perhaps you have forgotten to bind video
sources to your card’s inputs?
2010-03-15 07:00:28.820 MythBackend, Error: No valid capture cards are defined in the database.
Perhaps you should re-read the installation instructions?
2010-03-15 07:00:28.822 New DB connection, total: 3
2010-03-15 07:00:28.822 Connected to database ‘mythtv’ at host: localhost
2010-03-15 07:00:28.829 MediaServer:: Loopback address specified - 127.0.0.1. Disabling UPnP
2010-03-15 07:00:28.829 Main::Registering HttpStatus Extension
2010-03-15 07:00:28.830 Enabled verbose msgs: important general
2010-03-15 07:00:28.832 AutoExpire: CalcParams(): Max required Free Space: 1.0 GB w/freq: 15 min
2010-03-15 07:01:48.827 AutoExpire: CalcParams(): Max required Free Space: 1.0 GB w/freq: 15 min

It seems down to my tuner card not being configured properly in mythtv as so many people have it working, and my dmesg is the same as all of theirs. The frontend was complaining that …“MythTV has no capture card defined, please run the mythtv-setup program”

So I went into mythTV setup and put in (it was there and was now not so I refilled it)

  • Analog V4L capture card
  • Video Device: Dev/video1
  • Probed Info: Hauppauge HVR-950Q {AU0828} ----YEAH!!!rotfl!
  • Default Input: television/s-video/composite ?? I chose TV, Is that right???

and when I ran the frontend it now doesn’t complain or give any errors! YEAH!!!rotfl!,

but, now when I select “Watch TV” it say’s please wait in a black screen, then after 5-10 seconds it goes back to the menu, hmmmmm??? What should I try next???

all still unanswered!

Does anyone have any suggestion for a guy trying so hard to get something working??? Now i have tried
-w_scan, scantv, xawtv, motv, mythtv, Kaffeine, aletv, motv,

  • installed scav4l-tools, dvb-apps, dvb-utils, w-scan

Trying everything and no luck PLEASE HELP!:cry:

Sorry, I still don’t know anything about mythtv, but have you tried mythtv forums? They might have people more knowledgeable about the software there.

Well thanks Ken, at least a response.

I will try that right now, but I thought there must be a zillion people who are familliar with MythTV and OpenSUSE, as it seems so popular, well wish me luck, and if I figure anything out I will certainly post it here to help anyone in my situation.

Well I have tried so much and no closer. Perhaps someone can simply suggest a TV Viewer that is known to work with NTSC analog cable TV Tuners (ex. dev/video0/1).

I have tried so many that only handle digital signals or automatically only go to the cam ex.) Xawtv, metv, motv, and aletv, and tvtime. And MythTV is a nightmare for the uninitiated.

Well here I am back revisiting HVR-950Q, PVR functionality in linux. To date the card works perfectly in TVtime, but not in MythTV. Note, this is referring to ANALOG CABLE only.

OK, so now I am trying to use TVheadend and get the error:

[WARNING]:v4l: /dev/video1: Device lacks MPEG encoder, device skipped

so close and yet so far,…ANYONE? or does anyone have another solution for a cool PVR piece of software?? rotfl!

I’m jumping into this thread because I’m interested in purchasing the HVR-950.

  1. Which USB capture stick are you using the HVR-850 or HVR-950? The HVR-850 doesn’t decode NTSC (standard television for the western hemisphere) while the HVR-950 does. If you have the HVR-850, you will probably have to test this on cable TV, and not with over-the-air television signals.

  2. One post indicated something about mysql. Did you start mysql using system services in YaST, and create the database with the mysql administrator tool?

Cheers.

One more thing, do you have all the 3rd party and proprietary codecs installed? If not you can get these installed through opensuse-community.org.

I have eventually got a HVR-950Q to work with both analog and digital, and with MythTV as well. Here are my notes that helped get it working.

add the line: “options xc5000 no_poweroff=1 debug=1” no quotes , to:
∘ # sudo gedit /etc/modprobe.d/local.conf and
∘ # sudo gedit /etc/modprobe.d/xc5000.conf
• The digital side is easy to set up – if your 950Q is your only tuner, then it will show up (digital) as the only DVB device. The only trick here, is to create a custom recorder group (instead of the default of “generic”) for it.
• Then tackle the analog side. If it is your only tuner device, then this will be /dev/video0, and probably /dev/dsp1 for the audio – yes you need this field.
• Then put it in the same recorder group as the digital side.
• After doing mythfilldatabase and setting up the channels for everything, fire up mythfrontend. Go into the Setup -> … -> Recording Profiles, and set the resolution for the analog to be 720x480 for everything (default, live-tv, etc…). Change the audio sampling rate to 48000.
• You need to make sure your capture resolution for LiveTV mode and the various capture modes is set to 720x480 (the default in MythTV is 480x480)
• you’ll need to create an “input source” for digital, and a second “input source” for analog. Yes, they can both point at exactly the same schedulesdirect.org channel lineup, but they do need to be separate otherwise.
∘ Then use the “input connections” menu in mythtv-setup to point the digital side of the 950Q at the digital “source”, and the analog side at the analog “source”.
• I got sound with tvtime using :
∘ tvtime | arecord -D hw:1,0 -r 32000 -c 2 -f S16_LE | aplay -
• change the MythTV sound device for the analog side of the HVR-1500-950Q to be /dev/dsp1 again. MythTV now has working sound in analog mode and I have been able to change between analog and digital modes (and vice versa) without any of the problems seen in the past.

Good Luck