hzeller / gmrender-resurrect

Resource efficient UPnP/DLNA renderer, optimal for Raspberry Pi, CuBox or a general MediaServer. Fork of GMediaRenderer to add some features to make it usable.
GNU General Public License v2.0
842 stars 204 forks source link

OpenMAX Support #33

Open guedressel opened 11 years ago

guedressel commented 11 years ago

Hello, thanks for resurrecting gmrenderer.

As far as I read about video decoding on RPi OpenMAX should be the way to gain hardware decoding. How far does gmrenderer make use of this techonology already?

Even though wheezy uses gstreamer 0.10 the next generation (gstreamer 1.0) would bring the omx module. And there seem to be precompiled packages around: http://www.raspberrypi.org/phpBB3/viewtopic.php?f=66&t=34250 Is a setup with gst 1.0 worth a try or a waste of time?

hzeller commented 11 years ago

Hi, gmrender-resurrect is made to compile fine with gstreamer 1.0; in fact, I am using it like that most of the time (though in my raspberry, I am still using 0.10). So that should be working.

I do admit though, that I never tested (and hence optimized for) gmrender with video output - all my installations are headless, so I am not using it for video. Theoretically it should work (after all, it is using straight gstreamer), and there is nothing specifically preventing it from working - but it might need work (if you do so, please feel free to send pull requests my way). Soo - since I haven't tried video yet, OpenMAX is not being used right now; but gmrender would probably not need to know much about the details as this should happen within the gstreamer libraries.

So: gstreamer 1.0: definitely. If video works properly: don't know, please try (if it already works for you with 0.10 without the OpenMAX stuff, then it will probably work).

ShawnMcGough commented 11 years ago

Video did not work for me with gstreamer 0.10. However, I was able to get video working on raspberry with gstreamer 1.0.9 by cloning the git repo (installing a few missing packages first);

sudo aptitude install bison
sudo aptitude install flex
git clone git://anongit.freedesktop.org/gstreamer/gstreamer
./autogen.sh
./configure
make
sudo make install
hzeller commented 11 years ago

Ah cool - so we can write in the documentation that video will work with gstreamer >= 1.0.9 ?

ShawnMcGough commented 11 years ago

Yes, I've been using it without any problems for two weeks now.

aquadat0r commented 10 years ago

Hi Shawn, would you mind sharing your setup? How you are using it?

ShawnMcGough commented 10 years ago

I was using BubbleUPnP on my Android phone to play movies from my home DLNA server (QNAP TurboNAS TS-212) to my Raspberry Pi over WiFi. Unfortunately, browsing my media from BubbleUPnP was painfully slow and my setup didn’t turn out to be usable. I ended up switching to Raspbmc (http://www.raspbmc.com/about/) which works great out of the box and plays all my HD content without problems.

Madhu205 commented 8 years ago

Hi Shawn,I followed your instructions upto ./autogen.sh it works fine but after running ./configure it gives _configure: error: You need to have gtk-doc >= 1.12 installed to build GStreamer configure failed _ I tried to install gtk-doc but it also depends on other package i.e., configure: error: xsltproc not found. I need to know what are the missing packages and how to install those,would you please share what are instructions you followed for installing gstreamer. Thanks

ShawnMcGough commented 8 years ago

It has been quite a while so I don't recall the specifics. I haven't used this in years. Try running the following commands:

sudo apt-get update
sudo apt-get install git bison flex autoconf autopoint automake libtool gtk-doc-tools libperl-dev libgtk2.0-dev
git clone git://anongit.freedesktop.org/gstreamer/gstreamer
cd gstreamer
./autogen.sh
./configure
make
sudo make install
hzeller commented 8 years ago

These days, distributions typically have gstreamer >= 1.0, it should actually work (though I haven't tried it). Did you install gstreamer according to the INSTALL.md ? https://github.com/hzeller/gmrender-resurrect/blob/master/INSTALL.md

If this particular hardware-ops requires recompiling gstreamer, then using what Shawn said looks like the right way.