The transcode yields a m3u8 playlist of mpeg-ts files, each (in our case) is h264 video, and 10 seconds long
The transcode yields a m3u8 playlist of mpeg-ts files, each (in our case) is h264 video, and 10 seconds long
Take a look at pi3D, it is very light and could be helfpul: https://github.com/tipam/pi3d
I was able to run a pi3D (non x) window from the console and then launch OMXPlayer on top of it (from console). Once I killed OMXPlayer, the pi3D window was still running underneath it. I had to adjust my window size to 1280x720.
Even though this works, the bigger issues I see are as follows:
- No native GUI options for lists, buttons, etc. A Plex client would require multiple scrollable lists. PyGame seems to have a few GUI options: http://www.pygame.org/wiki/gui
- No ability to overlay a GUI on top of OMXplayer to present user with Play / Pause / Stop
I haven't found a solution for the two items above, but I still think Python is a great way to go:
- Python is very accessible and no need to compile
- Lots of code out there to be leveraged, especially PleXBMC
Could you send me the code you're trying or push it to the transcode branch?
Nice, I will give it a try. I played a little with pygame and the main problem was that I wasn't able to let something overlay (Play, Pause, Stop). Maybe we could or we have to combine both or multiple libraries. We will see :)
Hi everyone,
Apologies if this maybe somewhat off topic but I’m really glad to see work on this has started. I’m coming from a limited python development background but would love to help if possible. To get me started, my first question is: what is your development process? Do you develop/test locally and then publish to the Pi? I only ask because I am having some issues locally with dbus. I have Googled the errors but can’t seem to resolve the issues (I’m on OSX). Here are the exception details:
Service published
starting, please wait…
Audio output over 3,5mm jack
Caught exception
Traceback (most recent call last):
File “pyplex.py”, line 206, in
service.publish()
File “pyplex.py”, line 34, in publish
avahi.DBUS_PATH_SERVER),
File “/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/dbus/bus.py”, line 244, in get_object
follow_name_owner_changes=follow_name_owner_changes)
File “/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/dbus/proxies.py”, line 246, in init
self._named_service = conn.activate_name_owner(bus_name)
File “/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/dbus/bus.py”, line 183, in activate_name_owner
self.start_service_by_name(bus_name)
File “/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/dbus/bus.py”, line 281, in start_service_by_name
‘su’, (bus_name, flags)))
File “/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/dbus/connection.py”, line 630, in call_blocking
message, timeout)
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.Avahi was not provided by any .service files
I have used mac ports to install the required components. Any ideas?Hopefully when I get past this I can start to contribute something!
Thanks in advanced,
Shep
OSX isnt going to have the dbus or Avahi (linux Bonjour) needed to run pyplex on it. Sadly, this pretty much requires doing testing on the pi.
The current master, but in plexInterface.py, change args['offset'] = 0 to args['offset'] =
That should get you a stream URL that has offset, and is feeding the blank segments and such.
If you can decipher my crazy coding style :D I was hoping to borrow some of the abstraction from Pyplex to make mine look vaguely respectable.
Edit: also, good work so far. It's slightly easier in that I get to hand off to XBMC, but it's a blessing and a curse.
In thinking about where the puck is going to be (Gretzky), it would be great to have it pick up airplay video (and maybe audio), turning it in to a $25 transparent client…
I'll have a Python implementation for this very soon :) It might be standalone at first, but should integrate pretty easily with the pyplex.
So much win!
Receiving my RasPy 512MB tomorrow, really looking forward to trying this (Airplay too)!
Thanks for all the work 
Got the sd reader (finally), and dove right in to pyplex.
I figured, since raspbmc is based on raspbian, that it would be a great two-birds scenario…
Ran across one problem though; raspbmc doesn’t recognize omxplayer as a package that can be installed, nor does it come up when trying to autocomplete or when using find.
Of course, pyplex doesn’t play any media in this scenario.
Since omxplayer is the only software that I’m aware of that can make proper use of the GPU, it’s gotta be somewhere, right?
(Was hoping to find a way to show xbmc, then override the screen when plex/air server receives a call)
You could compile it from source, files and instructions can be found here: https://github.com/huceke/omxplayer
Raspbmc uses XBMC, which I believe (now) has OMX Player in its source tree, so it doesn't need to have a separate package.
Anyone got pyplex working with the latest raspbmc?
If you could post a quick guide here I would really appreciate it :)
Thanks
If you're running Raspbmc then surely the Plex plugin is a the way you should be going. There's no way to invoke Pyplex from the XBMC GUI as far as I know, so you'd have to start it from command line. Kinda pointless on a distro that designed to use a remote, not a keyboard.
If you're running Rasbian then use Pyplex.
Hi, I’m very new to all of this, got my RPi only a few days a go. Anyway, I’ve got this all up and running on the back of a hackintosh server, and using an ipad mini as a remote. I’d like to say amazing work to everyone who has been involved first.
One question though. Is there anyway to get this service to start automatically. I’ve got the pi plugged into the back of my tv so it turns on and off with the tv, plugging in a keyboard or ssh into the pi would just be a pain. I also would like to run this along side AirPi to control my music, with AirPi outputting through the audio jack and pyplex outputting through the hdmi. Will report back how I get on with it all.
Thanks again.
Try this:
http://forums.plexapp.com/index.php/topic/35906-raspberry-pi/page__view__findpost__p__315283
In my instructions I mention downloading the omxplayer deb file, but you can also try this first:
sudo apt-get install omxplayer
I've since switched to raspbian and I'm going to get a second card to run raspbmc.