Frigate single camera (of several) is missing recordings [resolved]

I have 6 cameras running and only one of them does not save recordings, and I have no idea why. Apologies in advance for the amount of info. here, am just trying to describe the problem.

It’s a Frigate 0.21 install running 6 cameras sweetly on:
HomeAssistant Core 2024.1.3
Supervisor 2023.12.1
Operating System 11.4
Frontend 20240104.0
Using a USB-Coral on a mini-PC.
Everything is working perfectly, live view, object recognition, snapshots, recordings, etc. It’s an amazing system!

Except for a single camera which will save snapshots fine, but apparently refuses to save recordings. All the other cameras save both snapshots and recordings.

In the config I have roles: -detect for the low res stream and roles: -record for the high res stream. The default mode for all cameras is configured sepearately to be record: enabled: True

After some investigation, and from the commandline, the /share/$camera/ directory has multiple *.mp4 files in it. I am not able to see any of these from the GUI (for this camera only). The other /share/$camera_2/, /share/$camera_3/ directories all have multiple *.mp4 files and I can see all of these from the GUI.

It “feels” like a permissions issue, as it’s only a single place. I mean that saving and viewing snapshots are fine for all cameras, and saving and viewing recordings are fine for all cameras except this one. The permissions of the directories are all identical root.root 0755

In the GUI, from Frigate->$camera_name->Recordings I see No Recordings Found. Make sure you have enabled the record role in your configuration for the car-port camera.

In the GUI, from Media->Frigate->Recordings->$camera, also I see no items, but again, for all the other cameras I see multiple date directories.

The Frigate logs show:

2024-01-19 21:05:54.998325037  172.30.32.1 - - [19/Jan/2024:22:05:54 +0100] "GET /api/stats HTTP/1.1" 200 3758 "-" "HomeAssistant/2024.1.3 aiohttp/3.9.1 Python/3.11" "-"
2024-01-19 21:06:01.576285282  [2024-01-19 22:06:01] watchdog.car-port              ERROR   : No new recording segments were created for car-port in the last 120s. restarting the ffmpeg record process...
2024-01-19 21:06:01.576290451  [2024-01-19 22:06:01] watchdog.car-port              INFO    : Terminating the existing ffmpeg process...
2024-01-19 21:06:01.576292020  [2024-01-19 22:06:01] watchdog.car-port              INFO    : Waiting for ffmpeg to exit gracefully...
2024-01-19 21:06:03.972210518  172.30.32.1 - - [19/Jan/2024:22:06:03 +0100] "GET /api/stats HTTP/1.1" 200 3791 "-" "HomeAssistant/2024.1.3 aiohttp/3.9.1 Python/3.11" "-"
2024-01-19 21:06:11.585989466  [2024-01-19 22:06:11] watchdog.car-port              ERROR   : No new recording segments were created for car-port in the last 120s. restarting the ffmpeg record process...
2024-01-19 21:06:11.586108612  [2024-01-19 22:06:11] watchdog.car-port              INFO    : Terminating the existing ffmpeg process...
2024-01-19 21:06:11.586275636  [2024-01-19 22:06:11] watchdog.car-port              INFO    : Waiting for ffmpeg to exit gracefully...
2024-01-19 21:06:12.963490656  172.30.32.1 - - [19/Jan/2024:22:06:12 +0100] "GET /api/stats HTTP/1.1" 200 3791 "-" "HomeAssistant/2024.1.3 aiohttp/3.9.1 Python/3.11" "-"

I see no journalctl, nor any /var/log/messages to tail.
Am running out of places to look for possible, meaningful errors.
I’ve restarted Frigate, HomeAssistant, the PC. I’ve reinstalled the camera.
Nada.

Any helpful suggestions very much appreciated.

Need a full copy of logs, that will have the answer

Just triggered the capture again and here are the resulting logs:

2024-01-21 08:22:38.061938938    libswscale      6.  7.100 /  6.  7.100
2024-01-21 08:22:38.061939902    libswresample   4.  7.100 /  4.  7.100
2024-01-21 08:22:38.061940857    libpostproc    56.  6.100 / 56.  6.100
2024-01-21 08:22:38.061941851  [concat @ 0x563c44427a80] No files to concat
2024-01-21 08:22:38.061942940  /dev/stdin: Invalid data found when processing input
2024-01-21 08:22:38.061943874  
2024-01-21 08:22:38.063263469  172.30.32.1 - - [21/Jan/2024:09:22:38 +0100] "GET /api/events/1705825347.867831-p3dtk1/clip.mp4 HTTP/1.1" 500 52 "-" "curl/8.4.0" "192.168.0.103"
2024-01-21 08:22:44.177786670  [2024-01-21 09:22:44] frigate.http                   ERROR   : ffmpeg version n5.1-2-g915ef932a3-20220731 Copyright (c) 2000-2022 the FFmpeg developers
2024-01-21 08:22:44.177791074    built with gcc 12.1.0 (crosstool-NG 1.25.0.55_3defb7b)
2024-01-21 08:22:44.177798800    configuration: --prefix=/ffbuild/prefix --pkg-config-flags=--static --pkg-config=pkg-config --cross-prefix=x86_64-ffbuild-linux-gnu- --arch=x86_64 --target-os=linux --enable-gpl --enable-version3 --disable-debug --enable-iconv --enable-libxml2 --enable-zlib --enable-libfreetype --enable-libfribidi --enable-gmp --enable-lzma --enable-fontconfig --enable-libvorbis --enable-opencl --enable-libpulse --enable-libvmaf --enable-libxcb --enable-xlib --enable-amf --enable-libaom --enable-libaribb24 --enable-avisynth --enable-libdav1d --enable-libdavs2 --disable-libfdk-aac --enable-ffnvcodec --enable-cuda-llvm --enable-frei0r --enable-libgme --enable-libass --enable-libbluray --enable-libjxl --enable-libmp3lame --enable-libopus --enable-mbedtls --enable-librist --enable-libtheora --enable-libvpx --enable-libwebp --enable-lv2 --enable-libmfx --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg --enable-libopenmpt --enable-librav1e --enable-librubberband --disable-schannel --enable-sdl2 --enable-libsoxr --enable-libsrt --enable-libsvtav1 --enable-libtwolame --enable-libuavs3d --enable-libdrm --enable-vaapi --enable-libvidstab --enable-vulkan --enable-libshaderc --enable-libplacebo --enable-libx264 --enable-libx265 --enable-libxavs2 --enable-libxvid --enable-libzimg --enable-libzvbi --extra-cflags=-DLIBTWOLAME_STATIC --extra-cxxflags= --extra-ldflags=-pthread --extra-ldexeflags=-pie --extra-libs='-ldl -lgomp' --extra-version=20220731
2024-01-21 08:22:44.177800442    libavutil      57. 28.100 / 57. 28.100
2024-01-21 08:22:44.177801585    libavcodec     59. 37.100 / 59. 37.100
2024-01-21 08:22:44.177802609    libavformat    59. 27.100 / 59. 27.100
2024-01-21 08:22:44.177803585    libavdevice    59.  7.100 / 59.  7.100
2024-01-21 08:22:44.177804548    libavfilter     8. 44.100 /  8. 44.100
2024-01-21 08:22:44.177805522    libswscale      6.  7.100 /  6.  7.100
2024-01-21 08:22:44.177806487    libswresample   4.  7.100 /  4.  7.100
2024-01-21 08:22:44.177807456    libpostproc    56.  6.100 / 56.  6.100
2024-01-21 08:22:44.177808466  [concat @ 0x5605beafba80] No files to concat
2024-01-21 08:22:44.177809535  /dev/stdin: Invalid data found when processing input
2024-01-21 08:22:44.177810454  
2024-01-21 08:22:44.178725204  172.30.32.1 - - [21/Jan/2024:09:22:44 +0100] "GET /api/events/1705825348.792874-j2tp1n/clip.mp4 HTTP/1.1" 500 55 "-" "curl/8.4.0" "192.168.0.103"
2024-01-21 08:22:46.599882957  172.30.32.1 - - [21/Jan/2024:09:22:46 +0100] "GET /api/stats HTTP/1.1" 200 3780 "-" "HomeAssistant/2024.1.4 aiohttp/3.9.1 Python/3.11" "-"
2024-01-21 08:22:47.564927617  [2024-01-21 09:22:47] watchdog.car-port              ERROR   : No new recording segments were created for car-port in the last 120s. restarting the ffmpeg record process...
2024-01-21 08:22:47.565233747  [2024-01-21 09:22:47] watchdog.car-port              INFO    : Terminating the existing ffmpeg process...
2024-01-21 08:22:47.565996420  [2024-01-21 09:22:47] watchdog.car-port              INFO    : Waiting for ffmpeg to exit gracefully...
2024-01-21 08:22:55.555724295  172.30.32.1 - - [21/Jan/2024:09:22:55 +0100] "GET /api/stats HTTP/1.1" 200 3783 "-" "HomeAssistant/2024.1.4 aiohttp/3.9.1 Python/3.11" "-"
2024-01-21 08:22:57.588039927  [2024-01-21 09:22:57] watchdog.car-port              ERROR   : No new recording segments were created for car-port in the last 120s. restarting the ffmpeg record process...
2024-01-21 08:22:57.588147986  [2024-01-21 09:22:57] watchdog.car-port              INFO    : Terminating the existing ffmpeg process...
2024-01-21 08:22:57.588240892  [2024-01-21 09:22:57] watchdog.car-port              INFO    : Waiting for ffmpeg to exit gracefully...
2024-01-21 08:23:04.615976370  172.30.32.1 - - [21/Jan/2024:09:23:04 +0100] "GET /api/stats HTTP/1.1" 200 3815 "-" "HomeAssistant/2024.1.4 aiohttp/3.9.1 Python/3.11" "-"
2024-01-21 08:23:07.599655190  [2024-01-21 09:23:07] watchdog.car-port              ERROR   : No new recording segments were created for car-port in the last 120s. restarting the ffmpeg record process...
2024-01-21 08:23:07.603318583  [2024-01-21 09:23:07] watchdog.car-port              INFO    : Terminating the existing ffmpeg process...
2024-01-21 08:23:07.603447625  [2024-01-21 09:23:07] watchdog.car-port              INFO    : Waiting for ffmpeg to exit gracefully...
2024-01-21 08:23:13.653350869  172.30.32.1 - - [21/Jan/2024:09:23:13 +0100] "GET /api/stats HTTP/1.1" 200 3853 "-" "HomeAssistant/2024.1.4 aiohttp/3.9.1 Python/3.11" "-"
2024-01-21 08:23:17.620284554  [2024-01-21 09:23:17] watchdog.car-port              ERROR   : No new recording segments were created for car-port in the last 120s. restarting the ffmpeg record process...
2024-01-21 08:23:17.621535243  [2024-01-21 09:23:17] watchdog.car-port              INFO    : Terminating the existing ffmpeg process...
2024-01-21 08:23:17.621546113  [2024-01-21 09:23:17] watchdog.car-port              INFO    : Waiting for ffmpeg to exit gracefully...
2024-01-21 08:23:22.617576537  172.30.32.1 - - [21/Jan/2024:09:23:22 +0100] "GET /api/stats HTTP/1.1" 200 3851 "-" "HomeAssistant/2024.1.4 aiohttp/3.9.1 Python/3.11" "-"
2024-01-21 08:23:23.546028243  [2024-01-21 09:23:23] frigate.http                   ERROR   : ffmpeg version n5.1-2-g915ef932a3-20220731 Copyright (c) 2000-2022 the FFmpeg developers
2024-01-21 08:23:23.546032883    built with gcc 12.1.0 (crosstool-NG 1.25.0.55_3defb7b)
2024-01-21 08:23:23.546040527    configuration: --prefix=/ffbuild/prefix --pkg-config-flags=--static --pkg-config=pkg-config --cross-prefix=x86_64-ffbuild-linux-gnu- --arch=x86_64 --target-os=linux --enable-gpl --enable-version3 --disable-debug --enable-iconv --enable-libxml2 --enable-zlib --enable-libfreetype --enable-libfribidi --enable-gmp --enable-lzma --enable-fontconfig --enable-libvorbis --enable-opencl --enable-libpulse --enable-libvmaf --enable-libxcb --enable-xlib --enable-amf --enable-libaom --enable-libaribb24 --enable-avisynth --enable-libdav1d --enable-libdavs2 --disable-libfdk-aac --enable-ffnvcodec --enable-cuda-llvm --enable-frei0r --enable-libgme --enable-libass --enable-libbluray --enable-libjxl --enable-libmp3lame --enable-libopus --enable-mbedtls --enable-librist --enable-libtheora --enable-libvpx --enable-libwebp --enable-lv2 --enable-libmfx --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg --enable-libopenmpt --enable-librav1e --enable-librubberband --disable-schannel --enable-sdl2 --enable-libsoxr --enable-libsrt --enable-libsvtav1 --enable-libtwolame --enable-libuavs3d --enable-libdrm --enable-vaapi --enable-libvidstab --enable-vulkan --enable-libshaderc --enable-libplacebo --enable-libx264 --enable-libx265 --enable-libxavs2 --enable-libxvid --enable-libzimg --enable-libzvbi --extra-cflags=-DLIBTWOLAME_STATIC --extra-cxxflags= --extra-ldflags=-pthread --extra-ldexeflags=-pie --extra-libs='-ldl -lgomp' --extra-version=20220731
2024-01-21 08:23:23.546041938    libavutil      57. 28.100 / 57. 28.100
2024-01-21 08:23:23.546043001    libavcodec     59. 37.100 / 59. 37.100
2024-01-21 08:23:23.546043980    libavformat    59. 27.100 / 59. 27.100
2024-01-21 08:23:23.546044946    libavdevice    59.  7.100 / 59.  7.100
2024-01-21 08:23:23.546045908    libavfilter     8. 44.100 /  8. 44.100
2024-01-21 08:23:23.546046875    libswscale      6.  7.100 /  6.  7.100
2024-01-21 08:23:23.546047840    libswresample   4.  7.100 /  4.  7.100
2024-01-21 08:23:23.546048801    libpostproc    56.  6.100 / 56.  6.100
2024-01-21 08:23:23.546049812  [concat @ 0x55ba08f66a80] No files to concat
2024-01-21 08:23:23.546050856  /dev/stdin: Invalid data found when processing input
2024-01-21 08:23:23.546051747  
2024-01-21 08:23:23.546482740  172.30.32.1 - - [21/Jan/2024:09:23:23 +0100] "GET /api/events/1705825360.211574-s47azi/clip.mp4 HTTP/1.1" 500 51 "-" "curl/8.4.0" "192.168.0.103"
2024-01-21 08:23:27.634423172  [2024-01-21 09:23:27] watchdog.car-port              ERROR   : No new recording segments were created for car-port in the last 120s. restarting the ffmpeg record process...
2024-01-21 08:23:27.634643451  [2024-01-21 09:23:27] watchdog.car-port              INFO    : Terminating the existing ffmpeg process...
2024-01-21 08:23:27.634646573  [2024-01-21 09:23:27] watchdog.car-port              INFO    : Waiting for ffmpeg to exit gracefully...
2024-01-21 08:23:31.565610254  172.30.32.1 - - [21/Jan/2024:09:23:31 +0100] "GET /api/stats HTTP/1.1" 200 3779 "-" "HomeAssistant/2024.1.4 aiohttp/3.9.1 Python/3.11" "-"
2024-01-21 08:23:37.640121094  [2024-01-21 09:23:37] watchdog.car-port              ERROR   : No new recording segments were created for car-port in the last 120s. restarting the ffmpeg record process...
2024-01-21 08:23:37.640514334  [2024-01-21 09:23:37] watchdog.car-port              INFO    : Terminating the existing ffmpeg process...
2024-01-21 08:23:37.640517806  [2024-01-21 09:23:37] watchdog.car-port              INFO    : Waiting for ffmpeg to exit gracefully...
2024-01-21 08:23:38.708123362  172.30.32.1 - - [21/Jan/2024:09:23:38 +0100] "GET /api/events/1705825400.164679-x3uf9j/clip.mp4 HTTP/1.1" 200 1193023 "-" "curl/8.4.0" "192.168.0.103"
2024-01-21 08:23:39.415530299  [2024-01-21 09:23:39] frigate.http                   ERROR   : ffmpeg version n5.1-2-g915ef932a3-20220731 Copyright (c) 2000-2022 the FFmpeg developers
2024-01-21 08:23:39.415534779    built with gcc 12.1.0 (crosstool-NG 1.25.0.55_3defb7b)
2024-01-21 08:23:39.415542609    configuration: --prefix=/ffbuild/prefix --pkg-config-flags=--static --pkg-config=pkg-config --cross-prefix=x86_64-ffbuild-linux-gnu- --arch=x86_64 --target-os=linux --enable-gpl --enable-version3 --disable-debug --enable-iconv --enable-libxml2 --enable-zlib --enable-libfreetype --enable-libfribidi --enable-gmp --enable-lzma --enable-fontconfig --enable-libvorbis --enable-opencl --enable-libpulse --enable-libvmaf --enable-libxcb --enable-xlib --enable-amf --enable-libaom --enable-libaribb24 --enable-avisynth --enable-libdav1d --enable-libdavs2 --disable-libfdk-aac --enable-ffnvcodec --enable-cuda-llvm --enable-frei0r --enable-libgme --enable-libass --enable-libbluray --enable-libjxl --enable-libmp3lame --enable-libopus --enable-mbedtls --enable-librist --enable-libtheora --enable-libvpx --enable-libwebp --enable-lv2 --enable-libmfx --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg --enable-libopenmpt --enable-librav1e --enable-librubberband --disable-schannel --enable-sdl2 --enable-libsoxr --enable-libsrt --enable-libsvtav1 --enable-libtwolame --enable-libuavs3d --enable-libdrm --enable-vaapi --enable-libvidstab --enable-vulkan --enable-libshaderc --enable-libplacebo --enable-libx264 --enable-libx265 --enable-libxavs2 --enable-libxvid --enable-libzimg --enable-libzvbi --extra-cflags=-DLIBTWOLAME_STATIC --extra-cxxflags= --extra-ldflags=-pthread --extra-ldexeflags=-pie --extra-libs='-ldl -lgomp' --extra-version=20220731
2024-01-21 08:23:39.415544012    libavutil      57. 28.100 / 57. 28.100
2024-01-21 08:23:39.415545111    libavcodec     59. 37.100 / 59. 37.100
2024-01-21 08:23:39.415546072    libavformat    59. 27.100 / 59. 27.100
2024-01-21 08:23:39.415547041    libavdevice    59.  7.100 / 59.  7.100
2024-01-21 08:23:39.415548107    libavfilter     8. 44.100 /  8. 44.100
2024-01-21 08:23:39.415549143    libswscale      6.  7.100 /  6.  7.100
2024-01-21 08:23:39.415550127    libswresample   4.  7.100 /  4.  7.100
2024-01-21 08:23:39.415551088    libpostproc    56.  6.100 / 56.  6.100
2024-01-21 08:23:39.415552094  [concat @ 0x563c661a6a80] No files to concat
2024-01-21 08:23:39.415553136  /dev/stdin: Invalid data found when processing input
2024-01-21 08:23:39.415554016  
2024-01-21 08:23:39.416483951  172.30.32.1 - - [21/Jan/2024:09:23:39 +0100] "GET /api/events/1705825411.136742-qgyli4/clip.mp4 HTTP/1.1" 500 55 "-" "curl/8.4.0" "192.168.0.103"
2024-01-21 08:23:40.547037987  172.30.32.1 - - [21/Jan/2024:09:23:40 +0100] "GET /api/stats HTTP/1.1" 200 3815 "-" "HomeAssistant/2024.1.4 aiohttp/3.9.1 Python/3.11" "-"
2024-01-21 08:23:46.395094300  172.30.32.2 - - [21/Jan/2024:09:23:46 +0100] "GET / HTTP/1.1" 200 6641 "-" "HomeAssistantSupervisor/2023.12.1 aiohttp/3.9.1 Python/3.11" "-"
2024-01-21 08:23:47.662319501  [2024-01-21 09:23:47] watchdog.car-port              ERROR   : No new recording segments were created for car-port in the last 120s. restarting the ffmpeg record process...
2024-01-21 08:23:47.663730759  [2024-01-21 09:23:47] watchdog.car-port              INFO    : Terminating the existing ffmpeg process...
2024-01-21 08:23:47.664023036  [2024-01-21 09:23:47] watchdog.car-port              INFO    : Waiting for ffmpeg to exit gracefully...
2024-01-21 08:23:49.595422989  172.30.32.1 - - [21/Jan/2024:09:23:49 +0100] "GET /api/stats HTTP/1.1" 200 3848 "-" "HomeAssistant/2024.1.4 aiohttp/3.9.1 Python/3.11" "-"
2024-01-21 08:23:57.673974512  [2024-01-21 09:23:57] watchdog.car-port              ERROR   : No new recording segments were created for car-port in the last 120s. restarting the ffmpeg record process...
2024-01-21 08:23:57.682939269  [2024-01-21 09:23:57] watchdog.car-port              INFO    : Terminating the existing ffmpeg process...
2024-01-21 08:23:57.683518703  [2024-01-21 09:23:57] watchdog.car-port              INFO    : Waiting for ffmpeg to exit gracefully...
2024-01-21 08:23:58.542954470  172.30.32.1 - - [21/Jan/2024:09:23:58 +0100] "GET /api/stats HTTP/1.1" 200 3813 "-" "HomeAssistant/2024.1.4 aiohttp/3.9.1 Python/3.11" "-"
2024-01-21 08:24:07.539640741  172.30.32.1 - - [21/Jan/2024:09:24:07 +0100] "GET /api/stats HTTP/1.1" 200 3793 "-" "HomeAssistant/2024.1.4 aiohttp/3.9.1 Python/3.11" "-"
2024-01-21 08:24:07.702842089  [2024-01-21 09:24:07] watchdog.car-port              ERROR   : No new recording segments were created for car-port in the last 120s. restarting the ffmpeg record process...
2024-01-21 08:24:07.703302782  [2024-01-21 09:24:07] watchdog.car-port              INFO    : Terminating the existing ffmpeg process...
2024-01-21 08:24:07.703655737  [2024-01-21 09:24:07] watchdog.car-port              INFO    : Waiting for ffmpeg to exit gracefully...
2024-01-21 08:24:16.552208677  172.30.32.1 - - [21/Jan/2024:09:24:16 +0100] "GET /api/stats HTTP/1.1" 200 3778 "-" "HomeAssistant/2024.1.4 aiohttp/3.9.1 Python/3.11" "-"
2024-01-21 08:24:17.711831854  [2024-01-21 09:24:17] watchdog.car-port              ERROR   : No new recording segments were created for car-port in the last 120s. restarting the ffmpeg record process...
2024-01-21 08:24:17.711999633  [2024-01-21 09:24:17] watchdog.car-port              INFO    : Terminating the existing ffmpeg process...
2024-01-21 08:24:17.717490566  [2024-01-21 09:24:17] watchdog.car-port              INFO    : Waiting for ffmpeg to exit gracefully...
2024-01-21 08:24:25.583575780  172.30.32.1 - - [21/Jan/2024:09:24:25 +0100] "GET /api/stats HTTP/1.1" 200 3814 "-" "HomeAssistant/2024.1.4 aiohttp/3.9.1 Python/3.11" "-"
2024-01-21 08:24:27.736859640  [2024-01-21 09:24:27] watchdog.car-port              ERROR   : No new recording segments were created for car-port in the last 120s. restarting the ffmpeg record process...
2024-01-21 08:24:27.737628766  [2024-01-21 09:24:27] watchdog.car-port              INFO    : Terminating the existing ffmpeg process...
2024-01-21 08:24:27.738028812  [2024-01-21 09:24:27] watchdog.car-port              INFO    : Waiting for ffmpeg to exit gracefully...
2024-01-21 08:24:34.610183694  172.30.32.1 - - [21/Jan/2024:09:24:34 +0100] "GET /api/stats HTTP/1.1" 200 3778 "-" "HomeAssistant/2024.1.4 aiohttp/3.9.1 Python/3.11" "-"

It clearly says “No files to concat”, which is understandable, but why…?!

@crzynik thanks for your input.

I finally found something (bad status 404) in the nginx logs:

"http://192.168.0.103:8123/events" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36" "192.168.0.114, 172.30.32.1"
2024-01-22 08:58:34.812445357  172.30.32.2 - - [22/Jan/2024:09:58:34 +0100] "GET //api/events/1705908978.132476-qd4x49/thumbnail.jpg HTTP/1.1" 200 7785 "http://192.168.0.103:8123/events" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36" "192.168.0.114, 172.30.32.1"
2024-01-22 08:58:34.814531935  172.30.32.2 - - [22/Jan/2024:09:58:34 +0100] "GET //api/events/1705908945.69714-zm8o4j/thumbnail.jpg HTTP/1.1" 200 8196 "http://192.168.0.103:8123/events" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36" "192.168.0.114, 172.30.32.1"
2024-01-22 08:58:35.063322274  172.30.32.1 - - [22/Jan/2024:09:58:35 +0100] "GET /api/stats HTTP/1.1" 200 3725 "-" "HomeAssistant/2024.1.5 aiohttp/3.9.1 Python/3.11" "-"
2024-01-22 08:58:38.799081699  2024/01/22 09:58:38 [error] 139#139: *296 ngx_child_request_wev_handler: upstream returned a bad status 404 while sending to client, client: 172.30.32.2, server: , request: "GET /vod/event/1705913751.417906-144dr9/master.m3u8 HTTP/1.1", host: "192.168.0.103:8123", referrer: "http://192.168.0.103:8123/events"
2024-01-22 08:58:38.799810648  172.30.32.2 - - [22/Jan/2024:09:58:38 +0100] "GET /vod/event/1705913751.417906-144dr9/master.m3u8 HTTP/1.1" 502 559 "http://192.168.0.103:8123/events" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36" "192.168.0.114, 172.30.32.1"
2024-01-22 08:58:38.868456012  2024/01/22 09:58:38 [error] 139#139: *296 ngx_child_request_wev_handler: upstream returned a bad status 404 while sending to client, client: 172.30.32.2, server: , request: "GET /vod/event/1705913751.417906-144dr9/master.m3u8 HTTP/1.1", host: "192.168.0.103:8123", referrer: "http://192.168.0.103:8123/events"
2024-01-22 08:58:38.869599796  172.30.32.2 - - [22/Jan/2024:09:58:38 +0100] "GET /vod/event/1705913751.417906-144dr9/master.m3u8 HTTP/1.1" 502 559 "http://192.168.0.103:8123/events" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36" "192.168.0.114, 172.30.32.1"
2024-01-22 08:58:40.655595362  172.30.32.2 - - [22/Jan/2024:09:58:40 +0100] "GET //api/events/1705913751.417906-144dr9/snapshot.jpg HTTP/1.1" 200 175458 "http://192.168.0.103:8123/events" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36" "192.168.0.114, 172.30.32.1"
2024-01-22 08:58:44.052023052  172.30.32.1 - - [22/Jan/2024:09:58:44 +0100] "GET /api/stats HTTP/1.1" 200 3725 "-" "HomeAssistant/2024.1.5 aiohttp/3.9.1 Python/3.11" "-"
2024-01-22 08:58:45.134176050  2024/01/22 09:58:45 [error] 139#139: *296 ngx_child_request_wev_handler: upstream returned a bad status 404 while sending to client, client: 172.30.32.2, server: , request: "GET /vod/event/1705913751.417906-144dr9/master.m3u8 HTTP/1.1", host: "192.168.0.103:8123", referrer: "http://192.168.0.103:8123/events"
2024-01-22 08:58:45.137899018  172.30.32.2 - - [22/Jan/2024:09:58:45 +0100] "GET /vod/event/1705913751.417906-144dr9/master.m3u8 HTTP/1.1" 502 559 "http://192.168.0.103:8123/events" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36" "192.168.0.114, 172.30.32.1"
2024-01-22 08:58:45.266247251  2024/01/22 09:58:45 [error] 139#139: *296 ngx_child_request_wev_handler: upstream returned a bad status 404 while sending to client, client: 172.30.32.2, server: , request: "GET /vod/event/1705913751.417906-144dr9/master.m3u8 HTTP/1.1", host: "192.168.0.103:8123", referrer: "http://192.168.0.103:8123/events"
2024-01-22 08:58:45.266261124  172.30.32.2 - - [22/Jan/2024:09:58:45 +0100] "GET /vod/event/1705913751.417906-144dr9/master.m3u8 HTTP/1.1" 502 559 "http://192.168.0.103:8123/events" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36" "192.168.0.114, 172.30.32.1"
2024-01-22 08:58:48.333738101  172.30.32.2 - - [22/Jan/2024:09:58:48 +0100] "GET /api/logs/frigate HTTP/1.1" 200 18295 "http://192.168.0.103:8123/logs" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36" "192.168.0.114, 172.30.32.1"
2024-01-22 08:58:48.334538205  172.30.32.2 - - [22/Jan/2024:09:58:48 +0100] "GET /api/logs/go2rtc HTTP/1.1" 200 326 "http://192.168.0.103:8123/logs" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36" "192.168.0.114, 172.30.32.1"
2024-01-22 08:58:48.336516245  172.30.32.2 - - [22/Jan/2024:09:58:48 +0100] "GET /api/logs/nginx HTTP/1.1" 200 6409 "http://192.168.0.103:8123/logs" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36" "192.168.0.114, 172.30.32.1"
2024-01-22 08:58:53.100409952  172.30.32.1 - - [22/Jan/2024:09:58:53 +0100] "GET /api/stats HTTP/1.1" 200 3760 "-" "HomeAssistant/2024.1.5 aiohttp/3.9.1 Python/3.11" "-"
2024-01-22 08:59:02.083013017  172.30.32.1 - - [22/Jan/2024:09:59:02 +0100] "GET /api/stats HTTP/1.1" 200 3725 "-" "HomeAssistant/2024.1.5 aiohttp/3.9.1 Python/3.11" "-"
2024-01-22 08:59:11.084527622  172.30.32.1 - - [22/Jan/2024:09:59:11 +0100] "GET /api/stats HTTP/1.1" 200 3758 "-" "HomeAssistant/2024.1.5 aiohttp/3.9.1 Python/3.11" "-"
2024-01-22 08:59:20.068989881  172.30.32.1 - - [22/Jan/2024:09:59:20 +0100] "GET /api/stats HTTP/1.1" 200 3758 "-" "HomeAssistant/2024.1.5 aiohttp/3.9.1 Python/3.11" "-"
2024-01-22 08:59:29.086814727  172.30.32.1 - - [22/Jan/2024:09:59:29 +0100] "GET /api/stats HTTP/1.1" 200 3760 "-" "HomeAssistant/2024.1.5 aiohttp/3.9.1 Python/3.11" "-"
2024-01-22 08:59:34.042769580  172.30.32.2 - - [22/Jan/2024:09:59:34 +0100] "GET /api/config HTTP/1.1" 200 25920 "http://192.168.0.103:8123/logs" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36" "192.168.0.114, 172.30.32.1"

and maybe related from the main frigate log:

2024-01-22 08:56:08.087721884  [2024-01-22 09:56:08] watchdog.carport               ERROR   : No new recording segments were created for carport in the last 120s. restarting the ffmpeg record process...
2024-01-22 08:56:08.088144962  [2024-01-22 09:56:08] watchdog.carport               INFO    : Terminating the existing ffmpeg process...
2024-01-22 08:56:08.088543879  [2024-01-22 09:56:08] watchdog.carport               INFO    : Waiting for ffmpeg to exit gracefully...
2024-01-22 08:56:09.464782254  [2024-01-22 09:56:09] frigate.http                   ERROR   : ffmpeg version n5.1-2-g915ef932a3-20220731 Copyright (c) 2000-2022 the FFmpeg developers
2024-01-22 08:56:09.464787264    built with gcc 12.1.0 (crosstool-NG 1.25.0.55_3defb7b)
2024-01-22 08:56:09.464794992    configuration: --prefix=/ffbuild/prefix --pkg-config-flags=--static --pkg-config=pkg-config --cross-prefix=x86_64-ffbuild-linux-gnu- --arch=x86_64 --target-os=linux --enable-gpl --enable-version3 --disable-debug --enable-iconv --enable-libxml2 --enable-zlib --enable-libfreetype --enable-libfribidi --enable-gmp --enable-lzma --enable-fontconfig --enable-libvorbis --enable-opencl --enable-libpulse --enable-libvmaf --enable-libxcb --enable-xlib --enable-amf --enable-libaom --enable-libaribb24 --enable-avisynth --enable-libdav1d --enable-libdavs2 --disable-libfdk-aac --enable-ffnvcodec --enable-cuda-llvm --enable-frei0r --enable-libgme --enable-libass --enable-libbluray --enable-libjxl --enable-libmp3lame --enable-libopus --enable-mbedtls --enable-librist --enable-libtheora --enable-libvpx --enable-libwebp --enable-lv2 --enable-libmfx --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg --enable-libopenmpt --enable-librav1e --enable-librubberband --disable-schannel --enable-sdl2 --enable-libsoxr --enable-libsrt --enable-libsvtav1 --enable-libtwolame --enable-libuavs3d --enable-libdrm --enable-vaapi --enable-libvidstab --enable-vulkan --enable-libshaderc --enable-libplacebo --enable-libx264 --enable-libx265 --enable-libxavs2 --enable-libxvid --enable-libzimg --enable-libzvbi --extra-cflags=-DLIBTWOLAME_STATIC --extra-cxxflags= --extra-ldflags=-pthread --extra-ldexeflags=-pie --extra-libs='-ldl -lgomp' --extra-version=20220731
2024-01-22 08:56:09.464796861    libavutil      57. 28.100 / 57. 28.100
2024-01-22 08:56:09.464797925    libavcodec     59. 37.100 / 59. 37.100
2024-01-22 08:56:09.464798897    libavformat    59. 27.100 / 59. 27.100
2024-01-22 08:56:09.464799886    libavdevice    59.  7.100 / 59.  7.100
2024-01-22 08:56:09.464800863    libavfilter     8. 44.100 /  8. 44.100
2024-01-22 08:56:09.464801828    libswscale      6.  7.100 /  6.  7.100
2024-01-22 08:56:09.464802806    libswresample   4.  7.100 /  4.  7.100
2024-01-22 08:56:09.464803783    libpostproc    56.  6.100 / 56.  6.100
2024-01-22 08:56:09.464804798  [concat @ 0x56326823ea80] No files to concat
2024-01-22 08:56:09.464805845  /dev/stdin: Invalid data found when processing input
2024-01-22 08:56:09.464806743  
2024-01-22 08:56:18.123712435  [2024-01-22 09:56:18] watchdog.carport               ERROR   : No new recording segments were created for carport in the last 120s. restarting the ffmpeg record process...
2024-01-22 08:56:18.124459066  [2024-01-22 09:56:18] watchdog.carport               INFO    : Terminating the existing ffmpeg process...
2024-01-22 08:56:18.124466278  [2024-01-22 09:56:18] watchdog.carport               INFO    : Waiting for ffmpeg to exit gracefully...
2024-01-22 08:56:28.132767119  [2024-01-22 09:56:28] watchdog.carport               ERROR   : No new recording segments were created for carport in the last 120s. restarting the ffmpeg record process...
2024-01-22 08:56:28.143943975  [2024-01-22 09:56:28] watchdog.carport               INFO    : Terminating the existing ffmpeg process...
2024-01-22 08:56:28.143956585  [2024-01-22 09:56:28] watchdog.carport               INFO    : Waiting for ffmpeg to exit gracefully...
2024-01-22 08:56:38.154923172  [2024-01-22 09:56:38] watchdog.carport               ERROR   : No new recording segments were created for carport in the last 120s. restarting the ffmpeg record process...
2024-01-22 08:56:38.167491377  [2024-01-22 09:56:38] watchdog.carport               INFO    : Terminating the existing ffmpeg process...
2024-01-22 08:56:38.168660427  [2024-01-22 09:56:38] watchdog.carport               INFO    : Waiting for ffmpeg to exit gracefully...
2024-01-22 08:56:48.185355580  [2024-01-22 09:56:48] watchdog.carport               ERROR   : No new recording segments were created for carport in the last 120s. restarting the ffmpeg record process...
2024-01-22 08:56:48.185954361  [2024-01-22 09:56:48] watchdog.carport               INFO    : Terminating the existing ffmpeg process...
2024-01-22 08:56:48.187434168  [2024-01-22 09:56:48] watchdog.carport               INFO    : Waiting for ffmpeg to exit gracefully...
2024-01-22 08:56:58.217791806  [2024-01-22 09:56:58] watchdog.carport               ERROR   : No new recording segments were created for carport in the last 120s. restarting the ffmpeg record process...

Note that I do get the snapshot under “events”, but when I try to view the corresponding clip is when I get the “…media could not be loaded…” error. So what I don’t understand here is how:

  1. one single camera gets a snapshot (so HA can talk to the camera) and
  2. a 404 (for the recordings only) and
  3. all the other cameras are fine.
    (…scratches head…)

Just a thought… is this the only camera with a dash in it’s name?

It’s a reasonable question, but no, there are several cameras with a dash in the name. In fact I added the dash later on to see if re-adding the camera to frigate with a new name would help. It didn’t :frowning:

Resolved: After struggling with this for a while with no success, I inspected the live camera feeds using mpv media player and discovered that the encoding from the various cameras was different. As I use Imou-Life/Dahua cameras, I was able to locate and download a config tool. I then used this to reconfigure the camera stream to be H264 (when purchased it was set to h265). This was unexpected and tricky to identify as the other cameras that I have, were all set to H264 when they arrived.
As soon as the stream was set to H264, the mpg files began to appear as expected in the recordings directory. :+1:

Thank you for posting the solution. Others may find it useful if future searches.

1 Like

Hello.
I have the same problem.
If you record an H265 stream, the video is not saved. There are no recording files, only detection screenshots.
If you switch to H264, the video is saved along with the audio.
How to save H265 video.
There is a broadcast from the camera in H265, visible in the VLС player and Home Assistant

check the logs

Switched from H264 to H265

2024-05-18 21:08:37.831681157  [h264 @ 0x7fe4401b8080] SEI type 5 size 4880 truncated at 3568
2024-05-18 21:08:37.832368563  [h264 @ 0x7fe4401b8080] SEI type 5 size 4880 truncated at 3560
2024-05-18 21:08:52.905296896  [extract_extradata @ 0x7fe440d76900] No start code is found.
2024-05-18 21:08:52.907474714  [ WARN:[email protected]] global cap_ffmpeg_impl.hpp:1139 open Unable to read codec parameters from stream (Invalid data found when processing input)
2024-05-18 21:08:54.093258879  [2024-05-19 00:08:54] frigate.record.maintainer      WARNING : Failed to probe corrupt segment /tmp/cache/cam1@20240519000838+0300.mp4
2024-05-18 21:08:54.093933085  [2024-05-19 00:08:54] frigate.record.maintainer      WARNING : Discarding a corrupt recording segment: /tmp/cache/cam1@20240519000838+0300.mp4
2024-05-18 21:08:57.881903945  [extract_extradata @ 0x7fe440017940] No start code is found.
2024-05-18 21:08:57.882252548  [ WARN:[email protected]] global cap_ffmpeg_impl.hpp:1139 open Unable to read codec parameters from stream (Invalid data found when processing input)
2024-05-18 21:08:57.910682987  [2024-05-19 00:08:57] frigate.record.maintainer      WARNING : Failed to probe corrupt segment /tmp/cache/cam1@20240519000849+0300.mp4
2024-05-18 21:08:57.910690487  [2024-05-19 00:08:57] frigate.record.maintainer      WARNING : Discarding a corrupt recording segment: /tmp/cache/cam1@20240519000849+0300.mp4
2024-05-18 21:09:12.838061719  [extract_extradata @ 0x7fe4402dcc00] No start code is found.
2024-05-18 21:09:12.838065619  [ WARN:[email protected]] global cap_ffmpeg_impl.hpp:1139 open Unable to read codec parameters from stream (Invalid data found when processing input)
2024-05-18 21:09:12.856879478  [2024-05-19 00:09:12] frigate.record.maintainer      WARNING : Failed to probe corrupt segment /tmp/cache/cam1@20240519000857+0300.mp4
2024-05-18 21:09:12.857413683  [2024-05-19 00:09:12] frigate.record.maintainer      WARNING : Discarding a corrupt recording segment: /tmp/cache/cam1@20240519000857+0300.mp4
2024-05-18 21:09:22.839786228  [extract_extradata @ 0x7fe440280680] No start code is found.
2024-05-18 21:09:22.840386433  [ WARN:[email protected]] global cap_ffmpeg_impl.hpp:1139 open Unable to read codec parameters from stream (Invalid data found when processing input)
2024-05-18 21:09:22.861545812  [2024-05-19 00:09:22] frigate.record.maintainer      WARNING : Failed to probe corrupt segment /tmp/cache/cam1@20240519000909+0300.mp4
2024-05-18 21:09:22.861549312  [2024-05-19 00:09:22] frigate.record.maintainer      WARNING : Discarding a corrupt recording segment: /tmp/cache/cam1@20240519000909+0300.mp4
2024-05-18 21:09:27.842962099  [extract_extradata @ 0x7fe440005980] No start code is found.
2024-05-18 21:09:27.843229902  [ WARN:[email protected]] global cap_ffmpeg_impl.hpp:1139 open Unable to read codec parameters from stream (Invalid data found when processing input)
2024-05-18 21:09:27.862666667  [2024-05-19 00:09:27] frigate.record.maintainer      WARNING : Failed to probe corrupt segment /tmp/cache/cam1@20240519000918+0300.mp4
2024-05-18 21:09:27.862670167  [2024-05-19 00:09:27] frigate.record.maintainer      WARNING : Discarding a corrupt recording segment: /tmp/cache/cam1@20240519000918+0300.mp4
2024-05-18 21:09:42.838258377  [extract_extradata @ 0x7fe4402dcc00] No start code is found.
2024-05-18 21:09:42.838797182  [ WARN:[email protected]] global cap_ffmpeg_impl.hpp:1139 open Unable to read codec parameters from stream (Invalid data found when processing input)
2024-05-18 21:09:42.855991428  [2024-05-19 00:09:42] frigate.record.maintainer      WARNING : Failed to probe corrupt segment /tmp/cache/cam1@20240519000926+0300.mp4
2024-05-18 21:09:42.856602334  [2024-05-19 00:09:42] frigate.record.maintainer      WARNING : Discarding a corrupt recording segment: /tmp/cache/cam1@20240519000926+0300.mp4
2024-05-18 21:09:47.847320853  [extract_extradata @ 0x7fe440014f40] No start code is found.
2024-05-18 21:09:47.848065559  [ WARN:[email protected]] global cap_ffmpeg_impl.hpp:1139 open Unable to read codec parameters from stream (Invalid data found when processing input)
2024-05-18 21:09:47.886284786  [2024-05-19 00:09:47] frigate.record.maintainer      WARNING : Failed to probe corrupt segment /tmp/cache/cam1@20240519000939+0300.mp4
2024-05-18 21:09:47.886288486  [2024-05-19 00:09:47] frigate.record.maintainer      WARNING : Discarding a corrupt recording segment: /tmp/cache/cam1@20240519000939+0300.mp4
2024-05-18 21:10:02.839776852  [extract_extradata @ 0x7fe4400112c0] No start code is found.
2024-05-18 21:10:02.840018954  [ WARN:[email protected]] global cap_ffmpeg_impl.hpp:1139 open Unable to read codec parameters from stream (Invalid data found when processing input)
2024-05-18 21:10:02.860601431  [2024-05-19 00:10:02] frigate.record.maintainer      WARNING : Failed to probe corrupt segment /tmp/cache/cam1@20240519000947+0300.mp4
2024-05-18 21:10:02.861396437  [2024-05-19 00:10:02] frigate.record.maintainer      WARNING : Discarding a corrupt recording segment: /tmp/cache/cam1@20240519000947+0300.mp4
2024-05-18 21:10:12.845682146  [extract_extradata @ 0x7fe4400ecb00] No start code is found.
2024-05-18 21:10:12.846011849  [ WARN:[email protected]] global cap_ffmpeg_impl.hpp:1139 open Unable to read codec parameters from stream (Invalid data found when processing input)
2024-05-18 21:10:12.875386302  [2024-05-19 00:10:12] frigate.record.maintainer      WARNING : Failed to probe corrupt segment /tmp/cache/cam1@20240519000959+0300.mp4
2024-05-18 21:10:12.875389902  [2024-05-19 00:10:12] frigate.record.maintainer      WARNING : Discarding a corrupt recording segment: /tmp/cache/cam1@20240519000959+0300.mp4

What type of camera is it? Looks like h265 is corrupt

UNV IPC2124LE-ADF28KMC-WL