Anonymousdog / displaycameras

System for displaying RTSP feeds from IP cameras on the Raspberry Pi
Apache License 2.0
568 stars 114 forks source link

Audio Output Control from Stream #41

Closed grooving4life closed 2 years ago

grooving4life commented 4 years ago

Hi, First of All Thanks and Great Library. Runs smoothly and easy to configure. Thumbs Up and keep up the good work.

Now to my Problem. Is it Possible to send out the Audio from the RTSP Stream over the Headphone Jack or HDMI? E.g. I have 4 Cams (2x2) and would like to have the Audio of Cam1 (upper-left) and/or Cam2 (upper-right) to output the Audio.

Thanks for your Help.

tedtms commented 4 years ago

I haven't gotten around to testing it fully yet, but this is one of my main use cases -- I have a computer (no audio) that'll be streaming its desktop content to my Pi, then I'll switch the stream via the rotation function to a live camera (with audio) and I need that feed to have audio playback.

If this isn't implemented yet, it's a much needed feature on my part! Otherwise I'll have to look for something else... but this project is great so I'd like to keep using it if possible!

Anonymousdog commented 4 years ago

This has been requested a few times, and I'm just not a good enough coder (being a sysadmin) to make it work. The problem is supporting it in a layout that uses rotation (your desired use case).

I feel like the whole loop logic of rotation would have to be refactored completely to support major feature additions, and the lifespan of this project is probably too short to put in the time that would be required (for my part).

Sorry, folks, Andy

On Tue, Feb 25, 2020 at 8:55 PM tedtms notifications@github.com wrote:

I haven't gotten around to testing it fully yet, but this is one of my main use cases -- I have a computer (no audio) that'll be streaming its desktop content to my Pi, then I'll switch the stream via the rotation function to a live camera (with audio) and I need that feed to have audio playback.

If this isn't implemented yet, it's a much needed feature on my part! Otherwise I'll have to look for something else... but this project is great so I'd like to keep using it if possible!

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/Anonymousdog/displaycameras/issues/41?email_source=notifications&email_token=AHIYIKNGNU3KVA2RSH5RCW3REXDZRA5CNFSM4K3OOUM2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEM6O36A#issuecomment-591195640, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHIYIKJKYRQALBB5GQ6DGXDREXDZRANCNFSM4K3OOUMQ .

SvenVD commented 4 years ago

Hi, if you want audio you could try out rpisurv. We have a user reporting that is working: see https://www.tapatalk.com/groups/rpisurv/viewtopic.php?p=272#p272 .

tedtms commented 4 years ago

@SvenVD I just had a skim over of your project and the thread you linked to - looks promising! However, my use case requires audio on both of the streams I'm switching between, not just the one.

So far I think I'm going to have to write myself a script that closes & re-opens streams manually with the audio flag enabled...