PDA

View Full Version : myth// .. no playback from backend


megacrypto
2009-02-06, 16:34
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:

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:


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://xbmc.org/forum/showthread.php?t=2297&highlight=unable+recorder but no luck

any thoughts here ?!

greco
2009-02-06, 16:39
From the looks of it, it seems this is your problem:


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.

megacrypto
2009-02-06, 17:32
From the looks of it, it seems this is your problem:


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

rodercot
2009-02-06, 17:34
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

megacrypto
2009-02-06, 18:30
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


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

greco
2009-02-06, 18:37
Do you have iptables or firewall settings in place? Make sure you have the proper UDP/TCP ports enabled...

megacrypto
2009-02-06, 18:54
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)

uomiarz
2009-02-06, 19:17
to test mysql connection from xbmc machine

mysql -p -h ip_of_myth_backend

it should ask for password which is here DBPassword=xxxxxx

and you should see something like that

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

greco
2009-02-06, 20:04
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:


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;

megacrypto
2009-02-06, 20:31
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:


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:
sudo mysql -u mythtv -p -h 192.168.1.5

i could log in

dteirney
2009-02-07, 09:54
What's the IP address or hostname configured as in the Mythbackend configuration?

The "IP address for mythtv" setting from http://www.mythtv.org/wiki/User_Manual:Detailed_configuration_Backend#Host_Ad dress_Backend_Setup

megacrypto
2009-02-07, 14:54
what's the ip address or hostname configured as in the mythbackend configuration?

The "ip address for mythtv" setting from http://www.mythtv.org/wiki/user_manual:detailed_configuration_backend#host_ad dress_backend_setup

192.168.1.5

rodercot
2009-02-07, 18:13
192.168.1.5

What will it NOT do when you connect with

myth://user:pass@192.168.1.5

user = mysql username from mysql.txt
pass = pass from mysql.txt.

I also just noticed in your mysql.txt you posted the db is using localhost and you set the ip to 192.168.1.5

I think localhost = 127.0.0.1 does it not?

rgds,

Dave

megacrypto
2009-02-07, 18:23
well .. im doing a fresh install right now and will let you know how it goes

megacrypto
2009-02-07, 21:03
did the fresh install and it is all the same.. what does xbmc use to playback the myth stream ?? because when i try to select a player for playing movies from the context menu (from play using), i get DVDPlayer (default) & ExternalPlayer .. but if select ExternalPlayer to playback a movie .. nothing happens

note: im using this minimal install of ubuntu, so not everything is installed by default, and many things i has to be installed on its own... so maybe i need mplayer ?!

dteirney
2009-02-08, 11:32
myth:// has normally worked without any hitches and I used to have MythTV running on a different machine (not currently though).

It sounds like you've run through all the necessary setup steps from both

http://xbmc.org/wiki/?title=MythTV#Setup_in_MythTV and
http://xbmc.org/wiki/?title=MythTV#Setup_in_XBMC

Can you check that I've described the instructions in the wiki clearly enough?

If you do resolve the issue, are you able to either update the wiki directly or let me know and I will.

dteirney
2009-02-08, 11:33
Oh, and stick with dvdplayer until you at least get something playing (it's what I'm using out of the box). I'm not sure how well any external player would work with myth://

arkay
2009-02-13, 03:01
I had a similar issue once. Dunno if it's your cause but worth a look. The cmyth library used for Myth connectivity in XBMC apparently only enumerates the first 17 tuner devices when looking for available tuners. If you played a bit when you set up the myth backend (added and removed tuners a bit), then it's possible that your tuner ID's are >17 in the backend database. The net result is that you get the guide and all the stations displayed in XBMC but XBMC can never select a tuner for live TV playback. This of course may not be your problem but if it is then you need to either remove completely all your tuners (so they start at 0 when re-added), then re-add them, or manually edit the backend database and reorder your tuner device numbers (not recommended).

Cheers,

Arkay.

megacrypto
2009-02-13, 05:54
i read about this, the numbering of dvb sources, but that is not it. anyways, im currently trying out vdr with the new frontend in xbmc.. will give it a test for a cpl of days and see how it works

arkay
2009-02-13, 06:09
No probs. Just thought I'd mention it. Be interested to hear about the VDR frontend. I have a 100% working myth backend but I've been hoping for a fully integrated solution in XBMC. Might have to splice 1 tuner out of the myth backend to add to VDR and test it myself !

Cheers,

Arkay.

rodercot
2009-02-13, 20:29
So here is my situation,

I have My Master backend and XBMC running on 192.168.1.132, everything works as well as It should I guess.

Mythbox script works as well on above.

Setup Slave machine at 192.168.1.190 with XBMC as the frontend. Setup Mythbackend and Frontend first as secondary backend and I am making sure that works and it does, other than I cannot WATCH the recordings I schedule on the Master back end.

The secondary machine is configured as 127.0.0.1 in Myth backend setup for the slave machine and it is connecting to the database at 192.168.1.132 and that is fine I can watch live tv from Myth on the slave machine.

NOW How do I setup the protocol for this OR mythbox because currently it will not connect to 127.0.0.1 I get no guide or livetv data if I change to 192.168.1.190 I get no guide but I can see the recordings (but they will not play) and I can see Live tv (but with no icons) and I can watch live tv. If I change to 192.168.132 of course I get liveTV data, Guide Data, and I see the recordings from the default directory only and not from the livetv but they will not play and the major problem here is no watching of live tv but what the protocol does do is tries to launch the live tv channel say discovery I can see activity like it is going to start then does not but I still have activity going on, then if I hit the button again to view the same live tv channel it will then start but will not stop and if I go and check status on the Master Back end, both of my TUNERS 3 and 4 are tied up watching live tv and I have to reboot the slave machine to get it to stop and release the tuners.

And finally I get no live tv after resuming from Standby in any way shape or form unless I reboot the machine again.

Any Advice. Same issues using the protocol or the mythbox script.

Dave

dteirney
2009-02-14, 00:04
Guide and (we think) Live TV comes directly from the database. So in XBMC you want the the myth:// URL to point to the Master Backend as that's where the DB is, 192.168.1.132.

Playing of recordings can fail if the IP Address is configured in MythTV incorrectly. See http://xbmc.org/wiki/?title=MythTV#Setup_in_MythTV

I don't know how the Slave would interfere though. If recording is being done on both, are there physical recordings on two different machines??? If so, cmyth may not deal with that. I'd try setting the Local Backend IP Address on the Slave Machine to 192.168.1.190 rather than 127.0.0.1.


Do you need two MythTV backends running? I believe that is normally only done if you want to record a LOT of channels at once and can't physically do that on one machine, or if you want to offload transcoding work or commercial flagging etc. to another machine.

If you can do all the recording you need from one box, then perhaps.

1) Setup one machine to have MythBackend installed. (Machine 192.168.1.132). Ensure that the mythtv-setup -> General -> Local Backend -> IP Address is set to 192.168.1.132
2) Install Myth Frontend Only on the other machine. Use this to test that playing Live TV and Recordings works (Machine 192.168.1.190). You don't need to install full MythTV if you just need to watch Live TV or Recordings.
3) Install XBMC on 192.168.1.190. myth://user:password@192.168.1.132


The old xbmcmythtv script used to start "Live TV" by scheduling a Tuner for a period of time (default was 120 minutes I think - could be changed through configuration). MythBox probably does something similar since it was forked from that code.

I believe the myth:// protocol does something different, so should be better at releasing tuners when XBMC is closed and the Myth Client is closed.

Check the mythbackend.log file to see what is going on.


Regarding the Tuner status issue after suspend. That is likely not related to XBMC. I recall that coming up as an issue for Tuners and Myth TV in general. Some cards support Suspend, some not. Try and find out if the cards you are using support it, or if there are any tweaks needed to Linux config to allow it.

On my Myth Box, I have it shutdown fully when not in use to avoid that whole issue.

rodercot
2009-02-14, 00:22
Yep I have tried all that stuff, I am not recording on the slave machine and there is no database running on it. I had to install the secondary backend on that machine because the 2nd pvr-150 and 2nd stb is in that room as well.

If nothing is recording and I try to watch a channel with the settings at the .132 master backend address nothing works until the 2nd attempt to watch live tv on the same slave machine and it then locks up both tuners the one in the master and the one in the slave and I can only stop the slave machine tuner the master b/c tuner stays locked and only reboot releases it.

Without XBMC running or trying to access everything works Great on either machine other that then recording playback. I am not trying to record on both machines, I rcrded Grey's last night on the .132 Master machine. It stored it in /var/lib/mythtv/recordings/ basically the default group as that is the only directory I have setup currently and then of course I also have a /var/lib/mythtv/recordings directory that I set up on the .190 machine for Live tv etc so the only recordings in the .190 directory are livetv which of course cannot be seen by the .190 slave machine either as it is connected to the master .132 machines db.

I did not figure XBMC had anything to do with the suspend issue I just hoped someone may have ran into it before.

Dave

draggy
2009-02-14, 19:57
I have the same problem mentioned by others.

mythtv backend is on a separate hardy machine. myth is setup correctly with the correct backend ip (not 127.0.0.1)

I can connect to the mythtv backend from my machines using mythtv frontend. watching live tv works fine.

I connected to my myth backend using the last svn of xbmc, using the db username/password.

XBMC connects and shows the channels and the guide. But it will not play live tv or any recordings.

dteirney
2009-02-14, 23:15
If you can both post your full XBMC debug log and mythbackend.log files to pastebin I'll see how they differ from mine.

rodercot
2009-02-15, 01:10
I have the same problem mentioned by others.

mythtv backend is on a separate hardy machine. myth is setup correctly with the correct backend ip (not 127.0.0.1)

I can connect to the mythtv backend from my machines using mythtv frontend. watching live tv works fine.

I connected to my myth backend using the last svn of xbmc, using the db username/password.

XBMC connects and shows the channels and the guide. But it will not play live tv or any recordings.


Yep it seems like the protocol is on the first attempt locking up the tuner and not displaying anything on screen for me via Livetv and then on the second attempt of the same channel it actually locks the proper tuner (4) as well as keeping tuner (3) locked but now it will display live tv.

I will post logs in the am. I am in the middle of switching out the minuet case for a Fusion (too much heat from the minuet)

Dave

elupus
2009-03-04, 19:30
make sure you guys have hosts entries for any backend machine on the machine that runs xbmc.

The myth backend will even if you set it to connect by IP, return hostname's for the recordings/livetv.

It's some stupid bug in their server imho..

draggy
2009-03-19, 05:13
make sure you guys have hosts entries for any backend machine on the machine that runs xbmc.

Thanks! that's just what I was missing.