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

Output to stdout #116

Closed lordbarba closed 7 years ago

lordbarba commented 7 years ago

Hi Hzeller, is it possible to set stdout as audio sink? I supposed Filesink must be used, but how can i set the filename, but i had no success.

Thanks for your help Leonardo

lordbarba commented 7 years ago

Fixed, changing in output_gstreamer.c the line: g_object_set (G_OBJECT(sink), "device", audio_device, NULL); to g_object_set (G_OBJECT(sink), "location", audio_device, NULL);

When i start GMRender this is my commandline: -f Test --logfile=/dev/stderr -p 49153 -u 2f412f51-9458-4302-ac75-8008739150e0 --gstout-audiosink=filesink --gstout-audiodevice=/dev/stdout