Kodi Community Forum
Python and MythTV (a MythTV Front-End) - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32)
+--- Forum: Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=26)
+--- Thread: Python and MythTV (a MythTV Front-End) (/showthread.php?tid=2349)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39


- waxling - 2005-05-22

Quote:i've done something similar on my box -- i added a button for mythtv. pretty simple, you just need to edit:

xboxmediacenter.xml - add a button in homebuttons, ie:

Quote: <homebuttons>
<button>
<description>mythtv</description>
<label>9</label>
<execute>q:\scripts\mytv.py</execute>
<icon>105</icon>
</button>

language/english/strings.xml - define a label for that button, ie:

Quote: <string><id>9</id><value>mythtv</value></string>

straight forward enough. i use this with the mce skin and it looks great.

i've been running these scripts for a while (since page 13 of this thread) -- the xbmc that i'm currently using is 2005-01-15. i haven't upgraded to any of the new scripts yet, i've been pretty happy just using the basic playback functionality.

unfortunately this method does not appear to work with recent xbmc builds (looks like your trying to add a new button, wouldn't that require work to add an extra button to the skin also?)

the method mentioned by juski works, which edits / replaces an existing button (i ditched the my pictures button), however what happens if you want to keep all the buttons on the home screen? is there a "preferred" method to add a script to one of the windows/home? (couldn't find one).

using pgmiii / xbmc cvs from 2/5/2005 + cvs from 21/5/2005


- juski - 2005-05-22

seeing as there's little or no information about programming with xbmc available, i'd guess that continuing to do things the way we are now is the best way.

the 'api' document for xbmc is laughable. they list some of the commands used but nothing about syntax or passable parameters. anything 'outsiders' know about the content of the xml files is stuff they've managed to glean themselves. open-source... it may be... documented well enough for you to add or change features yourself.. nope.


- us1111 - 2005-05-22

hmmm.. i don't get it. i try to play a mp4 nuv transcoded by mythtv from within xbmcmythtv. when i select the play option, nothing happens. this is what i get in the logfile

Quote:play:smb://server01/mythtv/1_20050522213100_20050522213500.nuv cachesize:2048
22-05-2005 22:03:09 info flipping bi-directional subtitles disabled
22-05-2005 22:03:09 debug msg:enable mplayer osd
22-05-2005 22:03:09 debug msg:mplayer dev-cvs-050410-13:35 (c) 2000-2004 mplayer team
22-05-2005 22:03:09 debug msg:cpu: intel celeron 2/pentium iii coppermine,geyserville
22-05-2005 22:03:09 debug msg:(family: 6, stepping: 10)
22-05-2005 22:03:09 debug msg:detected cache-line size is 32 bytes
22-05-2005 22:03:09 debug msg:cpuflags: mmx: 1 mmx2: 1 3dnow: 0 3dnow2: 0 sse: 0 sse2: 0
22-05-2005 22:03:09 debug msg:compiled for x86 cpu with extensions:
22-05-2005 22:03:09 debug msg: mmx
22-05-2005 22:03:09 debug msg: mmx2
22-05-2005 22:03:09 debug msg: sse
22-05-2005 22:03:09 debug msg:
22-05-2005 22:03:09 debug msg:
22-05-2005 22:03:09 debug msg:78 audio & 187 video codecs
22-05-2005 22:03:09 debug msg:mplayer_open_file(smb://server01/mythtv/1_20050522213100_20050522213500.nuv)
22-05-2005 22:03:09 info stating file smb://server01/mythtv/1_20050522213100_20050522213500.nuv.conf
22-05-2005 22:03:09 info stating file q:\system\players\mplayer\1_20050522213100_20050522213500.nuv.conf
22-05-2005 22:03:09 debug msg:playing smb://server01/mythtv/1_20050522213100_20050522213500.nuv.
22-05-2005 22:03:09 debug msg:auto open z:\subtitle
22-05-2005 22:03:09 debug msg:protocol:smb
22-05-2005 22:03:09 debug msg:use standard file for protocol:smb
22-05-2005 22:03:09 debug msg:
cache fill: 0.00% (0 bytes)
22-05-2005 22:03:09 debug msg:
cache fill: 0.00% (0 bytes)
22-05-2005 22:03:09 debug msg:
cache fill: 0.00% (0 bytes)
22-05-2005 22:03:09 debug msg:
cache fill: 3.13% (65536 bytes)
22-05-2005 22:03:09 debug msg:
cache fill: 3.13% (65536 bytes)
22-05-2005 22:03:09 debug msg:
cache fill: 6.25% (131072 bytes)
22-05-2005 22:03:09 debug msg:
cache fill: 6.25% (131072 bytes)
22-05-2005 22:03:09 debug msg:
cache fill: 9.38% (196608 bytes)
22-05-2005 22:03:09 debug msg:
cache fill: 9.38% (196608 bytes)
22-05-2005 22:03:09 debug msg:
cache fill: 12.50% (262144 bytes)
22-05-2005 22:03:09 debug msg:
cache fill: 15.63% (327680 bytes)
22-05-2005 22:03:09 debug msg:
cache fill: 15.63% (327680 bytes)
22-05-2005 22:03:09 debug msg:
cache fill: 18.75% (393216 bytes)
22-05-2005 22:03:09 debug msg:
cache fill: 18.75% (393216 bytes)
22-05-2005 22:03:09 error cmplayer::openfile() smb://server01/mythtv/1_20050522213100_20050522213500.nuv failed

i installed all the latest codex and my xmbc is the latest from xmc.org (15-05-2005).

i really would like this thing to work, because i think it's a brilliant idea to use the xbox as an multimedia platform and combined with myth, its even better!!

by the way, i downloaded the lates cvs version (toady) of xbmcmythtv..


- kruuth - 2005-05-23

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?


- juski - 2005-05-24

if that is happenning i would guess that all is not okay.

is the mysql server configured to allow external hosts to access it?

see the file my.cnf in /etc/mysql/

possibly also mysqlaccess.conf in /etc/mysql/

you probably just need to change a line or 2 in one of those files.


- najt - 2005-05-24

(kruuth @ may 23 2005,12:35 Wrote: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.


- us1111 - 2005-05-25

does anyone know why my mplayer does not seem to play nuv files? i downloaded the latest codecs pack, but still no luck Sad

i let mplayer transcode the mpeg to mpeg4. i assumed the mplayer could play mpeg4 encoded nuv files?


- najt - 2005-05-25

only mpeg2.


- freeidee - 2005-05-28

hey but the project xbmyth it is died? no new version from much time does not exit


- philled - 2005-05-29

(loto_bak @ april 25 2005,18:29 Wrote: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 (:pserverSmile
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

not there is nothing to report the development cvs is blocked from 6 months, no news


- Wob - 2005-05-30

(freeidee @ may 29 2005,12:00 Wrote: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


- madtw - 2005-06-01

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...


- us1111 - 2005-06-02

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):

Quote:#/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

madtw news for the development ? Sad