It’s possible to config mjpeg camera?
I tried next configuration but its not work for me
mqtt:
host: 192.168.1.107
user: "mqttuser"
password: "123123"
cameras:
pi_cam_1:
ffmpeg:
hwaccel_args:
- -c:v
- h264_v4l2m2m
inputs:
-path: http://192.168.1.41:8082/
width: 600 # e.g. 1280
height: 800 # e.g. 720
fps: 5
objects:
track: # add more object types under this if you want
- person # only if you want to detect persons
snapshots:
enabled: true
timestamp: true
bounding_box: true
retain:
default: 2
input_args:
- -avoid_negative_ts
- make_zero
- -fflags
- nobuffer
- -flags
- low_delay
- -strict
- experimental
- -fflags
- +genpts+discardcorrupt
- -r
- "3" # <---- adjust depending on your desired frame rate from the mjpeg image
- -use_wallclock_as_timestamps
- "1"
output_args:
record: -f segment -segment_time 60 -segment_format mp4 -reset_timestamps 1 -strftime 1 -c:v libx264 -an
clips: -f segment -segment_time 10 -segment_format mp4 -reset_timestamps 1 -strftime 1 -c:v libx264 -an
rtmp: -c:v libx264 -an -f flv
# clips:
# enabled: true
# retain:
# default: 2
detectors:
cpu1:
type: cpu