-
Notifications
You must be signed in to change notification settings - Fork 109
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Audio support? #37
Comments
Yes, Audio is not supported right now : D I need to research how to capture audio in headless machines but don't have time to work on that. |
Possible via FFMPEG with Linux PulseAudio Or without FFMPEG as mentioned here: That StackOverflow article also shows PulseAudio can stream over RTP which could prove useful: |
Hi @Rock-N-Troll , |
@giongto35 "Stream it with vlc as mp3 for low bandwidth" section (demonstrates on-the-fly transcoding to mp3)
OR https://www.freedesktop.org/wiki/Software/PulseAudio/Documentation/User/Network/#index2h3
As you can see, it is very straightforward to send audio via RTP if you use PulseAudio and point it to the correct application as the "sink" or the whole Linux environment as the "sink". Potentially can look at WebRTC Audio Processing code for Linux. Seems more complicated: https://freedesktop.org/software/pulseaudio/webrtc-audio-processing/ |
Just research around today. Seems really promising with PulseAudio. Thanks very much. It helps me a lot indeed! Will try to integrate soon. |
Glad to help :). I am curious how to synchronize audio and video via pulse audio and xvfb in a ffmpeg stream. I see you already handled audio with cloud retro so maybe I should see how you handled it there. I'm not positive, but I'm guessing you can either combine the audio into the current ffmpeg video stream or you can send the audio and video streams separately to the client, but I think that will require more engineering. I'll see what else I can contribute down the line. |
@Rock-N-Troll #44 Added a simple implementation here, it costs my weekend. |
https://trac.ffmpeg.org/wiki/StreamingGuide maybe try: (and maybe less important but try a smaller probesize) https://ffmpeg.org/ffmpeg-formats.html can also maybe try alsa instead of pulse https://superuser.com/questions/144648/how-do-alsa-and-pulseaudio-relate I think using ffplay to test the delay is the best option to see if it's some part of the stream or the actual audio delay of the whole system: |
Also, forgot to say how cool that is you were able to get it working! |
GJ but one small remark.
Sync RTFM. |
Maybe I missed this but is there currently support for audio? The diablo demo has no sound. I'm using the Brave browser.
The text was updated successfully, but these errors were encountered: