Closed Azathoth88 closed 8 months ago
You need to use udp instead of tcp
To understand: The RTSP stream is at the moment TCP and must be sent in UDP, right? After this I have to use input_args: preset-rtsp-udp?
the rtsp stream is already UDP but frigate is expecting tcp. You should use the input args like you said
I replaced: cameras: raspberrypi: detect: width: 1280 height: 720 fps: 5 ffmpeg: inputs:
and now I get following error messages:
2024-02-10T14:21:21.450013149Z 2024-02-10 15:21:21.449505120
[2024-02-10 15:21:21] watchdog.raspberrypi ERROR : The following ffmpeg logs include the last 100 lines prior to exit.
2024-02-10T14:21:21.450107189Z 2024-02-10 15:21:21.449612090
[2024-02-10 15:21:21] ffmpeg.raspberrypi.detect ERROR : Option hwaccel (use HW accelerated decoding) cannot be applied to output url vaapi -- you are trying to apply an input option to an output file or vice versa. Move this option before the file it belongs to.
2024-02-10T14:21:21.450195098Z 2024-02-10 15:21:21.449718119 [2024-02-10 15:21:21] ffmpeg.raspberrypi.detect ERROR : Error parsing options for output file vaapi.
2024-02-10T14:21:21.450244818Z 2024-02-10 15:21:21.449833959 [2024-02-10 15:21:21] ffmpeg.raspberrypi.detect ERROR : Error opening output files: Invalid argument
2024-02-10T14:21:26.264678915Z 2024-02-10 15:21:26.264555345 [2024-02-10 15:21:26] frigate.video ERROR : raspberrypi: Unable to read frames from ffmpeg process.
2024-02-10T14:21:26.265235614Z 2024-02-10 15:21:26.264710205 [2024-02-10 15:21:26] frigate.video ERROR : raspberrypi: ffmpeg process is not running. exiting capture thread...
2024-02-10T14:21:31.458362237Z 2024-02-10 15:21:31.458286507 [2024-02-10 15:21:31] watchdog.raspberrypi ERROR : Ffmpeg process crashed unexpectedly for raspberrypi.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Describe the problem you are having
Hi, I have recently commissioned a Raspberry Pi cam and would like to explore the possibilities with Frigate. So Frigate is also new to me. The installation of Frigate via Portainer went without a problem. Now I have problems to configure the cam on my Rackstation from Synology 1221+ (AMD Ryzen V1500B) with Google Coral USB.
The protocol is full and I cannot integrate the camera stream: Protocol not supported, ffmpeg crashes, ... see log Maybe I have use a different hwaccel_args, preset-vaapi doesnt works
Version
0.13.1
Frigate config file
Relevant log output
FFprobe output from your camera
Frigate stats
No response
Operating system
Other
Install method
Docker Compose
Coral version
USB
Network connection
Wireless
Camera make and model
Raspberry pi zero 2 | Pi Cam v3
Any other information that may be helpful
Configuration Raspberry Pi Zero 2 via https://code.berrydejager.com/Libcamera-RTSP/
I use this for creating the stream: libcamera-vid -t 0 --inline --width 1280 --height 720 --framerate 5 --vflip -o - | cvlc -vvv stream:///dev/stdin --sout '#rtp{sdp=rtsp://:8554/stream}' :demux=h264
On VLC it works.