[RELEASE] Myth2XBMC Script for Xbox (Stream Live TV from MythTV to XBMC for Xbox)
#31
There is a new version of myth2xbmc that supports mythtv .22 protocol 50. Might have a few bugs yet but initial testing looks ok. It has not been tested with mythtv .21 protocol 40.

http://code.google.com/p/myth2xbmc/downloads/list
Reply
#32
I just updated this script to fix an issue with the latest XBMC SVN.
http://code.google.com/p/myth2xbmc/downloads/list
Reply
#33
Hi, this sounds like a great script but I'm having problems setting up...

I'm completely new to linux so have no idea what I'm doing but I've installed mythbuntu 9.10 (on an old compaq 1.4Ghz processor pc to be used as backend) which I think is working ok. When I try to link my xbox as a frontend it says something like "Failed to connect with MYSQL Database - conn". If I manually go to the filemanager in xbmc and add the source: myth:\\user:[email protected] it shows the guide, recordings folders etc but when you go to the live tv one nothing comes up.

Is there some settings I have to manually edit somewhere? I have been trying for the past 4 days without any success so any help would be much appreciated. Thanks
Reply
#34
This may have already been answered in an earlier post by jurr.

"After some googling i've find that is a password version problem, to resolve the issue i've modified user password with the following mysql command:

SET PASSWORD FOR '<xbmc_user>'@'%' = OLD_PASSWORD('<xbmc_password>');

And it start working "

This worked for me. I am also a linux novice.
Reply
#35
Hi I am running Myth2Xbox in Spain. I have MythBuntu 9.10 runnung well and the MythTV front end can watch TV.

I can connect to the Backend from my XBOX and get the channel listings. When I go to watch a channel. It displays: Tuning channel X and then after a few seconds pops upa a window for half a second and goes back to the channel listing.

Looking at the debug messages yields the following:

File "Q\scripts\myth2xbmc\myth.py" line 105, in convToGUIEncoding us = unicode(s.'utf')
UnicodeDecodeError: 'utf8' codec can't decode bytes in position 43-46:invalid data.


I set my LAN cache to 256 and off with no luck.

Is it possible that the special characters that the Spanish alphabet has is causing some sort of error?

Any help would be greatly appreciated.
Reply
#36
Using the "old password" stuff for mysql finally has myth2xbmc able to connect to the master server.

But when I try to play live tv, it plays for a few seconds with no sound, then closes, then it shows loading again, then plays, then stops, and it repeats until the xbox freezes.

I'll get the debug logs to be more helpful.
Reply
#37
Yes, I definitely need debug logs to troubleshoot.
Reply
#38
here it is

Code:
11:10:27 M: 33832960  NOTICE: -->Python Initialized<--
11:10:37 M: 26132480  NOTICE: Loading [0, 'Main', 'self.refresh()', 'refresh']
11:11:03 M: 30314496  NOTICE: Loading [1, 'LiveTV', 'mythlivetv.showWindow(self.loadingWin,None)', 'main_live_tv']
11:11:15 M: 29356032  NOTICE: Traceback (most recent call last):
11:11:15 M: 29356032  NOTICE: NameError: global name 'action' is not defined
11:11:31 M: 29356032  NOTICE: Traceback (most recent call last):
11:11:31 M: 29356032  NOTICE: NameError: global name 'action' is not defined
11:11:32 M: 29347840  NOTICE: Traceback (most recent call last):
11:11:32 M: 29347840  NOTICE: NameError: global name 'action' is not defined
11:11:34 M: 30158848  NOTICE: Exception
11:11:34 M: 30158848  NOTICE: myth.ServerException
11:11:34 M: 30158848  NOTICE: :
11:11:34 M: 30158848  NOTICE: <myth.ServerException instance at 0x00FF1C88>
11:11:34 M: 30158848  NOTICE:  in
11:11:34 M: 30158848  NOTICE: <bound method Connection.__del__ of <myth.Connection object at 0x01419FB0>>
11:11:34 M: 30158848  NOTICE:  ignored
11:11:35 M: 34070528  NOTICE: -->Python Initialized<--
11:11:46 M: 27262976  NOTICE: Loading [0, 'Main', 'self.refresh()', 'refresh']
11:11:48 M: 30425088  NOTICE: Loading [1, 'LiveTV', 'mythlivetv.showWindow(self.loadingWin,None)', 'main_live_tv']
11:11:59 M: 28008448  NOTICE: CMPlayer::CloseFile()
11:11:59 M: 27484160  NOTICE: CMPlayer::CloseFile()
11:12:01 M: 11743232  NOTICE: Display resolution USER : 720p 16:9 (1)
11:12:06 M: 14069760  NOTICE: CMPlayer::CloseFile()
11:12:07 M: 19709952  NOTICE: CMPlayer::CloseFile()
11:12:07 M: 19709952  NOTICE: CMPlayer::CloseFile()
11:12:12 M: 23306240  NOTICE: CMPlayer::CloseFile()
11:12:12 M: 22781952  NOTICE: CMPlayer::CloseFile()
11:12:13 M:  7647232  NOTICE: Display resolution USER : 720p 16:9 (1)
11:12:18 M: 10567680  NOTICE: CMPlayer::CloseFile()
11:12:19 M: 16269312  NOTICE: CMPlayer::CloseFile()
11:12:19 M: 16269312  NOTICE: CMPlayer::CloseFile()
11:12:25 M: 19472384  NOTICE: CMPlayer::CloseFile()
11:12:25 M: 18948096  NOTICE: CMPlayer::CloseFile()
11:12:26 M:  3858432  NOTICE: Display resolution USER : 720p 16:9 (1)
11:12:31 M:  6434816  NOTICE: CMPlayer::CloseFile()
11:12:32 M: 12316672  NOTICE: CMPlayer::CloseFile()
11:12:32 M: 12316672  NOTICE: CMPlayer::CloseFile()
Reply
#39
sliq,
I believe the problem is that you are using a new version of XBMC that moved the video cache settings for XBMC. They used to be stored in XBMC/UserData/guisettings. I was parsing that to get the cache value to wait until the video file is big enough to fill the cache before starting the video player. I think the values have been made optional and placed in XBMC/UserData/AdvancedSettings.xml. The restarting is by design because when watching livetv and the one show is done the file is done so need to open the file for the next show.

I think a quick workaround is to add the SAME cache setting to BOTH guisettings.xml and AdvancedSettings.xml. Try adding the following to both files:

<cachevideo>
<dvdrom>1024</dvdrom>
<internet>1024</internet>
<lan>1024</lan>
</cachevideo>

It needs to be between the <settings> and </settings> tags in guisettings.xml and between the <advancedsettings> and </advancedsettings> in AdvancedSettings.xml so you would get something like this in guisettings.xml.

<settings>
<cachevideo>
<dvdrom>1024</dvdrom>
<internet>1024</internet>
<lan>1024</lan>
</cachevideo>

.... other stuff ....

</settings>

Let me know if that helps. I probably will have a fix out in the next 2-3 days that tries to parse AdvancedSettings.xml first and falls back to guisettings.xml.
Reply
#40
New version that should fix the Live TV problem reported by sliq
http://code.google.com/p/myth2xbmc/downloads/list
Reply
#41
got the new version and also edited the xml files

now it only restarts twice, and the xbox doesn't crash. And still no sound for the few seconds that it does play

Code:
20:33:09 M: 35860480  NOTICE: -->Python Initialized<--
20:33:19 M: 28876800  NOTICE: Loading [0, 'Main', 'self.refresh()', 'refresh']
20:33:23 M: 32059392  NOTICE: Loading [1, 'LiveTV', 'mythlivetv.showWindow(self.loadingWin,None)', 'main_live_tv']
20:33:32 M: 29081600  NOTICE: CMPlayer::CloseFile()
20:33:32 M: 28561408  NOTICE: CMPlayer::CloseFile()
20:33:33 M: 15577088  NOTICE: Display resolution USER : 720p 16:9 (1)
20:33:37 M: 17059840  NOTICE: CMPlayer::CloseFile()
20:33:37 M: 21696512  NOTICE: CMPlayer::CloseFile()
20:33:37 M: 21696512  NOTICE: CMPlayer::CloseFile()
20:33:42 M: 25014272  NOTICE: CMPlayer::CloseFile()
20:33:42 M: 24489984  NOTICE: CMPlayer::CloseFile()
20:33:43 M: 11587584  NOTICE: Display resolution USER : 720p 16:9 (1)
20:33:46 M: 13025280  NOTICE: CMPlayer::CloseFile()
20:33:47 M: 17690624  NOTICE: CMPlayer::CloseFile()
20:33:47 M: 17690624  NOTICE: CMPlayer::CloseFile()
Reply
#42
sliq,
What version of XBMC are you running?

You can try changing the cache values from 1024 to 4096 for the lan video cache value.

The no audio problem may be that mplayer has chosen the wrong audio channel... and so I think is unrelated to the stopping/restarting. You can try changing the default video player from mplayer to dvdplayer in AdvancedSettings.xml to see if the audio works then.
Reply
#43
teresa Wrote:sliq,
What version of XBMC are you running?

You can try changing the cache values from 1024 to 4096 for the lan video cache value.

It just makes it last longer before it closes. (but only runs once now)

XBMC 9.11-alpha1-r24238

Code:
17:40:43 M: 35950592  NOTICE: -->Python Initialized<--
17:40:56 M: 29003776  NOTICE: Loading [0, 'Main', 'self.refresh()', 'refresh']
17:41:08 M: 32198656  NOTICE: Loading [1, 'LiveTV', 'mythlivetv.showWindow(self.loadingWin,None)', 'main_live_tv']
17:41:22 M: 29196288  NOTICE: CMPlayer::CloseFile()
17:41:22 M: 28655616  NOTICE: CMPlayer::CloseFile()
17:41:23 M:  9367552  NOTICE: Display resolution USER : 720p 16:9 (1)
17:41:32 M: 13918208  NOTICE: CMPlayer::CloseFile()
17:41:32 M: 21696512  NOTICE: CMPlayer::CloseFile()
17:41:32 M: 21696512  NOTICE: CMPlayer::CloseFile()

As for the sound, using my computer to play the video file created in my Live TV folder by myth2xbmc, there is no sound either. Playing a file created by mythtv client on my computer has sound.
Reply
#44
Sliq,
if you have an AdvancedSettings.xml.template in UserData, copy it to AdvancedSettings.xml. Change the <videocache><lan> setting there to 4096. You can also try changing <video><defaultplayer> to dvdplayer to see if it makes a difference. I find that dvdplayer tends to stutter on the digital mpegs from mythtv but you might have a different result.
Reply
#45
teresa Wrote:Sliq,
if you have an AdvancedSettings.xml.template in UserData, copy it to AdvancedSettings.xml. Change the <videocache><lan> setting there to 4096. You can also try changing <video><defaultplayer> to dvdplayer to see if it makes a difference. I find that dvdplayer tends to stutter on the digital mpegs from mythtv but you might have a different result.

ahhh, my AdvancedSettings was wrong. Changing the cache size and the default player to dvdplayer fixed it, and the audio..
awesome!

I wonder why mplayer doesn't work though
Reply

Logout Mark Read Team Forum Stats Members Help
[RELEASE] Myth2XBMC Script for Xbox (Stream Live TV from MythTV to XBMC for Xbox)1