Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

0.11.0 release - FFMPEG hardware accelleration not working inside docker container on i7-11th gen RocketLake #3941

Closed
Sarah-Connelli opened this issue Sep 25, 2022 · 122 comments

Comments

@Sarah-Connelli
Copy link

Sarah-Connelli commented Sep 25, 2022

Describe the problem you are having

Hardware acceleration works on the host, just not inside the container in the new release 0.11.0.

If I roll back to v10, all is fine.

I know the FFMPEG build has now changed, and this HWACCEL issue is a bad nightmare for many projects, ever since the thread bugs to intel's split of i965 vs iHD etc.

I've spent a few hours on this, just can't seem to get this working, so gone back to v10 for now.

The error I get when attempting hardware acceleration inside frigate container via the hwaccel_args of '-hwaccel auto':
[h264 @ 0x55c00073de80] Failed to end picture decode issue: 23 (internal decoding error). [h264 @ 0x55c00073de80] hardware accelerator failed to decode picture Error while decoding stream #0:0: Input/output error

The error I get when attempting accel inside frigate container via the hwaccel_args of '-hwaccel_output_format qsv -c:v h264_qsv -hwaccel_device /dev/dri/renderD128':
[h264_qsv @ 0x55fe09463f40] Error during QSV decoding.: device failed (-17) Error while decoding stream #0:0: Input/output error

The output of vainfo inside the container

error: XDG_RUNTIME_DIR not set in the environment.
error: can't connect to X server!
libva info: VA-API version 1.10.0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_10
libva info: va_openDriver() returns 0
vainfo: VA-API version: 1.10 (libva 2.10.0)
vainfo: Driver version: Intel iHD driver for Intel(R) Gen Graphics - 21.1.1 ()
vainfo: Supported profile and entrypoints
      VAProfileNone                   :	VAEntrypointVideoProc
      VAProfileNone                   :	VAEntrypointStats
      VAProfileMPEG2Simple            :	VAEntrypointVLD
      VAProfileMPEG2Simple            :	VAEntrypointEncSlice
      VAProfileMPEG2Main              :	VAEntrypointVLD
      VAProfileMPEG2Main              :	VAEntrypointEncSlice
      VAProfileH264Main               :	VAEntrypointVLD
      VAProfileH264Main               :	VAEntrypointEncSlice
      VAProfileH264Main               :	VAEntrypointFEI
      VAProfileH264Main               :	VAEntrypointEncSliceLP
      VAProfileH264High               :	VAEntrypointVLD
      VAProfileH264High               :	VAEntrypointEncSlice
      VAProfileH264High               :	VAEntrypointFEI
      VAProfileH264High               :	VAEntrypointEncSliceLP
      VAProfileVC1Simple              :	VAEntrypointVLD
      VAProfileVC1Main                :	VAEntrypointVLD
      VAProfileVC1Advanced            :	VAEntrypointVLD
      VAProfileJPEGBaseline           :	VAEntrypointVLD
      VAProfileJPEGBaseline           :	VAEntrypointEncPicture
      VAProfileH264ConstrainedBaseline:	VAEntrypointVLD
      VAProfileH264ConstrainedBaseline:	VAEntrypointEncSlice
      VAProfileH264ConstrainedBaseline:	VAEntrypointFEI
      VAProfileH264ConstrainedBaseline:	VAEntrypointEncSliceLP
      VAProfileHEVCMain               :	VAEntrypointVLD
      VAProfileHEVCMain               :	VAEntrypointEncSlice
      VAProfileHEVCMain               :	VAEntrypointFEI
      VAProfileHEVCMain               :	VAEntrypointEncSliceLP
      VAProfileHEVCMain10             :	VAEntrypointVLD
      VAProfileHEVCMain10             :	VAEntrypointEncSlice
      VAProfileHEVCMain10             :	VAEntrypointEncSliceLP
      VAProfileVP9Profile0            :	VAEntrypointVLD
      VAProfileVP9Profile1            :	VAEntrypointVLD
      VAProfileVP9Profile2            :	VAEntrypointVLD
      VAProfileVP9Profile3            :	VAEntrypointVLD
      VAProfileHEVCMain12             :	VAEntrypointVLD
      VAProfileHEVCMain12             :	VAEntrypointEncSlice
      VAProfileHEVCMain422_10         :	VAEntrypointVLD
      VAProfileHEVCMain422_10         :	VAEntrypointEncSlice
      VAProfileHEVCMain422_12         :	VAEntrypointVLD
      VAProfileHEVCMain422_12         :	VAEntrypointEncSlice
      VAProfileHEVCMain444            :	VAEntrypointVLD
      VAProfileHEVCMain444            :	VAEntrypointEncSliceLP
      VAProfileHEVCMain444_10         :	VAEntrypointVLD
      VAProfileHEVCMain444_10         :	VAEntrypointEncSliceLP
      VAProfileHEVCMain444_12         :	VAEntrypointVLD
      VAProfileHEVCSccMain            :	VAEntrypointVLD
      VAProfileHEVCSccMain            :	VAEntrypointEncSliceLP
      VAProfileHEVCSccMain10          :	VAEntrypointVLD
      VAProfileHEVCSccMain10          :	VAEntrypointEncSliceLP
      VAProfileHEVCSccMain444         :	VAEntrypointVLD
      VAProfileHEVCSccMain444         :	VAEntrypointEncSliceLP
      VAProfileAV1Profile0            :	VAEntrypointVLD
      VAProfileHEVCSccMain444_10      :	VAEntrypointVLD
      VAProfileHEVCSccMain444_10      :	VAEntrypointEncSliceLP

The output of vainfo on the host

error: can't connect to X server!
libva info: VA-API version 1.14.0
libva info: Trying to open /usr/lib64/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_14
libva info: va_openDriver() returns 0
vainfo: VA-API version: 1.14 (libva 2.14.0)
vainfo: Driver version: Intel iHD driver for Intel(R) Gen Graphics - 22.4.3 (74f40ee)
vainfo: Supported profile and entrypoints
      VAProfileNone                   :	VAEntrypointVideoProc
      VAProfileNone                   :	VAEntrypointStats
      VAProfileMPEG2Simple            :	VAEntrypointVLD
      VAProfileMPEG2Simple            :	VAEntrypointEncSlice
      VAProfileMPEG2Main              :	VAEntrypointVLD
      VAProfileMPEG2Main              :	VAEntrypointEncSlice
      VAProfileH264Main               :	VAEntrypointVLD
      VAProfileH264Main               :	VAEntrypointEncSlice
      VAProfileH264Main               :	VAEntrypointFEI
      VAProfileH264Main               :	VAEntrypointEncSliceLP
      VAProfileH264High               :	VAEntrypointVLD
      VAProfileH264High               :	VAEntrypointEncSlice
      VAProfileH264High               :	VAEntrypointFEI
      VAProfileH264High               :	VAEntrypointEncSliceLP
      VAProfileVC1Simple              :	VAEntrypointVLD
      VAProfileVC1Main                :	VAEntrypointVLD
      VAProfileVC1Advanced            :	VAEntrypointVLD
      VAProfileJPEGBaseline           :	VAEntrypointVLD
      VAProfileJPEGBaseline           :	VAEntrypointEncPicture
      VAProfileH264ConstrainedBaseline:	VAEntrypointVLD
      VAProfileH264ConstrainedBaseline:	VAEntrypointEncSlice
      VAProfileH264ConstrainedBaseline:	VAEntrypointFEI
      VAProfileH264ConstrainedBaseline:	VAEntrypointEncSliceLP
      VAProfileHEVCMain               :	VAEntrypointVLD
      VAProfileHEVCMain               :	VAEntrypointEncSlice
      VAProfileHEVCMain               :	VAEntrypointFEI
      VAProfileHEVCMain               :	VAEntrypointEncSliceLP
      VAProfileHEVCMain10             :	VAEntrypointVLD
      VAProfileHEVCMain10             :	VAEntrypointEncSlice
      VAProfileHEVCMain10             :	VAEntrypointEncSliceLP
      VAProfileVP9Profile0            :	VAEntrypointVLD
      VAProfileVP9Profile1            :	VAEntrypointVLD
      VAProfileVP9Profile2            :	VAEntrypointVLD
      VAProfileVP9Profile3            :	VAEntrypointVLD
      VAProfileHEVCMain12             :	VAEntrypointVLD
      VAProfileHEVCMain12             :	VAEntrypointEncSlice
      VAProfileHEVCMain422_10         :	VAEntrypointVLD
      VAProfileHEVCMain422_10         :	VAEntrypointEncSlice
      VAProfileHEVCMain422_12         :	VAEntrypointVLD
      VAProfileHEVCMain422_12         :	VAEntrypointEncSlice
      VAProfileHEVCMain444            :	VAEntrypointVLD
      VAProfileHEVCMain444            :	VAEntrypointEncSliceLP
      VAProfileHEVCMain444_10         :	VAEntrypointVLD
      VAProfileHEVCMain444_10         :	VAEntrypointEncSliceLP
      VAProfileHEVCMain444_12         :	VAEntrypointVLD
      VAProfileHEVCSccMain            :	VAEntrypointVLD
      VAProfileHEVCSccMain            :	VAEntrypointEncSliceLP
      VAProfileHEVCSccMain10          :	VAEntrypointVLD
      VAProfileHEVCSccMain10          :	VAEntrypointEncSliceLP
      VAProfileHEVCSccMain444         :	VAEntrypointVLD
      VAProfileHEVCSccMain444         :	VAEntrypointEncSliceLP
      VAProfileAV1Profile0            :	VAEntrypointVLD
      VAProfileHEVCSccMain444_10      :	VAEntrypointVLD
      VAProfileHEVCSccMain444_10      :	VAEntrypointEncSliceLP

inte_gpu_top works fine and shows the card as active inside the container, and when running ffmpeg with accel on the host, the gpu_top tool shows the appropriate hardware acceleration activity.

It seems like the FFMPEG build included in the 0.11.0 release of Frigate doesn't want to use Intel's Media iHD driver for hardware acceleration, though this is just a guess...

Version

0.11.0

Frigate config file

hwaccel_args: -hwaccel_output_format qsv -c:v h264_qsv -qsv_device /dev/dri/renderD128

Relevant log output

FFMPEG hardware acceleration failures.

FFprobe output from your camera

n/a

Frigate stats

n/a

Operating system

Other Linux

Install method

Docker Compose

Coral version

PCIe

Network connection

Wired

Camera make and model

n/a

Any other information that may be helpful

No response

@NickM-27
Copy link
Sponsor Collaborator

We've had a lot of testing done with 12th gen and other recent intel hardware acceleration so the iHD driver should be working.

A few things:

  1. Can you please include your docker compose file?
  2. Can you please try -c:v h264_qsv without the other specifiers?
  3. Can you please also try VAAPI: -hwaccel vaapi -hwaccel_device /dev/dri/renderD128 -hwaccel_output_format yuv420p

In both cases please provide the error logs if there are some 👍

@Sarah-Connelli
Copy link
Author

Sarah-Connelli commented Sep 25, 2022

-c:v h264_qsv by itself produces the error:
[h264_qsv @ 0x556d6ca831c0] Error during QSV decoding.: device failed (-17) Error while decoding stream #0:0: Input/output error

The compose file currently:

version: "3.3"
services:
  frigate:
    container_name: frigate
    privileged: true
    #restart: no
    image: blakeblackshear/frigate:0.11.0
    #image: blakeblackshear/frigate:stable-amd64
    #image: blakeblackshear/frigate:stable-amd64nvidia
    #runtime: nvidia
    environment:
      #- LIBVA_DRIVER_NAME=i965
      #- LIBVA_DRIVER_NAME=iHD
    shm_size: "4G"
    devices:
      - /dev/apex_0:/dev/apex_0
      - /dev/dri/renderD128
    volumes:
      - /etc/localtime:/etc/localtime:ro
      - /var/opt/frigate/config.yml:/config/config.yml:ro
      - /var/opt/frigate/data:/db
      - /cctv:/media/frigate
      - type: tmpfs
        target: /tmp/cache
    network_mode: host
    environment:
      FRIGATE_RPASS: "???"

When trying with
-hwaccel vaapi -hwaccel_device /dev/dri/renderD128 -hwaccel_output_format yuv420p

The error:
[h264 @ 0x55b82be4a500] Failed to end picture decode issue: 23 (internal decoding error). [h264 @ 0x55b82be4a500] hardware accelerator failed to decode picture Error while decoding stream #0:0: Input/output error

@NickM-27
Copy link
Sponsor Collaborator

If I roll back to v10, all is fine.

it is important to note that on Frigate 0.10 which used ffmpeg 4.3 there was an unfortunate behavior where if a user requested hwaccel but it was not available ffmpeg would silently ignore that and use the CPU. We had a user without any iGPU claim it was working due to this, so it makes it difficult to know for sure if it was previously working. How does frigate's CPU usage with 0.11 compare with 0.10?

Can you also go on your host and run ls /dev/dri ?

@NickM-27
Copy link
Sponsor Collaborator

also what is your host OS?

@Sarah-Connelli
Copy link
Author

Not to worry, this isn't my first rodeo, hardware accel works exceptionally well in 0.10.1
33 cameras and counting, gpu_top loves to show-off how easily the rocketlake igpu can handle the load.

output of ls /dev/dri -lrt

total 0
crw-rw-rw- 1 root render 226, 128 Sep 25 03:50 renderD128
crw-rw---- 1 root video  226,   0 Sep 25 03:50 card0
drwxr-xr-x 2 root root         80 Sep 25 03:50 by-path

Host OS:

Centos Stream 9
Linux 5.14.0-165.el9.x86_64 x86_64

@NickM-27
Copy link
Sponsor Collaborator

That's unfortunate it is not working here :/

We have some docs on mapping a custom build of ffmpeg to replace the default one: https://docs.frigate.video/configuration/advanced#custom-ffmpeg-build

We use BtBn by default, I wonder if you'll have luck using the 4.4 version instead of the 5.1 that we use by default: https://github.com/BtbN/FFmpeg-Builds/releases/tag/autobuild-2022-09-25-12-38

@Sarah-Connelli
Copy link
Author

Sarah-Connelli commented Sep 25, 2022

Just tried v4.4 of the static ffmpeg build, same issue, hardware accel inside the container not working. However if I use that static 4.4 build outside the container, works just fine.

Is it possible to do what I just did with the 4.4 ffmpeg static build above, but instead with the one that was released with Frigate 0.10.1? any pointers? because that one most definitely works very well.

@NickM-27
Copy link
Sponsor Collaborator

At this point I don't think it is the ffmpeg version that matters (as you said it BtBn 4.4 works on your host). It seems more likely that the issue is the drivers we are installing. Perhaps there is an issue with that, you could try getting a shell in the container and upgrading apt and perhaps it'll pull updated drivers or there is some other driver needed for your iGPU 🤔

By the way in 0.10 we just got from the standard apt

@Sarah-Connelli
Copy link
Author

Yes that was one of the first things I attempted as in container updating via the container root shell.

Well there is most definitely some issue here, I guess things will be realised more when and if a larger crowd upgrade to this version. I guess it was a wise idea to not put this on the stable-amd64 tag.

@NickM-27
Copy link
Sponsor Collaborator

I guess it was a wise idea to not put this on the stable-amd64 tag

To be clear, frigate is already out as stable, the reason stable-amd64 isn't used is because frigate now uses multiarch build so there is no need to specify the arch in the tag anymore.

@NickM-27
Copy link
Sponsor Collaborator

I'll have to do some more looking and see if I can think of other things to try.

@NickM-27
Copy link
Sponsor Collaborator

You said you have many cameras, I'm curious what happens if you try hwaccel with just one using -c:v h264_qsv and see if that's the same.

@Sarah-Connelli
Copy link
Author

I do a manual test first in the container shell to confirm, before updating appropriate configuration string and restarting Frigate. So that has already been done, and didn't work.

One thing I noticed is that there seems to be a mismatch between the iHD driver on the host and the one vainfo is reporting inside the container.... appears the Frigate version is older by a few revisions at least...

@NickM-27
Copy link
Sponsor Collaborator

One thing I noticed is that there seems to be a mismatch between the iHD driver on the host and the one vainfo is reporting inside the container.... appears the Frigate version is older by a few revisions at least...

Yeah that sounds right, could definitely be the issue. Not sure if there is a way to map the driver into the container and overwrite it. I believe our Dockerfile is pulling the most recent available driver for debian:11

@NickM-27
Copy link
Sponsor Collaborator

@blakeblackshear May have some other ideas as well

@Sarah-Connelli
Copy link
Author

On 0.10.1 I use the args:

hwaccel_args: -hwaccel_output_format qsv -c:v h264_qsv -qsv_device /dev/dri/renderD128

and it hardware decodes nicely:

Stream mapping:
  Stream #0:0 -> #0:0 (h264 (h264_qsv) -> wrapped_avframe (native))
  Stream #0:1 -> #0:1 (mp2 (native) -> pcm_s16le (native))

Also 0.10.1 is on the same iHD driver version as in 0.11.0.

The FFMPEG in the 0.10.1 container is v4.3.1

@NickM-27
Copy link
Sponsor Collaborator

NickM-27 commented Sep 25, 2022

You didn't share your config, so I just want to make sure of a few things:

  1. When you updated to 0.11 you updated cameras with input_args manually set to use timeout instead of stimeout right?
  2. When you tried the 4.4 BtBn in frigate you updated (or manually set) the input args to have stimeout instead of the default timeout right?

@Sarah-Connelli
Copy link
Author

Sarah-Connelli commented Sep 25, 2022

Yes.

I can disable hardware-acceleration, and 0.11.0 runs fine with no issues, recording and eventing etc.

@NickM-27
Copy link
Sponsor Collaborator

Without hwaccel enabled in 0.11 the cameras work right?

Seems #3858 is likely related, might be worth trying #3858 (comment)

@Sarah-Connelli
Copy link
Author

Sarah-Connelli commented Sep 25, 2022

Interestingly from that thread it seems his host driver is more recent than the container's too, in-fact, the exact same 'versions' as mine here.

Ok, I managed to 'hack' it into life, however not ideal. Had to just match the driver version inside the container with the host, and then the ffmpeg inside the container just worked as expected with hardware acceleration.

? I think the release container needs more thought into how it manages its driver, should it reference the host only?, or at the very least attempt to match the host?.... needs investigation, because I can see things getting out of sync quite quickly with the drivers across container and host.

@NickM-27
Copy link
Sponsor Collaborator

The driver is pulled at build time, there is no easy way to automatically match the host driver. We should be pulling the most up to date driver for debian 11, odds are other OS have newer driver available and that is causing the issue.

@NickM-27
Copy link
Sponsor Collaborator

To be clear, just explaining how things are, I agree it is not a long term solution to work the way it does today.

@blakeblackshear
Copy link
Owner

How did you go about matching the driver version inside the container?

@Sarah-Connelli
Copy link
Author

For now I have it configured to install 'intel-media-va-driver-non-free' of the latest version from Debian's 'testing' repo on every start. Not a big deal as it tends to stay running for around a month before restarting when I tend to upgrades/updates on the host and other containers.

Not ideal indeed, alas have no other idea how to mitigate this issue.

It is reasonable to assume the host driver could become out of sync on host updates/upgrades, hopefully some genius will come up with a solution to cover this stressful scenario as part of the release container.

@MopGitHub
Copy link

I have this exact same issue on intel gen12 CPU

@eatoff8
Copy link

eatoff8 commented Sep 27, 2022

Seeing the same issue on 11th gen Intel.

Tried a few different hwaccel args without any luck before i found this thread. rolling back to RC2 works, and disabling hwaccel also works.

@NickM-27
Copy link
Sponsor Collaborator

Tried a few different hwaccel args without any luck before i found this thread. rolling back to RC2 works, and disabling hwaccel also works.

There have been no changes since RC2 concerning ffmpeg or any of its dependencies, not sure how that would be the case.

@eatoff8
Copy link

eatoff8 commented Sep 27, 2022

There have been no changes since RC2 concerning ffmpeg or any of its dependencies, not sure how that would be the case.

Apologies, it was RC1. RC2 gave me green screens for the video feeds, so I rolled back to wait for a final and then figure out any issues then.

@NickM-27
Copy link
Sponsor Collaborator

@gbolo as discussed above you can use my test image crzynik/frigate:testing-driver or wait for frigate update with the newer driver.

@gbolo
Copy link

gbolo commented Nov 14, 2022

crzynik/frigate:testing-driver

thanks, that image seems to work as expected. What changes were made?

@NickM-27
Copy link
Sponsor Collaborator

crzynik/frigate:testing-driver

thanks, that image seems to work as expected. What changes were made?

The Intel iHD driver was updated to 22.3 from 22.2

@loe
Copy link

loe commented Nov 15, 2022

Thanks @NickM-27 - driver fix resolves hardware issues on newer Alder Lake NUCs.

loe@nuc:~/containers/frigate$ lscpu
Architecture:            x86_64
  CPU op-mode(s):        32-bit, 64-bit
  Address sizes:         39 bits physical, 48 bits virtual
  Byte Order:            Little Endian
CPU(s):                  16
  On-line CPU(s) list:   0-15
Vendor ID:               GenuineIntel
  Model name:            12th Gen Intel(R) Core(TM) i5-1240P
    CPU family:          6
    Model:               154
    Thread(s) per core:  2
    Core(s) per socket:  12
    Socket(s):           1
    Stepping:            3
    CPU max MHz:         4400.0000
    CPU min MHz:         400.0000
    BogoMIPS:            4224.00
    Flags:               fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aper
                         fmperf tsc_known_freq pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault epb cat_
                         l2 invpcid_single cdp_l2 ssbd ibrs ibpb stibp ibrs_enhanced tpr_shadow vnmi flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid rdt_a rdseed adx smap clflushopt clwb intel_pt sha_ni xsaveopt xsavec xgetbv
                         1 xsaves split_lock_detect avx_vnni dtherm ida arat pln pts hwp hwp_notify hwp_act_window hwp_epp hwp_pkg_req umip pku ospke waitpkg gfni vaes vpclmulqdq rdpid movdiri movdir64b fsrm md_clear serialize arch_lbr flush_l1d arch_capabili
                         ties
Virtualization features:
  Virtualization:        VT-x
Caches (sum of all):
  L1d:                   448 KiB (12 instances)
  L1i:                   640 KiB (12 instances)
  L2:                    9 MiB (6 instances)
  L3:                    12 MiB (1 instance)
NUMA:
  NUMA node(s):          1
  NUMA node0 CPU(s):     0-15
Vulnerabilities:
  Itlb multihit:         Not affected
  L1tf:                  Not affected
  Mds:                   Not affected
  Meltdown:              Not affected
  Mmio stale data:       Not affected
  Retbleed:              Not affected
  Spec store bypass:     Mitigation; Speculative Store Bypass disabled via prctl and seccomp
  Spectre v1:            Mitigation; usercopy/swapgs barriers and __user pointer sanitization
  Spectre v2:            Mitigation; Enhanced IBRS, IBPB conditional, RSB filling, PBRSB-eIBRS SW sequence
  Srbds:                 Not affected
  Tsx async abort:       Not affected

@WhistleMaster
Copy link

yes it works - no errors at all. Processor usage still seems quite high

Same here with Alder Lake i5-12500T using crzynik/frigate:testing-driver image: vaapi is working but not qsv, and with vaapi, cpu usage is still high.

hwaccel_args: -hwaccel vaapi -vaapi_device /dev/dri/renderD128 is working but with high cpu usage.
hwaccel_args: -c:v h264_qsv is not working.

@loe what hwaccel_args are you using ?

@NickM-27
Copy link
Sponsor Collaborator

Please provide error logs of QSV
not working

@madasus
Copy link

madasus commented Nov 18, 2022

i'm also seeing some odd issues after the system has been running for a few hours (i'd say between 6-12 hours) then some of the streams seem to stop and never recover. I get a "Bus Error" eventually and it seems to give up.

camera that seems to be in the error this time (I've seen it for others also) has this config.

  catgenie1: # <------ Name the camera
    ffmpeg:
      hwaccel_args: -hwaccel vaapi -hwaccel_device /dev/dri/renderD128 -hwaccel_output_format yuv420p
      inputs:
        - path: rtsp:https://user:pass@ip:554/axis-media/media.amp
          roles:
            - detect
            - rtmp
    objects:
      track:
        - person
        - cat

No clue what the logs are saying here.

[2022-11-17 17:15:05] frigate.video                  ERROR   : catgenie1: Unable to read frames from ffmpeg process.
[2022-11-17 17:15:05] frigate.video                  ERROR   : catgenie1: ffmpeg process is not running. exiting capture thread...
[2022-11-17 17:15:06] watchdog.catgenie1             ERROR   : Ffmpeg process crashed unexpectedly for catgenie1.
[2022-11-17 17:15:06] watchdog.catgenie1             ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
[2022-11-17 17:15:06] ffmpeg.catgenie1.detect        ERROR   : [segment @ 0x557827cb1200] Timestamps are unset in a packet for stream 0. This is deprecated and will stop working in the future. Fix your code to set the timestamps properly
[2022-11-17 17:15:06] ffmpeg.catgenie1.detect        ERROR   : [h264 @ 0x557827d0e000] Failed setup for format vaapi: hwaccel initialisation returned error.
[2022-11-17 17:15:06] ffmpeg.catgenie1.detect        ERROR   : [segment @ 0x557827cb1200] Non-monotonous DTS in output stream 0:0; previous: 0, current: 0; changing to 1. This may result in incorrect timestamps in the output file.
[2022-11-17 17:15:06] ffmpeg.catgenie1.detect        ERROR   : [swscaler @ 0x557828b93480] [swscaler @ 0x557828ba1a00] deprecated pixel format used, make sure you did set range correctly
[2022-11-17 17:15:06] ffmpeg.catgenie1.detect        ERROR   : [swscaler @ 0x557828b93480] [swscaler @ 0x557828bdb280] deprecated pixel format used, make sure you did set range correctly
[2022-11-17 17:15:06] ffmpeg.catgenie1.detect        ERROR   : [swscaler @ 0x557828b93480] [swscaler @ 0x557828c13b40] deprecated pixel format used, make sure you did set range correctly
[2022-11-17 17:15:06] ffmpeg.catgenie1.detect        ERROR   : [swscaler @ 0x557828b93480] [swscaler @ 0x557828c4c400] deprecated pixel format used, make sure you did set range correctly
[2022-11-17 17:15:06] ffmpeg.catgenie1.detect        ERROR   : [swscaler @ 0x557828b93480] [swscaler @ 0x557828c85840] deprecated pixel format used, make sure you did set range correctly
[2022-11-17 17:15:06] ffmpeg.catgenie1.detect        ERROR   : [swscaler @ 0x557828b93480] [swscaler @ 0x557828cbd580] deprecated pixel format used, make sure you did set range correctly
[2022-11-17 17:15:06] ffmpeg.catgenie1.detect        ERROR   : [swscaler @ 0x557828b93480] [swscaler @ 0x557828cf69c0] deprecated pixel format used, make sure you did set range correctly
[2022-11-17 17:15:06] ffmpeg.catgenie1.detect        ERROR   : [swscaler @ 0x557828b93480] [swscaler @ 0x557828d2f280] deprecated pixel format used, make sure you did set range correctly
[2022-11-17 17:15:06] ffmpeg.catgenie1.detect        ERROR   : [swscaler @ 0x557828b93480] [swscaler @ 0x557828d67b40] deprecated pixel format used, make sure you did set range correctly
[2022-11-17 17:15:06] ffmpeg.catgenie1.detect        ERROR   : [swscaler @ 0x557828b93480] [swscaler @ 0x557828da0400] deprecated pixel format used, make sure you did set range correctly
[2022-11-17 17:15:06] ffmpeg.catgenie1.detect        ERROR   : [swscaler @ 0x557828b93480] [swscaler @ 0x557828dd8cc0] deprecated pixel format used, make sure you did set range correctly
[2022-11-17 17:15:06] ffmpeg.catgenie1.detect        ERROR   : [swscaler @ 0x557828b93480] [swscaler @ 0x557828e11580] deprecated pixel format used, make sure you did set range correctly
[2022-11-17 17:15:06] ffmpeg.catgenie1.detect        ERROR   : [swscaler @ 0x557828b93480] [swscaler @ 0x557828e49e40] deprecated pixel format used, make sure you did set range correctly
[2022-11-17 17:15:06] ffmpeg.catgenie1.detect        ERROR   : [swscaler @ 0x557828b93480] [swscaler @ 0x557828ba1a00] deprecated pixel format used, make sure you did set range correctly
[2022-11-17 17:15:06] ffmpeg.catgenie1.detect        ERROR   : [swscaler @ 0x557828b93480] [swscaler @ 0x557828c03200] deprecated pixel format used, make sure you did set range correctly
[2022-11-17 17:15:06] ffmpeg.catgenie1.detect        ERROR   : [swscaler @ 0x557828b93480] [swscaler @ 0x557828bcc040] deprecated pixel format used, make sure you did set range correctly
[2022-11-17 17:15:06] ffmpeg.catgenie1.detect        ERROR   : [swscaler @ 0x557828b93480] [swscaler @ 0x557828c7d500] deprecated pixel format used, make sure you did set range correctly
[2022-11-17 17:15:06] ffmpeg.catgenie1.detect        ERROR   : [swscaler @ 0x557828b93480] [swscaler @ 0x557828c4f980] deprecated pixel format used, make sure you did set range correctly
[2022-11-17 17:15:06] ffmpeg.catgenie1.detect        ERROR   : [swscaler @ 0x557828b93480] [swscaler @ 0x557828cb8a40] deprecated pixel format used, make sure you did set range correctly
[2022-11-17 17:15:06] ffmpeg.catgenie1.detect        ERROR   : [swscaler @ 0x557828b93480] [swscaler @ 0x557828e46400] deprecated pixel format used, make sure you did set range correctly
[2022-11-17 17:15:06] ffmpeg.catgenie1.detect        ERROR   : [swscaler @ 0x557828b93480] [swscaler @ 0x557828cf2640] deprecated pixel format used, make sure you did set range correctly
[2022-11-17 17:15:06] ffmpeg.catgenie1.detect        ERROR   : [swscaler @ 0x557828b93480] [swscaler @ 0x557828d2ba80] deprecated pixel format used, make sure you did set range correctly
[2022-11-17 17:15:06] ffmpeg.catgenie1.detect        ERROR   : [swscaler @ 0x557828b93480] [swscaler @ 0x557828d64340] deprecated pixel format used, make sure you did set range correctly
[2022-11-17 17:15:06] ffmpeg.catgenie1.detect        ERROR   : [swscaler @ 0x557828b93480] [swscaler @ 0x557828d9cc00] deprecated pixel format used, make sure you did set range correctly
[2022-11-17 17:15:06] ffmpeg.catgenie1.detect        ERROR   : [swscaler @ 0x557828b93480] [swscaler @ 0x557828dd54c0] deprecated pixel format used, make sure you did set range correctly
[2022-11-17 17:15:06] ffmpeg.catgenie1.detect        ERROR   : [swscaler @ 0x557828b93480] [swscaler @ 0x557828e0dd80] deprecated pixel format used, make sure you did set range correctly
[2022-11-17 17:15:06] ffmpeg.catgenie1.detect        ERROR   : [swscaler @ 0x557828b93480] [swscaler @ 0x557828be77c0] deprecated pixel format used, make sure you did set range correctly
[2022-11-17 17:15:06] ffmpeg.catgenie1.detect        ERROR   : [swscaler @ 0x557828b93480] [swscaler @ 0x557828ba1280] deprecated pixel format used, make sure you did set range correctly
[2022-11-17 17:15:06] ffmpeg.catgenie1.detect        ERROR   : [swscaler @ 0x557828b93480] [swscaler @ 0x557828c03200] deprecated pixel format used, make sure you did set range correctly
[2022-11-17 17:15:06] ffmpeg.catgenie1.detect        ERROR   : [swscaler @ 0x557828b93480] [swscaler @ 0x557828ca1640] deprecated pixel format used, make sure you did set range correctly
[2022-11-17 17:15:06] ffmpeg.catgenie1.detect        ERROR   : [swscaler @ 0x557828b93480] [swscaler @ 0x557828c78300] deprecated pixel format used, make sure you did set range correctly
[2022-11-17 17:15:06] ffmpeg.catgenie1.detect        ERROR   : [swscaler @ 0x557828b93480] [swscaler @ 0x557828c4af40] deprecated pixel format used, make sure you did set range correctly
[2022-11-17 17:15:06] ffmpeg.catgenie1.detect        ERROR   : [swscaler @ 0x557828b93480] [swscaler @ 0x557828e40f00] deprecated pixel format used, make sure you did set range correctly
[2022-11-17 17:15:06] ffmpeg.catgenie1.detect        ERROR   : [swscaler @ 0x557828b93480] [swscaler @ 0x557828cec6c0] deprecated pixel format used, make sure you did set range correctly
[2022-11-17 17:15:06] ffmpeg.catgenie1.detect        ERROR   : [swscaler @ 0x557828b93480] [swscaler @ 0x557828d25b00] deprecated pixel format used, make sure you did set range correctly
[2022-11-17 17:15:06] ffmpeg.catgenie1.detect        ERROR   : [swscaler @ 0x557828b93480] [swscaler @ 0x557828d5e3c0] deprecated pixel format used, make sure you did set range correctly
[2022-11-17 17:15:06] ffmpeg.catgenie1.detect        ERROR   : [swscaler @ 0x557828b93480] [swscaler @ 0x557828d96c80] deprecated pixel format used, make sure you did set range correctly
[2022-11-17 17:15:06] ffmpeg.catgenie1.detect        ERROR   : [swscaler @ 0x557828b93480] [swscaler @ 0x557828dcf540] deprecated pixel format used, make sure you did set range correctly
[2022-11-17 17:15:06] ffmpeg.catgenie1.detect        ERROR   : [swscaler @ 0x557828b93480] [swscaler @ 0x557828e07e00] deprecated pixel format used, make sure you did set range correctly
[2022-11-17 17:15:06] ffmpeg.catgenie1.detect        ERROR   : [swscaler @ 0x557828b93480] [swscaler @ 0x557828be77c0] deprecated pixel format used, make sure you did set range correctly
[2022-11-17 17:15:06] ffmpeg.catgenie1.detect        ERROR   : [swscaler @ 0x557828b93480] [swscaler @ 0x557828ba1280] deprecated pixel format used, make sure you did set range correctly
[2022-11-17 17:15:06] ffmpeg.catgenie1.detect        ERROR   : [swscaler @ 0x557828b93480] [swscaler @ 0x557828c03200] deprecated pixel format used, make sure you did set range correctly
[2022-11-17 17:15:06] ffmpeg.catgenie1.detect        ERROR   : [swscaler @ 0x557828b93480] [swscaler @ 0x557828ca1640] deprecated pixel format used, make sure you did set range correctly
[2022-11-17 17:15:06] ffmpeg.catgenie1.detect        ERROR   : [swscaler @ 0x557828b93480] [swscaler @ 0x557828c78300] deprecated pixel format used, make sure you did set range correctly
[2022-11-17 17:15:06] ffmpeg.catgenie1.detect        ERROR   : [swscaler @ 0x557828b93480] [swscaler @ 0x557828c4af40] deprecated pixel format used, make sure you did set range correctly
[2022-11-17 17:15:06] ffmpeg.catgenie1.detect        ERROR   : [swscaler @ 0x557828b93480] [swscaler @ 0x557828e40f00] deprecated pixel format used, make sure you did set range correctly
[2022-11-17 17:15:06] ffmpeg.catgenie1.detect        ERROR   : [swscaler @ 0x557828b93480] [swscaler @ 0x557828cec6c0] deprecated pixel format used, make sure you did set range correctly
[2022-11-17 17:15:06] ffmpeg.catgenie1.detect        ERROR   : [swscaler @ 0x557828b93480] [swscaler @ 0x557828d24f80] deprecated pixel format used, make sure you did set range correctly
[2022-11-17 17:15:06] ffmpeg.catgenie1.detect        ERROR   : [swscaler @ 0x557828b93480] [swscaler @ 0x557828d5e3c0] deprecated pixel format used, make sure you did set range correctly
[2022-11-17 17:15:06] ffmpeg.catgenie1.detect        ERROR   : [swscaler @ 0x557828b93480] [swscaler @ 0x557828d96100] deprecated pixel format used, make sure you did set range correctly
[2022-11-17 17:15:06] ffmpeg.catgenie1.detect        ERROR   : [swscaler @ 0x557828b93480] [swscaler @ 0x557828dcf540] deprecated pixel format used, make sure you did set range correctly
[2022-11-17 17:15:06] ffmpeg.catgenie1.detect        ERROR   : [swscaler @ 0x557828b93480] [swscaler @ 0x557828e07e00] deprecated pixel format used, make sure you did set range correctly
[2022-11-17 17:15:06] ffmpeg.catgenie1.detect        ERROR   : More than 1000 frames duplicated
[2022-11-17 17:15:06] ffmpeg.catgenie1.detect        ERROR   : More than 10000 frames duplicated
[2022-11-17 17:15:06] ffmpeg.catgenie1.detect        ERROR   : [NULL @ 0x557827ca2300] missing picture in access unit with size 76
[2022-11-17 17:15:06] ffmpeg.catgenie1.detect        ERROR   : [h264 @ 0x557828007f40] no frame!
[2022-11-17 17:15:06] ffmpeg.catgenie1.detect        ERROR   : [h264 @ 0x5578280d71c0] cbp too large (3199971767) at 6 7
[2022-11-17 17:15:06] ffmpeg.catgenie1.detect        ERROR   : [h264 @ 0x5578280d71c0] error while decoding MB 6 7
[2022-11-17 17:15:06] ffmpeg.catgenie1.detect        ERROR   : [NULL @ 0x557827ca2300] missing picture in access unit with size 2772
[2022-11-17 17:15:06] ffmpeg.catgenie1.detect        ERROR   : [h264 @ 0x5578281a6440] No start code is found.
[2022-11-17 17:15:06] ffmpeg.catgenie1.detect        ERROR   : [h264 @ 0x5578281a6440] Error splitting the input into NAL units.
[2022-11-17 17:15:06] ffmpeg.catgenie1.detect        ERROR   : rtsp:https://viewer:[email protected]:554/axis-media/media.amp: Connection timed out
[2022-11-17 17:15:06] ffmpeg.catgenie1.detect        ERROR   : Error while decoding stream #0:0: Invalid data found when processing input
[2022-11-17 17:15:06] ffmpeg.catgenie1.detect        ERROR   : rtsp:https://viewer:[email protected]:554/axis-media/media.amp: corrupt decoded frame in stream 0
[2022-11-17 17:15:06] ffmpeg.catgenie1.detect        ERROR   : Error while decoding stream #0:0: Invalid data found when processing input
[2022-11-17 17:15:06] ffmpeg.catgenie1.detect        ERROR   : rtsp:https://viewer:[email protected]:554/axis-media/media.amp: Connection timed out
[2022-11-17 17:21:46] watchdog.catgenie1             INFO    : No frames received from catgenie1 in 20 seconds. Exiting ffmpeg...
[2022-11-17 17:21:46] watchdog.catgenie1             INFO    : Waiting for ffmpeg to exit gracefully...
[2022-11-17 17:22:16] watchdog.catgenie1             INFO    : FFmpeg didnt exit. Force killing...
[2022-11-17 17:22:16] frigate.video                  ERROR   : catgenie1: Unable to read frames from ffmpeg process.
[2022-11-17 17:22:16] frigate.video                  ERROR   : catgenie1: ffmpeg process is not running. exiting capture thread...
[2022-11-17 17:22:18] frigate.record                 WARNING : Discarding a corrupt recording segment: {'cache_path': '/tmp/cache/sideyard-20221117172116.mp4', 'start_time': datetime.datetime(2022, 11, 17, 17, 21, 16)}
[2022-11-17 17:22:26] watchdog.catgenie1             ERROR   : Ffmpeg process crashed unexpectedly for catgenie1.
[2022-11-17 17:22:26] watchdog.catgenie1             ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
[2022-11-17 17:22:26] ffmpeg.catgenie1.detect        ERROR   : [segment @ 0x563bf296dc40] Timestamps are unset in a packet for stream 0. This is deprecated and will stop working in the future. Fix your code to set the timestamps properly
[2022-11-17 17:22:26] ffmpeg.catgenie1.detect        ERROR   : [h264 @ 0x563bf2a6e840] Failed setup for format vaapi: hwaccel initialisation returned error.
[2022-11-17 17:22:26] ffmpeg.catgenie1.detect        ERROR   : [segment @ 0x563bf296dc40] Non-monotonous DTS in output stream 0:0; previous: 0, current: 0; changing to 1. This may result in incorrect timestamps in the output file.
[2022-11-17 17:22:26] ffmpeg.catgenie1.detect        ERROR   : [swscaler @ 0x563bf384c8c0] [swscaler @ 0x563bf385ae40] deprecated pixel format used, make sure you did set range correctly
[2022-11-17 17:22:26] ffmpeg.catgenie1.detect        ERROR   : [swscaler @ 0x563bf384c8c0] [swscaler @ 0x563bf38946c0] deprecated pixel format used, make sure you did set range correctly
[2022-11-17 17:22:26] ffmpeg.catgenie1.detect        ERROR   : [swscaler @ 0x563bf384c8c0] [swscaler @ 0x563bf38ccf80] deprecated pixel format used, make sure you did set range correctly
[2022-11-17 17:22:26] ffmpeg.catgenie1.detect        ERROR   : [swscaler @ 0x563bf384c8c0] [swscaler @ 0x563bf3905840] deprecated pixel format used, make sure you did set range correctly
[2022-11-17 17:22:26] ffmpeg.catgenie1.detect        ERROR   : [swscaler @ 0x563bf384c8c0] [swscaler @ 0x563bf393ec80] deprecated pixel format used, make sure you did set range correctly
[2022-11-17 17:22:26] ffmpeg.catgenie1.detect        ERROR   : [swscaler @ 0x563bf384c8c0] [swscaler @ 0x563bf39769c0] deprecated pixel format used, make sure you did set range correctly
[2022-11-17 17:22:26] ffmpeg.catgenie1.detect        ERROR   : [swscaler @ 0x563bf384c8c0] [swscaler @ 0x563bf39afe00] deprecated pixel format used, make sure you did set range correctly
[2022-11-17 17:22:26] ffmpeg.catgenie1.detect        ERROR   : [swscaler @ 0x563bf384c8c0] [swscaler @ 0x563bf39e86c0] deprecated pixel format used, make sure you did set range correctly
[2022-11-17 17:22:26] ffmpeg.catgenie1.detect        ERROR   : [swscaler @ 0x563bf384c8c0] [swscaler @ 0x563bf3a20f80] deprecated pixel format used, make sure you did set range correctly
[2022-11-17 17:22:26] ffmpeg.catgenie1.detect        ERROR   : [swscaler @ 0x563bf384c8c0] [swscaler @ 0x563bf3a59840] deprecated pixel format used, make sure you did set range correctly
[2022-11-17 17:22:26] ffmpeg.catgenie1.detect        ERROR   : [swscaler @ 0x563bf384c8c0] [swscaler @ 0x563bf3a92100] deprecated pixel format used, make sure you did set range correctly
[2022-11-17 17:22:26] ffmpeg.catgenie1.detect        ERROR   : [swscaler @ 0x563bf384c8c0] [swscaler @ 0x563bf3aca9c0] deprecated pixel format used, make sure you did set range correctly
[2022-11-17 17:22:26] ffmpeg.catgenie1.detect        ERROR   : [swscaler @ 0x563bf384c8c0] [swscaler @ 0x563bf3b03280] deprecated pixel format used, make sure you did set range correctly
[2022-11-17 17:22:26] ffmpeg.catgenie1.detect        ERROR   : [swscaler @ 0x563bf384c8c0] [swscaler @ 0x563bf385ae40] deprecated pixel format used, make sure you did set range correctly
[2022-11-17 17:22:26] ffmpeg.catgenie1.detect        ERROR   : [swscaler @ 0x563bf384c8c0] [swscaler @ 0x563bf38bc640] deprecated pixel format used, make sure you did set range correctly
[2022-11-17 17:22:26] ffmpeg.catgenie1.detect        ERROR   : [swscaler @ 0x563bf384c8c0] [swscaler @ 0x563bf38880c0] deprecated pixel format used, make sure you did set range correctly
[2022-11-17 17:22:26] ffmpeg.catgenie1.detect        ERROR   : [swscaler @ 0x563bf384c8c0] [swscaler @ 0x563bf3939380] deprecated pixel format used, make sure you did set range correctly
[2022-11-17 17:22:26] ffmpeg.catgenie1.detect        ERROR   : [swscaler @ 0x563bf384c8c0] [swscaler @ 0x563bf390ae40] deprecated pixel format used, make sure you did set range correctly
[2022-11-17 17:22:26] ffmpeg.catgenie1.detect        ERROR   : [swscaler @ 0x563bf384c8c0] [swscaler @ 0x563bf3974e40] deprecated pixel format used, make sure you did set range correctly
[2022-11-17 17:22:26] ffmpeg.catgenie1.detect        ERROR   : [swscaler @ 0x563bf384c8c0] [swscaler @ 0x563bf39ad940] deprecated pixel format used, make sure you did set range correctly
[2022-11-17 17:22:26] ffmpeg.catgenie1.detect        ERROR   : [swscaler @ 0x563bf384c8c0] [swscaler @ 0x563bf39e6fc0] deprecated pixel format used, make sure you did set range correctly
[2022-11-17 17:22:26] ffmpeg.catgenie1.detect        ERROR   : [swscaler @ 0x563bf384c8c0] [swscaler @ 0x563bf3a1f880] deprecated pixel format used, make sure you did set range correctly
[2022-11-17 17:22:26] ffmpeg.catgenie1.detect        ERROR   : [swscaler @ 0x563bf384c8c0] [swscaler @ 0x563bf3a58940] deprecated pixel format used, make sure you did set range correctly
[2022-11-17 17:22:26] ffmpeg.catgenie1.detect        ERROR   : [swscaler @ 0x563bf384c8c0] [swscaler @ 0x563bf3a91240] deprecated pixel format used, make sure you did set range correctly
[2022-11-17 17:22:26] ffmpeg.catgenie1.detect        ERROR   : [swscaler @ 0x563bf384c8c0] [swscaler @ 0x563bf3ac9b00] deprecated pixel format used, make sure you did set range correctly
[2022-11-17 17:22:26] ffmpeg.catgenie1.detect        ERROR   : [swscaler @ 0x563bf384c8c0] [swscaler @ 0x563bf3b023c0] deprecated pixel format used, make sure you did set range correctly
[2022-11-17 17:22:26] ffmpeg.catgenie1.detect        ERROR   : [swscaler @ 0x563bf384c8c0] [swscaler @ 0x563bf385a6c0] deprecated pixel format used, make sure you did set range correctly
[2022-11-17 17:22:26] ffmpeg.catgenie1.detect        ERROR   : [swscaler @ 0x563bf384c8c0] [swscaler @ 0x563bf38bc640] deprecated pixel format used, make sure you did set range correctly
[2022-11-17 17:22:26] ffmpeg.catgenie1.detect        ERROR   : [swscaler @ 0x563bf384c8c0] [swscaler @ 0x563bf38831c0] deprecated pixel format used, make sure you did set range correctly
[2022-11-17 17:22:26] ffmpeg.catgenie1.detect        ERROR   : [swscaler @ 0x563bf384c8c0] [swscaler @ 0x563bf3934ac0] deprecated pixel format used, make sure you did set range correctly
[2022-11-17 17:22:26] ffmpeg.catgenie1.detect        ERROR   : [swscaler @ 0x563bf384c8c0] [swscaler @ 0x563bf3906d40] deprecated pixel format used, make sure you did set range correctly
[2022-11-17 17:22:26] ffmpeg.catgenie1.detect        ERROR   : [swscaler @ 0x563bf384c8c0] [swscaler @ 0x563bf3970980] deprecated pixel format used, make sure you did set range correctly
[2022-11-17 17:22:26] ffmpeg.catgenie1.detect        ERROR   : [swscaler @ 0x563bf384c8c0] [swscaler @ 0x563bf39a9080] deprecated pixel format used, make sure you did set range correctly
[2022-11-17 17:22:26] ffmpeg.catgenie1.detect        ERROR   : [swscaler @ 0x563bf384c8c0] [swscaler @ 0x563bf39e24c0] deprecated pixel format used, make sure you did set range correctly
[2022-11-17 17:22:26] ffmpeg.catgenie1.detect        ERROR   : [swscaler @ 0x563bf384c8c0] [swscaler @ 0x563bf3a1ad80] deprecated pixel format used, make sure you did set range correctly
[2022-11-17 17:22:26] ffmpeg.catgenie1.detect        ERROR   : [swscaler @ 0x563bf384c8c0] [swscaler @ 0x563bf3a53380] deprecated pixel format used, make sure you did set range correctly
[2022-11-17 17:22:26] ffmpeg.catgenie1.detect        ERROR   : [swscaler @ 0x563bf384c8c0] [swscaler @ 0x563bf3a8c800] deprecated pixel format used, make sure you did set range correctly
[2022-11-17 17:22:26] ffmpeg.catgenie1.detect        ERROR   : [swscaler @ 0x563bf384c8c0] [swscaler @ 0x563bf3ac50c0] deprecated pixel format used, make sure you did set range correctly
[2022-11-17 17:22:26] ffmpeg.catgenie1.detect        ERROR   : [swscaler @ 0x563bf384c8c0] [swscaler @ 0x563bf3afd980] deprecated pixel format used, make sure you did set range correctly
[2022-11-17 17:22:26] ffmpeg.catgenie1.detect        ERROR   : [swscaler @ 0x563bf384c8c0] [swscaler @ 0x563bf385a6c0] deprecated pixel format used, make sure you did set range correctly
[2022-11-17 17:22:26] ffmpeg.catgenie1.detect        ERROR   : [swscaler @ 0x563bf384c8c0] [swscaler @ 0x563bf38bc640] deprecated pixel format used, make sure you did set range correctly
[2022-11-17 17:22:26] ffmpeg.catgenie1.detect        ERROR   : [swscaler @ 0x563bf384c8c0] [swscaler @ 0x563bf38831c0] deprecated pixel format used, make sure you did set range correctly
[2022-11-17 17:22:26] ffmpeg.catgenie1.detect        ERROR   : [swscaler @ 0x563bf384c8c0] [swscaler @ 0x563bf3934ac0] deprecated pixel format used, make sure you did set range correctly
[2022-11-17 17:22:26] ffmpeg.catgenie1.detect        ERROR   : [swscaler @ 0x563bf384c8c0] [swscaler @ 0x563bf3906d40] deprecated pixel format used, make sure you did set range correctly
[2022-11-17 17:22:26] ffmpeg.catgenie1.detect        ERROR   : [swscaler @ 0x563bf384c8c0] [swscaler @ 0x563bf3970980] deprecated pixel format used, make sure you did set range correctly
[2022-11-17 17:22:26] ffmpeg.catgenie1.detect        ERROR   : [swscaler @ 0x563bf384c8c0] [swscaler @ 0x563bf39a9080] deprecated pixel format used, make sure you did set range correctly
[2022-11-17 17:22:26] ffmpeg.catgenie1.detect        ERROR   : [swscaler @ 0x563bf384c8c0] [swscaler @ 0x563bf39e1940] deprecated pixel format used, make sure you did set range correctly
[2022-11-17 17:22:26] ffmpeg.catgenie1.detect        ERROR   : [swscaler @ 0x563bf384c8c0] [swscaler @ 0x563bf3a1ad80] deprecated pixel format used, make sure you did set range correctly
[2022-11-17 17:22:26] ffmpeg.catgenie1.detect        ERROR   : [swscaler @ 0x563bf384c8c0] [swscaler @ 0x563bf3a52a00] deprecated pixel format used, make sure you did set range correctly
[2022-11-17 17:22:26] ffmpeg.catgenie1.detect        ERROR   : [swscaler @ 0x563bf384c8c0] [swscaler @ 0x563bf3a8c2c0] deprecated pixel format used, make sure you did set range correctly
[2022-11-17 17:22:26] ffmpeg.catgenie1.detect        ERROR   : [swscaler @ 0x563bf384c8c0] [swscaler @ 0x563bf3ac4b80] deprecated pixel format used, make sure you did set range correctly
[2022-11-17 17:22:26] ffmpeg.catgenie1.detect        ERROR   : [swscaler @ 0x563bf384c8c0] [swscaler @ 0x563bf3afd440] deprecated pixel format used, make sure you did set range correctly
[2022-11-17 17:22:26] ffmpeg.catgenie1.detect        ERROR   : [h264 @ 0x563bf35a7cc0] Invalid level prefix
[2022-11-17 17:22:26] ffmpeg.catgenie1.detect        ERROR   : [h264 @ 0x563bf35a7cc0] error while decoding MB 37 22
[2022-11-17 17:22:26] ffmpeg.catgenie1.detect        ERROR   : rtsp:https://viewer:[email protected]:554/axis-media/media.amp: Connection timed out
[2022-11-17 17:22:26] ffmpeg.catgenie1.detect        ERROR   : [rtsp @ 0x563bf2954fc0] CSeq 18 expected, 0 received.
[2022-11-17 17:44:26] frigate.record                 WARNING : Unable to find file from recordings database: /media/frigate/recordings/2022-11/07/23/driveway2/53.24.mp4
[2022-11-17 18:44:27] frigate.record                 WARNING : Unable to find file from recordings database: /media/frigate/recordings/2022-11/07/23/driveway2/53.34.mp4
Fatal Python error: Bus error

Thread 0x00007f0ac27f56c0 (most recent call first):
  File "/usr/lib/python3.9/threading.py", line 312 in wait
  File "/usr/lib/python3.9/multiprocessing/queues.py", line 233 in _feed
  File "/usr/lib/python3.9/threading.py", line 892 in run
  File "/usr/lib/python3.9/threading.py", line 954 in _bootstrap_inner
  File "/usr/lib/python3.9/threading.py", line 912 in _bootstrap

Current thread 0x00007f0ac4ff66c0 (most recent call first):
  File "/opt/frigate/frigate/video.py", line 168 in capture_frames
  File "/opt/frigate/frigate/video.py", line 306 in run
  File "/usr/lib/python3.9/threading.py", line 954 in _bootstrap_inner
  File "/usr/lib/python3.9/threading.py", line 912 in _bootstrap

Thread 0x00007f0acb7f76c0 (most recent call first):
  File "/usr/lib/python3.9/multiprocessing/synchronize.py", line 261 in wait
  File "/usr/lib/python3.9/multiprocessing/synchronize.py", line 349 in wait
  File "/opt/frigate/frigate/video.py", line 232 in run
  File "/usr/lib/python3.9/threadingFatal Python error: .pyBus error"

, line 954 in _bootstrThread 0xa00007f0ad3ffc6c0p (most recent call first):
_i  File n"ne/ru
sr  File /"li/b/upsr/liybth/opynt3ho.9n/t3h.9r/etahdrienagdi.npyg."p, line y312 in "w, line a912it in
_  File b"o/outssrt/ralpi
b
/Thread 0xpyt00007f0acdff86c0h (most recent call first):
on3.9/mul  File t"ip/roopcet/ssfirnigga/tqeu/efurigate/leog.py", line 64s in r.puyn"
, line 233  File  in _"f/eueds
r  File /"l/iub/spyrthon3.9/threading/.pyl"i, line b954 in /_pybtohotosnt3.r9a/tphr_eiandnienrg.
py  File ""/, line u892s in rr/ulni
b  File /"p/yutshonr3./9l/itbh/rpyetadhionn3g..p9y/t"h, line r912e in a_dbiootstnrapg
.
Thread 0xpy"00007f0ade546740, line  (most recent call first):
  File 954" in /_ubsootr/sltirba/pp_ythion3.n9n/etr
h  File re"a/udsinrg./plyi"b, line /p1049y in t_hwoani3t_.f9or_t/stthraetaed_ilnocgk.
p  File y""/, line 912u in _sbro/oltisb/trpaypt
h
oCurrent thread 0xn00007f0ac4ff66c03 (most recent call first):
.  File 9"//tohrpetad/infrgi.gpay"t, line e1033/f in rjiogiatn
e  File /"v/iodpeto/.fpry"i, line ga168 in tce/afrpitugraet_ef/rvaimedseo
.  File "py", line 337/ in copatp/ftruirgaet_ce/afmreigratae
/vide  File "/usr/lib/python3.9/omu.ltpiyp"r, line oc306e in ssriunn
g/  File proce"s/su.spry/l"ib, line /p108y in throunn3
.9/t  File hre"a/duisnrg/.lpiyb"/pyt, line h954 in o_nb3o.o9ts/tmrualpt_iipnnreorc
es  File s"i/nugs/rp/rloicbes/s.py"py, line th315o in n_3b.o9o/tthrsetardaipng
.py", line 912 in _  File b"oo/tusstrr/alpi
b
Thread 0x/00007f0ac27f56c0p (most recent call first):
y  File t"hon3./9u/smru/lltiibp/ropcytehsosin3n.g/pope9n/_tfhoreradki.npgy."p, line 71 in _lay"u, line n312 in cwha
it
  File "/  File us"r//ulisbr//lpiytb/hpyont3h.o9n/3m.u9l/tmuilptiprocessrinog/cpoepsesn_infgo/rquke.upeys"., line py19" in , line _233_ in i_nfiete_d_

  File   File ""//usr/lib/pythouns3r./9l/imbu/lptyitphroocne3s.s9i/ntgh/rceoandtienxgt.p.y"p, line y"892 in , line r277u in _Popen
  File "/usr/nl
i  File b"//puystrh/olni3b./9p/ymtuhlotni3p.r9o/tchersesaidnign/cgo.ntext.py"p, line y224" in , line _954P in op_ebno
otst  File r"a/pu_sirn/nleri
b  File /p"yt/huosrn/3.l9/imbu/lptyitphroonc3e.s9s/itngh/rperaodciesnsg.p.yp"y, line "121, line  in 912s in t_aborot
ts  File t"r/aop

Thread 0x00007f0acb7f76c0 (most recent call first):
  File "/usr/lib/python3.9/mulptiprocessintg//fsryingachtreo/nifzrigate/appe..pyp"y, line "286, line  in 261s in twaaritt_
c  File a"m/eursar/_lcaipbt/uprey_processes
thon3.9/multiproce  File s"s/inogp/ts/yfncrhirogantie/frigate/app.zpey."p, line y364 in "s, line t349a in rwta
it
  File "/opt/frigat  File e"//forpigtat/efrigate//vfriidgeatoe./p_y_m"a, line i232n_ in _r.upny
"  File ", line /16u in s<rmodule>/
lib/pyth  File o"n/3.u9s/r/thlrieba/dipnygt.hpoyn"3, line .9549/runpy.py", line  in 87 in __brouont_scotrdape_i
nner
  File "  File /"/uusr/lisbr//lpiybt/hpoytn3h.o9n/3.r9/utnphyr.epya"d, line i197n in _run_mgo.dpuyl", line e_912a in s__bmoaoitns
trap

Thread 0x00007f0acdff86c0 (most recent call first):
  File "/opt/frigate/frigate/log.py", line 64 in run
  File "/usr/lib/python3.9/threading.py", line 954 in _bootstrap_inner
  File "/usr/lib/python3.9/threading.py", line 912 in _bootstrap

Thread 0x00007f0ade546740 (most recent call first):
  File "/usr/lib/python3.9/threading.py", line 1049 in _wait_for_tstate_lock
  File "/usr/lib/python3.9/threading.py", line 1033 in join
  File "/opt/frigate/frigate/video.py", line 337 in capture_camera
  File "/usr/lib/python3.9/multiprocessing/process.py", line 108 in run
  File "/usr/lib/python3.9/multiprocessing/process.py", line 315 in _bootstrap
  File "/usr/lib/python3.9/multiprocessing/popen_fork.py", line 71 in _launch
  File "/usr/lib/python3.9/multiprocessing/popen_fork.py", line 19 in __init__
  File "/usr/lib/python3.9/multiprocessing/context.py", line 277 in _Popen
  File "/usr/lib/python3.9/multiprocessing/context.py", line 224 in _Popen
  File "/usr/lib/python3.9/multiprocessing/process.py", line 121 in start
  File "/opt/frigate/frigate/app.py", line 286 in start_camera_capture_processes
  File "/opt/frigate/frigate/app.py", line 364 in start
  File "/opt/frigate/frigate/__main__.py", line 16 in <module>
  File "/usr/lib/python3.9/runpy.py", line 87 in _run_code
  File "/usr/lib/python3.9/runpy.py", line 197 in _run_module_as_main
Fatal Python error: Bus error

Thread 0x00007f0ac27f56c0 (most recent call first):
  File "/usr/lib/python3.9/threading.py", line 312 in wait
  File "/usr/lib/python3.9/multiprocessing/queues.py", line 233 in _feed
  File "/usr/lib/python3.9/threading.py", line 892 in run
  File "/usr/lib/python3.9/threading.py", line 954 in _bootstrap_inner
  File "/usr/lib/python3.9/threading.py", line 912 in _bootstrap

Current thread 0x00007f0ac4ff66c0 (most recent call first):
  File "/opt/frigate/frigate/video.py", line 168 in capture_frames
  File "/opt/frigate/frigate/video.py", line 306 in run
  File "/usr/lib/python3.9/threading.py", line 954 in _bootstrap_inner
  File "/usr/lib/python3.9/threading.py", line 912 in _bootstrap

Thread 0x00007f0acb7f76c0 (most recent call first):
  File "/usr/lib/python3.9/multiprocessing/synchronize.py", line 261 in wait
  File "/usr/lib/python3.9/multiprocessing/synchronize.py", line 349 in wait
  File "/opt/frigate/frigate/video.py", line 232 in run
  File "/usr/lib/python3.9/threading.py", line 954 in _bootstrap_inner
  File "/usr/lib/python3.9/threading.py", line 912 in _bootstrap

Thread 0x00007f0acdff86c0 (most recent call first):
  File "/opt/frigate/frigate/log.py", line 64 in run
  File "/usr/lib/python3.9/threading.py", line 954 in _bootstrap_inner
  File "/usr/lib/python3.9/threading.py", line 912 in _bootstrap

Thread 0x00007f0ade546740 (most recent call first):
  File "/usr/lib/python3.9/threading.py", line 1049 in _wait_for_tstate_lock
  File "/usr/lib/python3.9/threading.py", line 1033 in join
  File "/opt/frigate/frigate/video.py", line 337 in capture_camera
  File "/usr/lib/python3.9/multiprocessing/process.py", line 108 in run
  File "/usr/lib/python3.9/multiprocessing/process.py", line 315 in _bootstrap
  File "/usr/lib/python3.9/multiprocessing/popen_fork.py", line 71 in _launch
  File "/usr/lib/python3.9/multiprocessing/popen_fork.py", line 19 in __init__
  File "/usr/lib/python3.9/multiprocessing/context.py", line 277 in _Popen
  File "/usr/lib/python3.9/multiprocessing/context.py", line 224 in _Popen
  File "/usr/lib/python3.9/multiprocessing/process.py", line 121 in start
  File "/opt/frigate/frigate/app.py", line 286 in start_camera_capture_processes
  File "/opt/frigate/frigate/app.py", line 364 in start
  File "/opt/frigate/frigate/__main__.py", line 16 in <module>
  File "/usr/lib/python3.9/runpy.py", line 87 in _run_code
  File "/usr/lib/python3.9/runpy.py", line 197 in _run_module_as_main
Fatal Python error: Bus error

Thread 0x00007f0ac27f56c0 (most recent call first):
  File "/usr/lib/python3.9/threading.py", line 312 in wait
  File "/usr/lib/python3.9/multiprocessing/queues.py", line 233 in _feed
  File "/usr/lib/python3.9/threading.py", line 892 in run
  File "/usr/lib/python3.9/threading.py", line 954 in _bootstrap_inner
  File "/usr/lib/python3.9/threading.py", line 912 in _bootstrap

Current thread 0x00007f0ac4ff66c0 (most recent call first):
  File "/opt/frigate/frigate/video.py", line 168 in capture_frames
  File "/opt/frigate/frigate/video.py", line 306 in run
  File "/usr/lib/python3.9/threading.py", line 954 in _bootstrap_inner
  File "/usr/lib/python3.9/threading.py", line 912 in _bootstrap

Thread 0x00007f0acb7f76c0 (most recent call first):
  File "/usr/lib/python3.9/multiprocessing/synchronize.py", line 261 in wait
  File "/usr/lib/python3.9/multiprocessing/synchronize.py", line 349 in wait
  File "/opt/frigate/frigate/video.py", line 232 in run
  File "/usr/lib/python3.9/threading.py", line 954 in _bootstrap_inner
  File "/usr/lib/python3.9/threading.py", line 912 in _bootstrap

Thread 0x00007f0acdff86c0 (most recent call first):
  File "/opt/frigate/frigate/log.py", line 64 in run
  File "/usr/lib/python3.9/threading.py", line 954 in _bootstrap_inner
  File "/usr/lib/python3.9/threading.py", line 912 in _bootstrap

Thread 0x00007f0ade546740 (most recent call first):
  File "/usr/lib/python3.9/threading.py", line 1049 in _wait_for_tstate_lock
  File "/usr/lib/python3.9/threading.py", line 1033 in join
  File "/opt/frigate/frigate/video.py", line 337 in capture_camera
  File "/usr/lib/python3.9/multiprocessing/process.py", line 108 in run
  File "/usr/lib/python3.9/multiprocessing/process.py", line 315 in _bootstrap
  File "/usr/lib/python3.9/multiprocessing/popen_fork.py", line 71 in _launch
  File "/usr/lib/python3.9/multiprocessing/popen_fork.py", line 19 in __init__
  File "/usr/lib/python3.9/multiprocessing/context.py", line 277 in _Popen
  File "/usr/lib/python3.9/multiprocessing/context.py", line 224 in _Popen
  File "/usr/lib/python3.9/multiprocessing/process.py", line 121 in start
  File "/opt/frigate/frigate/app.py", line 286 in start_camera_capture_processes
  File "/opt/frigate/frigate/app.py", line 364 in start
  File "/opt/frigate/frigate/__main__.py", line 16 in <module>
  File "/usr/lib/python3.9/runpy.py", line 87 in _run_code
  File "/usr/lib/python3.9/runpy.py", line 197 in _run_module_as_main
Fatal Python error: Bus error

Current thread 0x00007f0ac4ff66c0 (most recent call first):
  File "/opt/frigate/frigate/video.py", line 168 in capture_frames
  File "/opt/frigate/frigate/video.py", line 306 in run
  File "/usr/lib/python3.9/threading.py", line 954 in _bootstrap_inner
  File "/usr/lib/python3.9/threading.py", line 912 in _bootstrap

Thread 0x00007f0ad32cc6c0 (most recent call first):
  File "/usr/lib/python3.9/threading.py", line 312 in wait
  File "/usr/lib/python3.9/multiprocessing/queues.py", line 233 in _feed
  File "/usr/lib/python3.9/threading.py", line 892 in run
  File "/usr/lib/python3.9/threading.py", line 954 in _bootstrap_inner
  File "/usr/lib/python3.9/threading.py", line 912 in _bootstrap

Thread 0x00007f0ac27f56c0 (most recent call first):
  File "/usr/lib/python3.9/threading.py", line 312 in wait
  File "/usr/lib/python3.9/multiprocessing/queues.py", line 233 in _feed
  File "/usr/lib/python3.9/threading.py", line 892 in run
  File "/usr/lib/python3.9/threading.py", line 954 in _bootstrap_inner
  File "/usr/lib/python3.9/threading.py", line 912 in _bootstrap

Thread 0x00007f0acb7f76c0 (most recent call first):
  File "/usr/lib/python3.9/multiprocessing/synchronize.py", line 261 in wait
  File "/usr/lib/python3.9/multiprocessing/synchronize.py", line 349 in wait
  File "/opt/frigate/frigate/video.py", line 232 in run
  File "/usr/lib/python3.9/threading.py", line 954 in _bootstrap_inner
  File "/usr/lib/python3.9/threading.py", line 912 in _bootstrap

Thread 0x00007f0acdff86c0 (most recent call first):
  File "/opt/frigate/frigate/log.py", line 64 in run
  File "/usr/lib/python3.9/threading.py", line 954 in _bootstrap_inner
  File "/usr/lib/python3.9/threading.py", line 912 in _bootstrap

Thread 0x00007f0ade546740 (most recent call first):
  File "/usr/lib/python3.9/threading.py", line 1049 in _wait_for_tstate_lock
  File "/usr/lib/python3.9/threading.py", line 1033 in join
  File "/opt/frigate/frigate/video.py", line 337 in capture_camera
  File "/usr/lib/python3.9/multiprocessing/process.py", line 108 in run
  File "/usr/lib/python3.9/multiprocessing/process.py", line 315 in _bootstrap
  File "/usr/lib/python3.9/multiprocessing/popen_fork.py", line 71 in _launch
  File "/usr/lib/python3.9/multiprocessing/popen_fork.py", line 19 in __init__
  File "/usr/lib/python3.9/multiprocessing/context.py", line 277 in _Popen
  File "/usr/lib/python3.9/multiprocessing/context.py", line 224 in _Popen
  File "/usr/lib/python3.9/multiprocessing/process.py", line 121 in start
  File "/opt/frigate/frigate/app.py", line 286 in start_camera_capture_processes
  File "/opt/frigate/frigate/app.py", line 364 in start
  File "/opt/frigate/frigate/__main__.py", line 16 in <module>
  File "/usr/lib/python3.9/runpy.py", line 87 in _run_code
  File "/usr/lib/python3.9/runpy.py", line 197 in _run_module_as_main
Fatal Python error: Bus error

Thread 0x00007f0ac27f56c0 (most recent call first):
  File "/usr/lib/python3.9/threading.py", line 312 in wait
  File "/usr/lib/python3.9/multiprocessing/queues.py", line 233 in _feed
  File "/usr/lib/python3.9/threading.py", line 892 in run
  File "/usr/lib/python3.9/threading.py", line 954 in _bootstrap_inner
  File "/usr/lib/python3.9/threading.py", line 912 in _bootstrap

Current thread 0x00007f0ac4ff66c0 (most recent call first):
  File "/opt/frigate/frigate/video.py", line 168 in capture_frames
  File "/opt/frigate/frigate/video.py", line 306 in run
  File "/usr/lib/python3.9/threading.py", line 954 in _bootstrap_inner
  File "/usr/lib/python3.9/threading.py", line 912 in _bootstrap

Thread 0x00007f0acb7f76c0 (most recent call first):
  File "/usr/lib/python3.9/multiprocessing/synchronize.py", line 261 in wait
  File "/usr/lib/python3.9/multiprocessing/synchronize.py", line 349 in wait
  File "/opt/frigate/frigate/video.py", line 232 in run
  File "/usr/lib/python3.9/threading.py", line 954 in _bootstrap_inner
  File "/usr/lib/python3.9/threading.py", line 912 in _bootstrap

Thread 0x00007f0acdff86c0 (most recent call first):
  File "/opt/frigate/frigate/log.py", line 64 in run
  File "/usr/lib/python3.9/threading.py", line 954 in _bootstrap_inner
  File "/usr/lib/python3.9/threading.py", line 912 in _bootstrap

Thread 0x00007f0ade546740 (most recent call first):
  File "/usr/lib/python3.9/threading.py", line 1049 in _wait_for_tstate_lock
  File "/usr/lib/python3.9/threading.py", line 1033 in join
  File "/opt/frigate/frigate/video.py", line 337 in capture_camera
  File "/usr/lib/python3.9/multiprocessing/process.py", line 108 in run
  File "/usr/lib/python3.9/multiprocessing/process.py", line 315 in _bootstrap
  File "/usr/lib/python3.9/multiprocessing/popen_fork.py", line 71 in _launch
  File "/usr/lib/python3.9/multiprocessing/popen_fork.py", line 19 in __init__
  File "/usr/lib/python3.9/multiprocessing/context.py", line 277 in _Popen
  File "/usr/lib/python3.9/multiprocessing/context.py", line 224 in _Popen
  File "/usr/lib/python3.9/multiprocessing/process.py", line 121 in start
  File "/opt/frigate/frigate/app.py", line 286 in start_camera_capture_processes
  File "/opt/frigate/frigate/app.py", line 364 in start
  File "/opt/frigate/frigate/__main__.py", line 16 in <module>
  File "/usr/lib/python3.9/runpy.py", line 87 in _run_code
  File "/usr/lib/python3.9/runpy.py", line 197 in _run_module_as_main
Fatal Python error: Bus error

Thread 0x00007f0ac27f56c0 (most recent call first):
  File "/usr/lib/python3.9/threading.py", line 312 in wait
  File "/usr/lib/python3.9/multiprocessing/queues.py", line 233 in _feed
  File "/usr/lib/python3.9/threading.py", line 892 in run
  File "/usr/lib/python3.9/threading.py", line 954 in _bootstrap_inner
  File "/usr/lib/python3.9/threading.py", line 912 in _bootstrap

Current thread 0x00007f0ac4ff66c0 (most recent call first):
  File "/opt/frigate/frigate/video.py", line 168 in capture_frames
  File "/opt/frigate/frigate/video.py", line 306 in run
  File "/usr/lib/python3.9/threading.py", line 954 in _bootstrap_inner
  File "/usr/lib/python3.9/threading.py", line 912 in _bootstrap

Thread 0x00007f0acb7f76c0 (most recent call first):
  File "/usr/lib/python3.9/multiprocessing/synchronize.py", line 261 in wait
  File "/usr/lib/python3.9/multiprocessing/synchronize.py", line 349 in wait
  File "/opt/frigate/frigate/video.py", line 232 in run
  File "/usr/lib/python3.9/threading.py", line 954 in _bootstrap_inner
  File "/usr/lib/python3.9/threading.py", line 912 in _bootstrap

Thread 0x00007f0acdff86c0 (most recent call first):
  File "/opt/frigate/frigate/log.py", line 64 in run
  File "/usr/lib/python3.9/threading.py", line 954 in _bootstrap_inner
  File "/usr/lib/python3.9/threading.py", line 912 in _bootstrap

Thread 0x00007f0ade546740 (most recent call first):
  File "/usr/lib/python3.9/threading.py", line 1049 in _wait_for_tstate_lock
  File "/usr/lib/python3.9/threading.py", line 1033 in join
  File "/opt/frigate/frigate/video.py", line 337 in capture_camera
  File "/usr/lib/python3.9/multiprocessing/process.py", line 108 in run
  File "/usr/lib/python3.9/multiprocessing/process.py", line 315 in _bootstrap
  File "/usr/lib/python3.9/multiprocessing/popen_fork.py", line 71 in _launch
  File "/usr/lib/python3.9/multiprocessing/popen_fork.py", line 19 in __init__
  File "/usr/lib/python3.9/multiprocessing/context.py", line 277 in _Popen
  File "/usr/lib/python3.9/multiprocessing/context.py", line 224 in _Popen
  File "/usr/lib/python3.9/multiprocessing/process.py", line 121 in start
  File "/opt/frigate/frigate/app.py", line 286 in start_camera_capture_processes
  File "/opt/frigate/frigate/app.py", line 364 in start
  File "/opt/frigate/frigate/__main__.py", line 16 in <module>
  File "/usr/lib/python3.9/runpy.py", line 87 in _run_code
  File "/usr/lib/python3.9/runpy.py", line 197 in _run_module_as_main
Fatal Python error: Bus error

Thread 0x00007f0ac27f56c0 (most recent call first):
  File "/usr/lib/python3.9/threading.py", line 312 in wait
  File "/usr/lib/python3.9/multiprocessing/queues.py", line 233 in _feed
  File "/usr/lib/python3.9/threading.py", line 892 in run
  File "/usr/lib/python3.9/threading.py", line 954 in _bootstrap_inner
  File "/usr/lib/python3.9/threading.py", line 912 in _bootstrap

Current thread 0x00007f0ac4ff66c0 (most recent call first):
  File "/opt/frigate/frigate/video.py", line 168 in capture_frames
  File "/opt/frigate/frigate/video.py", line 306 in run
  File "/usr/lib/python3.9/threading.py", line 954 in _bootstrap_inner
  File "/usr/lib/python3.9/threading.py", line 912 in _bootstrap

Thread 0x00007f0acb7f76c0 (most recent call first):
  File "/usr/lib/python3.9/multiprocessing/synchronize.py", line 261 in wait
  File "/usr/lib/python3.9/multiprocessing/synchronize.py", line 349 in wait
  File "/opt/frigate/frigate/video.py", line 232 in run
  File "/usr/lib/python3.9/threading.py", line 954 in _bootstrap_inner
  File "/usr/lib/python3.9/threading.py", line 912 in _bootstrap

Thread 0x00007f0acdff86c0 (most recent call first):
  File "/opt/frigate/frigate/log.py", line 64 in run
  File "/usr/lib/python3.9/threading.py", line 954 in _bootstrap_inner
  File "/usr/lib/python3.9/threading.py", line 912 in _bootstrap

Thread 0x00007f0ade546740 (most recent call first):
  File "/usr/lib/python3.9/threading.py", line 1049 in _wait_for_tstate_lock
  File "/usr/lib/python3.9/threading.py", line 1033 in join
  File "/opt/frigate/frigate/video.py", line 337 in capture_camera
  File "/usr/lib/python3.9/multiprocessing/process.py", line 108 in run
  File "/usr/lib/python3.9/multiprocessing/process.py", line 315 in _bootstrap
  File "/usr/lib/python3.9/multiprocessing/popen_fork.py", line 71 in _launch
  File "/usr/lib/python3.9/multiprocessing/popen_fork.py", line 19 in __init__
  File "/usr/lib/python3.9/multiprocessing/context.py", line 277 in _Popen
  File "/usr/lib/python3.9/multiprocessing/context.py", line 224 in _Popen
  File "/usr/lib/python3.9/multiprocessing/process.py", line 121 in start
  File "/opt/frigate/frigate/app.py", line 286 in start_camera_capture_processes
  File "/opt/frigate/frigate/app.py", line 364 in start
  File "/opt/frigate/frigate/__main__.py", line 16 in <module>
  File "/usr/lib/python3.9/runpy.py", line 87 in _run_code
  File "/usr/lib/python3.9/runpy.py", line 197 in _run_module_as_main
Fatal Python error: Bus error

Thread 0x00007f0ac27f56c0 (most recent call first):
  File "/usr/lib/python3.9/threading.py", line 312 in wait
  File "/usr/lib/python3.9/multiprocessing/queues.py", line 233 in _feed
  File "/usr/lib/python3.9/threading.py", line 892 in run
  File "/usr/lib/python3.9/threading.py", line 954 in _bootstrap_inner
  File "/usr/lib/python3.9/threading.py", line 912 in _bootstrap

Current thread 0x00007f0ac4ff66c0 (most recent call first):
  File "/opt/frigate/frigate/video.py", line 168 in capture_frames
  File "/opt/frigate/frigate/video.py", line 306 in run
  File "/usr/lib/python3.9/threading.py", line 954 in _bootstrap_inner
  File "/usr/lib/python3.9/threading.py", line 912 in _bootstrap

Thread 0x00007f0acb7f76c0 (most recent call first):
  File "/usr/lib/python3.9/multiprocessing/synchronize.py", line 261 in wait
  File "/usr/lib/python3.9/multiprocessing/synchronize.py", line 349 in wait
  File "/opt/frigate/frigate/video.py", line 232 in run
  File "/usr/lib/python3.9/threading.py", line 954 in _bootstrap_inner
  File "/usr/lib/python3.9/threading.py", line 912 in _bootstrap

Thread 0x00007f0acdff86c0 (most recent call first):
  File "/opt/frigate/frigate/log.py", line 64 in run
  File "/usr/lib/python3.9/threading.py", line 954 in _bootstrap_inner
  File "/usr/lib/python3.9/threading.py", line 912 in _bootstrap

Thread 0x00007f0ade546740 (most recent call first):
  File "/usr/lib/python3.9/threading.py", line 1049 in _wait_for_tstate_lock
  File "/usr/lib/python3.9/threading.py", line 1033 in join
  File "/opt/frigate/frigate/video.py", line 337 in capture_camera
  File "/usr/lib/python3.9/multiprocessing/process.py", line 108 in run
  File "/usr/lib/python3.9/multiprocessing/process.py", line 315 in _bootstrap
  File "/usr/lib/python3.9/multiprocessing/popen_fork.py", line 71 in _launch
  File "/usr/lib/python3.9/multiprocessing/popen_fork.py", line 19 in __init__
  File "/usr/lib/python3.9/multiprocessing/context.py", line 277 in _Popen
  File "/usr/lib/python3.9/multiprocessing/context.py", line 224 in _Popen
  File "/usr/lib/python3.9/multiprocessing/process.py", line 121 in start
  File "/opt/frigate/frigate/app.py", line 286 in start_camera_capture_processes
  File "/opt/frigate/frigate/app.py", line 364 in start
  File "/opt/frigate/frigate/__main__.py", line 16 in <module>
  File "/usr/lib/python3.9/runpy.py", line 87 in _run_code
  File "/usr/lib/python3.9/runpy.py", line 197 in _run_module_as_main
Fatal Python error: Bus error

Thread 0x00007f0ac27f56c0 (most recent call first):
  File "/usr/lib/python3.9/threading.py", line 312 in wait
  File "/usr/lib/python3.9/multiprocessing/queues.py", line 233 in _feed
  File "/usr/lib/python3.9/threading.py", line 892 in run
  File "/usr/lib/python3.9/threading.py", line 954 in _bootstrap_inner
  File "/usr/lib/python3.9/threading.py", line 912 in _bootstrap

Current thread 0x00007f0ac4ff66c0 (most recent call first):
  File "/opt/frigate/frigate/video.py", line 168 in capture_frames
  File "/opt/frigate/frigate/video.py", line 306 in run
  File "/usr/lib/python3.9/threading.py", line 954 in _bootstrap_inner
  File "/usr/lib/python3.9/threading.py", line 912 in _bootstrap

Thread 0x00007f0acb7f76c0 (most recent call first):
  File "/usr/lib/python3.9/multiprocessing/synchronize.py", line 261 in wait
  File "/usr/lib/python3.9/multiprocessing/synchronize.py", line 349 in wait
  File "/opt/frigate/frigate/video.py", line 232 in run
  File "/usr/lib/python3.9/threading.py", line 954 in _bootstrap_inner
  File "/usr/lib/python3.9/threading.py", line 912 in _bootstrap

Thread 0x00007f0acdff86c0 (most recent call first):
  File "/opt/frigate/frigate/log.py", line 64 in run
  File "/usr/lib/python3.9/threading.py", line 954 in _bootstrap_inner
  File "/usr/lib/python3.9/threading.py", line 912 in _bootstrap

Thread 0x00007f0ade546740 (most recent call first):
  File "/usr/lib/python3.9/threading.py", line 1049 in _wait_for_tstate_lock
  File "/usr/lib/python3.9/threading.py", line 1033 in join
  File "/opt/frigate/frigate/video.py", line 337 in capture_camera
  File "/usr/lib/python3.9/multiprocessing/process.py", line 108 in run
  File "/usr/lib/python3.9/multiprocessing/process.py", line 315 in _bootstrap
  File "/usr/lib/python3.9/multiprocessing/popen_fork.py", line 71 in _launch
  File "/usr/lib/python3.9/multiprocessing/popen_fork.py", line 19 in __init__
  File "/usr/lib/python3.9/multiprocessing/context.py", line 277 in _Popen
  File "/usr/lib/python3.9/multiprocessing/context.py", line 224 in _Popen
  File "/usr/lib/python3.9/multiprocessing/process.py", line 121 in start
  File "/opt/frigate/frigate/app.py", line 286 in start_camera_capture_processes
  File "/opt/frigate/frigate/app.py", line 364 in start
  File "/opt/frigate/frigate/__main__.py", line 16 in <module>
  File "/usr/lib/python3.9/runpy.py", line 87 in _run_code
  File "/usr/lib/python3.9/runpy.py", line 197 in _run_module_as_main
Fatal Python error: Bus error

Thread 0x00007f0ac27f56c0 (most recent call first):
  File "/usr/lib/python3.9/threading.py", line 312 in wait
  File "/usr/lib/python3.9/multiprocessing/queues.py", line 233 in _feed
  File "/usr/lib/python3.9/threading.py", line 892 in run
  File "/usr/lib/python3.9/threading.py", line 954 in _bootstrap_inner
  File "/usr/lib/python3.9/threading.py", line 912 in _bootstrap

Current thread 0x00007f0ac4ff66c0 (most recent call first):
  File "/opt/frigate/frigate/video.py", line 168 in capture_frames
  File "/opt/frigate/frigate/video.py", line 306 in run
  File "/usr/lib/python3.9/threading.py", line 954 in _bootstrap_inner
  File "/usr/lib/python3.9/threading.py", line 912 in _bootstrap

Thread 0x00007f0acb7f76c0 (most recent call first):
  File "/usr/lib/python3.9/multiprocessing/synchronize.py", line 261 in wait
  File "/usr/lib/python3.9/multiprocessing/synchronize.py", line 349 in wait
  File "/opt/frigate/frigate/video.py", line 232 in run
  File "/usr/lib/python3.9/threading.py", line 954 in _bootstrap_inner
  File "/usr/lib/python3.9/threading.py", line 912 in _bootstrap

Thread 0x00007f0acdff86c0 (most recent call first):
  File "/opt/frigate/frigate/log.py", line 64 in run
  File "/usr/lib/python3.9/threading.py", line 954 in _bootstrap_inner
  File "/usr/lib/python3.9/threading.py", line 912 in _bootstrap

Thread 0x00007f0ade546740 (most recent call first):
  File "/usr/lib/python3.9/threading.py", line 1049 in _wait_for_tstate_lock
  File "/usr/lib/python3.9/threading.py", line 1033 in join
  File "/opt/frigate/frigate/video.py", line 337 in capture_camera
  File "/usr/lib/python3.9/multiprocessing/process.py", line 108 in run
  File "/usr/lib/python3.9/multiprocessing/process.py", line 315 in _bootstrap
  File "/usr/lib/python3.9/multiprocessing/popen_fork.py", line 71 in _launch
  File "/usr/lib/python3.9/multiprocessing/popen_fork.py", line 19 in __init__
  File "/usr/lib/python3.9/multiprocessing/context.py", line 277 in _Popen
  File "/usr/lib/python3.9/multiprocessing/context.py", line 224 in _Popen
  File "/usr/lib/python3.9/multiprocessing/process.py", line 121 in start
  File "/opt/frigate/frigate/app.py", line 286 in start_camera_capture_processes
  File "/opt/frigate/frigate/app.py", line 364 in start
  File "/opt/frigate/frigate/__main__.py", line 16 in <module>
  File "/usr/lib/python3.9/runpy.py", line 87 in _run_code
  File "/usr/lib/python3.9/runpy.py", line 197 in _run_module_as_main
Fatal Python error: Bus error

Thread 0x00007f0ac27f56c0 (most recent call first):
  File "/usr/lib/python3.9/threading.py", line 312 in wait
  File "/usr/lib/python3.9/multiprocessing/queues.py", line 233 in _feed
  File "/usr/lib/python3.9/threading.py", line 892 in run
  File "/usr/lib/python3.9/threading.py", line 954 in _bootstrap_inner
  File "/usr/lib/python3.9/threading.py", line 912 in _bootstrap

Current thread 0x00007f0ac4ff66c0 (most recent call first):
  File "/opt/frigate/frigate/video.py", line 168 in capture_frames
  File "/opt/frigate/frigate/video.py", line 306 in run
  File "/usr/lib/python3.9/threading.py", line 954 in _bootstrap_inner
  File "/usr/lib/python3.9/threading.py", line 912 in _bootstrap

Thread 0x00007f0acb7f76c0 (most recent call first):
  File "/usr/lib/python3.9/multiprocessing/synchronize.py", line 261 in wait
  File "/usr/lib/python3.9/multiprocessing/synchronize.py", line 349 in wait
  File "/opt/frigate/frigate/video.py", line 232 in run
  File "/usr/lib/python3.9/threading.py", line 954 in _bootstrap_inner
  File "/usr/lib/python3.9/threading.py", line 912 in _bootstrap

Thread 0x00007f0acdff86c0 (most recent call first):
  File "/opt/frigate/frigate/log.py", line 64 in run
  File "/usr/lib/python3.9/threading.py", line 954 in _bootstrap_inner
  File "/usr/lib/python3.9/threading.py", line 912 in _bootstrap

Thread 0x00007f0ade546740 (most recent call first):
  File "/usr/lib/python3.9/threading.py", line 1049 in _wait_for_tstate_lock
  File "/usr/lib/python3.9/threading.py", line 1033 in join
  File "/opt/frigate/frigate/video.py", line 337 in capture_camera
  File "/usr/lib/python3.9/multiprocessing/process.py", line 108 in run
  File "/usr/lib/python3.9/multiprocessing/process.py", line 315 in _bootstrap
  File "/usr/lib/python3.9/multiprocessing/popen_fork.py", line 71 in _launch
  File "/usr/lib/python3.9/multiprocessing/popen_fork.py", line 19 in __init__
  File "/usr/lib/python3.9/multiprocessing/context.py", line 277 in _Popen
  File "/usr/lib/python3.9/multiprocessing/context.py", line 224 in _Popen
  File "/usr/lib/python3.9/multiprocessing/process.py", line 121 in start
  File "/opt/frigate/frigate/app.py", line 286 in start_camera_capture_processes
  File "/opt/frigate/frigate/app.py", line 364 in start
  File "/opt/frigate/frigate/__main__.py", line 16 in <module>
  File "/usr/lib/python3.9/runpy.py", line 87 in _run_code
  File "/usr/lib/python3.9/runpy.py", line 197 in _run_module_as_main

@NickM-27
Copy link
Sponsor Collaborator

@madasus Python Bus Error is known and covered in our docs: https://docs.frigate.video/faqs#fatal-python-error-bus-error

@madasus
Copy link

madasus commented Nov 18, 2022

thanks - trying that now

@WhistleMaster
Copy link

Please provide error logs of QSV not working

Sure ! Here it is _frigate_logs.txt. A full run, from init to finish.

@NickM-27
Copy link
Sponsor Collaborator

@WhistleMaster thanks, if you run vainfo inside the container what do you see?

@WhistleMaster
Copy link

@NickM-27 I have the following:

error: XDG_RUNTIME_DIR is invalid or not set in the environment.
error: can't connect to X server!
libva info: VA-API version 1.16.0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_16
libva info: va_openDriver() returns 0
vainfo: VA-API version: 1.16 (libva 2.12.0)
vainfo: Driver version: Intel iHD driver for Intel(R) Gen Graphics - 22.6.0 ()
vainfo: Supported profile and entrypoints
      VAProfileNone                   :	VAEntrypointVideoProc
      VAProfileNone                   :	VAEntrypointStats
      VAProfileMPEG2Simple            :	VAEntrypointVLD
      VAProfileMPEG2Simple            :	VAEntrypointEncSlice
      VAProfileMPEG2Main              :	VAEntrypointVLD
      VAProfileMPEG2Main              :	VAEntrypointEncSlice
      VAProfileH264Main               :	VAEntrypointVLD
      VAProfileH264Main               :	VAEntrypointEncSlice
      VAProfileH264Main               :	VAEntrypointFEI
      VAProfileH264Main               :	VAEntrypointEncSliceLP
      VAProfileH264High               :	VAEntrypointVLD
      VAProfileH264High               :	VAEntrypointEncSlice
      VAProfileH264High               :	VAEntrypointFEI
      VAProfileH264High               :	VAEntrypointEncSliceLP
      VAProfileVC1Simple              :	VAEntrypointVLD
      VAProfileVC1Main                :	VAEntrypointVLD
      VAProfileVC1Advanced            :	VAEntrypointVLD
      VAProfileJPEGBaseline           :	VAEntrypointVLD
      VAProfileJPEGBaseline           :	VAEntrypointEncPicture
      VAProfileH264ConstrainedBaseline:	VAEntrypointVLD
      VAProfileH264ConstrainedBaseline:	VAEntrypointEncSlice
      VAProfileH264ConstrainedBaseline:	VAEntrypointFEI
      VAProfileH264ConstrainedBaseline:	VAEntrypointEncSliceLP
      VAProfileHEVCMain               :	VAEntrypointVLD
      VAProfileHEVCMain               :	VAEntrypointEncSlice
      VAProfileHEVCMain               :	VAEntrypointFEI
      VAProfileHEVCMain               :	VAEntrypointEncSliceLP
      VAProfileHEVCMain10             :	VAEntrypointVLD
      VAProfileHEVCMain10             :	VAEntrypointEncSlice
      VAProfileHEVCMain10             :	VAEntrypointEncSliceLP
      VAProfileVP9Profile0            :	VAEntrypointVLD
      VAProfileVP9Profile1            :	VAEntrypointVLD
      VAProfileVP9Profile2            :	VAEntrypointVLD
      VAProfileVP9Profile3            :	VAEntrypointVLD
      VAProfileHEVCMain12             :	VAEntrypointVLD
      VAProfileHEVCMain12             :	VAEntrypointEncSlice
      VAProfileHEVCMain422_10         :	VAEntrypointVLD
      VAProfileHEVCMain422_10         :	VAEntrypointEncSlice
      VAProfileHEVCMain422_12         :	VAEntrypointVLD
      VAProfileHEVCMain422_12         :	VAEntrypointEncSlice
      VAProfileHEVCMain444            :	VAEntrypointVLD
      VAProfileHEVCMain444            :	VAEntrypointEncSliceLP
      VAProfileHEVCMain444_10         :	VAEntrypointVLD
      VAProfileHEVCMain444_10         :	VAEntrypointEncSliceLP
      VAProfileHEVCMain444_12         :	VAEntrypointVLD
      VAProfileHEVCSccMain            :	VAEntrypointVLD
      VAProfileHEVCSccMain            :	VAEntrypointEncSliceLP
      VAProfileHEVCSccMain10          :	VAEntrypointVLD
      VAProfileHEVCSccMain10          :	VAEntrypointEncSliceLP
      VAProfileHEVCSccMain444         :	VAEntrypointVLD
      VAProfileHEVCSccMain444         :	VAEntrypointEncSliceLP
      VAProfileAV1Profile0            :	VAEntrypointVLD
      VAProfileHEVCSccMain444_10      :	VAEntrypointVLD
      VAProfileHEVCSccMain444_10      :	VAEntrypointEncSliceLP

@NickM-27
Copy link
Sponsor Collaborator

@WhistleMaster So you're on the correct version. Your error logs for qsv are different than the original errors here (Input/Output Error, Device Creation Failed (-22)) so it may be unrelated. What version of the driver is on your host and what host OS are you running?

@WhistleMaster
Copy link

@NickM-27 I'm using docker on a debian:

# uname -a
Linux 5.19.0-0.deb11.2-amd64 #1 SMP PREEMPT_DYNAMIC Debian 5.19.11-1~bpo11+1 (2022-10-03) x86_64 GNU/Linux
# vainfo
error: XDG_RUNTIME_DIR not set in the environment.
error: can't connect to X server!
libva info: VA-API version 1.14.0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_10
libva info: va_openDriver() returns 0
vainfo: VA-API version: 1.14 (libva 2.10.0)
vainfo: Driver version: Intel iHD driver for Intel(R) Gen Graphics - 21.1.1 ()
vainfo: Supported profile and entrypoints
      VAProfileNone                   :	VAEntrypointVideoProc
      VAProfileNone                   :	VAEntrypointStats
      VAProfileMPEG2Simple            :	VAEntrypointVLD
      VAProfileMPEG2Simple            :	VAEntrypointEncSlice
      VAProfileMPEG2Main              :	VAEntrypointVLD
      VAProfileMPEG2Main              :	VAEntrypointEncSlice
      VAProfileH264Main               :	VAEntrypointVLD
      VAProfileH264Main               :	VAEntrypointEncSlice
      VAProfileH264Main               :	VAEntrypointFEI
      VAProfileH264Main               :	VAEntrypointEncSliceLP
      VAProfileH264High               :	VAEntrypointVLD
      VAProfileH264High               :	VAEntrypointEncSlice
      VAProfileH264High               :	VAEntrypointFEI
      VAProfileH264High               :	VAEntrypointEncSliceLP
      VAProfileVC1Simple              :	VAEntrypointVLD
      VAProfileVC1Main                :	VAEntrypointVLD
      VAProfileVC1Advanced            :	VAEntrypointVLD
      VAProfileJPEGBaseline           :	VAEntrypointVLD
      VAProfileJPEGBaseline           :	VAEntrypointEncPicture
      VAProfileH264ConstrainedBaseline:	VAEntrypointVLD
      VAProfileH264ConstrainedBaseline:	VAEntrypointEncSlice
      VAProfileH264ConstrainedBaseline:	VAEntrypointFEI
      VAProfileH264ConstrainedBaseline:	VAEntrypointEncSliceLP
      VAProfileHEVCMain               :	VAEntrypointVLD
      VAProfileHEVCMain               :	VAEntrypointEncSlice
      VAProfileHEVCMain               :	VAEntrypointFEI
      VAProfileHEVCMain               :	VAEntrypointEncSliceLP
      VAProfileHEVCMain10             :	VAEntrypointVLD
      VAProfileHEVCMain10             :	VAEntrypointEncSlice
      VAProfileHEVCMain10             :	VAEntrypointEncSliceLP
      VAProfileVP9Profile0            :	VAEntrypointVLD
      VAProfileVP9Profile1            :	VAEntrypointVLD
      VAProfileVP9Profile2            :	VAEntrypointVLD
      VAProfileVP9Profile3            :	VAEntrypointVLD
      VAProfileHEVCMain12             :	VAEntrypointVLD
      VAProfileHEVCMain12             :	VAEntrypointEncSlice
      VAProfileHEVCMain422_10         :	VAEntrypointVLD
      VAProfileHEVCMain422_10         :	VAEntrypointEncSlice
      VAProfileHEVCMain422_12         :	VAEntrypointVLD
      VAProfileHEVCMain422_12         :	VAEntrypointEncSlice
      VAProfileHEVCMain444            :	VAEntrypointVLD
      VAProfileHEVCMain444            :	VAEntrypointEncSliceLP
      VAProfileHEVCMain444_10         :	VAEntrypointVLD
      VAProfileHEVCMain444_10         :	VAEntrypointEncSliceLP
      VAProfileHEVCMain444_12         :	VAEntrypointVLD
      VAProfileHEVCSccMain            :	VAEntrypointVLD
      VAProfileHEVCSccMain            :	VAEntrypointEncSliceLP
      VAProfileHEVCSccMain10          :	VAEntrypointVLD
      VAProfileHEVCSccMain10          :	VAEntrypointEncSliceLP
      VAProfileHEVCSccMain444         :	VAEntrypointVLD
      VAProfileHEVCSccMain444         :	VAEntrypointEncSliceLP
      VAProfileAV1Profile0            :	VAEntrypointVLD
      VAProfileHEVCSccMain444_10      :	VAEntrypointVLD
      VAProfileHEVCSccMain444_10      :	VAEntrypointEncSliceLP

@NickM-27
Copy link
Sponsor Collaborator

So the driver on your host is quite outdated (21.1.1) versus 22.6 in the container so it seems in your case you need to update the driver on your host

@WhistleMaster
Copy link

@NickM-27 You're right ! Just updated to 22.6.1 on the host (from debian sid repo) but I get the same error. Shoud I create a new issue ?

@NickM-27
Copy link
Sponsor Collaborator

Most likely yes

@loe
Copy link

loe commented Dec 2, 2022

yes it works - no errors at all. Processor usage still seems quite high

Same here with Alder Lake i5-12500T using crzynik/frigate:testing-driver image: vaapi is working but not qsv, and with vaapi, cpu usage is still high.

hwaccel_args: -hwaccel vaapi -vaapi_device /dev/dri/renderD128 is working but with high cpu usage. hwaccel_args: -c:v h264_qsv is not working.

@loe what hwaccel_args are you using ?

hwaccel_args: -c:v h264_qsv

My CPU usage is still higher than I remember on older systems; but I do also see usage on intel_gpu_top.

@madasus
Copy link

madasus commented Jan 5, 2023

I tested the upgrade to [0.12.0-beta1] and ffmpeg went back to crashing. Do you know if the changes from the testing-driver image were included in the 12.0-beta1 docker?

@NickM-27
Copy link
Sponsor Collaborator

NickM-27 commented Jan 5, 2023

I tested the upgrade to [0.12.0-beta1] and ffmpeg went back to crashing. Do you know if the changes from the testing-driver image were included in the 12.0-beta1 docker?

yes they were included, if I had to guess the crashing is unrelated to the driver

@madasus
Copy link

madasus commented Jan 5, 2023

going into the debug and then trying to run the ffmpeg command for one of the cameras manually inside the container yields this

ffmpeg -hide_banner -loglevel warning -c:v h264_qsv -user_agent FFmpeg Frigate/0.12.0-53d39a1 -avoid_negative_ts make_zero -fflags +genpts+discardcorrupt -rtsp_transport tcp -timeout 5000000 -use_wallclock_as_timestamps 1 -i "XXX/cam/realmonitor?channel=1&subtype=0" -f segment -segment_time 10 -segment_format mp4 -reset_timestamps 1 -strftime 1 -c copy -an /tmp/cache/backyardandpool1-%Y%m%d%H%M%S.mp4 -r 5 -s {} pipe:

[NULL @ 0x555cfc411840] Unable to find a suitable output format for 'Frigate/0.12.0-53d39a1'
Frigate/0.12.0-53d39a1: Invalid argument

I also have a few older cameras that were using VAAPI

(in config i added this line
hwaccel_args: -hwaccel vaapi -hwaccel_device /dev/dri/renderD128 -hwaccel_output_format yuv420p)
)

Here is the ffmpeg debug for these with a slightly different error

ffmpeg -hide_banner -loglevel warning -hwaccel vaapi -hwaccel_device /dev/dri/renderD128 -hwaccel_output_format yuv420p -user_agent FFmpeg Frigate/0.12.0-53d39a1 -avoid_negative_ts make_zero -fflags +genpts+discardcorrupt -rtsp_transport tcp -timeout 5000000 -use_wallclock_as_timestamps 1 -i "XXX/cam/realmonitor?channel=1&subtype=0" -f segment -segment_time 10 -segment_format mp4 -reset_timestamps 1 -strftime 1 -c copy -an /tmp/cache/attic1-%Y%m%d%H%M%S.mp4 -r 5 -s {} pipe:

Option hwaccel (use HW accelerated decoding) cannot be applied to output url Frigate/0.12.0-53d39a1 -- you are trying to apply an input option to an output file or vice versa. Move this option before the file it belongs to.
Error parsing options for output file Frigate/0.12.0-53d39a1.
Error opening output files: Invalid argument

@NickM-27
Copy link
Sponsor Collaborator

NickM-27 commented Jan 5, 2023

I'd suggest making your own issue answering all the questions, this is entirely unrelated to this issue

@NickM-27
Copy link
Sponsor Collaborator

NickM-27 commented Jan 5, 2023

also going to close this as it is fixed in the beta

@NickM-27 NickM-27 closed this as completed Jan 5, 2023
@kub3let
Copy link

kub3let commented Jan 29, 2023

using frigate:0.12.0-beta2 instead of frigate:stable seems to work for me

@sanderlv
Copy link

BUMP - read all thread. Using NUC12. What is it exactly I need to do?

@blakeblackshear
Copy link
Owner

This is an old issue on an old version of frigate, so the solutions here aren't relevant to the current version.

@sanderlv
Copy link

I have the latest version and the issue. Where should I go?

@blakeblackshear
Copy link
Owner

Create a new issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests