Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

UPNP to pipe output: generate pulseaudio sink or fifo-pipe: use audiopipe environment variable #7

Open
OneCreek opened this issue Feb 18, 2025 · 6 comments

Comments

@OneCreek
Copy link

I want to generate a PCM stream via a pipe using mkfifo from an original UPNP stream.

I found this to do so.

Multiple questions come up for me here...

  1. do I need to mount /etc/asound.conf as a volume to generate the config file according to Select pulseaudio sink or fifo-pipe to play to hzeller/gmrender-resurrect#115 (comment)?
  2. is a GSTOUT_AUDIOPIPE as a Environment Variables needed and planned/possible to create the output according to How to set pulsesink server ? hzeller/gmrender-resurrect#250 (comment)
  3. if I want a audio pipeline to handle different sample rates and bit depth as in Select pulseaudio sink or fifo-pipe to play to hzeller/gmrender-resurrect#115 (comment), how do I realize this in https://github.com/GioF71/gmrender-resurrect-docker?

I think 3. is the closest to my use case. The other questions "just" came up alongside while doing the research how to solve my challenge. Nevertheless I am not sure if they are also a solution or needed. I hope @GioF71 can help or at least give me a direction to head to with his experience:)

@GioF71
Copy link
Owner

GioF71 commented Feb 19, 2025

Hello!
You issue made me try pulseaudio and (just for starters) I see that I provided very little documentation and not even an example. I am currently trying to make it work on the desktop I am using right now, I think it does not work because of wifi connection I believe. I have to try if if works out of docker though.

Let me do some testing and collect some information and I will come back to you.

@OneCreek
Copy link
Author

OneCreek commented Feb 19, 2025

Hi! thanks for the fast reply and even testing already!
I am wondering: is pulseaudio definitly needed? is in hzeller/gmrender-resurrect#115 (comment) not "just" a audiopipe to a FIFO used? analog to your librespot-docker#pipe-mode

Very curious about your test outcome:)

@GioF71
Copy link
Owner

GioF71 commented Feb 19, 2025

I don't believe you need pulseaudio... but my container image does not currently support the audio pipe sink mode. So I need to add support for that.
About pulseaudio, at least I should update the readme with a working example.

@GioF71
Copy link
Owner

GioF71 commented Feb 19, 2025

Hello, have you considered using mpd+upmpdcli? It should support all of this (also in my docker images) already.

GioF71 added a commit that referenced this issue Feb 19, 2025
@OneCreek
Copy link
Author

OneCreek commented Feb 19, 2025

Hello, have you considered using mpd+upmpdcli? It should support all of this (also in my docker images) already.

read about upmpdcli, but didn't realize it could be a solution. So gave it a first try, but not sure what is happening at all... definitly not working with my current setup/try. Probably the wrong place to start posting compose files for mpd and upnpdcli here... I sent a discord request. feel free to ignore it;)

@GioF71
Copy link
Owner

GioF71 commented Feb 19, 2025

Check latest release, there are some changes and more examples.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants