ffmpeg issues on 64-bit Pi 4
See original GitHub issueDescribe the bug Hardware acceleration is not working on my Pi4 using the raspi Debian Arm64 image. (not raspbian).
Version of frigate Latest aarch64 docker image
Config file Include your full config file wrapped in triple back ticks.
detectors:
42 coral:
41 type: edgetpu
40 device: usb
39
38 mqtt:
37 host: mosquitto.ansible.house
36 topic_prefix: frigate
35
34 ffmpeg:
33 hwaccel_args:
32 - -c:v
31 - h264_v4l2m2m
30
29 objects:
28 track:
27 - person
26 filters:
25 person:
24 threshold: 0.7
23 min_area: 0
22
21 cameras:
20 driveway:
19 ffmpeg:
18 inputs:
17 - path: rtsp://192.168.1.247:7447/kxsyIbFo1g6kEX6Z
16 roles:
15 - detect
14 - clips
13 - rtmp
12 fps: 5
11 width: 1920
10 height: 1080
9 clips:
8 enabled: true
7
6 backporch:
5 ffmpeg:
4 inputs:
3 - path: rtsp://192.168.1.247:7447/jlrMUN3PUvQRiLhz
2 roles:
1 - detect
0 - clips
1 - rtmp
2 fps: 5
3 width: 1920
32 height: 1080
31 clips:
30 enabled: true
29
28 sidedoor:
27 ffmpeg:
26 inputs:
25 - path: rtsp://192.168.1.247:7447/TxFfDQWA6nQyleT2
24 roles:
23 - detect
22 - clips
21 - rtmp
20 fps: 5
19 width: 1920
18 height: 1080
17 clips:
16 enabled: true
15
14 frontdoor:
13 ffmpeg:
12 inputs:
11 - path: rtsp://192.168.1.247:7447/BFkoDhlFATcRc8DM
10 roles:
9 - detect
8 - clips
7 - rtmp
6 fps: 5
5 width: 1600
4 height: 1200
3 clips:
2 enabled: true
1
0 clips:
1 retain:
2 default: 30
Frigate container logs
ffmpeg.sidedoor.detect ERROR : [h264_v4l2m2m @ 0xaaaaecca5090] Could not find a valid device
ffmpeg.sidedoor.detect ERROR : [h264_v4l2m2m @ 0xaaaaecca5090] can't configure decoder
Frigate stats
Wont run long enough without acceleration to get this.
Computer Hardware
- OS: raspi.debain.org pi4 arm64-bit image
- Install method: Docker
- Coral Version: USB
- Network Setup: wired 1GB
Camera Info:
- Manufacturer: Unifi
- Model: G3’s x4
- Resolution: 1080p
- FPS: 5
Additional context I recompiled ffmpeg with libx264 support but still no go.
Issue Analytics
- State:
- Created 3 years ago
- Comments:53 (3 by maintainers)
Top Results From Across the Web
FFMPEG issues in OS 7.0 or newer on Raspberry Pi 4 64bit
It seems a recent kernel update is causing issues with ffmpeg hardware acceleration for Rpi 4 users. Downgrading the kernel fixes the problem, ......
Read more >[SOLVED] how to install 64 bit FFmpeg? - Raspberry Pi Forums
my goal is to use the h264_v4l2m2m for hardware-accelerated encoding using 64 bit FFmpeg v4.3 (under the assumption that my current OS is ......
Read more >Compiling FFmpeg on the Raspberry Pi - Pi My Life Up
Learn how to compile FFmpeg on the Raspberry Pi. FFmpeg is a collection of libraries for handling video and audio codecs that is...
Read more >Hardware Accelerated Video Encoding on the Raspberry Pi 4 ...
In this post, I'll cover how to get FFmpeg setup to use the Pi 4's video encoding hardware on a 64-bit OS and...
Read more >Video encoding on Raspberry Pi 4 via ffmpeg and ...
Hardware acceleration seems to work, as it encodes at ~130 fps. However, the resulting file is corrupted and can't be played. What am...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
It used the standard apt ffmpeg, the fix for hwaccel on 64bit was using a new ffmpeg version with this fix and the fix for 32bit hwaccel was just to include extra dependency / metadata.
You can see https://github.com/blakeblackshear/frigate/issues/2030#issuecomment-972503838 which shows another user that found RPi kernel / OS used affects this as well.
one other thing i found was, that the binary in 3de1948 has this patch included, which is missing on the other binaries: https://github.com/Miouyouyou/FFmpeg-V4L2-Request