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

Won't Work with Tapo C110 & C200 #13

Open
Gompman opened this issue Mar 3, 2024 · 6 comments
Open

Won't Work with Tapo C110 & C200 #13

Gompman opened this issue Mar 3, 2024 · 6 comments
Labels
question Further information is requested

Comments

@Gompman
Copy link

Gompman commented Mar 3, 2024

Hello, the possibility to use the camera stream is fantastic. But unfortunately it does not work for me. Tested via the Tapo integration (models C110 & 2x C200) and via the restream from frigate with audio in aac. Only via Android IP camera it works. How can I debug?
However, the video stream in Homeassistant of the cameras has sound.

Maybe someone can help me.

@AlexxIT AlexxIT added the question Further information is requested label Mar 4, 2024
@AlexxIT
Copy link
Owner

AlexxIT commented Mar 4, 2024

Check logs

@relust
Copy link

relust commented Mar 4, 2024

I use Tapo c100 with Stream Assist directly with rtsp link and it works very well
rtsp://administrator:password@192.168.0.xxx:554/stream2

My question is if it would be possible to make the media player functional with the help of go2rtc to also play the answer on the tapo camera.

@AlexxIT
Copy link
Owner

AlexxIT commented Mar 4, 2024

go2rtc supports two way for Tapo cameras via tapo protocol

@Gompman
Copy link
Author

Gompman commented Mar 4, 2024

I now also have the camera directly via rtsp://user:password@192.168.xxx.yyy:554/stream2conected.
Here I get in the logs: "<class 'av.error.PermissionError'>: [Errno 1] Operation not permitted:" if I open the same stream via VLC I have picture and sound.

The variant behind Frigate gives the following error: "stream exception <class 'av.error.OSError'>: [Errno 5] I/O error: 'rtsp://192.168.xxx.zzz:8554/Office'". Also possible to watch via VLC

Frigate config:

....
go2rtc:
  streams:
    Office: # <- for RTSP streams
      - tapo://CloudPW@192.168.xxx.yyy
      - "ffmpeg:Office#audio=aac"

##### Büro Stream Assist #####
cameras:
  Office:
    ffmpeg:
      inputs:
        - path: rtsp://127.0.0.1:8554/Office # <--- the name here must match the name of the camera in restream
          input_args: preset-rtsp-restream
    record:
      enabled: False
....

LOGS

2024-03-04 20:30:18.130 DEBUG (MainThread) [custom_components.stream_assist.core.stream] stream open
2024-03-04 20:30:23.201 DEBUG (MainThread) [custom_components.stream_assist.core] run_stream error <class 'av.error.PermissionError'>: [Errno 1] Operation not permitted: 'rtsp://user:password@192.168.xxx.yyy:554/stream2'
2024-03-04 20:30:33.243 DEBUG (MainThread) [custom_components.stream_assist.core.stream] stream open
2024-03-04 20:30:38.289 DEBUG (SyncWorker_21) [custom_components.stream_assist.core.stream] stream start
2024-03-04 20:30:43.385 DEBUG (SyncWorker_21) [custom_components.stream_assist.core.stream] stream exception <class 'av.error.ExitError'>: [Errno 1414092869] Immediate exit requested: 'rtsp://192.168.xxx.zzz:8554/Office'
2024-03-04 20:30:43.386 DEBUG (SyncWorker_21) [custom_components.stream_assist.core.stream] stream end
2024-03-04 20:30:53.202 DEBUG (MainThread) [custom_components.stream_assist.core.stream] stream open
2024-03-04 20:30:58.272 DEBUG (MainThread) [custom_components.stream_assist.core] run_stream error <class 'av.error.PermissionError'>: [Errno 1] Operation not permitted: 'rtsp://user:password@192.168.xxx.yyy:554/stream2'
2024-03-04 20:31:13.388 DEBUG (MainThread) [custom_components.stream_assist.core.stream] stream open
2024-03-04 20:31:18.395 DEBUG (SyncWorker_43) [custom_components.stream_assist.core.stream] stream start
2024-03-04 20:31:23.395 DEBUG (SyncWorker_43) [custom_components.stream_assist.core.stream] stream exception <class 'av.error.ExitError'>: [Errno 1414092869] Immediate exit requested: 'rtsp://192.168.xxx.zzz:8554/Office'
2024-03-04 20:31:23.395 DEBUG (SyncWorker_43) [custom_components.stream_assist.core.stream] stream end
2024-03-04 20:31:28.272 DEBUG (MainThread) [custom_components.stream_assist.core.stream] stream open
2024-03-04 20:31:33.347 DEBUG (MainThread) [custom_components.stream_assist.core] run_stream error <class 'av.error.PermissionError'>: [Errno 1] Operation not permitted: 'rtsp://user:password@192.168.xxx.yyy:554/stream2'

@bkbilly
Copy link

bkbilly commented Mar 17, 2024

I had the same issue but I found how to fix it and it works perfectly.
Edit the stream.py file and remove line with allowed_media_types.

I am not sure if this affects other cameras, but hope this helps you too.

Edit: I've created a PR with this #19

@AlexxIT
Copy link
Owner

AlexxIT commented Apr 20, 2024

If you using go2rtc as a source - you SHOULD add ?audio to RTSP link

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

4 participants