Closed bgbaker closed 3 years ago
You will need to use the mjpeg settings from the docs for mjpeg cameras.
Thank you Blake. I got this working with the RTP link for Android IP Cam. I tried this initially but there must have been a typo or something. For reference you use: rtsp://IPAddress:Port/h264_pcm.sdp for the RTP stream of Android IP Cam
@bgbaker I'm trying to make it work with Android IP Cam, but any setup I write doesn't work, any idea? see mi logs and config:
[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] done.
[services.d] starting services
[services.d] done.
[2022-09-29 09:37:03] frigate.app INFO : Starting Frigate (0.11.0-3846a13)
*************************************************************
*************************************************************
*** Your config file is not valid! ***
*** Please check the docs at ***
*** https://docs.frigate.video/configuration/index ***
*************************************************************
*************************************************************
*** Config Validation Errors ***
*************************************************************
'ffmpeg'
Traceback (most recent call last):
File "/opt/frigate/frigate/app.py", line 332, in start
self.init_config()
File "/opt/frigate/frigate/app.py", line 82, in init_config
user_config = FrigateConfig.parse_file(config_file)
File "/opt/frigate/frigate/config.py", line 942, in parse_file
return cls.parse_obj(config)
File "pydantic/main.py", line 521, in pydantic.main.BaseModel.parse_obj
File "pydantic/main.py", line 339, in pydantic.main.BaseModel.__init__
File "pydantic/main.py", line 1056, in pydantic.main.validate_model
File "pydantic/fields.py", line 859, in pydantic.fields.ModelField.validate
File "pydantic/fields.py", line 994, in pydantic.fields.ModelField._validate_mapping_like
File "pydantic/fields.py", line 1067, in pydantic.fields.ModelField._validate_singleton
File "pydantic/fields.py", line 857, in pydantic.fields.ModelField.validate
File "pydantic/fields.py", line 1074, in pydantic.fields.ModelField._validate_singleton
File "pydantic/fields.py", line 1121, in pydantic.fields.ModelField._apply_validators
File "pydantic/class_validators.py", line 313, in pydantic.class_validators._generic_validator_basic.lambda12
File "pydantic/main.py", line 704, in pydantic.main.BaseModel.validate
File "/opt/frigate/frigate/config.py", line 584, in __init__
if len(config["ffmpeg"]["inputs"]) == 1:
KeyError: 'ffmpeg'
*************************************************************
*** End Config Validation Errors ***
*************************************************************
[cmd] python3 exited 1
[cont-finish.d] executing container finish scripts...
[cont-finish.d] done.
[s6-finish] waiting for services.
[s6-finish] sending all processes the TERM signal.
frigate.yml
mqtt:
host: 192.168.1.128
user: mosco
password: mosco1
cameras:
camara_prueba:
ffmpeg:
inputs:
- path: rtsp://192.168.1.140:8080/h264_pcm.sdp
roles:
- detect
- rtmp
detect:
width: 1920
height: 1080
fps: 5
detectors:
cpu1:
type: cpu
cpu2:
type: cpu
ffmpeg:
global_args: -hide_banner -loglevel verbose
@kevvar please view the docs on creating a config file. detect
is not indented enough.
@NickM-27 It works, I'm so sorry for that dumb mistake. You made my day, have a great one!
in my home is work (MJPEG) but video is freeze or sometime video broken green
ffmpeg:
output_args:
record: -f segment -segment_time 10 -segment_format mp4 -reset_timestamps 1 -strftime 1 -c:v copy -c:a aac
cameras:
ftfh_camera:
ffmpeg:
input_args: -avoid_negative_ts make_zero -fflags nobuffer -flags low_delay -strict experimental -fflags +genpts+discardcorrupt -use_wallclock_as_timestamps 1
inputs:
- path: http://192.168.31.92:8080/video
roles:
- detect
output_args:
record: -f segment -segment_time 10 -segment_format mp4 -reset_timestamps 1 -strftime 1 -c:v libx264 -an
rtmp: -c:v libx264 -an -f flv
objects:
track:
- person
- cat
- dog
snapshots:
enabled: true
timestamp: false
bounding_box: false
retain:
default: 2
record:
enabled: true
retain:
days: 7
mode: all
Maybe you can change the path to the rtsp link provided by the app
Describe the bug I have a new install of Frigate using the HomeAssistant supervisor install method addon I have a single camera that is an Android cellphone running Android IP Cam application Below errors come up in the log when starting and nothing works:
ffmpeg.front_yard.detect ERROR : Option stimeout not found. frigate.video INFO : front_yard: ffmpeg sent a broken frame. memoryview assignment: lvalue and rvalue have different structures frigate.video INFO : front_yard: ffmpeg process is not running. exiting capture thread...
Version of frigate Current version: 1.13
Config file Include your full config file wrapped in triple back ticks.
Frigate container logs
Frigate stats
FFprobe from your camera
Run the following command and paste output below
Screenshots If applicable, add screenshots to help explain your problem.
Computer Hardware
Camera Info:
Additional context Add any other context about the problem here.