I am trying to stream an mp4 file from a URL into Plex to view through Roku and the Plex plugin.
Plex can find video URLs on some websites, but not all.
I can obtain the URL for the actual video file (see #VLCURL below). But Plex will not Queue it up.
I can read the URL through VLC and stream it back out for Plex, however, I always get the message that the channel is currently unavailable.
The channel code:
####################################################################################################
PREFIX = '/video/vlcplayer'
TITLE = 'VLC Player'
ART = 'art-default.jpg'
ICON = 'icon-vlc.png'
####################################################################################################
def Start():
ObjectContainer.title1 = TITLE
ObjectContainer.art = R(ART)
DirectoryObject.thumb = R(ICON)
DirectoryObject.art = R(ART)
VideoClipObject.thumb = R(ICON)
VideoClipObject.art = R(ART)
HTTP.CacheTime = CACHE_1HOUR
####################################################################################################
@handler(PREFIX, TITLE, thumb=ICON)
def MainMenu():
oc = ObjectContainer()
mo = MediaObject(parts=[PartObject(key=HTTPLiveStreamURL(VLCURL))])
vco = VideoClipObject(title="Play local VLC stream", url=VLCURL)
vco.add(mo)
oc.add(vco)
return oc
####################################################################################################
The error:
2014-01-24 22:18:27,512 (1868) : WARNING (objectkit:199) - Media part has no streams - attempting to synthesize
2014-01-24 22:18:27,513 (1868) : DEBUG (services:41) - Loading service code for Fallback (URLServiceRecord)
The VLC output stream options:
:sout=#transcode{vcodec=h264,acodec=mpga,ab=128,channels=2,samplerate=44100}:standard{access=http,mux=ts,dst=localhost:11223} :sout-all
Does someone see what I am doing wrong?
Thanks.