One sec - chrisXX - 2009-08-02
zemazzia Wrote:I just installed the OS and now I'm configuring XBMC. I didn't understand if there is a way to use this script also under linux, and if yes, which configuration params should i modify?
Hi zemazzia,
happy that my plugin can help you somehow.
I never tested the plugin under Linux and I'm happy if you could do that.
With the current version of the plugin (0.2) you can specify the player file and optional command line parameters from the standard plugin settings dialog (right click when using the plugin).
Note that the plugin will always automatically append the video url as last parameter.
I've been busy recently but if I find some time I'll try to provide more info (i'm not sure if the way I trigger the external player is for linux.. but I know where to check).
Please enable the debug log from XBMC settings and send it to me in case there are problems so that I can investigate.
I plan to add a settings also to allow to force usage of the XBMC internal player so that you can try it out in Linux.
Other plans I have are:
-organize the video menu so that it's not needed to scroll such a long list of programs (the curret workaround is to bookmark the favourites progs)
-test it on mac
Saluti,
--Chrisxx
- zemazzia - 2009-08-03
Ciao Chrisxx
Yes, your plugin is really helping me.. i just hate "traditional" tv and this is my first choice when i have some spear time!!
I keep on updating you, i hope this will be useful for your development. I'm using two pcs, one with Xp, the other with Ubuntu, so i can notice the differences...
WIN: I'm trying other players than WMP. With VLC perfect streaming, but i can't go forward, streaming stops. With Media Player Classic (K-Lite player), i can go forward some times (max 4-5 times in the same streaming), then if i try again the streaming stops. And moreover, sometimes the streaming is not "fluid", it stops, buffers and then restart (more or less it happens every 5-10 minutes). I'm trying other configurations on the preferences to find the best one.
UBUNTU: this is more diffucult, because i'm not a great linux expert, so any suggestion will be useful. I tryed with VLC.
First of all: I have to manually modify the setting.xml file, because from the GUI i can't see vlc path (i can only view paths under the current user). Once modified the xml, i go to plugins properties, choose "default" and then settings are applied. Boring but it works..
Then the surprise. Setting "vlc" as software and -f as additiona parameters, when i choose a video never happens. I enabled logging (i will send it to you, now i'm at work), and i find the entries where the external program is launched... i found this entries:
"vlc" -f %filename&
i copied this command, pasted in the shell and then suprise! vlc and the stream starts...
so maybe the command given by your plugin is not suited for linux?
Tonight i will post the log
- zemazzia - 2009-08-05
i'm a little late with linux test, because i have some problems with video card and resolution, so i reinstalled everything.... i remember why some years ago i tried linux and then come back to windows :-)
anyway... keeping on using your plugins under windows environment.
I installed last vlc version, and now buffering problems are solved. But i have a strange problem with audio. Every 30s-1m audio seems to stop for a while, then restart. Video continues playing correctly. Maybe sync problems? Do someone else noticed something like this?
With Media Player Classic i keep on having buffering problems, sometimes streaming stops and restart after rebuffering.
The best solution continues to be WMP, with fluid video and audio.
- zemazzia - 2009-08-06
Here I am!
Almost completed Linux configuration, I'm ready to test the plugin in linux environment.
Here it is the logging from the click on the video (first part... is too long for a one post)
Code: 20:50:41 T:3056805776 M:319590400 DEBUG: Clearing cached fileitems [plugin://video/Rai.tv on Demand/?url=%2Fdl%2FRaiTV%2Fprogrammi%2Fmedia%2FContentItem-f0436425-7f52-4f0b-bccc-f80d2562770f.html%3Fp%3D0&mode=2]
20:50:41 T:3056805776 M:319590400 DEBUG: CGUIMediaWindow::GetDirectory (plugin://video/Rai.tv on Demand/?url=%2Fdl%2FRaiTV%2Fprogrammi%2Fmedia%2FContentItem-f0436425-7f52-4f0b-bccc-f80d2562770f.html%3Fp%3D0&mode=2)
20:50:41 T:3056805776 M:319590400 DEBUG: ParentPath = [plugin://video/Rai.tv on Demand/?url=Blu+Notte+2008&mode=1]
20:50:41 T:3056805776 M:319590400 DEBUG: StartScript - URL for plugin settings: Rai.tv on Demand/
20:50:41 T:3056805776 M:319590400 DEBUG: StartScript - calling plugin special://home/plugins/video/Rai.tv on Demand/default.py('plugin://video/Rai.tv on Demand/','0','?url=%2Fdl%2FRaiTV%2Fprogrammi%2Fmedia%2FContentItem-f0436425-7f52-4f0b-bccc-f80d2562770f.html%3Fp%3D0&mode=2')
20:50:41 T:3056805776 M:319590400 INFO: initializing python engine.
20:50:41 T:3056805776 M:319590400 DEBUG: Loading: /usr/share/xbmc/system/python/python24-i486-linux.so
20:50:42 T:3056805776 M:319336448 DEBUG: new python thread created. id=14
20:50:42 T:2735344528 M:319336448 DEBUG: Running thread 2735344528
20:50:42 T:2735344528 M:319336448 DEBUG: thread start, auto delete: 0
20:50:42 T:2735344528 M:319336448 DEBUG: Python thread: start processing
20:50:42 T:3056805776 M:319336448 DEBUG: WaitOnScriptResult - waiting on the Rai.tv on Demand plugin...
20:50:42 T:2735344528 M:319336448 NOTICE: -->Python Interpreter Initialized<--
20:50:42 T:2735344528 M:319336448 NOTICE:
20:50:42 T:2735344528 M:319336448 DEBUG: Process - The source file to load is special://home/plugins/video/Rai.tv on Demand/default.py
20:50:42 T:2735344528 M:319336448 DEBUG: Process - Setting the Python path to /home/mediacenter/.xbmc/plugins/video/Rai.tv on Demand;/usr/share/xbmc/system/python/python24.zip;/usr/share/xbmc/system/python/lib/python24.zip;/usr/share/xbmc/system/python/lib/python2.4/;/usr/share/xbmc/system/python/lib/python2.4/plat-linux2;/usr/share/xbmc/system/python/lib/python2.4/lib-tk;/usr/share/xbmc/system/python/lib/python2.4/lib-dynload
20:50:42 T:2735344528 M:319336448 DEBUG: Process - Entering source directory /home/mediacenter/.xbmc/plugins/video/Rai.tv on Demand
20:50:42 T:2735344528 M:319307776 DEBUG: xbp_dlopen loading python lib /usr/share/xbmc/system/python/python24.zip/strop.so. flags: 2
20:50:42 T:2735344528 M:319307776 DEBUG: Loading: /home/mediacenter/.xbmc/temp/strop.so
20:50:42 T:2735344528 M:319307776 DEBUG: RegisterExtensionLib, adding strop.so (0xa301d28)
20:50:42 T:2735344528 M:319307776 DEBUG: xbp_dlsym - load symbol initstrop
20:50:42 T:2735344528 M:319307776 DEBUG: xbp_dlopen loading python lib /usr/share/xbmc/system/python/python24.zip/_socket.so. flags: 2
20:50:42 T:2735344528 M:319307776 DEBUG: Loading: /home/mediacenter/.xbmc/temp/_socket.so
20:50:42 T:2735344528 M:319307776 DEBUG: RegisterExtensionLib, adding _socket.so (0xa97ccb0)
20:50:42 T:2735344528 M:319307776 DEBUG: xbp_dlsym - load symbol init_socket
20:50:42 T:2735344528 M:319221760 DEBUG: xbp_dlopen loading python lib /usr/share/xbmc/system/python/python24.zip/_ssl.so. flags: 2
20:50:42 T:2735344528 M:319221760 DEBUG: Loading: /home/mediacenter/.xbmc/temp/_ssl.so
20:50:42 T:2735344528 M:319221760 DEBUG: RegisterExtensionLib, adding _ssl.so (0xaeb6fc0)
20:50:42 T:2735344528 M:319221760 DEBUG: xbp_dlsym - load symbol init_ssl
20:50:42 T:2735344528 M:319221760 DEBUG: xbp_dlopen loading python lib /usr/share/xbmc/system/python/python24.zip/time.so. flags: 2
20:50:42 T:2735344528 M:319221760 DEBUG: Loading: /home/mediacenter/.xbmc/temp/time.so
20:50:42 T:2735344528 M:319221760 DEBUG: RegisterExtensionLib, adding time.so (0xac3ee00)
20:50:42 T:2735344528 M:319221760 DEBUG: xbp_dlsym - load symbol inittime
20:50:42 T:2735344528 M:319221760 DEBUG: xbp_dlopen loading python lib /usr/share/xbmc/system/python/python24.zip/struct.so. flags: 2
20:50:42 T:2735344528 M:319221760 DEBUG: Loading: /home/mediacenter/.xbmc/temp/struct.so
20:50:42 T:2735344528 M:319221760 DEBUG: RegisterExtensionLib, adding struct.so (0xa73d628)
20:50:42 T:2735344528 M:319221760 DEBUG: xbp_dlsym - load symbol initstruct
20:50:42 T:2735344528 M:319221760 DEBUG: xbp_dlopen loading python lib /usr/share/xbmc/system/python/python24.zip/binascii.so. flags: 2
20:50:42 T:2735344528 M:319221760 DEBUG: Loading: /home/mediacenter/.xbmc/temp/binascii.so
20:50:42 T:2735344528 M:319221760 DEBUG: RegisterExtensionLib, adding binascii.so (0xac45f48)
20:50:42 T:2735344528 M:319221760 DEBUG: xbp_dlsym - load symbol initbinascii
- zemazzia - 2009-08-06
second part
Code: 20:50:43 T:2735344528 M:315711488 DEBUG: xbp_dlopen loading python lib /usr/share/xbmc/system/python/python24.zip/math.so. flags: 2
20:50:43 T:2735344528 M:315711488 DEBUG: Loading: /home/mediacenter/.xbmc/temp/math.so
20:50:43 T:2735344528 M:315711488 DEBUG: RegisterExtensionLib, adding math.so (0xae60978)
20:50:43 T:2735344528 M:315711488 DEBUG: xbp_dlsym - load symbol initmath
20:50:43 T:2735344528 M:315711488 DEBUG: xbp_dlopen loading python lib /usr/share/xbmc/system/python/python24.zip/_random.so. flags: 2
20:50:43 T:2735344528 M:315711488 DEBUG: Loading: /home/mediacenter/.xbmc/temp/_random.so
20:50:43 T:2735344528 M:315711488 DEBUG: RegisterExtensionLib, adding _random.so (0xa242fe0)
20:50:43 T:2735344528 M:315711488 DEBUG: xbp_dlsym - load symbol init_random
20:50:43 T:2735344528 M:315711488 DEBUG: xbp_dlopen loading python lib /usr/share/xbmc/system/python/python24.zip/fcntl.so. flags: 2
20:50:43 T:2735344528 M:315711488 DEBUG: Loading: /home/mediacenter/.xbmc/temp/fcntl.so
20:50:43 T:2735344528 M:315711488 DEBUG: RegisterExtensionLib, adding fcntl.so (0xa9c8bc8)
20:50:43 T:2735344528 M:315711488 DEBUG: xbp_dlsym - load symbol initfcntl
20:50:43 T:2735344528 M:315711488 DEBUG: xbp_dlopen loading python lib /usr/share/xbmc/system/python/python24.zip/cStringIO.so. flags: 2
20:50:43 T:2735344528 M:315711488 DEBUG: Loading: /home/mediacenter/.xbmc/temp/cStringIO.so
20:50:43 T:2735344528 M:315711488 DEBUG: RegisterExtensionLib, adding cStringIO.so (0xa2f22a0)
20:50:43 T:2735344528 M:315711488 DEBUG: xbp_dlsym - load symbol initcStringIO
20:50:43 T:2735344528 M:314937344 DEBUG: xbp_dlopen loading python lib /usr/share/xbmc/system/python/python24.zip/md5.so. flags: 2
20:50:43 T:2735344528 M:314937344 DEBUG: Loading: /home/mediacenter/.xbmc/temp/md5.so
20:50:43 T:2735344528 M:314937344 DEBUG: RegisterExtensionLib, adding md5.so (0xaf281b8)
20:50:43 T:2735344528 M:314937344 DEBUG: xbp_dlsym - load symbol initmd5
20:50:43 T:2735344528 M:314822656 DEBUG: xbp_dlopen loading python lib /usr/share/xbmc/system/python/python24.zip/sha.so. flags: 2
20:50:43 T:2735344528 M:314908672 DEBUG: Loading: /home/mediacenter/.xbmc/temp/sha.so
20:50:43 T:2735344528 M:314908672 DEBUG: RegisterExtensionLib, adding sha.so (0xa4e6db0)
20:50:43 T:2735344528 M:314908672 DEBUG: xbp_dlsym - load symbol initsha
20:50:43 T:2735344528 M:314908672 DEBUG: xbp_dlopen loading python lib /usr/share/xbmc/system/python/python24.zip/_bisect.so. flags: 2
20:50:43 T:2735344528 M:314908672 DEBUG: Loading: /home/mediacenter/.xbmc/temp/_bisect.so
20:50:43 T:2735344528 M:314908672 DEBUG: RegisterExtensionLib, adding _bisect.so (0xa342928)
20:50:43 T:2735344528 M:314908672 DEBUG: xbp_dlsym - load symbol init_bisect
20:50:43 T:3056805776 M:314908672 INFO: Loading skin file: DialogProgress.xml
20:50:43 T:3056805776 M:314908672 DEBUG: Load DialogProgress.xml: 2.98ms
20:50:43 T:3056805776 M:314908672 DEBUG: DialogProgress::StartModal called
20:50:43 T:3056805776 M:314908672 DEBUG:
20:50:43 T:3056805776 M:314908672 DEBUG: ------------------- GUI_MSG_WINDOW_INIT
20:50:43 T:3056805776 M:314908672 DEBUG: Progressione
20:50:43 T:3056805776 M:314908672 DEBUG: -------------------
20:50:43 T:3056805776 M:314908672 DEBUG: Alloc resources: 0.11ms (0.02 ms skin load, 0.06 ms preload)
20:50:43 T:3056805776 M:314908672 DEBUG: Load dialog_background.png: 0.2ms (bundled)
20:50:43 T:3056805776 M:311984128 DEBUG: Load menu_back.png: 46.9ms (bundled)
20:50:44 T:2735344528 M:310415360 DEBUG: xbp_dlopen loading python lib /usr/share/xbmc/system/python/python24.zip/collections.so. flags: 2
20:50:44 T:2735344528 M:310415360 DEBUG: Loading: /home/mediacenter/.xbmc/temp/collections.so
20:50:44 T:2735344528 M:310415360 DEBUG: RegisterExtensionLib, adding collections.so (0xaea2fb0)
20:50:44 T:2735344528 M:310415360 DEBUG: xbp_dlsym - load symbol initcollections
20:50:44 T:2735344528 M:310272000 DEBUG: xbp_dlopen loading python lib /usr/share/xbmc/system/python/python24.zip/datetime.so. flags: 2
20:50:44 T:2735344528 M:310415360 DEBUG: Loading: /home/mediacenter/.xbmc/temp/datetime.so
20:50:44 T:2735344528 M:310415360 DEBUG: RegisterExtensionLib, adding datetime.so (0xa8cb0e8)
20:50:44 T:2735344528 M:310415360 DEBUG: xbp_dlsym - load symbol initdatetime
20:50:45 T:2735344528 M:309174272 NOTICE: Invoked plugin with paramstring :?url=%2Fdl%2FRaiTV%2Fprogrammi%2Fmedia%2FContentItem-f0436425-7f52-4f0b-bccc-f80d2562770f.html%3Fp%3D0&mode=2 :len 109
20:50:45 T:2735344528 M:309174272 NOTICE:
20:50:45 T:2735344528 M:309174272 NOTICE: Parsed params{'url': ['/dl/RaiTV/programmi/media/ContentItem-f0436425-7f52-4f0b-bccc-f80d2562770f.html?p=0'], 'mode': ['2']}
20:50:45 T:2735344528 M:309174272 NOTICE:
20:50:45 T:2735344528 M:309174272 NOTICE: Mode: 2
20:50:45 T:2735344528 M:309174272 NOTICE:
20:50:45 T:2735344528 M:309174272 NOTICE: URL: /dl/RaiTV/programmi/media/ContentItem-f0436425-7f52-4f0b-bccc-f80d2562770f.html?p=0
20:50:45 T:2735344528 M:309174272 NOTICE:
20:50:45 T:2735344528 M:309174272 NOTICE: Opening PUNTATA with url/dl/RaiTV/programmi/media/ContentItem-f0436425-7f52-4f0b-bccc-f80d2562770f.html?p=0
20:50:45 T:2735344528 M:309174272 NOTICE:
20:50:45 T:2735344528 M:288526336 NOTICE: Executing: System.ExecWait("vlc" -f --play-and-exit mms://rntlivewm.rai.it/raitre/blunotte/blunotte_tangentopoli_indiritti.wmv)
20:50:45 T:2735344528 M:288526336 NOTICE:
20:50:45 T:2735344528 M:288526336 INFO: Scriptresult: Succes
20:50:45 T:3056805776 M:288526336 DEBUG: WaitOnScriptResult- plugin returned successfully
20:50:45 T:3056805776 M:288526336 DEBUG: Sort, sorting took 0 millis
20:50:45 T:3056805776 M:288526336 WARNING: GetLabel - Unknown nodetype requested 0
20:50:45 T:2726951824 M:288526336 DEBUG: Running thread 2726951824
20:50:45 T:2726951824 M:288526336 DEBUG: thread start, auto delete: 0
20:50:45 T:2726951824 M:288567296 DEBUG: Thread 2726951824 terminating
20:50:45 T:3056805776 M:288153600 DEBUG: Load defaultFolderBackBig.png: 10.4ms (bundled)
20:50:45 T:3056805776 M:288710656 DEBUG: ------------------- GUI_MSG_WINDOW_DEINIT
20:50:45 T:3056805776 M:288710656 DEBUG: Progressione
20:50:45 T:3056805776 M:288710656 DEBUG: -------------------
20:50:45 T:2735344528 M:289792000 INFO: Python script stopped
20:50:45 T:2735344528 M:289792000 DEBUG: Thread 2735344528 terminating
20:50:45 T:3056805776 M:289792000 DEBUG: python thread 14 destructed
20:50:45 T:3056805776 M:289792000 INFO: Python, unloading python24.dll because no scripts are running anymore
20:50:45 T:3056805776 M:289914880 DEBUG: UnloadExtensionLibs, clearing python extension libraries
20:50:46 T:3056805776 M:289914880 DEBUG: Unloading: strop.so
20:50:46 T:3056805776 M:289914880 DEBUG: Unloading: _socket.so
20:50:46 T:3056805776 M:289914880 DEBUG: Unloading: _ssl.so
20:50:46 T:3056805776 M:289914880 DEBUG: Unloading: time.so
20:50:46 T:3056805776 M:289914880 DEBUG: Unloading: struct.so
20:50:46 T:3056805776 M:289914880 DEBUG: Unloading: binascii.so
20:50:46 T:3056805776 M:289914880 DEBUG: Unloading: math.so
20:50:46 T:3056805776 M:289914880 DEBUG: Unloading: _random.so
20:50:46 T:3056805776 M:289914880 DEBUG: Unloading: fcntl.so
20:50:46 T:3056805776 M:289914880 DEBUG: Unloading: cStringIO.so
20:50:46 T:3056805776 M:289914880 DEBUG: Unloading: md5.so
20:50:46 T:3056805776 M:289914880 DEBUG: Unloading: sha.so
20:50:46 T:3056805776 M:289914880 DEBUG: Unloading: _bisect.so
20:50:46 T:3056805776 M:289914880 DEBUG: Unloading: collections.so
20:50:46 T:3056805776 M:289914880 DEBUG: Unloading: datetime.so
20:50:46 T:3056805776 M:289914880 DEBUG: Unloading: python24-i486-linux.so
- zemazzia - 2009-08-06
As you see, the execution command seem to be this:
"vlc" -f --play-and-exit mms://rntlivewm.rai.it/raitre/blunotte/blunotte_tangentopoli_indiritti.wmv
Copiying this in terminal, the streams start, even if with some error messages... but the streams is correctly played!
Code: mediacenter@mediacenter-desktop:~$ "vlc" -f --play-and-exit mms://rntlivewm.rai.it/raitre/blunotte/blunotte_tangentopoli_indiritti.wmv
VLC media player 0.9.9a Grishenko
[00000001] main libvlc debug: VLC media player - version 0.9.9a Grishenko - (c) 1996-2009 the VideoLAN team
[00000001] main libvlc debug: libvlc was configured with ./configure '--build=i486-linux-gnu' '--enable-maintainer-mode' '--enable-release' '--prefix=/usr' '--enable-libtool' '--enable-fast-install' '--with-binary-version=2ubuntu1' '--disable-update-check' '--disable-gnome' '--disable-gtk' '--disable-familiar' '--disable-fb' '--enable-ggi' '--enable-sdl' '--enable-esd' '--enable-mad' '--enable-jack' '--enable-pulse' '--enable-lirc' '--enable-a52' '--enable-aa' '--enable-dvbpsi' '--enable-mozilla' '--with-mozilla-pkg=libxul-plugin' '--disable-kde' '--enable-mp4' '--enable-dvb' '--disable-satellite' '--enable-ogg' '--enable-vorbis' '--enable-shout' '--enable-qt4' '--disable-slp' '--enable-flac' '--disable-skins' '--disable-basic-skins' '--enable-skins2' '--enable-freetype' '--enable-mkv' '--enable-speex' '--enable-caca' '--enable-live555' '--enable-libmpeg2' '--enable-fribidi' '--enable-cdio' '--enable-mod' '--enable-theora' '--enable-modplug' '--enable-dvdnav' '--enable-gnutls' '--enable-ffmpeg' '--enable-ncurses' '--enable-smb' '--disable-gnomevfs' '--enable-bonjour' '--enable-mpc' '--enable-vcd' '--enable-vcdx' '--enable-notify' '--enable-twolame' '--enable-faad' '--disable-zvbi' '--enable-telx' '--enable-mediacontrol-bindings' '--disable-atmo' '--enable-taglib' '--enable-libass' '--enable-libdca' '--enable-realrtsp' '--disable-dv' '--enable-x264' '--enable-alsa' '--enable-v4l' '--enable-v4l2' '--enable-pvr' '--enable-svgalib' '--enable-dvd' '--without-dvdcss' 'build_alias=i486-linux-gnu' 'CFLAGS=-g -O2' 'LDFLAGS=-Wl,--as-needed' 'CPPFLAGS=' 'CXXFLAGS=-g -O2'
[00000001] main libvlc debug: translation test: code is "C"
[00000001] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
Xlib: extension "Generic Event Extension" missing on display ":1000.0".
Xlib: extension "Generic Event Extension" missing on display ":1000.0".
Xlib: extension "Generic Event Extension" missing on display ":1000.0".
[00000409] main access error: connection failed: Connessione rifiutata
[00000409] access_mms access error: failed to open a connection (tcp)
[00000409] main access error: connection failed: Connessione rifiutata
[00000409] access_mms access error: failed to open a connection (tcp)
[00000409] access_mms access error: cannot connect to server
Xlib: extension "Generic Event Extension" missing on display ":1000.0".
Xlib: extension "Generic Event Extension" missing on display ":1000.0".
Xlib: extension "Generic Event Extension" missing on display ":1000.0".
Xlib: extension "Generic Event Extension" missing on display ":1000.0".
Xlib: extension "Generic Event Extension" missing on display ":1000.0".
[00000409] access_mms access error: cannot read data 2
Xlib: extension "Generic Event Extension" missing on display ":1000.0".
Xlib: extension "Generic Event Extension" missing on display ":1000.0".
Xlib: extension "Generic Event Extension" missing on display ":1000.0".
Xlib: extension "XFree86-VidModeExtension" missing on display ":1000.0".
[00000409] access_mms access error: cannot read data 2
- rwparris2 - 2009-08-06
Quote: Here it is the logging from the click on the video (first part... is too long for a one post)
Then use pastebin!
- zemazzia - 2009-08-06
what's pastebin??
First attempt - chrisXX - 2009-08-06
Hi Zemazzia,
Thanks for putting effort in testing my plugin and sorry for answering so late..
I've changed the plugin in a way that should allow to launch players also under linux.
Please update the default.py file in the plugin directory with the new version of the runPlayer function (still under development) that should run under linux as well:
Code: def runPlayer(url,mediaType):
cmd = "System.ExecWait"
if mediaType=="RAM":
#Using realplayer
#playerApplication=r"C:\Program Files\Real\RealPlayer\realplay.exe"
#playerArgs=url
playerApplication=xbmcplugin.getSetting( "Player_RAM" )
playerApplicationOpts=xbmcplugin.getSetting( "Player_RAM_opts" )
playerArgs=playerApplicationOpts+" "+url
else:
#To execute VLC or WMPLayer
#Using VLC
#playerApplication=r"C:\PROGRA~3\VideoLAN\VLC\vlc.exe"
#playerArgs='--fullscreen -vvv '+url
#Using WMPlayer (requeires it in the PATH variable)
#playerApplication=r"wmplayer.exe"
#playerArgs=url+' /fullscreen /play /close'
playerApplication=xbmcplugin.getSetting( "Player_Standard" )
playerApplicationOpts=xbmcplugin.getSetting( "Player_Standard_opts" )
playerArgs=playerApplicationOpts+" "+url
if (sys.platform == 'win32'):
print "Using Windows!"
print "Executing: %s(\"%s\" %s)" % (cmd, playerApplication, playerArgs)
xbmc.executebuiltin("%s(\"%s\" %s)" % (cmd, playerApplication, playerArgs))
elif (sys.platform.startswith('linux')):
print "Executing: %s %s" % (playerApplication, playerArgs)
os.system("%s %s" % (playerApplication, playerArgs))
elif (sys.platform.startswith('darwin')):
print "Executing: %s %s" % (playerApplication, playerArgs)
os.system("\"%s\" %s" % (playerApplication, playerArgs))
else:
pass;
# unsupported platform
The code is not clean and I couldn't test it under linux but I think this could be the patch that you were looking for.
Let me know how it goes.
Thanks,
--ChrisXX
- zemazzia - 2009-08-06
no it still doesn't work...
it seems that os.system is not the correct parameter...
Here is the log starting from the runPlayer point.
Code: 23:06:30 T:2878339984 M:276307968 NOTICE: runPlayer(videoLink,puntata.mediaType)
23:06:30 T:2878339984 M:276307968 NOTICE: File "/home/mediacenter/.xbmc/plugins/video/Rai.tv on Demand/default.py", line 71, in runPlayer
23:06:30 T:2878339984 M:276307968 NOTICE:
23:06:30 T:2878339984 M:276307968 NOTICE: os.system("%s %s" % (playerApplication, playerArgs))
23:06:30 T:2878339984 M:276307968 NOTICE: NameError
23:06:30 T:2878339984 M:276307968 NOTICE: :
23:06:30 T:2878339984 M:276307968 NOTICE: global name 'os' is not defined
23:06:30 T:2878339984 M:276307968 NOTICE:
23:06:30 T:2878339984 M:276307968 ERROR: Scriptresult: Error
23:06:30 T:2878339984 M:276307968 INFO: Loading skin file: DialogOK.xml
23:06:30 T:2878339984 M:276307968 DEBUG: Load DialogOK.xml: 3.11ms
23:06:30 T:3056957328 M:276307968 DEBUG: ------------------- GUI_MSG_WINDOW_INIT
23:06:30 T:3056957328 M:276307968 DEBUG: Dialog OK
23:06:30 T:3056957328 M:276307968 DEBUG: -------------------
23:06:30 T:3056957328 M:276307968 DEBUG: Alloc resources: 0.07ms (0.02 ms skin load, 0.02 ms preload)
23:06:32 T:3056957328 M:276307968 DEBUG: ------------------- GUI_MSG_WINDOW_DEINIT
23:06:32 T:3056957328 M:276307968 DEBUG: Dialog OK
23:06:32 T:3056957328 M:276307968 DEBUG: -------------------
23:06:32 T:2878339984 M:276307968 INFO: Python script stopped
23:06:32 T:2878339984 M:276307968 DEBUG: Thread 2878339984 terminating
23:06:32 T:3056957328 M:276307968 DEBUG: python thread 5 destructed
23:06:32 T:3056957328 M:276307968 INFO: Python, unloading python24.dll because no scripts are running anymore
23:06:32 T:3056957328 M:276307968 DEBUG: UnloadExtensionLibs, clearing python extension libraries
23:06:32 T:3056957328 M:276307968 DEBUG: Unloading: strop.so
23:06:32 T:3056957328 M:276307968 DEBUG: Unloading: _socket.so
23:06:32 T:3056957328 M:276307968 DEBUG: Unloading: _ssl.so
23:06:32 T:3056957328 M:276307968 DEBUG: Unloading: time.so
23:06:32 T:3056957328 M:276307968 DEBUG: Unloading: struct.so
23:06:32 T:3056957328 M:276307968 DEBUG: Unloading: binascii.so
23:06:32 T:3056957328 M:276307968 DEBUG: Unloading: math.so
23:06:32 T:3056957328 M:276307968 DEBUG: Unloading: _random.so
23:06:32 T:3056957328 M:276307968 DEBUG: Unloading: fcntl.so
23:06:32 T:3056957328 M:276307968 DEBUG: Unloading: cStringIO.so
23:06:32 T:3056957328 M:276422656 DEBUG: Unloading: md5.so
23:06:32 T:3056957328 M:276422656 DEBUG: Unloading: sha.so
23:06:32 T:3056957328 M:276422656 DEBUG: Unloading: _bisect.so
23:06:32 T:3056957328 M:276422656 DEBUG: Unloading: collections.so
23:06:32 T:3056957328 M:276422656 DEBUG: Unloading: datetime.so
23:06:32 T:3056957328 M:276422656 DEBUG: Unloading: python24-i486-linux.so
23:06:32 T:3056957328 M:276566016 DEBUG: WaitOnScriptResult - plugin exited prematurely - terminating
23:06:32 T:3056957328 M:276566016 ERROR: GetDirectory - Error getting plugin://video/Rai.tv on Demand/?url=%2Fdl%2FRaiTV%2Fprogrammi%2Fmedia%2FContentItem-f0436425-7f52-4f0b-bccc-f80d2562770f.html%3Fp%3D0&mode=2
23:06:32 T:3056957328 M:276566016 ERROR: CGUIMediaWindow::GetDirectory(plugin://video/Rai.tv on Demand/?url=%2Fdl%2FRaiTV%2Fprogrammi%2Fmedia%2FContentItem-f0436425-7f52-4f0b-bccc-f80d2562770f.html%3Fp%3D0&mode=2) failed
23:06:32 T:3056957328 M:276566016 DEBUG: CGUIMediaWindow::GetDirectory (plugin://video/Rai.tv on Demand/?url=Blu+Notte+2008&mode=1)
23:06:32 T:3056957328 M:276566016 DEBUG: ParentPath = [plugin://video/Rai.tv on Demand/]
23:06:32 T:3056957328 M:276566016 DEBUG: Loading fileitems [plugin://video/Rai.tv on Demand/?url=Blu+Notte+2008&mode=1]
23:06:32 T:3056957328 M:276566016 DEBUG: -- items: 6, directory: plugin://video/Rai.tv on Demand/?url=Blu+Notte+2008&mode=1 sort method: 0, ascending: false
23:06:32 T:3056957328 M:276566016 DEBUG: Sort, sorting took 0 millis
23:06:32 T:3056957328 M:276566016 WARNING: GetLabel - Unknown nodetype requested 0
23:06:32 T:2835843984 M:276566016 DEBUG: Running thread 2835843984
23:06:32 T:2835843984 M:276566016 DEBUG: thread start, auto delete: 0
23:06:32 T:2844236688 M:276566016 DEBUG: Running thread 2844236688
23:06:32 T:2844236688 M:276566016 DEBUG: thread start, auto delete: 0
23:06:32 T:2835843984 M:276566016 DEBUG: Thread 2835843984 terminating
23:06:32 T:2844236688 M:276566016 DEBUG: Thread 2844236688 terminating
23:06:32 T:3056957328 M:276336640 DEBUG: Load defaultFolderBackBig.png: 9.3ms (bundled)
23:06:32 T:3056957328 M:276422656 DEBUG: Load special://masterprofile/Thumbnails/Video/0/0bb95aa2.tbn: 1.7ms
23:06:32 T:3056957328 M:276422656 DEBUG: Load special://masterprofile/Thumbnails/Video/0/067c9ca5.tbn: 1.8ms
23:06:32 T:3056957328 M:276422656 DEBUG: Load special://masterprofile/Thumbnails/Video/5/5ae934f2.tbn: 1.8ms
23:06:32 T:3056957328 M:276422656 DEBUG: Load special://masterprofile/Thumbnails/Video/2/2f380750.tbn: 3.7ms
23:06:32 T:3056957328 M:276422656 DEBUG: Load special://masterprofile/Thumbnails/Video/8/82bce90e.tbn: 1.8ms
23:06:32 T:3056957328 M:276422656 DEBUG: Load special://masterprofile/Thumbnails/Video/e/e5985aaa.tbn: 1.9ms
23:06:32 T:3056957328 M:276447232 DEBUG: ------------------- GUI_MSG_WINDOW_DEINIT
23:06:32 T:3056957328 M:276447232 DEBUG: Progressione
23:06:32 T:3056957328 M:276447232 DEBUG: -------------------
coding without the pc - chrisXX - 2009-08-06
Hi zemazzia,
the patch is for the v0.2 of the plugin .. the latest one that works for XBOX and imports also the os library...
maybe you are using the v0.1 ?
anyway, even from your version it could be enough just
to import the os library editing the import line (at the beginning of the file)
from
Code: import urllib,urllib2,re,cgi
to
Code: import urllib,urllib2,re,cgi,os
As I said, I don't have a linux box to test this for you...
but this way it should work.
Ciao
- zemazzia - 2009-08-09
OK ChrisXX, installing the versione 0.2 of the plugin, and modifying the default.py as you said, the streaming starts correctely using vlc as esternal player!!!
To start a player, i had to manually modify also the settings.xml file under the plugin folder, setting "vlc" as command for the player, then go to plugin settings and click "default" to import configuration.
This because from plugin settings menu it is not possible to find vlc file nor edit the command line to simply have "vlc".
Now everything is ok.
Talking about the use of the internal player, i suggest you this page (maybe you already know this), about the use of esternal p2p software. With the use of another computer and .strm file, mms streams are played by the internal player. Maybe there is a way to play mms streams?
http://www.xbmc.org/wiki/index.php?title=HOW-TO:_Play_Free_Streaming_TV
- chrisXX - 2009-08-10
Hi Zemazzia,
thanks for testing plugin v0.2 on Linux.
Based on your result I've created v0.3 that is supposed to run on all the platforms (XBOX, MAC, Linux, Win).
I haven't properly tested it yet.
Please have a try... I've added a couple of new features that could be helpfull.
It's temporarly available here:
Rai.tv_on_Demand 0.3
I have to think about your suggestion to allow to specify the external player path manually instead of choosing the binary using XBMC file finder.... I fear it may get things more complicated for novice users while experience user can still browse to the absolute path of the command or edit the cfg file manually like you did.
...but I'm open to suggestions.
Regards,
--ChrisXX
- zemazzia - 2009-08-10
Hi Chrisxx!
I'm glad to help you in this development... I have few days to help you, then i'll go on holiday (ieppaaaa) and I'll be back on september.
Tonight i will try version 0.3 and i will give you my feedback.
For the choose of the external player, under linux the manual configuration is a must, because browsing starts from /home folder, while "vlc" is in /root, so i can't reach it by browsing! so editing settings.xml is the only way to chose the player....
Did you read the other link i sended to you? In that page, as you can see for tvants, mms streams are sended to internal player and correctly streamed. So there is a way to play mms streams? Or maybe is not there the problem??
- chrisXX - 2009-08-10
Hi Zemazzia,
thanks for the support so far...
You have convinced me about the player selection setting .. I will change it to a simple text box in the next release so that everybody can type what they want in any platform.
Regarding the .strm files instead I can tell you that I've been using them but I don't think this feature will help bypassing the checks that Rai has in place to filter the content provided to users. Basically they check which kind of browser is requesting the video and if they don't like it they won't stream.
I'm not aware of any way to change the client identification (the famous user agent) via .strm file and that's why we need to use external player that are recognized (ex: media player) or that can set the user agent manually (ex: vlc).
If you find a way to do it via .strm file let me know.
Regards,
--ChrisXX
|