Comments (7)
Hi. My Tapo 200 config is this: (using latest fregate version)
it uses restream, low stream for detection and high stream for recording.
go2rtc:
log:
exec: trace
webrtc:
streams:
cam_360_tapo_sub:
- rtsp://localcamerauser:[email protected]:554/stream2
- ffmpeg:cam_360_tapo_sub
cam_360_tapo:
- tapo://admin:[email protected]
cameras:
cam_360_tapo:
ui:
order: 1
ffmpeg:
hwaccel_args: preset-intel-qsv-h264
inputs:
- path: rtsp://127.0.0.1:8554/cam_360_tapo_sub
input_args: preset-rtsp-restream
roles:
- detect
- path: rtsp://127.0.0.1:8554/cam_360_tapo
input_args: preset-rtsp-restream
roles:
- record
objects:
track:
- person
- cat
detect:
width: 640
height: 360
fps: 4
your config could be different as there could be different hwaccel_args needed.
from frigate.
Thanks @kpcz, I tried your config but I'm still having trouble unfortunately.
2024-02-15 13:06:59.570997931 [INFO] Starting Frigate...
2024-02-15 13:07:02.927227973 [2024-02-15 13:07:02] frigate.app INFO : Starting Frigate (0.13.1-34fb1c2)
2024-02-15 13:07:02.969472644 [2024-02-15 13:07:02] peewee_migrate.logs INFO : Starting migrations
2024-02-15 13:07:02.977363624 [2024-02-15 13:07:02] peewee_migrate.logs INFO : There is nothing to migrate
2024-02-15 13:07:02.983204242 [2024-02-15 13:07:02] frigate.app INFO : Recording process started: 297
2024-02-15 13:07:02.987315966 [2024-02-15 13:07:02] frigate.app INFO : go2rtc process pid: 91
2024-02-15 13:07:03.009109210 [2024-02-15 13:07:03] detector.cpu INFO : Starting detection process: 306
2024-02-15 13:07:03.010538496 [2024-02-15 13:07:03] frigate.app INFO : Output process started: 308
2024-02-15 13:07:03.015075835 [2024-02-15 13:07:03] frigate.detectors WARNING : CPU detectors are not recommended and should only be used for testing or for trial purposes.
2024-02-15 13:07:03.034769072 [2024-02-15 13:07:03] frigate.app INFO : Camera processor started for cam_360_tapo: 314
2024-02-15 13:07:03.040698839 [2024-02-15 13:07:03] frigate.app INFO : Capture process started for cam_360_tapo: 315
2024-02-15 13:07:08.177650306 [2024-02-15 13:07:08] frigate.video ERROR : cam_360_tapo: Unable to read frames from ffmpeg process.
2024-02-15 13:07:08.178390331 [2024-02-15 13:07:08] frigate.video ERROR : cam_360_tapo: ffmpeg process is not running. exiting capture thread...
2024-02-15 13:07:23.075738891 [2024-02-15 13:07:23] watchdog.cam_360_tapo ERROR : Ffmpeg process crashed unexpectedly for cam_360_tapo.
2024-02-15 13:07:23.080178723 [2024-02-15 13:07:23] watchdog.cam_360_tapo ERROR : The following ffmpeg logs include the last 100 lines prior to exit.
2024-02-15 13:07:23.080517799 [2024-02-15 13:07:23] ffmpeg.cam_360_tapo.detect ERROR : rtsp://127.0.0.1:8554/cam_360_tapo_sub: Invalid data found when processing input
2024-02-15 13:06:59.718151312 [INFO] Starting go2rtc...
2024-02-15 13:06:59.852165106 13:06:59.852 INF go2rtc version 1.8.4 linux/amd64
2024-02-15 13:06:59.852856733 13:06:59.852 INF [rtsp] listen addr=:8554
2024-02-15 13:06:59.853096095 13:06:59.853 INF [webrtc] listen addr=:8555
2024-02-15 13:06:59.853249948 13:06:59.852 INF [api] listen addr=:1984
2024-02-15 13:07:03.479961836 13:07:03.479 DBG [exec] run url="exec:ffmpeg -hide_banner -fflags nobuffer -flags low_delay -timeout 5000000 -user_agent go2rtc/ffmpeg -rtsp_flags prefer_tcp -i rtsp://127.0.0.1:8554/cam_360_tapo_sub?video&audio -c copy -user_agent ffmpeg/go2rtc -rtsp_transport tcp -f rtsp {output}"
2024-02-15 13:07:08.788680829 [rtsp @ 0x563399a8dd80] Could not find codec parameters for stream 0 (Video: h264, none): unspecified size
2024-02-15 13:07:08.788688500 Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options
2024-02-15 13:07:08.789282898 Input #0, rtsp, from 'rtsp://127.0.0.1:8554/cam_360_tapo_sub?video&audio':
2024-02-15 13:07:08.789288715 Metadata:
2024-02-15 13:07:08.789290551 title : go2rtc/1.8.4
2024-02-15 13:07:08.789372921 Duration: N/A, bitrate: 64 kb/s
2024-02-15 13:07:08.789375515 Stream #0:0: Video: h264, none, 90k tbr, 90k tbn
2024-02-15 13:07:08.789377236 Stream #0:1: Audio: pcm_alaw, 8000 Hz, mono, s16, 64 kb/s
2024-02-15 13:07:08.829835665 Output #0, rtsp, to 'rtsp://127.0.0.1:8554/94750d946da6cafb4e370b650d43a08d':
2024-02-15 13:07:08.829842082 Metadata:
2024-02-15 13:07:08.829843805 title : go2rtc/1.8.4
2024-02-15 13:07:08.829940768 encoder : Lavf59.27.10013:07:08.829 DBG [exec] run launch=5.349830453s
2024-02-15 13:07:08.829942847
2024-02-15 13:07:08.829944659 Stream #0:0: Audio: pcm_alaw, 8000 Hz, mono, s16, 64 kb/s
2024-02-15 13:07:08.829946113 Stream mapping:
2024-02-15 13:07:08.829947583 Stream #0:1 -> #0:0 (copy)
2024-02-15 13:07:08.829949097 Press [q] to stop, [?] for help
2024-02-15 13:07:08.880347314 13:07:08.880 WRN github.com/AlexxIT/go2rtc/internal/streams/producer.go:171 > error="read tcp 172.17.0.2:46556->192.168.50.213:554: i/o timeout" url=rtsp://synology:[email protected]:554/stream2
2024-02-15 13:07:09.153625702 [INFO] Starting go2rtc healthcheck service...
2024-02-15 13:07:09.776558066 av_interleaved_write_frame(): Broken pipe
2024-02-15 13:07:09.776646457 size=N/A time=00:00:00.06 bitrate=N/A speed=N/A
size=N/A time=00:00:00.06 bitrate=N/A speed=0.0634x
2024-02-15 13:07:09.776949585 video:0kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
2024-02-15 13:07:09.776952584 Conversion failed!```
from frigate.
here is my config for my C200 (Raspberry Pi 4)
go2rtc:
streams:
tapo_cam_c200:
- rtsp://username:[email protected]/stream1 # <- stream which supports video & aac audio. This is only supported for rtsp streams, http must use ffmpeg
- "ffmpeg:tapo_cam#audio=opus" # <- copy of the stream which transcodes audio to opus
tapo_cam_c200_sub:
- rtsp://username:[email protected]/stream2 # <- stream which supports video & aac audio. This is only supported for rtsp streams, http must use ffmpeg
cameras:
tapo_cam_c200:
onvif:
host: 192.168.1.165
port: 2020
user: username
password: password
ffmpeg:
output_args:
record: preset-record-generic
inputs:
- path: rtsp://127.0.0.1:8554/tapo_cam_c200 # <--- the name here must match the name of the camera in restream
input_args: preset-rtsp-restream
roles:
- record
- path: rtsp://127.0.0.1:8554/tapo_cam_c200_sub # <--- the name here must match the name of the camera_sub in restream
input_args: preset-rtsp-restream
roles:
- detect
live:
stream_name: tapo_cam_c200_sub
record:
enabled: True
events:
retain:
default: 1
objects:
track:
# - person
- dog
detect:
stationary:
interval: 50
threshold: 50
snapshots:
enabled: True
timestamp: False
bounding_box: True
retain:
default: 1
Just a side note, you can't have two connections to the camera at the same time, so if you have VLC streaming rtsp://synology:[email protected]:554/stream1
then Frigate might be rejected when it tried to connect at the same time.
from frigate.
my Tapo C320WS works well.
from frigate.
I have three C200 and they're all falling out and refuse to reconnect without pulling the plug. I have 9 other Taco cameras around, which work perfectly (I had to return one C100). The C200 is not the easiest cam in my experience. Just letting you know :)
from frigate.
The C200 is not the easiest cam in my experience. Just letting you know :)
but they are super cheap :)
from frigate.
Remove :554 from your rtsp stream and it should work. I was having the same issue until I did this.
So try
rtsp://synology:[email protected]/stream1
from frigate.
Related Issues (20)
- flip the image HOT 1
- BirdsEye with a tall aspect ratio (Portrate) causes strange scrolling messed up view. HOT 1
- [Support]: Birdseye switching cameras very often - single cam view
- MQTT-Based PTZ Control for Non-ONVIF Cameras in Frigate HOT 6
- Support 24-Hour Time Format in Export Feature HOT 1
- SQLite WAL files periodic truncate HOT 6
- Rockchip releases are missing HOT 1
- Add user management / need rights to delete HOT 1
- Update Python to 3.11 and Coral-related libraries HOT 1
- Use 1 nginx worker process HOT 6
- Add inked out area in live view and recordings HOT 1
- Send to Frigate+ Modal handling HOT 1
- Create an event/recording based on zones common between cameras HOT 1
- Clips are not generated properly HOT 3
- Sort event by % (percentage) HOT 1
- [Feature Request] S6 should read number of available CPUs and update the `worker_processes` directive in nginx config before starting nginx
- [Idea] Zero-shot object detection models? HOT 4
- [FEATURE] integration with CodeProject.AI HOT 1
- Camera grouping for Birdseye HOT 1
- [BUG] Delete old recordings on retain config change HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from frigate.