StreamAssist
StreamAssist copied to clipboard
Won't Work with Tapo C110 & C200
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.
Check logs
I use Tapo c100 with Stream Assist directly with rtsp link and it works very well
rtsp://administrator:[email protected]: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.
go2rtc supports two way for Tapo cameras via tapo protocol
I now also have the camera directly via rtsp://user:[email protected]: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://[email protected]
- "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:[email protected]: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:[email protected]: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:[email protected]:554/stream2'
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
If you using go2rtc as a source - you SHOULD add ?audio to RTSP link