Closed tobe2bcon closed 2 years ago
Are you able to view the stream in VLC?
Thank you for your quick response. I copied http://admin:500686@192.168.13.205/videostream.cgi to VLC and immediately got the camera's stream
Ffprobe shows that your camera provides an mjpeg stream. https://docs.frigate.video/configuration/camera_specific#mjpeg-cameras
Hi Blake, thank you for your hints. I've modified the config.yml accordingly. While still showing the green screen, this is working so far:`mqtt:
host: 192.168.13.155
port: 1883
topic_prefix: frigate
client_id: frigate
user: ""
password: ""
stats_interval: 60
detectors:
coral:
type: edgetpu
device: ''
ffmpeg:
input_args: -avoid_negative_ts make_zero -fflags nobuffer -flags
low_delay -strict experimental -fflags +genpts+discardcorrupt -use_wallclock_as_timestamps 1
output_args:
detect: -f segment -segment_time 10 -segment_format mp4
-reset_timestamps 1 -strftime 1 -c:v libx264 -an
rtmp: -c:v libx264 -an -f flv
cameras:
camera_1:
ffmpeg:
inputs:
- path: ***@***.***/videostream.cgi
roles:
- detect
detect:
width: 640
height: 480
fps: 5
The debug stats show this:
{
"birdseye": {
"enabled": true,
"height": 720,
"mode": "objects",
"quality": 8,
"width": 1280
},
"cameras": {
"camera_1": {
"best_image_timeout": 60,
"detect": {
"enabled": true,
"fps": 5,
"height": 480,
"max_disappeared": 25,
"width": 640
},
"ffmpeg": {
"global_args": [
"-hide_banner",
"-loglevel",
"warning"
],
"hwaccel_args": [],
"input_args": "-avoid_negative_ts make_zero -fflags nobuffer
-flags low_delay -strict experimental -fflags +genpts+discardcorrupt
-use_wallclock_as_timestamps 1",
"inputs": [
{
"global_args": [],
"hwaccel_args": [],
"input_args": [],
"path": @./videostream.cgi
",
"roles": [
"record",
"rtmp",
"detect"
]
}
],
"output_args": {
"detect": "-f segment -segment_time 10 -segment_format mp4
-reset_timestamps 1 -strftime 1 -c:v libx264 -an",
"record": [
"-f",
"segment",
"-segment_time",
"10",
"-segment_format",
"mp4",
"-reset_timestamps",
"1",
"-strftime",
"1",
"-c",
"copy",
"-an"
],
"rtmp": "-c:v libx264 -an -f flv"
}
},
"ffmpeg_cmds": [
{
"cmd": "ffmpeg -hide_banner -loglevel warning
-avoid_negative_ts make_zero -fflags nobuffer -flags low_delay -strict
experimental -fflags +genpts+discardcorrupt
-use_wallclock_as_timestamps 1 -i
@./videostream.cgi -c:v libx264 -an -f
flv rtmp://127.0.0.1/live/camera_1 -r 5 -s 640x480 -f segment
-segment_time 10 -segment_format mp4 -reset_timestamps 1 -strftime 1
-c:v libx264 -an pipe:",
"roles": [
"record",
"rtmp",
"detect"
]
}
],
"live": {
"height": 720,
"quality": 8
},
"motion": {
"contour_area": 74,
"delta_alpha": 0.2,
"frame_alpha": 0.2,
"frame_height": 180,
"mask": "",
"threshold": 25
},
"mqtt": {
"bounding_box": true,
"crop": true,
"enabled": true,
"height": 270,
"quality": 70,
"required_zones": [],
"timestamp": true
},
"name": "camera_1",
"objects": {
"filters": {
"person": {
"mask": null,
"max_area": 24000000,
"min_area": 0,
"min_score": 0.5,
"threshold": 0.7
}
},
"mask": "",
"track": [
"person"
]
},
"record": {
"enabled": false,
"events": {
"max_seconds": 300,
"objects": null,
"post_capture": 5,
"pre_capture": 5,
"required_zones": [],
"retain": {
"default": 10,
"objects": {}
}
},
"retain_days": 0
},
"rtmp": {
"enabled": true
},
"snapshots": {
"bounding_box": true,
"clean_copy": true,
"crop": false,
"enabled": false,
"height": null,
"quality": 70,
"required_zones": [],
"retain": {
"default": 10,
"objects": {}
},
"timestamp": false
},
"timestamp_style": {
"color": {
"blue": 255,
"green": 255,
"red": 255
},
"effect": null,
"format": "%m/%d/%Y %H:%M:%S",
"position": "tl",
"thickness": 2
},
"zones": {}
}
},
"database": {
"path": "/media/frigate/frigate.db"
},
"detect": {
"enabled": true,
"fps": 5,
"height": 720,
"max_disappeared": null,
"width": 1280
},
"detectors": {
"coral": {
"device": "",
"num_threads": 3,
"type": "edgetpu"
}
},
"environment_vars": {},
"ffmpeg": {
"global_args": [
"-hide_banner",
"-loglevel",
"warning"
],
"hwaccel_args": [],
"input_args": "-avoid_negative_ts make_zero -fflags nobuffer -flags
low_delay -strict experimental -fflags +genpts+discardcorrupt
-use_wallclock_as_timestamps 1",
"output_args": {
"detect": "-f segment -segment_time 10 -segment_format mp4
-reset_timestamps 1 -strftime 1 -c:v libx264 -an",
"record": [
"-f",
"segment",
"-segment_time",
"10",
"-segment_format",
"mp4",
"-reset_timestamps",
"1",
"-strftime",
"1",
"-c",
"copy",
"-an"
],
"rtmp": "-c:v libx264 -an -f flv"
}
},
"live": {
"height": 720,
"quality": 8
},
"logger": {
"default": "info",
"logs": {}
},
"model": {
"height": 320,
"labelmap": {},
"labelmap_path": null,
"path": null,
"width": 320
},
"motion": null,
"mqtt": {
"client_id": "frigate",
"host": "192.168.13.155",
"password": "",
"port": 1883,
"stats_interval": 60,
"tls_ca_certs": null,
"tls_client_cert": null,
"tls_client_key": null,
"tls_insecure": null,
"topic_prefix": "frigate",
"user": ""
},
"objects": {
"filters": null,
"mask": "",
"track": [
"person"
]
},
"record": {
"enabled": false,
"events": {
"max_seconds": 300,
"objects": null,
"post_capture": 5,
"pre_capture": 5,
"required_zones": [],
"retain": {
"default": 10,
"objects": {}
}
},
"retain_days": 0
},
"rtmp": {
"enabled": true
},
"snapshots": {
"bounding_box": true,
"clean_copy": true,
"crop": false,
"enabled": false,
"height": null,
"quality": 70,
"required_zones": [],
"retain": {
"default": 10,
"objects": {}
},
"timestamp": false
},
"timestamp_style": {
"color": {
"blue": 255,
"green": 255,
"red": 255
},
"effect": null,
"format": "%m/%d/%Y %H:%M:%S",
"position": "tl",
"thickness": 2
}
}`
What else could I do now? Thank you in advance.
BestThomas
Am Mittwoch, dem 19.01.2022 um 15:22 -0800 schrieb Blake Blackshear:
Ffprobe shows that your camera provides an mjpeg stream. https://docs.frigate.video/configuration/camera_specific#mjpeg-cameras
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: < @.***>
Hi Blake, since the camera also wasn't capable to connect to my WLAN, I have decided to return it to the supplier. Following your advice I have ordered a daruha camera with H.264, that will hopefully connect to frigate easily. So this issue can be closed
Since connecting mjpeg cameras seems to be interesting for several people I am still working on a sultion that is based on a different approach: The conversion of the video stream needs not neccessarily be done with ffmpeg within frigate. I am currently close to a solution based on v4l2server. Only the mapping from the real video port (USB) to a virtual video device is still missing, since v4l2loopback is not running properly yet.
If you are interested I will keep you updated on this.
Best Thomas
Describe the problem you are having
I'm running frigate in docker on a coral dev board (mendel linux). The camera I have (Elro or Smartwares C903IP.2) provides the video stream on http://user:pw@/videostream.cgi. The problem is, I am not able to visualise the stream in frigate and I can only see the green screen. I read through the issues related to green screen but I am not able to resolve the problem on my own.
This is the docker command I start frigate with:
docker run -d --name frigate --restart=unless-stopped --mount type=tmpfs,target=/tmp/cache,tmpfs-size=1000000000 --device /dev/apex_0:/dev/apex_0 --shm-size=64m -v /home/mendel/frigate:/media/frigate -v /home/mendel/docker/config.yml:/config/config.yml:ro -v /etc/localtime:/etc/localtime:ro -e FRIGATE_RTSP_PASSWORD='' -p 5000:5000 -p 1935:1935 blakeblackshear/frigate:stable-aarch64
Version
0.9.4-26AE608
Frigate config file
Relevant log output
FFprobe output from your camera
Frigate stats
Operating system
Other Linux
Install method
Docker CLI
Coral version
Dev Board
Network connection
Wireless
Camera make and model
Elro or Smartwares C903IP.2
Any other information that may be helpful
No response