Brent Saner on 8 Oct 2007 07:02:18 -0000


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PLUG] MythTV frontend failure to play video = solved

  • From: "Brent Saner" <brent.saner@gmail.com>
  • To: "Philadelphia Linux User's Group Discussion List" <plug@lists.phillylinux.org>
  • Subject: Re: [PLUG] MythTV frontend failure to play video = solved
  • Date: Mon, 8 Oct 2007 03:01:29 -0400
  • Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; bh=Mhwrc4z0raUtVWFhlrK9MDcH4XQfRHbB+XmhjvPKzfM=; b=n647U6pq3Tx2kL/i+XPxoLG50lsVty5KZBNqKACFkxd+0fF4aE9riISyGgqn+2xhMPmIkUIb0RX5lsxK/XsFmxaKhgjyuXIqUd1cvr36Yy/bhTa4E2Pq2l0FXhJksNWwgFzegih6aml5W/lAehjQQP1RDHKPcDzZCU/iUmSZ27E=
  • Reply-to: Philadelphia Linux User's Group Discussion List <plug@lists.phillylinux.org>
  • Sender: plug-bounces@lists.phillylinux.org

sorry i wasn't able to fix the projection offset/crop problem. :/
maybe it's just an X problem. i hope so. and if so, i hope a patch comes soon.

but i'm glad your mythbox works now!

On 10/8/07, JP Vossen <jp@jpsdomain.org> wrote:
This is related to the "Ubuntu 7.10 on Optiplex with i810 video" thread
because I thought that the MythTV frontend failure to play video was a
video driver problem.  Looks like it wasn't, though see bottom.


Problem: on a clean install of Gutsy (with Gnome desktop), everything in
a clean install of the MythTV frontend GUI worked except for actually
watching LiveTV and recordings.  (Optiplex GX 260)


Solution short version:  ID10T error.
MythTV: Utilities / Setup; Setup; General; Database Configuration 2/2:
"Use custom identifier for frontend preferences" is *not* a "friendly"
name, it's more like a hostname.  So *don't* use something stupid like
"JP's Office" in that field!!!


Solution long version:
I thought I was being clever with the setting above, but it caused a lot
of wasted time.  Everything in the GUI worked, except for playing LiveTV
and recordings.  I could see the program guide, set the recording
schedule, etc., etc.  But I couldn't watch anything, I'd just get a
black screen for a few seconds, then bounce back into the GUI.

During other t-shooting for the supposed video problem, I happened to
run mythfrontend from the command line, which allowed me to see lots of
log messages.  Like these:

2007-10-07 16:50:08.395 TV: Attempting to change from None to WatchingLiveTV
2007-10-07 16:50:08.407 Using protocol version 31
2007-10-07 16:50:15.753 MythSocket(829c668:15): readStringList: Error,
timeout (quick).
ASSERT: "i <= nodes" in /usr/include/qt3/qvaluelist.h (373)
2007-10-07 16:50:15.754 decodeLongLong() called with offset >= list size.
2007-10-07 16:50:15.755 DPMS Deactivated
2007-10-07 16:50:15.812
RingBuf(myth://192.168.xx.90:6543/1006_20071007165008.mpg) Error:
RingBuffer::safe_read(RemoteFile* ...): read failed
[...]
2007-10-07 16:50:15.812
RingBuf(myth://192.168.xx.90:6543/1006_20071007165008.mpg) Error:
RingBuffer::safe_read(RemoteFile* ...): read failed
2007-10-07 16:50: 15.812 NVP::OpenFile(): Error, couldn't read file:
myth://192.168.xx.90:6543/1006_20071007165008.mpg
2007-10-07 16:50:15.814 TV Error: StartPlayer(): NVP is not playing
after 20000 msec
2007-10-07 16:50:15.970 TV Error: LiveTV not successfully started
2007-10-07 16:50:15.991 DPMS Reactivated.

Those "can't get there from here" messages made me I looked in the
backend server log /var/log/mythtv/mythbackend.log and see things like
these:
2007-10-07 16:43:31.648 MainServer::HandleAnnounce Playback
2007-10-07 16:43:31.651 adding: JP's as a client (events: 0)
2007-10-07 16:43:31.654 Bad ANN query
2007-10-07 16:43:38.659 Unknown socket closing
2007-10-07 16:43:40.744 Unknown file transfer socket: 0
2007-10-07 16:43:40.756 MainServer::HandleAnnounce Playback

The "JP's" was the tipoff.  Uh oh, it shouldn't look like that...  But I
hadn't been looking there because I thought it was a frontend video
problem.  Doh...

So I turned off the "custom identifier" option in the frontend, shut it
down, then went into the DB and fixed it.  The correct name should be
'foster-host', which I noted when I looked for settings.  I didn't feel
like manually re-setting everything, so I did it all in the DB.

# Show me frontend specific settings
select * from settings where hostname != '(NULL)' order by value;

# Delete any new settings just created by turning off the bad value
delete from settings where hostname = 'foster-host';

# Rename the old, bogus name to the new correct one
update settings set hostname = 'foster-host' where hostname = "JP's Office";

When I fired the frontend back up, everything worked!

Note a sub-symptom was a long delay (due to failures and timeouts) when
going into the Media Library; Watch Recordings menu, since that tries to
play thumbnails of the current selection.

Also note that just before I did this, I was also messing with the video
driver (more on that in its thread later).  So it's possible that I had
two problems at the same time, the above and a bad video setup.  I doubt
it, but I mention it for completeness...  What I basically did there was
to remove the i810 and 915resolution drivers, 'sudo apt-get install
xserver-xorg-video-intel' and 'sudo dpkg-reconfigure xserver-xorg'.

That has thus far *not* solved the "a few pixels cut off at top of
screen" problem, but since MythTV frontend now works I don't really care.


Thanks for the tips and hope this is useful for someone,
JP
----------------------------|:::======|-------------------------------
JP Vossen, CISSP            |:::======|        jp{at}jpsdomain{dot}org
My Account, My Opinions     |=========|       http://www.jpsdomain.org/
----------------------------|=========|-------------------------------
Microsoft has single-handedly nullified Moore's Law.
Innate design flaws of Windows make a personal firewall, anti-virus
and anti-malware software mandatory. The resulting software arms race
has effectively flattened Moore's Law on hardware running Windows.
___________________________________________________________________________
Philadelphia Linux Users Group         --        http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug



--
Brent Saner
215.264.0112 (cell)
215.362.7696(residence)

http://www.thenotebookarmy.org
___________________________________________________________________________
Philadelphia Linux Users Group         --        http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug