You need to comment out the lines 124 and 129. This will show the cursor but with pygame initated the playback of a file just won't work. Still trying to find a way around this but it seems impossible to disable the mouse without pygame. If you Don't want to see the plex image at all you can comment out line 179 (which is commented out on default i see)
Looks like omxplayer is struggling with the file or not outputting stats correctly. What do you get when you dun omxplayer -o hdmi -s ?
To get the file address, you can look at the output of the script, probably just above the traceback, and see a path (should be http://:32400/XXXXXXXXXXXXX), go there in a web broswer, then look for a tag, and take the "key" variable. so the URL for your file is http://:32400/
Okay that fixed the exception but the sound still doesn't work. Any ideas here?
**Edit:**
With an .mkv there is no exception but with any other file there is still the same exception.
This workd good. No audio problems.
Had the change to test it tonight and it works awesome! Only the fastforward functions don't work, i'm still getting a non implemented notice.
I added a way to set the audio output on start of the script. Just run
$ python pyplex.py hdmi
to start it with sound over hdmi, leave it out to use the 3,5mm jack output.
Skip and step work (omxplayer has a 30 second skip) but i didnt implement speed changing yet, because it takes a bit more work.
Looks like omxplayer doesnt output any stats for non-mkv (non h264?) files. I'll put in some checks for these so it doesnt exception.
Also, I pulled from JiK.
JiK, looks like jumps wouldnt have worked for you, I added support for them about 15 minutes after my pull request. I'll submit a new pull request now with them fixed.
JiK, do you just want to add me as a collaborator on your pyplex repo? Seems a lot easier to keep this all in one place.
Also, there should be a fix in place on my repo for the exceptions when opening AVI files. I didnt test AVIs (my test file was mkv only), but now it works.
Looks like play speed changes work on web streams for omxplayer, but the skipping functionality is local file only, at least for now. So, we’re stuck without being able to jump. I’m going to try and implement speed changes soon though, to at least give us some control.
I added you. This will work better indeed, because I'll be too busy in the next two weeks to work on this.
Keep up the good work!
Ok, Well, I've committed my latest to JiK's repo ( https://github.com/megawubs/pyplex ). My own repo should no longer be considered active.
Current support:
Playing media via remote plex commands (Plex/Web or IOS client)
Remote play, pause, stop buttons (IOS client or Android client)
Marking media progress in Plex
Marking media as watched when omx player stops (If progress was > 95%)
Fast Forward (Kinda clunky, but thats what omxplayer gives)
I think I'd like to try and find a way to listen for libCEC commands, so a TV remote will be able to play/pause/stop and fast forward, but that'll be some work, at least for now, as there's no python wrapper for libCEC
Hi Guys, really interested in using this but every time i try and play something i get the following
urllib2.HTTPError: HTTP Error 401: Unauthorized
anyone getting the same, i also noticed it’s trying to use my external ip rather than internal private ip.
Col
How are you controlling the script? If you're using a client connecting to the plex server from outside (Either IOS client on 3G or Web client from outside IP address), it'll try and use the outside IP for remote control requests, which will fail. If you connect from inside your own network (IOS on WiFi or Web client on local network), it should work.
Any way, to debug it further we'll need to know the environment you're running in.
Really happy to see this make progress from my original proof of concept. I’m hoping to have some more time in the coming weeks, so I’ll try to contribute.
This looks really promising. Looking forward to trying it out. The entire reason i bought the RPi was for a Plex Client and it hasn’t happened yet x[.
I just stumbled across this, tried and it seems to work flawless for video playback so far.
Excellent work so far everyone.
Thanks! I hope to find the time to expand the functionalities. A few things things I am thinking about are:
Adding subtitle support
Adding support to resume playback
And a buch of other things!:)
I am interested in the resume functionality, and digging in a bit it seems like omxplayer doesn’t have functionality to start a file at a particular point or jump to a particular point.
After some quick searching, it seems like someone on the Raspberry Pi forums (http://www.raspberrypi.org/phpBB3/viewtopic.php?f=38&t=17085) has created a modified version of omxplayer to include the “–jump” syntax that would allow to program the resume portion.
Perhaps that would help out ?
I’m looking into using the Plex transcoder, to get h264 for those without mpeg2 licenses, and in theory this may support starting a file in a particular place.
Still havent gotten anywhere with it though, but looking into it.
Hello All
Thanks all for your awesome work. I am starting to use pyplex but adapted to another Media Center (4Gs HD from InOut TV). I am able to start it (some tweeks made to avoid pygame splash screen) and to send from IOS remote to play a video. Just for let you know, and I will try to collaborate to the Plex-PyPlex interface development if I can