I was trying to open info.plist and it did´t open, even the computer do nothing :S, why this happend??
I have created a VLC channel with help from the code here and a lot of reading and checking other addons.
Here is the plugin on github https://github.com/moxz/vlc.bundle
I have never written any plugin before and I haven’t gotten this one to work as I want but hey some day maybe I get it.
I tried to test it but probably I'm too noob, I can't find a way to make pms recognize it. I just put it in plugins directory, is there anything else that I have to do? even restarting pms does not work.
I am a noob to =)
I don't know why it is not recognized. I just tried it on one of my Linux boxes and it "works". The way i installed it was to git clone my repo into the plugins dir. (So not the right way)
<br />
plex@May:~/Library/Application Support/Plex Media Server/Plug-ins$ git clone https://github.com/moxz/vlc.bundle.git<br />
Cloning into 'vlc.bundle'...<br />
remote: Counting objects: 12, done.<br />
remote: Compressing objects: 100% (9/9), done.<br />
remote: Total 12 (delta 0), reused 9 (delta 0)<br />
Unpacking objects: 100% (12/12), done.<br />
Then I checked the logs and I see this error:
<br />
plex@May:~/Library/Application Support/Plex Media Server/Logs$ cat Plex\ Media\ Server.log | grep vlc<br />
Nov 24, 2012 12:39:54 [0x7fd9697f2700] DEBUG - Starting plug-in /var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Plug-ins/vlc.bundle.<br />
Nov 24, 2012 12:39:54 [0x7fd9697f2700] ERROR - Caught exception starting plugin /var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Plug-ins/vlc.bundle (Empty or non-existant file.)<br />
So then I restarted PMS
and checked the logs again
<br />
plex@May:~/Library/Application Support/Plex Media Server/Logs$ cat Plex\ Media\ Server.log | grep vlc<br />
Nov 24, 2012 12:42:07 [0x7f58065e6700] DEBUG - Starting plug-in /var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Plug-ins/vlc.bundle.<br />
Nov 24, 2012 12:42:07 [0x7f58065e6700] DEBUG - Starting file watcher for com.plexapp.plugins.vlc<br />
Nov 24, 2012 12:42:07 [0x7f58065e6700] DEBUG - Spawned plug-in com.plexapp.plugins.vlc with PID 8797<br />
Nov 24, 2012 12:42:07 [0x7f58065e6700] DEBUG - [com.plexapp.plugins.vlc] Sent command: GET /:/prefixes<br />
Nov 24, 2012 12:42:08 [0x7f5806de7700] DEBUG - Request: GET /system/messaging/clear_events/com.plexapp.plugins.vlc [127.0.0.1:57364] (1 live)<br />
Nov 24, 2012 12:42:08 [0x7f5806de7700] DEBUG - [com.plexapp.system] Sending command over HTTP (GET): /system/messaging/clear_events/com.plexapp.plugins.vlc<br />
Nov 24, 2012 12:42:08 [0x7f5806de7700] DEBUG - HTTP requesting to: http://127.0.0.1:50548/system/messaging/clear_events/com.plexapp.plugins.vlc<br />
Nov 24, 2012 12:42:08 [0x7f58065e6700] DEBUG - [com.plexapp.plugins.vlc] Plug-in running on port 34876.<br />
Nov 24, 2012 12:42:08 [0x7f58065e6700] DEBUG - * Plug-in handles prefix: /video/vlc<br />
Nov 24, 2012 12:42:08 [0x7f58065e6700] DEBUG - Read configuration for [com.plexapp.plugins.vlc], had 1 prefixes<br />
Nov 24, 2012 12:42:08 [0x7f58065e6700] DEBUG - Updating [com.plexapp.plugins.vlc] in the database, it has changed.<br />
Nov 24, 2012 12:42:09 [0x7f580e7fc700] DEBUG - Request: GET /:/plugins/com.plexapp.plugins.vlc/resources/icon-default.png?t=1353757196 [192.168.41.194:65506] (1 live)<br />
Nov 24, 2012 12:42:09 [0x7f580e7fc700] DEBUG - Plug-in com.plexapp.plugins.vlc has been used 1 times.<br />
Nov 24, 2012 12:42:09 [0x7f580e7fc700] DEBUG - [com.plexapp.plugins.vlc] Sending command over HTTP (GET): /:/plugins/com.plexapp.plugins.vlc/resources/icon-default.png?t=1353757196<br />
Nov 24, 2012 12:42:09 [0x7f580e7fc700] DEBUG - HTTP requesting to: http://127.0.0.1:34876/:/plugins/com.plexapp.plugins.vlc/resources/icon-default.png?t=1353757196<br />
Nov 24, 2012 12:42:09 [0x7f580e7fc700] DEBUG - [com.plexapp.plugins.vlc] HTTP reply status 200, with 253066 bytes of content.<br />
Nov 24, 2012 12:42:09 [0x7f580e7fc700] DEBUG - Request: GET /:/plugins/com.plexapp.plugins.vlc/resources/art-default.jpg?t=1353757196 [192.168.41.194:65507] (1 live)<br />
Nov 24, 2012 12:42:09 [0x7f580e7fc700] DEBUG - Plug-in com.plexapp.plugins.vlc has been used 2 times.<br />
Nov 24, 2012 12:42:09 [0x7f580e7fc700] DEBUG - [com.plexapp.plugins.vlc] Sending command over HTTP (GET): /:/plugins/com.plexapp.plugins.vlc/resources/art-default.jpg?t=1353757196<br />
Nov 24, 2012 12:42:09 [0x7f580e7fc700] DEBUG - HTTP requesting to: http://127.0.0.1:34876/:/plugins/com.plexapp.plugins.vlc/resources/art-default.jpg?t=1353757196<br />
Nov 24, 2012 12:42:09 [0x7f580e7fc700] DEBUG - [com.plexapp.plugins.vlc] HTTP reply status 200, with 73712 bytes of content.<br />
And now it shows up in my Client =)
However this is how far I have come. I haven't got it to play anything yet. Probably due to my encoding in VLC or something else.
are you really hosting a vlc server at http://127.0.0.1:1234 or did you just copy that from my example?
here is the init.py code from my DVD player plugin i was working on till the DVD drive in my mini crapped out
unfortunately this happened very early in development as you can tell 
<br />
<br />
####################################################################################################<br />
def Start():<br />
ObjectContainer.no_cache = True<br />
<br />
####################################################################################################<br />
@handler("/video/dvdplayer", "DVDPlayer")<br />
def MainMenu():<br />
oc = ObjectContainer(title1="VLC Player")<br />
<br />
mo = MediaObject(parts=[PartObject(key=HTTPLiveStreamURL("http://127.0.0.1:1234"))])<br />
<br />
vco = VideoClipObject(title="Play", url='http://127.0.0.1:1234')<br />
vco.add(mo)<br />
oc.add(vco)<br />
<br />
return oc<br />
<br />
####################################################################################################<br />
<br />
and here is the shellscript i use to start the vlc server with the dvd
NOTE: you MUST have libdvdcss installed for VLC to play a DVD!
<br />
#!/bin/bash<br />
<br />
cmd="/Applications/VLC.app/Contents/MacOS/VLC -I http -vvv --color dvdread:///dev/rdisk1#1:1- --sout '#standard{access=http,mux=ts,dst=localhost:1234}' --sout-all -d"<br />
eval "$cmd" > /dev/null<br />
<br />
echo 0<br />
exit<br />
<br />
you can add code in Start() to run the shell script if you like.
last time i checked this worked fine.
Hi I was actually hosting the vlc on another machine but I changed that bit in the code to your example when I added it to github. =)
I will do some more experiment and learn much more about this my goal is to be able to take the code and make something that is able to take stream directly from my tvheadend server instead.
Just for your information, I succeeded! Obviously if it didn't work out of the box it was my fault (i didn't set the right permissions to the folder). Now everything is ok. Good job!
If you guys are noob… i feel like im super noob, i was reading post number 22 and i checked out the code for vlc but where i suppost to write the code??? which folder?? or where i suppose to paste the code?? please help i have a project, and i need to send live video throught Plex to Smart TV!!!
Thanks!
I just checked your github code and you did not change it there.
I ment that I used 127.0.0.1 when added the code to github.
Localy on my PMS I have another address for my machine that is running vlc.
[Download](https://github.com/moxz/vlc.bundle/archive/master.zip) unzip rename it from vlc.bundle.master to vlc.bundle then place it in your PMS plugins catalog.
I found another problem, but in this case I think that it is not due to plugin performance. I have a problem when streaming to my TV (LG with Medialink)
- I can see the stream only through DLNA, Medialink can’t play it
- after some minutes the stream automatically restarts from the beginning and starts looping almost the same sequence (every loop it moves a little forward).
I’m pretty sure that this is a TV problem, (maybe due to buffering?) also because I noticed the same thing using MediaTomb.
I think that if it is due to buffering solution would be lowering the bitrate of stream, but how can I do it?
Oks bro thanks, i did it!! now what i need to do to send live video form vlc to plex?? i was trying with a plex URL ganeration **(http://dev.plexapp.com/tools/strmtool.php?url=http%3A%2F%2Flocalhost%3A8080&submit=STRM+it)**, which i was saving into a folder called vlc.strm. It works to see the
file image into the media player but when i do clcick on the file it says "**Error while opening file**"
If you can help me a little more i will apreciate **thanks so much!**!
You have the line for streaming trough vlc here in the thread Post 25 see his line for streaming dvd’s just remodle it after your needs.
Transcode the stream with vlc something like this
VLC -I http -vvv --color dvdread:///dev/rdisk1#1:1- --sout='#transcode{fps=25,vcodec=mpeg2,vb=3092,scale=0.75,deinterlace=1,deinterlace-mode=bob,acodec=mp3,ab=64,channels=2}{access=http,mux=ts,dst=localhost:1234}' --sout-all -d"
This line may not work at all since I am on my ipad and haven't tested it at all.
Thank you for your answer, but actually my situation as a bit different, sorry if I did not explain it before. I'm trying to use this plugin in order to stream from Sopcast program to TV, without VLC. I would simply like to stream http://192.168.1.64:8902/tv.asf to my TV. The plugin works but with the problems that I explained before. Can transcoding be done by Plex?
Great i finally got iT!! Thanks, but i have another problem, it´s worrking great in Plex like a client on Pc, but when i try to go in throught the tv (via DLNA), it says the folder cannot be played. do you know why?? or maybe u can suggest me some protocol to set in vlc before send live streaming.?
note: i already use all the steps on the post #9!
Thank u Moxz for ur help!!
Yhea and Now you are on your own from me at least =)
I am trying to figure out how to grab streams from htstvheadend =)
I have no clue how to get PMS to transcode for you so DLNA can handle it.
You have to figure this one out by yourself our with the help of someone else.
Hey guys. I'm trying to get this set up so I can view a webcam stream that's on my local network. I can view it through VLC and I'm trying to get it to Plex. I did the step above and the channel is showing up but no matter what I try to start the stream in VLC I only get "This channel is currently unavailable." from the Plex. Any recommendations for starting the vlc stream?