Thank you @Newbie for sharing it was successful
I got a problem at first then I found a solution that could help the members
Problem is video distortion :
I am not an expert but I found a simple solution
VLC player To get the correct dimensions for the video
The solution :
1- Using the media player: VLC
2- run RTSP link ( Media >> Open Network Strem ) OR ( Ctrl + N )
3- go to : Tools >> Codec information OR ( Ctrl + J )
Now, correct the config.yml
width: 704
height: 576
___________________________________
cameras:
# Name of your camera
camera1:
ffmpeg:
inputs:
- path: rtsp://USER:
[email protected]:554/cam/realmonitor?channel=1&subtype=1
roles:
- detect
- rtmp
#- clips
- path: rtsp://USER:
[email protected]:554/cam/realmonitor?channel=1&subtype=0
roles:
- clips
width: 704
height: 576
fps: 15
___________________________________
Now all cameras are working fine 👍
If you see that my config are incorrect please inform me
my config:
ffmpeg:
hwaccel_args:
- -hwaccel
- cuda
- -c:v
- h264_cuvid
input_args: -avoid_negative_ts make_zero -fflags +genpts+discardcorrupt -rtsp_transport tcp -stimeout 5000000 -use_wallclock_as_timestamps 1 -c:v h264_cuvid
#input_args: []
output_args:
# Optional: output args for detect streams (default: shown below)
detect: -f rawvideo -pix_fmt yuv420p -filter:v fps=fps=5
# Optional: output args for record streams (default: shown below)
record: -f segment -segment_time 60 -segment_format mp4 -reset_timestamps 1 -strftime 1 -c copy -an
# Optional: output args for clips streams (default: shown below)
clips: -f segment -segment_time 10 -segment_format mp4 -reset_timestamps 1 -strftime 1 -c copy -an
# Optional: output args for rtmp streams (default: shown below)
#rtmp: -c copy -f flv
rtmp: -c copy -map 0 -f flv
mqtt:
host: 192.168.1.XX
port: 1883
topic_prefix: frigate
client_id: frigate
user: XXXX
password: XXXXXX
stats_interval: 60
cameras:
# Name of your camera
camera1:
ffmpeg:
inputs:
- path: rtsp://USER:
[email protected]:554/cam/realmonitor?channel=1&subtype=1
roles:
- detect
- rtmp
#- clips
- path: rtsp://USER:
[email protected]:554/cam/realmonitor?channel=1&subtype=0
roles:
- clips
width: 704
height: 576
fps: 15
objects:
track:
- person
- cat
- dog
- car
filters:
person:
#min_area: 5000
#max_area: 100000
#min_score: 0.6
threshold: 0.7
detectors:
cpu1:
type: cpu
cpu2:
type: cpu