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
839 stars 204 forks source link

Audio does not play #8

Closed w0dash closed 11 years ago

w0dash commented 11 years ago

I tried to get gmrender-ressurect to work on archlinux arm with a RPi.

My problem is, that an error occurs, when I want to stream audio.

This is the log:

HZ:

upnp:classobject.item.audioItem.musicTrack/upnp:classdc:titleBack Like that (Remix) (ft. Ghostface & Ne-Yo)/dc:titledc:creatorKanye West/dc:creatorupnp:artistKanye West/upnp:artistXtreme/upnp:artistupnp:albumArtURIhttp://192.168.178.43:57645/external/audio/albums/3.jpg/upnp:albumArtURIupnp:albumFreshmen Adjustment Vol. 3/upnp:albumupnp:originalTrackNumber12/upnp:originalTrackNumberdc:date2007-01-01/dc:datehttp://192.168.178.43:57645/external/audio/media/7275.mp3

2.0.171.137: Action 'SetAVTransportURI' was a success! upnp_set_error: Playing failed upnp_set_error: Playing failed 2.0.230.169: Action 'GetTransportInfo' was a success!

hzeller commented 11 years ago

mmh, did you install all the gstreamer plugins ? They determine what stream types they can play. The error message could indicate that it might have a problem with that.

hzeller commented 11 years ago

Did it work after installing the plugins ?

Morriar commented 11 years ago

Hi,

Same problem here, trying to play music from my android device on my raspi gmrender server.

Here the server log:

INFO [2013-06-02 23:33:46.725570 | transport] AVTransportURI: http://192.168.0.3:57645/external/audio/media/1087.mp3 INFO [2013-06-02 23:33:46.725864 | transport] AVTransportURIMetaData: upnp:classobject.item.audioItem.musicTrack/upnp:classdc:titleIn The Waiting/dc:titledc:creatorZero 7/dc:creatorupnp:artistZero 7/upnp:artistupnp:albumArtURIhttp://192.168.0.3:57645/external/audio/albums/3.jpg/upnp:albumArtURIupnp:genre(131)/upnp:genreupnp:albumGarden State/upnp:albumupnp:originalTrackNumber3/upnp:originalTrackNumberdc:date2004-01-01/dc:datehttp://192.168.0.3:57645/external/audio/media/1087.mp3 INFO [2013-06-02 23:33:46.726122 | transport] NumberOfTracks: 1 INFO [2013-06-02 23:33:46.727093 | transport] LastChange: <?xml version="1.0"?>

INFO [2013-06-02 23:33:46.750738 | webserver] webserver_get_info:(filename='/upnp/grender-64x64.png',info=0xb3416570) ERROR [2013-06-02 23:33:46.855294 | upnp] upnp_set_error: Playing failed ERROR [2013-06-02 23:33:48.652347 | upnp] upnp_set_error: Playing failed

I checked, all the plugins for gstreamer are installed in correct version. Am I missing something?

Thanks.

hzeller commented 11 years ago

Just to make sure, gstreamer has been found and compiled in ? If it is not found, then gmrender proceeds to use a dummy output module that does not provide any play capability. Try to explicitly say --with-gstreamer (to be able to compile stuff, the development libs have to be installed: libgstreamer0.10-dev )

(Just submitted a change that makes this more obvious as it will show up in the error log; if you do a git pull and recompile this should trigger an error-log).

hzeller commented 11 years ago

Actually, now I removed the dummy module entirely - it does not serve any purpose other than being confusing when gstreamer is not found. Now, there will be a compile error when that happens.

Morriar commented 11 years ago

I tried with the new versuin and same problem occurs. Is it possible to activate more log abbout the error ?

hzeller commented 11 years ago

On 3 June 2013 14:53, Alexandre Terrasa notifications@github.com wrote:

I tried with the new versuin and same problem occurs. Is it possible to activate more log abbout the error ?

At this point, it can only be an error in gstreamer. Did you try playing a different format (.ogg or .flac for instance ?). MP3 will only work if you have the 'ugly' plugins installed. In the first couple of lines after startup, the logfile should list all the media formats it allows for (Log-lines look something like 'Registering audio/mpeg' or similar). Can you post this list here ?

If you set the environment variable GSTDEBUG=:5, then you can see all the details of what is happening within gstreamer, and potentially a hint what is going wrong: GSTDEBUG=:5 src/gmediarender --logfile=/tmp/gmrender.log

(the --logfile only records the gmrender log, while the GST_DEBUG log output will be on the console)

Morriar commented 11 years ago

Ok, it was my bad, forgot to run make install.

It work nice! Thank you for your help.

hzeller commented 11 years ago

Cool, glad it works.

I am going to close this bug now; I presume the original poster had a similar problem, but I never heard back, so I assume it fixed there as well.

(little ad: if you want a LCD display with the current song playing, check out my newest hack: https://github.com/hzeller/upnp-display )