On both of them, enabling save_clips will just cause 'Invalid data found when processing input' problems.
Since they only have 1 stream on these cameras, I tried to remove the mapping (-map) in detect_objects.py (similar to
#251
), but no change.
# Optional: port for http server (default: shown below)
web_port: 5000
# Optional: detectors configuration
# USB Coral devices will be auto detected with CPU fallback
detectors:
# Required: name of the detector
coral:
# Required: type of the detector
# Valid values are 'edgetpu' (requires device property below) and 'cpu'.
type: edgetpu
# Optional: device name as defined here: https://coral.ai/docs/edgetpu/multiple-edgetpu/#using-the-tensorflow-lite-python-api
device: usb
# Required: mqtt configuration
mqtt:
host: REDACTED
port: 1883
topic_prefix: frigate
client_id: frigate
user: REDACTED
password: REDACTED
save_clips:
max_seconds: 300
clips_dir: /clips/frigate
cache_dir: /cache
ffmpeg:
# Optional: global ffmpeg args (default: shown below)
global_args:
- -hide_banner
- -loglevel
- panic
# Optional: global hwaccel args (default: shown below)
# NOTE: See hardware acceleration docs for your specific device
hwaccel_args: []
# Optional: global input args (default: shown below)
input_args:
- -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'
# Optional: global output args (default: shown below)
output_args:
- rawvideo
- -pix_fmt
- yuv420p
cameras:
outdoor:
ffmpeg:
# Required: Source passed to ffmpeg after the -i parameter.
# NOTE: Environment variables that begin with 'FRIGATE_' may be referenced in {}
input: rtsp://IP/live0
fps: 5
save_clips:
enabled: True
pre_capture: 15
garage:
ffmpeg:
input: rtsp://IP/ch0_0.h264
fps: 5
save_clips:
enabled: True
pre_capture: 15
frontdoor:
ffmpeg:
input: rtsp://IP/ch0_0.h264
fps: 5
save_clips:
enabled: True
pre_capture: 15
outdoor2:
ffmpeg:
input: rtsp://IP/ch0_0.h264
fps: 5
save_clips:
enabled: True
pre_capture: 15
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x5568d013c140] moov atom not found,
/cache/garage-20201025193104.mp4: Invalid data found when processing input,
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x55f7a2b05140] moov atom not found,
bad file: garage-20201025193104.mp4
Frigate debug stats
Output from frigate's /debug/stats endpoint
FFprobe from your camera
Run the following command and paste output below
built with gcc 9 (Ubuntu 9.3.0-10ubuntu2)
configuration: --disable-debug --disable-doc --disable-ffplay --enable-shared --enable-avresample --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-gpl --enable-libass --enable-fontconfig --enable-libfreetype --enable-libvidstab --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libxcb --enable-libx265 --enable-libxvid --enable-libx264 --enable-nonfree --enable-openssl --enable-libfdk_aac --enable-postproc --enable-small --enable-version3 --enable-libbluray --enable-libzmq --extra-libs=-ldl --prefix=/opt/ffmpeg --enable-libopenjpeg --enable-libkvazaar --enable-libaom --extra-libs=-lpthread --enable-vaapi --extra-cflags=-I/opt/ffmpeg/include --extra-ldflags=-L/opt/ffmpeg/lib
libavutil 56. 51.100 / 56. 51.100
libavcodec 58. 91.100 / 58. 91.100
libavformat 58. 45.100 / 58. 45.100
libavdevice 58. 10.100 / 58. 10.100
libavfilter 7. 85.100 / 7. 85.100
libavresample 4. 0. 0 / 4. 0. 0
libswscale 5. 7.100 / 5. 7.100
libswresample 3. 7.100 / 3. 7.100
libpostproc 55. 7.100 / 55. 7.100
Input #0, rtsp, from 'rtsp://192.168.1.206/ch0_0.h264':
Metadata:
title : Session streamed by "rRTSPServer"
comment : ch0_0.h264
Duration: N/A, start: 0.100078, bitrate: N/A
Stream #0:0: Video: h264, yuvj420p(pc, bt709, progressive), 1920x1080, 20 fps, 20 tbr, 90k tbn, 180k tbc
Computer Hardware
OS: Docker container on Ubuntu
Virtualization: Proxmox
Coral Version: USB
Network Setup: Wired
Camera Info:
yihome 1080p with the https://github.com/roleoroleo/yi-hack-Allwinner firmware
Eufy 2k indoor: https://www.amazon.com/gp/product/B08571VZ3Q/
Resolution: 1080p stream, I let it auto-detect
FPS: I set it to 5
** Additonal context*
I see the moov atom problem via ffprobe:
root@a797261fbe10:/opt/frigate# ls -lash /cache/frontdoor-*; ffprobe /cache/frontdoor-*
260K -rw-r--r-- 1 root root 257K Oct 25 19:50 /cache/frontdoor-20201025195032.mp4
built with gcc 9 (Ubuntu 9.3.0-10ubuntu2)
configuration: --disable-debug --disable-doc --disable-ffplay --enable-shared --enable-avresample --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-gpl --enable-libass --enable-fontconfig --enable-libfreetype --enable-libvidstab --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libxcb --enable-libx265 --enable-libxvid --enable-libx264 --enable-nonfree --enable-openssl --enable-libfdk_aac --enable-postproc --enable-small --enable-version3 --enable-libbluray --enable-libzmq --extra-libs=-ldl --prefix=/opt/ffmpeg --enable-libopenjpeg --enable-libkvazaar --enable-libaom --extra-libs=-lpthread --enable-vaapi --extra-cflags=-I/opt/ffmpeg/include --extra-ldflags=-L/opt/ffmpeg/lib
libavutil 56. 51.100 / 56. 51.100
libavcodec 58. 91.100 / 58. 91.100
libavformat 58. 45.100 / 58. 45.100
libavdevice 58. 10.100 / 58. 10.100
libavfilter 7. 85.100 / 7. 85.100
libavresample 4. 0. 0 / 4. 0. 0
libswscale 5. 7.100 / 5. 7.100
libswresample 3. 7.100 / 3. 7.100
libpostproc 55. 7.100 / 55. 7.100
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x558400eb0b80] moov atom not found
/cache/frontdoor-20201025195032.mp4: Invalid data found when processing input
Oh, interesting! I did see the files in /cache, but I never saw it move to the final destination.
Let me apply the patch and test a bit more :)
Oh nice, it did indeed change!
It now says:
[h264 @ 0x563ae5a3ee80] cabac decode of qscale diff failed at 84 46
[h264 @ 0x563ae5a3ee80] error while decoding MB 84 46, bytestream 2566
[h264 @ 0x55d12bab8e80] error while decoding MB 60 47, bytestream -18
[h264 @ 0x555d71d7de80] cabac decode of qscale diff failed at 89 27
[h264 @ 0x555d71d7de80] error while decoding MB 89 27, bytestream 1725
[h264 @ 0x55948fce7e80] error while decoding MB 88 38, bytestream -15
But I get the saves clips now! :)
Thanks a ton for the quick fix!