myth// .. no playback from backend

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
megacrypto Offline
Senior Member
Posts: 219
Joined: Apr 2008
Reputation: 0
Post: #1
I have XBMC running on 192.168.14 and Myth backend on 192.168.1.5

i added myth as a source in video as myth://mythtv:xxxx@192.168.1.5

i can get the guide and i can get the channels list when i go into live channels, but when i press any of the channels to play live, nothing happens.

here's the log from xbmc:
Code:
15:57:27 T:2779700112 M:366764032   DEBUG: Process - MythTV event SIGNAL
15:57:27 T:2779700112 M:366764032   DEBUG: Process - MythTV event SIGNAL
15:57:28 T:2779700112 M:366764032   DEBUG: Process - MythTV event SIGNAL
15:57:28 T:2779700112 M:366764032   DEBUG: Process - MythTV event LIVETV_CHAIN UPDATE live-mediabox-2009-02-06T15:57:24
15:57:29 T:2779700112 M:366764032   DEBUG: Process - MythTV event RECORDING_LIST_CHANGE
15:57:29 T:2779700112 M:366764032   DEBUG: Process - MythTV event LIVETV_CHAIN UPDATE live-mediabox-2009-02-06T15:57:24
15:57:29 T:2779700112 M:366764032   DEBUG: Process - MythTV event LIVETV_CHAIN UPDATE live-mediabox-2009-02-06T15:57:24
15:57:32 T:2788092816 M:366764032   ERROR: SetupLiveTV - unable to spawn live tv: Failed to setup livetv.
15:57:32 T:2788092816 M:366764032   ERROR: CDVDPlayer::OpenInputStream - error opening [myth://mythtv:xxxxx@192.168.1.5/channels/18.ts]
15:57:32 T:2788092816 M:366764032  NOTICE: CDVDPlayer::OnExit()
15:57:32 T:2788092816 M:366764032  NOTICE: CDVDPlayer::OnExit() deleting input stream
15:57:32 T:2788092816 M:366764032   DEBUG: Playback was stopped
15:57:32 T:2788092816 M:366764032   DEBUG: staticThread, deleting thread graphic context
15:57:32 T:2788092816 M:366764032   DEBUG: Thread 2788092816 terminating
15:57:32 T:3069622064 M:366764032  NOTICE: CDVDPlayer::CloseFile()
15:57:32 T:3069622064 M:366764032 WARNING: CDVDMessageQueue(player)::Put MSGQ_NOT_INITIALIZED
15:57:32 T:3069622064 M:366764032  NOTICE: DVDPlayer: waiting for threads to exit
15:57:32 T:3069622064 M:366764032  NOTICE: DVDPlayer: finished waiting
15:57:32 T:3069622064 M:366764032   ERROR: Playlist Player: skipping unplayable item: 0, path [myth://mythtv:xxxx@192.168.1.5/channels/18.ts]
15:57:32 T:3069622064 M:366764032   DEBUG: Playlist Player: no more playable items... aborting playback
15:57:32 T:3069622064 M:365244416   DEBUG: Load DialogBack.png: 9.9ms (bundled)
15:57:32 T:3069622064 M:364212224   DEBUG: Load DialogFront.png: 9.9ms (bundled)
15:57:32 T:3069622064 M:364212224   DEBUG: Load separator.png: 0.2ms (bundled)
15:57:32 T:3069622064 M:364212224   DEBUG: ------------------- GUI_MSG_WINDOW_DEINIT
15:57:32 T:3069622064 M:364212224   DEBUG: Progress dialog
15:57:32 T:3069622064 M:364212224   DEBUG: -------------------
15:57:32 T:2796485520 M:366247936   DEBUG: staticThread, deleting thread object
15:57:32 T:2796485520 M:366247936   DEBUG: staticThread, deleting thread graphic context
15:57:32 T:2796485520 M:366247936   DEBUG: Thread 2796485520 terminating
15:57:33 T:2779700112 M:366272512   DEBUG: Process - MythTV event SCHEDULE_CHANGE
15:57:37 T:3069622064 M:366272512    INFO: CheckIdle - Closing idle connection to mythtv backend 192.168.1.5
15:57:37 T:2779700112 M:366272512   DEBUG: staticThread, deleting thread graphic context
15:57:37 T:2779700112 M:366272512   DEBUG: Thread 2779700112 terminating

and here is the log from myth backend:

Code:
2009-02-06 16:30:46.723 adding: mediabox as a client (events: 0)
2009-02-06 16:30:46.727 TVRec(1): Changing from None to WatchingLiveTV
2009-02-06 16:30:46.745 TVRec(1): HW Tuner: 1->1
2009-02-06 16:30:47.974 DVBSM(1), Warning: Can not count Uncorrected Blocks
            eno: Function not implemented (38)
2009-02-06 16:30:48.284 AutoExpire: CalcParams(): Max required Free Space: 3.0 GB w/freq: 15 min
2009-02-06 16:30:49.281 Finished recording WORLD BUSINESS TODAY: channel 4592
2009-02-06 16:30:50.332 Finished recording WORLD BUSINESS TODAY: channel 4592
2009-02-06 16:30:50.405 AutoExpire: CalcParams(): Max required Free Space: 3.0 GB w/freq: 15 min
2009-02-06 16:30:50.648 Using runtime prefix = /usr
2009-02-06 16:30:50.651 Empty LocalHostName.
2009-02-06 16:30:50.662 Using localhost value of MyHomeServer
2009-02-06 16:30:50.684 New DB connection, total: 1
2009-02-06 16:30:50.699 Connected to database 'mythconverg' at host: localhost
2009-02-06 16:30:50.706 Closing DB connection named 'DBManager0'
2009-02-06 16:30:50.707 Connected to database 'mythconverg' at host: localhost
2009-02-06 16:30:50.710 New DB connection, total: 2
2009-02-06 16:30:50.713 Connected to database 'mythconverg' at host: localhost
2009-02-06 16:30:50.717 Current Schema Version: 1214
2009-02-06 16:30:50.732 Preview Error: Previewer file '/var/lib/mythtv/recordings/4592_20090206163046.mpg' is not valid.
2009-02-06 16:30:50.738 Preview Error: Run() file not local: '/var/lib/mythtv/recordings/4592_20090206163046.mpg'
2009-02-06 16:30:50.752 Preview Error: Preview process not ok.
            fileinfo(/var/lib/mythtv/recordings/4592_20090206163046.mpg.png) exists: 0 readable: 0 size: 0
2009-02-06 16:31:03.801 Reschedule requested for id -1.
2009-02-06 16:31:03.865 Scheduled 0 items in 0.1 = 0.02 match + 0.05 place
2009-02-06 16:31:18.924 Started PESPacket, but !payloadStart()
2009-02-06 16:32:31.081 Expiring 0 MBytes for 4592 @ Fri Feb 6 16:00:00 2009 => WORLD BUSINESS TODAY

i read through this thread here http://forum.xbmc.org/showthread.php?tid...e+recorder but no luck

any thoughts here ?!
(This post was last modified: 2009-02-06 19:16 by megacrypto.)
find quote
greco Offline
Junior Member
Posts: 18
Joined: Feb 2009
Reputation: 0
Post: #2
From the looks of it, it seems this is your problem:

Code:
15:57:32 T:2788092816 M:366764032   ERROR: SetupLiveTV - unable to spawn live tv: Failed to setup livetv.
15:57:32 T:2788092816 M:366764032   ERROR: CDVDPlayer::OpenInputStream - error opening [myth://mythtv:123@192.168.1.5/channels/18.ts]

My guess is you need to figure out why the TS stream could not be started on the Myth box. Try watching livetv directly off the myth box. Then check to see if the proper credentials are setup on the myth channel folder, could be a simple permissions problem.
(This post was last modified: 2009-02-06 16:44 by greco.)
find quote
megacrypto Offline
Senior Member
Posts: 219
Joined: Apr 2008
Reputation: 0
Post: #3
greco Wrote:From the looks of it, it seems this is your problem:

Code:
15:57:32 T:2788092816 M:366764032   ERROR: SetupLiveTV - unable to spawn live tv: Failed to setup livetv.
15:57:32 T:2788092816 M:366764032   ERROR: CDVDPlayer::OpenInputStream - error opening [myth://mythtv:123@192.168.1.5/channels/18.ts]

My guess is you need to figure out why the TS stream could not be started on the Myth box. Try watching livetv directly off the myth box. Then check to see if the proper credentials are setup on the myth channel folder, could be a simple permissions problem.

live tv works fine on the myth machine using the myth frontend
find quote
rodercot Offline
Member+
Posts: 795
Joined: Feb 2008
Reputation: 25
Location: Ottawa, Canada
Post: #4
I think you need to check out the mysql.txt file and get the password Myth supplied you when you setup the back end. I had the same issue with mine.

Dave
find quote
megacrypto Offline
Senior Member
Posts: 219
Joined: Apr 2008
Reputation: 0
Post: #5
rodercot Wrote:I think you need to check out the mysql.txt file and get the password Myth supplied you when you setup the back end. I had the same issue with mine.

Dave

this is what i have in sql.txt

Code:
DBHostName=localhost

# By default, Myth tries to ping the DB host to see if it exists.
# If your DB host or network doesn't accept pings, set this to no:
#
DBHostPing=no

DBUserName=mythtv
DBPassword=xxxxxx
DBName=mythconverg
DBType=QMYSQL3

the rest is commented out
find quote
greco Offline
Junior Member
Posts: 18
Joined: Feb 2009
Reputation: 0
Post: #6
Do you have iptables or firewall settings in place? Make sure you have the proper UDP/TCP ports enabled...
find quote
megacrypto Offline
Senior Member
Posts: 219
Joined: Apr 2008
Reputation: 0
Post: #7
greco Wrote:Do you have iptables or firewall settings in place? Make sure you have the proper UDP/TCP ports enabled...

no firewall or anything on either boxes (i didnt setup any)

the xbmc is built from ubuntu 8.10 mini (and xbmc svn) and the myth is built on normal ubuntu 8.10 desktop (myth also from svn - but myth is working ok on its own box - both front & back ends)

(unless any of these have any hidden settings that im not aware off - im quite new at this)

note that when i go into guide, i can retrieve the guide from my myth machine (i.e i can access the db from the xbmc box and read from it)
(This post was last modified: 2009-02-06 19:14 by megacrypto.)
find quote
uomiarz Offline
Senior Member
Posts: 256
Joined: Jan 2008
Reputation: 5
Location: Detroit,MI
Post: #8
to test mysql connection from xbmc machine

Code:
mysql -p -h ip_of_myth_backend

it should ask for password which is here DBPassword=xxxxxx

and you should see something like that

Code:
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 818
Server version: 5.0.67-0ubuntu6 (Ubuntu)

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql>



if you can't connect then you found your problem
find quote
greco Offline
Junior Member
Posts: 18
Joined: Feb 2009
Reputation: 0
Post: #9
If the above post is true, then you need to grant the mythtv user access from another workstation. To do this log into mysql as root on the mythtv box and run the following in mysql:

Code:
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 818
Server version: 5.0.67-0ubuntu6 (Ubuntu)

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql> grant all on mythconverg.* to mythtv@192.168.1.4 identified by 'xxxxxx';
mysql> flush privileges;
find quote
megacrypto Offline
Senior Member
Posts: 219
Joined: Apr 2008
Reputation: 0
Post: #10
greco Wrote:If the above post is true, then you need to grant the mythtv user access from another workstation. To do this log into mysql as root on the mythtv box and run the following in mysql:

Code:
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 818
Server version: 5.0.67-0ubuntu6 (Ubuntu)

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql> grant all on mythconverg.* to mythtv@192.168.1.4 identified by 'xxxxxx';
mysql> flush privileges;

i did try from the xbmc box and as root and could not login to the db, but when i did:
Code:
sudo mysql -u mythtv -p -h 192.168.1.5

i could log in
find quote
Post Reply