View Full Version : Python and MythTV (a MythTV Front-End)
greetings all. i have just started using mythtv for xbmc so i'm a little jittery. all my ports and addresses seem to be ok, and i followed the instructions over at najit's site. however, whenever i go to test, i get this "socket not connected" when it tries to hook into the sql database. can someone tell me how to fix this?
make sure that in /etc/mysql/my.cnf you have something like
bind-address = 192.168.1.7
port = 3306
#skip-networking
notice that skip-networking is commented.
one more thing you can try is entering the ip address of the server in the xbmcmythtv settings, not the hostname.
does anyone know why my mplayer does not seem to play nuv files? i downloaded the latest codecs pack, but still no luck :(
i let mplayer transcode the mpeg to mpeg4. i assumed the mplayer could play mpeg4 encoded nuv files?
freeidee
2005-05-28, 18:58
hey but the project xbmyth it is died? no new version from much time does not exit
for simplicity you can use the web cvs client at sf.net here
http://cvs.sourceforge.net/viewcvs.py/xbmcmythtv/xbmcmythtv/
otherwise you will need to download and install a cvs client (cvstortise or wincvs). there should be more details on that at www.sf.net
can someone please provide a bit more info on this. i'm using tortoisecvs with the following settings:
protocol: password server (:pserver:)
server: cvs.sourceforge.net
repository folder: /cvsroot/xbmcmythtv
user name: anonymous
module: xbmcmythtv
when i get the file list it's the 0.17.2 version which is available as a normal download from sourceforge anyway. i thought using tortoisecvs would download the latest version in cvs that people are working on in this forum. how do i get the latest and greatest?
regards,
phill
freeidee
2005-05-29, 14:00
not there is nothing to report the development cvs is blocked from 6 months, no news
not there is nothing to report the development cvs is blocked from 6 months, no news
the most recent files on the cvs were updated 5 weeks ago, mad is probably busy, give the dude a break.
on another note, i fixed my stability issue by turning off all the details fields, any ideas on why there fields may be crashing xbmc? see my last post for details and log.
wob
yep.. been a bit busy lately. i have started working on some minor changes this evening and i'm going to get scheduling recordings going soon as well...
scanning through the last few pages of messages, it looks like there is a bit of bug fixing that needs to happen at some point as well. i think i may try upgrading my xbmc install first though... to see how stable it is before i start looking into some of these issues.
as for the problem with show details causing xbmc to crash, it is possible that the description is too long for a fade label to handle. i'd have to poke through the xbmc c++ code to see if there might be a problem. you could try truncating the description to a fixed size. i've also been thinking about changing the description so that it is displayed in a text field (i.e. with line breaks - kinda like imdb information).
i have found that if python uses too much memory, it will bring down xbmc quickly...
i made a small and very dirty proof of concept for a replacement script for the mythranscode binary. it works, but don't ask how. it's purpose is to convert my mpeg2 nuvs to fake xvid nuv's. it does this without commercial skipping (i think) and user mencoder to recode the mpeg2 stream. the resulting nuv xvid file can be played by the xbmcmythv mplayer and also within windows. the mpeg4 transcoded stream from the original mythtranscode can't (see my former posting):
#/bin/bash
echo -e "\n\n===============================" >>/tmp/mythtranscode.out
echo "mythtranscode $*" >>/tmp/mythtranscode.out
sql () {
mysql -u root mythconverg -e "$*" >>/tmp/mythtranscode.out 2>&1
echo "$*" >>/tmp/mythtranscode.out
}
partfile=`echo $6|tr -cd "1234567890"`
channel=$4
starttime=`echo $6|tr "t" " "`
echo "partfile=$partfile" >>/tmp/mythtranscode.out
cd /mnt/disk3/video/tv/
name="`ls $channel\_$partfile*.nuv`"
echo "name: $name" >>/tmp/mythtranscode.out
sql "update jobqueue set status=4 where chanid=$channel and starttime='$starttim
e'"
nice -n +20 mencoder $name -ovc xvid -oac mp3lame -lameopts br=128 \
-vf scale=480:480 -o $name.tmp -xvidencopts bitrate=1000\
>/tmp/mencoder.out 2>>/tmp/mythtranscode.out
if [ $? -eq 0 ]; then
if [ ! -f $name.tmp ]; then
sql "update jobqueue set status=8 where chanid=$channel and starttime='$star
ttime'"
echo "failed!" >>/tmp/mythtranscode.out
return 99
else
sql "update jobqueue set status=5 where chanid=$channel and starttime='$star
ttime'"
echo "success!" >>/tmp/mythtranscode.out
sleep 5
return 0
fi
else
rm -rf $name.tmp
sql "update jobqueue set status=8 where chanid=$channel and starttime='$startt
ime'"
echo "failed!" >>/tmp/mythtranscode.out
return 99
fi
freeidee
2005-06-06, 21:21
madtw news for the development ? :(
hi everyone. got my mythtv going. all is well, however, i cannot get myth to play my .nuv files. is there something that i need to do to make them playable? i have them encoded now as mpeg4 i think. not mjpeg.
madtw news for the development ? :(
there are some updates in cvs... haven't started on scheduling recordings yet. i've been too busy upgrading myth to 0.18.1, upgrading xbmc, and fixing some bugs that might be affecting people. i won't be creating a new release on sourceforge until i get scheduling implemented and the updates seem to be stable. i can't give any timeline for this since i only get a few hours a week to work on this stuff...
hi everyone. got my mythtv going. all is well, however, i cannot get myth to play my .nuv files. is there something that i need to do to make them playable? i have them encoded now as mpeg4 i think. not mjpeg.
uhm... look about 5 posts back.. mp4 is not supported. i wrote a small and dirty script to resolve this problem..
- rename the /usr/bin/mythtranscode to mythtranscode.old
- copy my script to /usr/bin/mythtranscode and make it executable (chmod +x)
- from now on your recordings will be converted to xvid and playable on the xbox
and madtw, thanks for the update. i keep amazing my friends about what's possible with mythtv + xbmc + xbmcmythtv!!
i'm having a problem using an alternate skin, antiguo, and xbmcmythtv (a cvs pull from this morning).
i know that xbmcmythtv doesn't have screen files for this skin, but i was hoping it would/could/should default to another (mayhem iii prefererred).
when i run xbmcmythtv from antiguo, i get a dialog:
error: argument 5 must be a string, not none.
any ideas?
-troy
download antiguo:
http://www.xbox-skins.net/forums....id=3999 (http://www.xbox-skins.net/forums/index.php?act=downloads&do=download&id=3999)
see/discuss antiguo:
http://www.xboxmediaplayer.de/cgi-bin....antiguo (http://www.xboxmediaplayer.de/cgi-bin/forums/ikonboard.pl?act=st;f=7;t=13346;hl=antiguo)
i'm having a problem using an alternate skin, antiguo, and xbmcmythtv (a cvs pull from this morning).
i know that xbmcmythtv doesn't have screen files for this skin, but i was hoping it would/could/should default to another (mayhem iii prefererred).
:nuts:
never mind.
the easy answer was to copy/rename the skin directory!
duh.
yep, people have asked for xbmcmythtv to default to some other skin... if there aren't any skin files for the one selected in xbmc. i forgot about this request although the workaround is quite simple like you found out. it'd be nice if people submitted bug/feature requests on sourceforge so that we can track all these things and i don't have to remember or read through the bazillion pages on this thread. :)
incase anyone is interested i have been playing with the livetv stuff and have a crude osd working. lets you 'browse' channels, and select a new channel. seems to work ok.
if anyone wants to play with it (no promises) it's at http://www.frooby.net/xbmcmythtv/
freeidee
2005-06-14, 14:52
great !! :o
http://www.frooby.net/xbmcmythtv/screenshots/mythtvxbmc-osd.png
freeidee
2005-06-14, 14:56
mythtvprogram.py - added a minor change so recorded shows are marked in main program listing.. havn't finished it. was going to add rec start and end times but never got around to completing.
wao
sorry i understand good
ability record start from xbox ?!:d
freeidee
2005-06-14, 15:05
sorry the link for download archived version xbmcmythtv including your above change not work :(
http://www.frooby.net/xbmcmythtv/xbmcmythtv.rar
freeidee,
make sure you delete any .pyo files from the xmbcmythtv directory before you try it. once deleted reboot the xbox and try again. can you get the current version from cvs working? if not i would try that first and get that working then copy my changes over, delete the .pyo's and try again.
anyway i have only ever tested it on my setup, with only about 7 channels so there could very well be alot of other problems with it. had it running for about 4-5 hours yesterday with alot of channel changing and no problems.
i think i also made another change to the setting.xml file and added another setting:
<paths_livetvdir>livetv</paths_livetvdir>
so you might want to add that and see if it helps. it's just the name of the share on you mythtv box which stores the ringbuf file.
freeidee,
sorry i miss read your post... i changed it from a rar to a zip but forgot to change the link. it is suppose to be:
http://www.frooby.net/xbmcmythtv/xbmcmythtv.zip
frooby: what is the difference between <paths_livetvdir> and <paths_livetvprefix>? the latter includes the protocol, hostname, share name (if using smb) prefix of the directory where ring buffers are created...
i haven't had a chance to run this yet but once you're happy with it, it might be worth while adding it to the code in cvs...
madtw,
i thought i had used the livetvdir to create the path from scratch using the backend ip for the free encoder, but looking at it now i never actually finished :blush:
anyway before adding to cvs might pay to make sure it works for more than one person. don't want to break anything else!
madtw,
i thought i had used the livetvdir to create the path from scratch using the backend ip for the free encoder, but looking at it now i never actually finished :blush:
anyway before adding to cvs might pay to make sure it works for more than one person. don't want to break anything else!
i have tested your modifications successfully, i too only have 7 channels. northern nsw free to air (abc, abc2, nbn, sbs, sbs news, prime and ten northern).
i have found one problem when seeking to the smb share your method of connecting doesn't seem to pass on the username and password settings and i get prompted and have to enter these in.
apart from that it works very nicely, does seem a little buggy, had it freeze up a couple of times but looks very nice.
being able to toggle the info on/off with the info button would be nice so it doesn't fade away when reading long descriptions.
nice work. :thumbsup:
beau
okees. this is all well & good folks, but i think this thread is already way overcrowded.
how about http://sourceforge.net/forum/?group_id=128346
or
http://www.mythtv-xbox.org/phpbb....c714c83 (http://www.mythtv-xbox.org/phpbb/viewforum.php?f=6&sid=a0149ad076a6e1fb3a1158575c714c83)
????
why? well for one thing his thread isn't searchable and it takes a very long time to go through each & every page. what are we on now? like 37 or something?! this is just crazy.
can folks start to migrate to the other places to make life easier for everyone? ;)
wob,
i have always had issues with the samba username/password so ended up just making the livetv/recording shares open to everyone, which is why i left that part out. it's on my local lan so who am i trying to keep out? made things alot easier with this stuff, could always add it back though, wouldn't take much to make the livetvprefix a username/password field then take that to the beginning of the samba string!...
anyway, as per juski's great advice, am going to post to the mythtv-xbox.org forum as it seems more dedicated to this, and hopfully make things a little easier on a whole.
booger bob
2005-06-16, 07:49
i'm getting a new error after upgrading my mythtv box to .18. when i try to connect to recorded shows i get an error that says
['reject', '15']
if i try again, i get an error that says
'nonetype' object has not attribute 'send'
this happens on the recorded shows, program guide and upcoming shows buttons. status shows the backend status just fine and settings when i select test says the tests succeed. live tv will show me the listings, but will not connect to the video feed.
change the value of mythtv protocol in the xmbcmythtv settings. set it to current_value+1
that did it. thanks!
im haveing the same error but when i try to put current_value+1 in the protocol box it gives me an "invalid integer value specified" message
im also getting the error message "'database' object has so attribute 'conn'"
booger bob,
try putting in '15' (whatever value is in the reject error)
booger bob
2005-06-16, 07:58
i put 15 in and it fixed recorded shows and upcoming shows but i still cant get into live tv and program guide
i got a 10057 socket error then i get database object has no attribute conn
on my mythbox when i switch to live tv the colors are all off, anyone know what would casue this?
i put 15 in and it fixed recorded shows and upcoming shows but i still cant get into live tv and program guide
i got a 10057 socket error then i get database object has no attribute conn
on my mythbox when i switch to live tv the colors are all off, anyone know what would casue this?
the live tv and program guide screens use the mysql database for data retrieval. that is where you got the 10057 socket error. live tv will only hit the backend when you select a channel to watch. the program guide screen will hit the myth backend once you pick a show... but i haven't checked in my changes for scheduling yet.
the recorded shows and upcoming shows use the myth backend for data retrieval. that is where you were getting the ['reject','15'] error.
what you should do is go into the xbmcmythtv settings screen and click on the "test settings" button. if you don't get a message saying "settings tested successfully" then you will need to fix whatever it tells you is not working. usually this means making sure the protocol version and ports are correct for the myth backend (protocol 15 works with mythtv 0.18 and 0.18.1, protocol 14 works with mythtv 0.17 - default ports for both) and the database username, password, and ports are correct for your setup. as someone mentioned on previous pages, you may have to comment out the "skip-networking" option in /etc/mysql/my.cnf so that mysql will listen on the ports for remote connections.
fyi, the reason some screens use the database and others use the myth backend for data retrieval is that the myth protocol does not provide access to all information that is needed for the various screens. i prefer getting the data using the myth protocol but sometimes there is no backend command to retrieve the info and so the next best thing is to do a database query.
as for your problem with colors... i don't quite understand what you mean - can you clarify or post a screen shot of what you mean? do you mean that the colors on the screen don't look like the colors on the rest of the screens? or do you mean that while you are watching live tv, the colors don't look right? how did you get live tv to play if you got a socket error going into the screen?
booger bob
2005-06-17, 04:21
when i hit watch tv the color of the video is not right, its faded and there is alot of green and some purple colors
and how would i take a scrrenshot and get it off the computer
im new to linux could you point me in the direction of a good intro to linux
when i hit watch tv the color of the video is not right, its faded and there is alot of green and some purple colors
and how would i take a scrrenshot and get it off the computer
im new to linux could you point me in the direction of a good intro to linux
hmm... you're using the myth tv frontend on linux? this forum is for helping people with problems using the python scripts for the xbox media center to access a myth tv backend remotely. if you're having general myth tv problems, i'd look for some forums dedicated to that. you can also try joining the myth tv mailing lists that can be found here (http://www.mythtv.org/modules.php?name=mythinfo).
it sounds to me like your tv tuner card may not be fully supported by the linux driver. or you may need to tweak some of the settings for your card (e.g. if the channels are not tuning in quite correctly). i'm not an expert with this stuff though... i got mine working after a lot of fiddling and haven't touched it since.
booger bob
2005-06-17, 05:48
i edited the mysql file and i can access live tv on my xbox but when i get into the live tv window i get an ilist index out of range error. also in the program guide there is no date on all my chanells
i edited the mysql file and i can access live tv on my xbox but when i get into the live tv window i get an ilist index out of range error. also in the program guide there is no date on all my chanells
i'm not sure about the list index out of range error... are you running a recent version of xbmc (~ june, 2005). it could be data related as well. live tv works for me and a number of other people so this kind of report isn't really helpful unless you can provide log files with appropriate stack traces or you debug it yourself and figure out why it is failing...
where are you expecting a date? the date range is displayed at the top of the screen. the program guide information area only has times displayed above the boxes representing the shows on the various channels. this was mainly done due to screen real estate limitations. do you see no dates at all anywhere on the screen? some people initially had problems seeing guide data (e.g. they got "no data") and this was because the xbox time in the dashboard was not setup correctly. the xbox current time is used to determine what guide data to pull back initially...
booger bob
2005-06-17, 22:36
in the program guide there is no data, ie show schedule its just empty, sorry typo,. ill try to put the xbox dash on my xbox when i upgraded hard drives i didnt pult it back on
make sure you have run mythfilldatabase as well. before you do that make sure you've got your data provider, channels, etc. configured in myth. if it doesn't work in myth, it won't work on the xbox.
booger bob
2005-06-22, 03:09
i got everything to work but when i go to live tv and click on a channel nothing happens. i can see all my listings but when i hit a on one of the shows it just sits there i\and i cannot back out
i don't know what to say man... it could be your xbmc lan buffer/xbmcmythtv buffer settings, it could be something to do with your samba path, it could be the version of xbmc that you are using, or it could be some odd bug that you're triggering with your setup. live tv works fine here on a june 5, 2005 cvs build of xbmc...
fyi, for those interested, i have checked in some changes that allow you to create and maintain recording schedules. when viewing the program guide, if you click on a show, it'll allow you to create a new schedule to record the show. also, i have added a new button to the main screen to allow you to view existing schedules and to maintain them. the skin files look ok at 16:9/720p+ but need work at lower resolutions. i'll get around to it eventually... unless someone else submits some patches.
i'm sure there are some bugs in there to be found but i figured i might as well put this out since people were bugging me earlier for it. it took a bit longer to complete this than i had hoped. :d
does this mean that we have to upgrade to myth 18.1 to be able to use the latest xbmcmythtv? i am still running myth 17.x with a knoppmyth install. i should be able to upgrade to the latest knoppmyth but i realy do not want to screw up my perfectly working myth box. but, if i have to it will give me a reason to upgrade. :)
i haven't tested it with myth tv 0.17 so i can't say for sure if you'll have problems. i try to maintain compatibility with older versions by leaving in old code if i notice that something has changed with a newer version. unfortunately, the new stuff that i built was using a myth tv 0.18 database so i don't know what it looked like for 0.17.
fyi, i have been running myth tv since version 0.12 or so... i haven't lost any of my settings or recordings when upgrading. my only rule for upgrading is to stick with the official releases as opposed to running builds from cvs. so far it has paid off...
thanks guys. i just put that script in. i should be able to put it to use later today. was that script it?
oh, is there a way to go back and have it transcode all the ones i already have?
oh, is there a way to go back and have it transcode all the ones i already have?
hmm.. figured out that thumbs cannot be created from mp4 files.. so a small refinement to my original script (wget to initiate thumbs)..
#!/bin/bash
videodir=/mnt/disk3/video/tv/
echo -e "\n\n===============================" >>/tmp/mythtranscode.out
echo "mythtranscode $*" >>/tmp/mythtranscode.out
sql () {
mysql -u root mythconverg -e "$*" >>/tmp/mythtranscode.out 2>&1
echo "$*" >>/tmp/mythtranscode.out
}
partfile=`echo $6|tr -cd "1234567890"`
channel=`echo $4`
starttime=`echo $6|tr "t" " "`
echo "partfile=$partfile" >>/tmp/mythtranscode.out
cd $videodir
name="`ls $channel\_$partfile*.nuv`"
echo "name: $name" >>/tmp/mythtranscode.out
sql "update jobqueue set status=4 where chanid=$channel and starttime='$starttime'"
nice -n +20 mencoder $name -ovc xvid -oac mp3lame -lameopts br=128 \
-vf scale=480:480 -o $name.tmp -xvidencopts bitrate=1000\
>/tmp/mencoder.out 2>>/tmp/mythtranscode.out
if [ $? -eq 0 ]; then
if [ ! -f $name.tmp ]; then
sql "update jobqueue set status=8 where chanid=$channel and starttime='$starttime'"
echo "failed!" >>/tmp/mythtranscode.out
return 99
else
sql "update jobqueue set status=5 where chanid=$channel and starttime='$starttime'"
echo "success!" >>/tmp/mythtranscode.out
# load the page to initiate building thumbs from mpg instead of mp4
wget http://localhost/mythweb/recorded_programs.php -o /dev/null
sleep 5
# mythtv takes care of removing the mpg and replacing the converted mp4
return 0
fi
else
# mythtv takes care of removing the mpg and replacing the converted mp4 but converting failed...
rm -rf $name.tmp
sql "update jobqueue set status=8 where chanid=$channel and starttime='$starttime'"
echo "failed!" >>/tmp/mythtranscode.out
return 99
fi
and it is possible to re-transcode original recordings.. but you'll have to do it in mysql. the ready for transcoding status is 1 if i remember correctly.
enum jobstatus {
job_queued = 0x0001, job_pending = 0x0002, job_starting = 0x0003, job_running = 0x0004,
job_stopping = 0x0005, job_paused = 0x0006, job_retry = 0x0007, job_erroring = 0x0008,
job_aborting = 0x0009, job_done = 0x0100, job_finished = 0x0110, job_aborted = 0x0120,
job_errored = 0x0130, job_unknown = 0x0000
}
to re-encode a file, do this:
[root@server01 tmp]# mysql -u root mythconverg
reading table information for completion of table and column names
you can turn off this feature to get a quicker startup with -a
welcome to the mysql monitor. commands end with; or \g.
your mysql connection id is 1180 to server version: 3.23.58
type 'help;' or '\h' for help. type '\c' to clear the buffer.
mysql> select * from jobqueue
->;
+-----+--------+---------------------+---------------------+------+------+-------+--------
+----------------+----------+------+-----------------------------+
| id | chanid | starttime | inserttime | type | cmds | flags | status | statustime | hostname | args | comment |
+-----+--------+---------------------+---------------------+------+------+-------+--------
+----------------+----------+------+-----------------------------+
| 209 | 1 | 2005-06-25 22:04:00 | 2005-06-25 23:43:01 | 1 | 0 | 0 | 272 | 20050626054342 | server01 | | |
| 212 | 9 | 2005-06-27 19:28:00 | 2005-06-27 20:03:00 | 1 | 0 | 0 | 272 | 20050627214938 | server01 | | |
| 213 | 8 | 2005-06-27 19:49:00 | 2005-06-27 20:33:01 | 1 | 0 | 0 | 4 | 20050627215019 | server01 | | |
| 107 | 9 | 2005-06-01 19:34:00 | 2005-06-01 20:06:02 | 2 | 4 | 0 | 5 | 20050601221721 | server01 | | finished, 0 break(s) found. |
| 181 | 9 | 2005-06-20 19:28:00 | 2005-06-20 20:00:04 | 1 | 0 | 0 | 8 | 20050620230920 | server01 | | |
| 102 | 1 | 2005-06-01 17:59:00 | 2005-06-01 18:01:00 | 1 | 4 | 0 | 4 | 20050601190217 | server01 | | |
| 98 | 3 | 2005-06-01 17:01:00 | 2005-06-01 17:08:00 | 1 | 4 | 0 | 5 | 20050601173409 | server01 | | |
| 59 | 3 | 2005-05-25 12:43:00 | 2005-05-25 12:46:00 | 1 | 4 | 0 | 9 | 20050525125056 | server01 | | |
| 109 | 8 | 2005-06-01 19:49:00 | 2005-06-01 20:31:01 | 2 | 4 | 0 | 5 | 20050601224617 | server01 | | finished, 2 break(s) found. |
| 210 | 9 | 2005-06-26 23:04:00 | 2005-06-27 00:03:01 | 1 | 0 | 0 | 272 | 20050627030605 | server01 | | |
| 211 | 4 | 2005-06-27 17:04:00 | 2005-06-27 17:33:01 | 1 | 0 | 0 | 272 | 20050627185316 | server01 | | |
| 208 | 8 | 2005-06-25 19:00:00 | 2005-06-25 19:38:01 | 1 | 0 | 0 | 272 | 20050626001611 | server01 | | |
| 206 | 6 | 2005-06-25 16:24:00 | 2005-06-25 16:58:01 | 1 | 0 | 0 | 272 | 20050625184611 | server01 | | |
| 207 | 8 | 2005-06-25 17:59:00 | 2005-06-25 19:00:04 | 1 | 0 | 0 | 272 | 20050625221726 | server01 | | |
+-----+--------+---------------------+---------------------+------+------+-------+--------
+----------------+----------+------+-----------------------------+
14 rows in set (0.00 sec)
mysql> update jobqueue set type=1 where id=207;
the file 8_20050625175900_20050625190000.nuv will be re-encoded. because "2005-06-25 17:59:00" = "20050625175900" and the channel is 8 (second collumn, after id).
say, i did that script. right now there's a couple of red "errored" transcode jobs. is this how its supposed to work? i had to change the directory where it was looking for the videos.
hello all,
i have the latest (as of yesterday) python scripts on xbmc out of cvs a few days ago talking to a mythtv backend running the latest cvs. i've found two places in the code that need to be slightly modified to allow the scripts to connect and acquire guide data, etc. everything appears to be working, except i can;t actually view any video. the shows are being recorded in mpeg4 format with mp3 audio. i've heard rumors that i might need to recompile mplayer inside xbmc in order to view the myth recordings. is this actually true, or am i doing something wrong? any pointers would be greatly appreciated. thanks.
wierd. i tried your script. i can play the vids in windows but not on xbmc. they appear as .nuv files, but when i open them with gspot it reports that no codecs are installed, even though they play.
wierd. i tried your script. i can play the vids in windows but not on xbmc. they appear as .nuv files, but when i open them with gspot it reports that no codecs are installed, even though they play.
do you play the files with xbmcmythtv? the extention is off course wrong.. i depend on a proper media player to recognise the real content of the file. mplayer doesn't look at extensions so that's why this construction works with the xbox.
maybe you could try copyin one of the nuv files localy and rename it to avi. gspot should detect the format.
i tried that. media player classic will play it on the pc w/o a problem as avi of nuv. the xbmc player won't play it though.
i tried that. media player classic will play it on the pc w/o a problem as avi of nuv. the xbmc player won't play it though.
do you see thumbnails when selecting a recording? maybe there's something in your mythbackend.log which could explain things. also try playing the nuv file directly from the xbox, without xmbc (through the smb share).
oddly enough, i do see the thumbnails. the video just doesn't play.
recorded shows and xbmcmythtv hangs the whole console if i go over a record which contains a description that has more than, i guess, 256 characters. i've had this problem for a long time, but forgot to mention it here. workaround is to delete the description in mysql directly... :nuts:
i haven't tested it with myth tv 0.17 so i can't say for sure if you'll have problems. i try to maintain compatibility with older versions by leaving in old code if i notice that something has changed with a newer version. unfortunately, the new stuff that i built was using a myth tv 0.18 database so i don't know what it looked like for 0.17.
fyi, i have been running myth tv since version 0.12 or so... i haven't lost any of my settings or recordings when upgrading. my only rule for upgrading is to stick with the official releases as opposed to running builds from cvs. so far it has paid off...
just to let you know i tried the latest cvs with my myth tv 0.17 and it did not work. i will have to get my myth tv upgraded before i can take advantage of these new features.
just to let you know i tried the latest cvs with my myth tv 0.17 and it did not work. i will have to get my myth tv upgraded before i can take advantage of these new features.
hi, i have updated my mythtv to 18.1 and the new xbmcmythtv seems to be working great now. (thanks to the auto-upgrade function in knoppmyth everything updated fine).
greend139
2005-07-12, 23:46
hi, i just recently found this project and am trying to get the script to work on my xbox but am having some trouble. i am using a xbmc build from 7-11-05 with the python zlib installed and i downloaded the xbmcmythtv scripts from cvs. whenever i try and excute the script by using the mythtvmain.py it quickly says (running) and then nothing happens. i noticed that it does seem to create a few .pyo files but nothing will run. i have only actually gotten one script to work, the gamespot one but it locked up my box. any help would be greatly appreciated. thanks!
greend139
2005-07-14, 00:00
well i think i figured out the problem. i'm pretty sure it's a problem since i didnt set a valid dns server in my network settings. i changed my network setting for the xbox to dhcp and then all of the other scripts started working fine, silly me. i'm hoping that the myth scripts will work now once i finish updating xbmc and put the scripts back on.
recorded shows and xbmcmythtv hangs the whole console if i go over a record which contains a description that has more than, i guess, 256 characters. i've had this problem for a long time, but forgot to mention it here. workaround is to delete the description in mysql directly... :nuts:
someone else reported this in the forums on sourceforge. is this still happening in the latest version of xbmcmythtv from cvs? i made some code changes to substring the description text before displaying in xbmc and i was hoping it fixed the problem. if not, then i need to try something else...
fyi, i am auto-monitoring the sourceforge help forums so am more likely to respond if people post in that forum as opposed to this one. the benefit is that the help forums can have individual topics for problems people are having. it should make it easier to find answers than reading through the (now) 38+ pages of this thread.
someone else reported this in the forums on sourceforge. is this still happening in the latest version of xbmcmythtv from cvs? i made some code changes to substring the description text before displaying in xbmc and i was hoping it fixed the problem. if not, then i need to try something else...
fyi, i am auto-monitoring the sourceforge help forums so am more likely to respond if people post in that forum as opposed to this one. the benefit is that the help forums can have individual topics for problems people are having. it should make it easier to find answers than reading through the (now) 38+ pages of this thread.
someone else reported this in the forums on sourceforge. is this still happening in the latest version of xbmcmythtv from cvs?
it was also me ;)
anyway, applied the last changes from cvs and that fixed indeed the problems.
i didn't had the time to upgrade mythtv to 18.1 so i also didn't upgrade xbmcmythtv. most things work now, only "recording schedules" gives an error, but that is because this mythtv 18.20050409-1 i guess. try to upgrade soon anyway.
thanks,
henk
yeah, so i think i have the thumbnails, but still no luck. oh, i'm running .18 should i just switch cards?
hi all,
i updated cvs last weekend, noted no changes since. this project is really moving along nicely. getting very close to the full featured goal now. i've noted couple of bugs in the program guide that i haven't been able to work around.
firstly after entering the programe guide, if you select a program that has already been flagged for recording via the mythfrontend, the screen goes black and you can't exit.
secondly, if i attempt to save a recording schedule, no matter what the choices are i get that same error "column programid can not be null"
i've updated my tv_grab_au
running an 18.1 backend on debian unstable.
the xbox mythtv is used by my wife & kids every day for about 3-4 hours. it is getting more and more stable, more stable than the backend in fact.
let me know if you'd like some debug log excerpts.
ciao 4 now
luigi
ok.looked again. seems like i can definetly look at thumbnails. however, i cannot play videos. period. i'm starting to think i should just get a different capture card. what is everyone using and getting the frontend to work? is there a way to modify the mythtranscode script to make them avi files?
is there a commercial skip function with the xbox user interface?
thanks
i recommend we all move to the sourceforge forums (http://sourceforge.net/forum/?group_id=128346)
1timeuser
2006-01-03, 17:51
this kind of ruins the point of having a media center i know, but the other myth tv distrobution is way too big. it would be nice if xbmc had a tiny little myth tv frontend... you know what? i might just look into it myself :lol: . cheers.
Loto_Bak
2006-01-03, 20:13
please use the search function next time
mythtv frontend has been written in python for xbmc.
it includes live tv playback, recording playback, recording schedualing and tv guide
http://xbmcmythtv.sf.net/
1timeuser
2006-01-03, 23:31
thanks, but upon searching the words "myth", "linux" and of course "myth tv" no results came up. being a moderator from one of wraggsters sites i know better then anyone how much everyone needs to use search.
also the link you provided directs me to an empty sf page.
Loto_Bak
2006-01-03, 23:38
appears their homepage has no content :rolleyes:
try http://sourceforge.net/projects/xbmcmythtv
regarding the search,
you likely didnt set the search time period (last box at the bottom) or didnt select 'all forums' in the forum selection box
1timeuser
2006-01-04, 04:54
indeed you are correct that i didnt search all sections.
anyways thanks for the link.
squirrelz
2006-01-05, 13:23
the xbmcmythtv frontend doesnt seem to get much development, if you have the skills you might like to enhance it with things like filters for recorded shows. ie show all futurama episodes.
HappyTalk
2006-01-26, 03:43
did you see this to install a proper mythtv frontend onto xbox :-
http://www.controlaltdeleted.com/xbox....ox.html (http://www.controlaltdeleted.com/xbox/xbox_tutorials/myth_tv_related_information/how_to_install_mythtv_on_your_xbox.html)
i tried but had a lot of problems, i also found out that xebian doesn't seem to launch properly from xbmc (would just hang or power off xbox), i had to go into evox then launch it from there! (latest xbmc 19 jan 2006). i found a preinstalled myth-xbox on bittorrent and used that instead, but still had to spend a day reading & configuring to coax it to work. linux won't boot with my x2vga hidef pack attached though :( (even at 640p).
-----------------
regarding xbmc mythtv ( http://sourceforge.net/projects/xbmcmythtv/ )
i found it easier to run mythtv-setup on backend machine (from xterm) and configure it to use /myth/cache for ringbuffer rather than add another samba share just for the /cache/cache knoppmyth default. first you must run xterm on backend machine, login as root, create the folder then run mythtv-setup thus
# mkdir /myth/cache
# chmod 775 /myth/cache
# chown mythtv:mythtv /myth/cache
# mythtv-setup
leave card settings alone on both dialogs, go into general settings, 2nd page, and set "directory to hold the live-tv buffers:" to /myth/cache. press next til you get to finish, then esc and do # reboot to reboot backend machine
xbmc myth uses scripts so is not as good as a proper myth front end but a hell lot more convenient and 100x easier to set up. you may find it awkward to install as helpfile is confusing. here's my xbmc/scripts/xbmcmythtv/settings.xml if you get stuck. (search/replace 10.0.0.30 with ip of your mythtv backend machine (not xbox ip!)) then ftp over to your xbox.
<?xml version="1.0" ?>
<mythtv>
<mythtv_host>10.0.0.30</mythtv_host>
<mythtv_port>6543</mythtv_port>
<mythtv_statusport>6544</mythtv_statusport>
<mythtv_protocol>15</mythtv_protocol>
<mythtv_minlivebufsize>786432</mythtv_minlivebufsize>
<mysql_host>10.0.0.30</mysql_host>
<mysql_port>3306</mysql_port>
<mysql_database>mythconverg</mysql_database>
<mysql_user>mythtv</mysql_user>
<mysql_password>mythtv</mysql_password>
<paths_recordedprefix>smb://mythtv:mythtv@10.0.0.30/myth/tv</paths_recordedprefix>
<paths_livetvprefix>smb://mythtv:mythtv@10.0.0.30/myth/cache</paths_livetvprefix>
<paths_localcopypath>f:\video\</paths_localcopypath>
<recorded_view_by>1</recorded_view_by>
<upcoming_view_by>1</upcoming_view_by>
</mythtv>
note current version does not support .22 of knoppmyth (svn) but does support .30 and higher. ironically .22 has a newer version of mythtv than .30 .
you also need to ssh to the mythbackend machine, login as root then comment out skip-networking in /etc/mysql/my.cnf (add a # before it so it = #skip-networking) .
then*ensure samba is running on backend machine by doing
# /etc/init.d/samba start
# update-rc.d samba defaults
(2nd line makes it run every time)
now back over to the xbox. on xbmc go to settings | system |cache) and set video cache ! local network = 1024kb. now you can run the xbmc mythtv script, run test in setup*(to check it passes config test then hopefully watch livetv/recordings etc. if it doesn't work check through all this again, check ip addr of backend and other stuff is correct in xbmc-myth settings.xml file etc, check backend is working properly itself with frontend on its own machine)
notes :
> no sound while watching livetv = menu | audio and check "audio stream" is set to 1
> video jaggy (very noticeable on football) = go into menu | video settings | interlaced handling = deinterlace (or try auto)
note: when you change menu settings it may close the video down, in which case press back then go into livetv again, as sometimes you just get weird error messages after this if you just reselect the channel.
> press select / x-button on remote to select a new channel without closing current one. from here you can also press b twice to get to front menu so you have tv running in background while doing other stuff on xbmc, pretty cool! to get back to full video, *press x-button. you'll have to re-run the script though to chnage channels etc. you may not then be able to play livetv as backend thinks its already playing, just play a 'recorded show', exit then try again. if it still doesn't work, you'll have to tsh to the backend machine, login as root and do # /etc/init.d/mythtv-backend restart
--------------------
conclusion:
initially i wasn't too impressed with xbmc-myth but the fact it integrates into xbmc and is soo much easier and more convenient than trying to run a full bloated mythtv front-end on xbox makes me think it has a lot of potential. it deserves a mytv icon on the main screen!
off to read up on python...
LaTropa64
2006-03-22, 03:41
to those running the mythtv script for xbmc, how quick are channel changes?
i have a dvb card in my windows computer and i've used mytheatre along with avbroadcaster and the mytheatre python script to bring live tv to xbmc but it was horribly slow on channel changes. most of the time, when it would actually change the channel, it would take almost 5 minutes to do so.
cocoliso
2006-03-25, 20:59
5 minutes?!!!!
in mine takes only like 5 seconds to 7 seconds to change the channel and reopen the stream .., whatexactly are u using.., change the cache in xbmc to make it faster..
pepsi_max2k
2008-01-29, 00:57
2 years? blimey... oh well... *dons dog collar and prepares to resurect* :shocked:
XBMCMYTHTV with MythTV 0.20.2 (on Ubuntu)
What you need:
Ubuntu 7.04 (presumably 7.10 too), it'll prolly work on other distros other than a couple files being in diff. places.
MythTV 0.20.2 (latest stable release from repos or mythbuntu's 0.20.2-fixes), not tested with svn just yet but i will...
XBMC (only tested with tech's 13th Jan 08 release)
xbmcmythtv (http://sourceforge.net/project/showfiles.php?group_id=128346) (only tested with the last xbmcmythtv-0.20.34b release).
Pre Setup:
NOTE: if you have problems editing files, run "sudo nautilus" in terminal and open files in there.
Obviously a working xbmc setup and mythtv setup with externally accessible backend / samba shares.
For mythtv, backend setup > general > 1st page, IP address and Master Server IP address both need to be your eth lan IP, probably 192.168.X.X or whatever you have. 127.0.0.1 / localhost are no good.
Samba, install the samba package from repo, then right click your recordings directory (same one as in backend setup > general > page 2) and hit "Share folder". Then open /etc/samba/smb.conf and change "security = user" to "security = share" and add "force user = nobody" and "force group = nogroup" to the end of your directory share entry; it'll look a little like this:
[ubuntu704]
path = /mythtv/ubuntu704
available = yes
browsable = yes
public = yes
writable = no
force user = nobody
force group = nogroup
you may not need to do that, i was just trying to avoid any password confusion in xbmc.
FIX MYSQL PASSWORD CONNECTION ERROR
If you don't do this, you'll get a mysql "conn" error when you try setup xbmc, so, as detailed further on this page: http://www.teirney.net/blog/2007/04/30/getting-xbmc-mythtv-to-work-with-kubuntu-feisty-fawn-704/
Open /etc/mysql/my.cnf, uncomment bind-address and change the stuff after = to your eth lan IP address mentioned above.
now login to mysql in a terminal with "mysql -r root -p" you probably just have to hit enter when it asks for password. type the following:
SET PASSWORD for mythtv = OLD_PASSWORD('mythtv');
but change the final mythtv (in commas) to your mysql myth password, which you can find in myth fronted > setup > setup > general > password.
SETUP XBMC
check that you can access your samba shares through the video section first (you'll have to add it by browsing smb shares). open a file or two to make sure, though you should only have some if you have recordings saved.
ftp the xbmcmythtv folder to E:/Dashboard/scripts, then open it from the scripts section in xbmc. the settings screen should run automatically. change the mythtv host and mysql host ips to your eth lan IP as above, change protocol to 15, minimum live buffer size to 786482, your mysql password to the same as used above, and recorded and live path to smb://YOUR.IP//YOUR_REC_FOLDER filling in the obvious blanks. then test and it should hopefully work. the final settings.xml file created under E:/Dashboard/scripts/xbmcmythtv should look a little like this:
<mythtv_host>192.168.1.111</mythtv_host>
<mythtv_port>6543</mythtv_port>
<mythtv_statusport>6544</mythtv_statusport>
<mythtv_protocol>15</mythtv_protocol>
<mythtv_minlivebufsize>786482</mythtv_minlivebufsize>
<mythtv_tunewait>3</mythtv_tunewait>
<mythtv_startpage>0</mythtv_startpage>
<mythtv_liveplayer>0</mythtv_liveplayer>
<mythtv_recplayer>0</mythtv_recplayer>
<mythtv_recordlive>1</mythtv_recordlive>
<mythtv_recordlength>120</mythtv_recordlength>
<mysql_host>192.168.1.111</mysql_host>
<mysql_port>3306</mysql_port>
<mysql_database>mythconverg</mysql_database>
<mysql_user>mythtv</mysql_user>
<mysql_password>****mypassword****</mysql_password>
<mysql_encoding_override>latin1</mysql_encoding_override>
<paths_recordedprefix>smb://192.168.1.111/ubuntu704</paths_recordedprefix>
<paths_livetvprefix>smb://192.168.1.111/ubuntu704</paths_livetvprefix>
<paths_localcopypath>e:\videos\</paths_localcopypath>
<recorded_view_by>2</recorded_view_by>
<upcoming_view_by>2</upcoming_view_by>
<recorded_default_group>All Groups</recorded_default_group></mythtv>
And that's it. You might wanna use Bob interlace settings for playback if you're using a regular CRT (check that it outputs 50fps not 25fps) to stop it looking all jerky.