Closed MYeager1967 closed 3 years ago
Turn on Ffmpeg logging according to the instructions at the bottom of the Readme and post the output.
Here's the log output. It's been running 15 minutes and that's all that's there. The image hasn't changed. The "On Connect Called" indicates that there's another instance of Frigate running, nut I can assure you there is not...
On connect called
ffprobe -v panic -show_error -show_streams -of json "rtsp://admin:89Bmw325i@192.168.0.117:554/cam/realmonitor?channel=1&subtype=0"
Starting detection process: 23
Attempting to load TPU as usb
No EdgeTPU detected. Falling back to CPU.
{'streams': [{'index': 0, 'codec_name': 'h264', 'codec_long_name': 'unknown', 'profile': '100', 'codec_type': 'video', 'codec_time_base': '0/2', 'codec_tag_string': '[0][0][0][0]', 'codec_tag': '0x0000', 'width': 1920, 'height': 1080, 'coded_width': 1920, 'coded_height': 1088, 'closed_captions': 0, 'has_b_frames': 0, 'pix_fmt': 'yuvj420p', 'level': 42, 'color_range': 'pc', 'color_space': 'bt709', 'color_transfer': 'bt709', 'color_primaries': 'bt709', 'chroma_location': 'left', 'field_order': 'progressive', 'refs': 1, 'is_avc': 'false', 'nal_length_size': '0', 'r_frame_rate': '100/1', 'avg_frame_rate': '0/0', 'time_base': '1/90000', 'start_pts': 18000, 'start_time': '0.200000', 'bits_per_raw_sample': '8', 'disposition': {'default': 0, 'dub': 0, 'original': 0, 'comment': 0, 'lyrics': 0, 'karaoke': 0, 'forced': 0, 'hearing_impaired': 0, 'visual_impaired': 0, 'clean_effects': 0, 'attached_pic': 0, 'timed_thumbnails': 0}}, {'index': 1, 'codec_name': 'aac', 'codec_long_name': 'unknown', 'profile': '1', 'codec_type': 'audio', 'codec_time_base': '1/16000', 'codec_tag_string': '[0][0][0][0]', 'codec_tag': '0x0000', 'sample_fmt': 'fltp', 'sample_rate': '16000', 'channels': 1, 'channel_layout': 'mono', 'bits_per_sample': 0, 'r_frame_rate': '0/0', 'avg_frame_rate': '0/0', 'time_base': '1/16000', 'start_pts': 1280, 'start_time': '0.080000', 'disposition': {'default': 0, 'dub': 0, 'original': 0, 'comment': 0, 'lyrics': 0, 'karaoke': 0, 'forced': 0, 'hearing_impaired': 0, 'visual_impaired': 0, 'clean_effects': 0, 'attached_pic': 0, 'timed_thumbnails': 0}}]}
Camera capture process started for frontdoor: 28
Camera process started for frontdoor: 29
Creating ffmpeg process...
ffmpeg -hide_banner -loglevel panic -avoid_negative_ts make_zero -fflags nobuffer -flags low_delay -strict experimental -fflags +genpts+discardcorrupt -rtsp_transport tcp -stimeout 5000000 -use_wallclock_as_timestamps 1 -i rtsp://admin:89Bmw325i@192.168.0.117:554/cam/realmonitor?channel=1&subtype=0 -f rawvideo -pix_fmt yuv420p pipe:
* Serving Flask app "detect_objects" (lazy loading)
* Environment: development
* Debug mode: off
You need to update your config to increase ffmpeg logging. Also, post your output from /debug/stats
ffmpeg: global_args:
That's my current logging level config... I'll have to figure out how to get the other...
The logs you posted above indicate that your log level is still set to panic.
Indent issue....
ffprobe -v panic -show_error -show_streams -of json "rtsp://admin:89Bmw325i@192.168.0.117:554/cam/realmonitor?channel=1&subtype=0"
Starting detection process: 23
Attempting to load TPU as usb
No EdgeTPU detected. Falling back to CPU.
{'streams': [{'index': 0, 'codec_name': 'h264', 'codec_long_name': 'unknown', 'profile': '100', 'codec_type': 'video', 'codec_time_base': '0/2', 'codec_tag_string': '[0][0][0][0]', 'codec_tag': '0x0000', 'width': 1920, 'height': 1080, 'coded_width': 1920, 'coded_height': 1088, 'closed_captions': 0, 'has_b_frames': 0, 'pix_fmt': 'yuvj420p', 'level': 42, 'color_range': 'pc', 'color_space': 'bt709', 'color_transfer': 'bt709', 'color_primaries': 'bt709', 'chroma_location': 'left', 'field_order': 'progressive', 'refs': 1, 'is_avc': 'false', 'nal_length_size': '0', 'r_frame_rate': '100/1', 'avg_frame_rate': '0/0', 'time_base': '1/90000', 'start_pts': 18000, 'start_time': '0.200000', 'bits_per_raw_sample': '8', 'disposition': {'default': 0, 'dub': 0, 'original': 0, 'comment': 0, 'lyrics': 0, 'karaoke': 0, 'forced': 0, 'hearing_impaired': 0, 'visual_impaired': 0, 'clean_effects': 0, 'attached_pic': 0, 'timed_thumbnails': 0}}, {'index': 1, 'codec_name': 'aac', 'codec_long_name': 'unknown', 'profile': '1', 'codec_type': 'audio', 'codec_time_base': '1/16000', 'codec_tag_string': '[0][0][0][0]', 'codec_tag': '0x0000', 'sample_fmt': 'fltp', 'sample_rate': '16000', 'channels': 1, 'channel_layout': 'mono', 'bits_per_sample': 0, 'r_frame_rate': '0/0', 'avg_frame_rate': '0/0', 'time_base': '1/16000', 'start_pts': 1280, 'start_time': '0.080000', 'disposition': {'default': 0, 'dub': 0, 'original': 0, 'comment': 0, 'lyrics': 0, 'karaoke': 0, 'forced': 0, 'hearing_impaired': 0, 'visual_impaired': 0, 'clean_effects': 0, 'attached_pic': 0, 'timed_thumbnails': 0}}]}
Camera capture process started for frontdoor: 28
Camera process started for frontdoor: 29
Creating ffmpeg process...
ffmpeg -hide_banner -loglevel info -avoid_negative_ts make_zero -fflags nobuffer -flags low_delay -strict experimental -fflags +genpts+discardcorrupt -rtsp_transport tcp -stimeout 5000000 -use_wallclock_as_timestamps 1 -i rtsp://admin:89Bmw325i@192.168.0.117:554/cam/realmonitor?channel=1&subtype=0 -f rawvideo -pix_fmt yuv420p pipe:
* Serving Flask app "detect_objects" (lazy loading)
* Environment: development
* Debug mode: off
Input #0, rtsp, from 'rtsp://admin:89Bmw325i@192.168.0.117:554/cam/realmonitor?channel=1&subtype=0':
Metadata:
title : Media Server
Duration: N/A, start: 1606516312.820938, bitrate: N/A
Stream #0:0: Video: h264, yuvj420p(pc, bt709, progressive), 1920x1080, 90k tbr, 90k tbn, 180k tbc
Stream #0:1: Audio: aac, 16000 Hz, mono, fltp
Stream mapping:
Stream #0:0 -> #0:0 (h264 (native) -> rawvideo (native))
Press [q] to stop, [?] for help
frame= 0 fps=0.0 q=0.0 size= 0kB time=-577014:32:22.77 bitrate= -0.0kbits/s speed=N/A
frame= 0 fps=0.0 q=0.0 size= 0kB time=-577014:32:22.77 bitrate= -0.0kbits/s speed=N/A
[swscaler @ 0x55aff0ee7040] deprecated pixel format used, make sure you did set range correctly
[rawvideo @ 0x55aff0e7b040] Frame rate very high for a muxer not efficiently supporting it.
Please consider specifying a lower framerate, a different muxer or -vsync 2
Output #0, rawvideo, to 'pipe:':
Metadata:
title : Media Server
encoder : Lavf58.45.100
Stream #0:0: Video: rawvideo (I420 / 0x30323449), yuv420p, 1920x1080, q=2-31, 2239488000 kb/s, 90k fps, 90k tbn, 90k tbc
Metadata:
encoder : Lavc58.91.100 rawvideo
More than 1000 frames duplicated
Received: 15
Exiting object processor...
Exiting event processor...Exiting watchdog...
Waiting for detection process to exit gracefully...
Try setting the fps in the config. Looks like ffmpeg can't auto detect the fps.
Set it at fps: 10 and that seems to have done the trick. Now I can go on to seeing if I can get the second camera to work. It doesn't even want to show up in the list... Seems I was having the same issue there.... :-)
Thanks!!!
Is there a secret to getting Figate to work with the Amcrest AD110 doorbell? It starts ok but never seems to analyze more than the first frame when it starts. Other cameras get an updated latest.jpg all the time but this one just continues to show the first one...