Skip to content
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

How to debug 2 way audio? #1557

Closed
tERB00 opened this issue Jan 19, 2025 · 2 comments
Closed

How to debug 2 way audio? #1557

tERB00 opened this issue Jan 19, 2025 · 2 comments
Labels
question Further information is requested

Comments

@tERB00
Copy link

tERB00 commented Jan 19, 2025

Hello! I'm trying to make go2rtc work with my Uniview camera. It is capable of doing 2 way audio via onvif - I know it for a fact because it is working with my Synology Surveillance Station.

My config looks like this:

streams:
RT: rtsp://admin:[email protected]/media/video1

log:
level: debug # default level
api: debug
exec: debug
ngrok: debug
rtsp: debug
streams: debug
webrtc: debug

On the info page it reports:

  "user_agent": "go2rtc/1.9.8",
  "medias": [
    "video, recvonly, H265",
    "audio, recvonly, PCMU/8000",
    "audio, sendonly, PCMA/8000",
    "application, recvonly, VND.ONVIF.METADATA"

On the links page I paste https://files.catbox.moe/5sp12d.mp3 in the input field, press Send and nothing happens. Nothing in the logs.
I also tried curl -d "dst=RT&src=ffmpeg:https://files.catbox.moe/5sp12d.mp3#audio=pcma#input=file" -X POST http://localhost:1984/api/streams and it does not work either.
This is a windows build. I can get jpeg snapshots so I know ffmpeg is working.

I'm not sure if it is a ffmpeg issue or go2rtc issue or what because there is no errors anywhere :) How can I debug this?

@AlexxIT AlexxIT added the question Further information is requested label Jan 19, 2025
@AlexxIT
Copy link
Owner

AlexxIT commented Jan 19, 2025

According to medias list your camera supports two way audio.
You can check stream info during playing audio (reload it multiple times). Or check network tab in the WebUI. Check if transfer bytes changing during playing.

@tERB00
Copy link
Author

tERB00 commented Jan 19, 2025

This thing appears in the network tab when I press Send button:
Image

Huh! This time error logs did show up and it says connection error by ffmpeg. I gave it a different url and it worked this time.
Not sure why there were no logs before since I relaunched the app many times and the config was never changed. Oh well, thanks for the quick reply and for your very useful app!

@tERB00 tERB00 closed this as completed Jan 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants