2010-01-25, 23:26
Hi there,
I'm trying to use the old fashioned strm files to launch streams produced via plugin.
Here is how I do it.
I use a plugin that can scrap video sources from internet . If the source is, for example, from megavideo.com the same script allows you to configure your megavideo user and password and watch that video with premium support (high quality video and no time viewing limit).
Because this extra functions cannot be achieved just linking to the streamed content I wanted to, somehow, link a list of files to the execution of this plugin.
Fortunately the plugin allows this and can be executed with parameters to achieve this goal.
So I thought of creating old-style strm files but instead of putting http o any other web protocol links I tried entenring a plugin feed. Something like...
File MyMegaVideoVideo.strm:
plugin://video/myplugin/?action=watch&source=MegaVideo&title=My+Online+Video&url=http%3A%2F%2Fwww.sourceweb.com%2Fvideos%2F44413%2F
I place this strm file in any location accessible from the videos option and it... almost works!
XBMC starts the plugin with the indicated parameters. The plugin retrieves the video, sets the cookie for megavideo premium services and stars the video... All fine!!
Not all. Somehow XBMC interprets that the strm file contained no suitable source and returns an error.
It is funny anyway that while I see the error window message that says:
The xbmc.log file shows the following:
The key message, I think, is timed 21:42:30
Can it be that the plugin has to inform that it, in fact, has started successfully a video?
Can I, somehow, avoid getting that message?
Thanks in advance,
Jur.
I'm trying to use the old fashioned strm files to launch streams produced via plugin.
Here is how I do it.
I use a plugin that can scrap video sources from internet . If the source is, for example, from megavideo.com the same script allows you to configure your megavideo user and password and watch that video with premium support (high quality video and no time viewing limit).
Because this extra functions cannot be achieved just linking to the streamed content I wanted to, somehow, link a list of files to the execution of this plugin.
Fortunately the plugin allows this and can be executed with parameters to achieve this goal.
So I thought of creating old-style strm files but instead of putting http o any other web protocol links I tried entenring a plugin feed. Something like...
File MyMegaVideoVideo.strm:
plugin://video/myplugin/?action=watch&source=MegaVideo&title=My+Online+Video&url=http%3A%2F%2Fwww.sourceweb.com%2Fvideos%2F44413%2F
I place this strm file in any location accessible from the videos option and it... almost works!
XBMC starts the plugin with the indicated parameters. The plugin retrieves the video, sets the cookie for megavideo premium services and stars the video... All fine!!
Not all. Somehow XBMC interprets that the strm file contained no suitable source and returns an error.
It is funny anyway that while I see the error window message that says:
"Playback Failed
One or more items failed to play.
Check the log file for details."
it is funny, I was saying, that the video plays in the bottom just until the moment I press the OK button.One or more items failed to play.
Check the log file for details."
The xbmc.log file shows the following:
PHP Code:
21:41:50 T:3120 M:2863656960 NOTICE: -->Python Interpreter Initialized<--
21:42:22 T:2852 M:2854764544 WARNING: CDVDMessageQueue(player)::Put MSGQ_NOT_INITIALIZED
21:42:22 T:4320 M:2854760448 NOTICE: Creating InputStream
21:42:25 T:4320 M:2839277568 NOTICE: Creating Demuxer
21:42:29 T:4320 M:2836799488 NOTICE: Opening video stream: 0 source: 256
21:42:29 T:4320 M:2836795392 NOTICE: Creating video codec with codec id: 1
21:42:29 T:4320 M:2836746240 NOTICE: Creating video thread
21:42:29 T:4320 M:2836746240 NOTICE: Opening audio stream: 1 source: 256
21:42:29 T:4320 M:2836746240 NOTICE: Finding audio codec for: 86016
21:42:29 T:4952 M:2836733952 NOTICE: running thread: video_thread
21:42:29 T:4952 M:2836729856 NOTICE: Display resolution DESKTOP : 1366x768 @ 60.00 - Full Screen (12)
21:42:29 T:4320 M:2836717568 NOTICE: Creating audio thread
21:42:29 T:3924 M:2836717568 NOTICE: running thread: CDVDPlayerAudio::Process()
21:42:29 T:3924 M:2838233088 NOTICE: Creating audio device with codec id: 86016, channels: 2, sample rate: 44100, no pass-through
21:42:29 T:4952 M:2833293312 NOTICE: fps: 25.000000, pwidth: 640, pheight: 480, dwidth: 840, dheight: 480
21:42:29 T:4952 M:2833293312 NOTICE: Display resolution DESKTOP : 1366x768 @ 60.00 - Full Screen (12)
21:42:30 T:2852 M:2835431424 ERROR: Playlist Player: skipping unplayable item: 0, path [plugin://video/myplugin/?action=watch&source=MegaVideo&title=My+Online+Video&url=http%3A%2F%2Fwww.sourceweb.com%2Fvideos%2F44413%2F
]
21:42:32 T:4952 M:2836885504 WARNING: CRenderManager::FlipPage - timeout waiting for flip to complete
21:45:06 T:2852 M:2838179840 NOTICE: CDVDPlayer::CloseFile()
21:45:06 T:2852 M:2838179840 NOTICE: DVDPlayer: waiting for threads to exit
21:45:06 T:4320 M:2838179840 NOTICE: CDVDPlayer::OnExit()
21:45:06 T:4320 M:2838179840 NOTICE: DVDPlayer: closing audio stream
21:45:06 T:4320 M:2838179840 NOTICE: Closing audio stream
21:45:06 T:4320 M:2838179840 NOTICE: Waiting for audio thread to exit
21:45:06 T:3924 M:2838179840 ERROR: CDVDAudio::AddPackets - failed to add leftover bytes to render
21:45:06 T:3924 M:2838179840 NOTICE: thread end: CDVDPlayerAudio::OnExit()
21:45:06 T:4320 M:2838179840 NOTICE: Closing audio device
21:45:06 T:4320 M:2838179840 NOTICE: Deleting audio codec
21:45:06 T:4320 M:2838175744 NOTICE: DVDPlayer: closing video stream
21:45:06 T:4320 M:2838175744 NOTICE: Closing video stream
21:45:06 T:4320 M:2838175744 NOTICE: waiting for video thread to exit
21:45:06 T:4952 M:2838212608 NOTICE: thread end: video_thread
21:45:06 T:4320 M:2838241280 NOTICE: deleting video codec
21:45:06 T:4320 M:2840948736 NOTICE: CDVDPlayer::OnExit() deleting demuxer
21:45:06 T:4320 M:2840952832 NOTICE: CDVDPlayer::OnExit() deleting input stream
21:45:06 T:2852 M:2857005056 NOTICE: DVDPlayer: finished waiting
21:45:06 T:2852 M:2856435712 WARNING: DIRECTORY::CVideoDatabaseDirectory::GetLabel - Unknown nodetype requested 12
The key message, I think, is timed 21:42:30
Can it be that the plugin has to inform that it, in fact, has started successfully a video?
Can I, somehow, avoid getting that message?
Thanks in advance,
Jur.