[Support]: Multiple ffmpeg errors and ffmpeg crashing after upgrade to 0.16 #19565
-
Checklist
Describe the problem you are havingAfter upgrade 0.15 to 0.16 I have a lot of errors from ffmpeg Steps to reproduce
Version0.16 In which browser(s) are you experiencing the issue with?Last Chrome Frigate config filemqtt:
host: 192.168.0.160
user: yyy
password: xxx
ffmpeg:
hwaccel_args: preset-vaapi
input_args: preset-rtsp-restream
output_args:
record: preset-record-generic-audio-aac
logger:
default: info
logs:
frigate.mqtt: error
detectors:
coral:
type: edgetpu
device: usb
go2rtc:
streams:
tapo_salo_high:
- rtsp://yyy:xxx@192.168.2.134:554/stream1
- ffmpeg:tapo_salo_high#audio=opus
tapo_dormitori_high:
- rtsp://yyy:xxx@192.168.2.135:554/stream1
- ffmpeg:tapo_dormitori_high#audio=opus
tapo_escritori_high:
- rtsp://yyy:xxx@192.168.2.136:554/stream1
- ffmpeg:tapo_escritori_high#audio=opus
webrtc:
candidates:
- 192.168.0.161:8555
- stun:8555
record:
enabled: true
retain:
days: 1
mode: motion
alerts:
retain:
days: 1
detections:
retain:
days: 1
snapshots:
enabled: true
retain:
default: 1
objects:
track:
- cat
filters:
cat:
min_area: 1200
max_area: 100000
min_score: 0.5 # Orig 0.5
threshold: 0.5 # Orig 0.7
review:
alerts:
labels:
- car
- person
detections:
labels:
- cat
detect:
enabled: true
#width: 1920 #640
#height: 1080 #360
fps: 5
motion:
mask: 0.005,0.048,0.355,0.046,0.355,0.004,0.004,0.004
threshold: 30
contour_area: 10
improve_contrast: true
cameras:
tapo_salo:
enabled: true
ffmpeg:
inputs:
- path: rtsp://127.0.0.1:8554/tapo_salo_high
input_args: preset-rtsp-restream
roles:
- record
- detect
onvif:
host: 192.168.2.134
port: 2020
user: yyy
password: xxx
live:
streams:
tapo_salo_high: tapo_salo_high
tapo_escritori:
enabled: true
ffmpeg:
inputs:
- path: rtsp://127.0.0.1:8554/tapo_escritori_high
input_args: preset-rtsp-restream
roles:
- record
- detect
onvif:
host: 192.168.2.136
port: 2020
user: yyy
password: xxx
live:
streams:
tapo_escritori_high: tapo_escritori_high
tapo_dormitori:
enabled: true
ffmpeg:
inputs:
- path: rtsp://127.0.0.1:8554/tapo_dormitori_high
input_args: preset-rtsp-restream
roles:
- record
- detect
onvif:
host: 192.168.2.135
port: 2020
user: yyy
password: xxx
live:
streams:
tapo_dormitori_high: tapo_dormitori_high
version: 0.16-0 docker-compose file or Docker CLI commandservices:
frigate:
image: ghcr.io/blakeblackshear/frigate:stable
container_name: frigate
restart: unless-stopped
privileged: true
shm_size: 512mb
security_opt:
- apparmor=unconfined
- systempaths=unconfined
devices:
- /dev/bus/usb:/dev/bus/usb #coral usb
- /dev/dri:/dev/dri
environment:
- TZ=Europe/Madrid
- FRIGATE_RTSP_PASSWORD=aaa
- LIBVA_DRIVER_NAME=i965
volumes:
- /etc/localtime:/etc/localtime:ro
- /home/jerry/docker/frigate/config:/config
- /home/jerry/docker/frigate/media:/media/frigate
- type: tmpfs # Optional: 1GB of memory, reduces SSD/SD Card wear
target: /tmp/cache
tmpfs:
size: 1000000000
ports:
- 1984:1984
- 8971:8971
- 5000:5000 # Internal unauthenticated access. Expose carefully.
- 8554:8554 # RTSP feeds
- 8555:8555/tcp # WebRTC over tcp
- 8555:8555/udp # WebRTC over udp
labels:
- grafana.docker.logs=true
networks:
default:
ipv4_address: 172.30.71.2
networks:
default:
name: frigate
ipam:
config:
- subnet: 172.30.71.0/24
gateway: 172.30.71.1 Relevant Frigate log output2025-08-17 14:50:13.789746313 [INFO] Preparing Frigate...
2025-08-17 14:50:14.380972806 [INFO] Starting Frigate...
2025-08-17 14:50:16.865122197 [2025-08-17 16:50:16] frigate.util.config INFO : Checking if frigate config needs migration...
2025-08-17 14:50:16.895847516 [2025-08-17 16:50:16] frigate.util.config INFO : frigate config does not need migration...
2025-08-17 14:50:22.915896830 [2025-08-17 16:50:22] frigate.app INFO : Starting Frigate (0.16.0-c2f8de9)
2025-08-17 14:50:22.929013667 [2025-08-17 16:50:22] peewee_migrate.logs INFO : Starting migrations
2025-08-17 14:50:22.931036587 [2025-08-17 16:50:22] peewee_migrate.logs INFO : There is nothing to migrate
2025-08-17 14:50:22.943552528 [2025-08-17 16:50:22] frigate.app INFO : Recording process started: 395
2025-08-17 14:50:22.960624517 [2025-08-17 16:50:22] frigate.app INFO : Review process started: 408
2025-08-17 14:50:22.964178214 [2025-08-17 16:50:22] frigate.app INFO : go2rtc process pid: 114
2025-08-17 14:50:22.985471556 [2025-08-17 16:50:22] detector.coral INFO : Starting detection process: 420
2025-08-17 14:50:22.989246481 [2025-08-17 16:50:22] frigate.detectors.plugins.edgetpu_tfl INFO : Attempting to load TPU as usb
2025-08-17 14:50:23.000693616 [2025-08-17 16:50:22] frigate.app INFO : Output process started: 440
2025-08-17 14:50:23.034708966 [2025-08-17 16:50:23] frigate.app INFO : Camera processor started for tapo_salo: 461
2025-08-17 14:50:23.064493094 [2025-08-17 16:50:23] frigate.app INFO : Camera processor started for tapo_escritori: 463
2025-08-17 14:50:23.066738478 [2025-08-17 16:50:23] frigate.app INFO : Camera processor started for tapo_dormitori: 484
2025-08-17 14:50:23.086245927 [2025-08-17 16:50:23] frigate.app INFO : Capture process started for tapo_salo: 512
2025-08-17 14:50:23.101324134 [2025-08-17 16:50:23] frigate.app INFO : Capture process started for tapo_escritori: 531
2025-08-17 14:50:23.116130823 [2025-08-17 16:50:23] frigate.app INFO : Capture process started for tapo_dormitori: 543
2025-08-17 14:50:23.320838901 [2025-08-17 16:50:23] frigate.api.fastapi_app INFO : Starting FastAPI app
2025-08-17 14:50:23.536120409 [2025-08-17 16:50:23] frigate.api.fastapi_app INFO : FastAPI started
2025-08-17 14:50:25.598812982 [2025-08-17 16:50:25] frigate.detectors.plugins.edgetpu_tfl INFO : TPU found
2025-08-17 14:50:25.600041018 INFO: Created TensorFlow Lite XNNPACK delegate for CPU.
2025-08-17 14:50:25.657687707 [2025-08-17 16:50:25] frigate.video ERROR : tapo_salo: Unable to read frames from ffmpeg process.
2025-08-17 14:50:25.658054969 [2025-08-17 16:50:25] frigate.video ERROR : tapo_salo: ffmpeg process is not running. exiting capture thread...
2025-08-17 14:50:25.912687432 [2025-08-17 16:50:25] frigate.video ERROR : tapo_escritori: Unable to read frames from ffmpeg process.
2025-08-17 14:50:25.912693630 [2025-08-17 16:50:25] frigate.video ERROR : tapo_escritori: ffmpeg process is not running. exiting capture thread...
2025-08-17 14:50:25.922455914 [2025-08-17 16:50:25] frigate.video ERROR : tapo_dormitori: Unable to read frames from ffmpeg process.
2025-08-17 14:50:25.922997366 [2025-08-17 16:50:25] frigate.video ERROR : tapo_dormitori: ffmpeg process is not running. exiting capture thread...
2025-08-17 14:50:43.100957175 [2025-08-17 16:50:43] watchdog.tapo_salo ERROR : Ffmpeg process crashed unexpectedly for tapo_salo.
2025-08-17 14:50:43.101408407 [2025-08-17 16:50:43] watchdog.tapo_salo ERROR : The following ffmpeg logs include the last 100 lines prior to exit.
2025-08-17 14:50:43.101746210 [2025-08-17 16:50:43] ffmpeg.tapo_salo.detect ERROR : [aac @ 0x58e9264d0ec0] Too many bits 8832.000000 > 6144 per frame requested, clamping to max
2025-08-17 14:50:43.102052566 [2025-08-17 16:50:43] ffmpeg.tapo_salo.detect ERROR : [segment @ 0x58e9264d6680] 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
2025-08-17 14:50:43.102402248 [2025-08-17 16:50:43] ffmpeg.tapo_salo.detect ERROR : [vost#0:0/copy @ 0x58e9264d6b00] Non-monotonic DTS; previous: 0, current: 0; changing to 1. This may result in incorrect timestamps in the output file.
2025-08-17 14:50:43.102779095 [2025-08-17 16:50:43] ffmpeg.tapo_salo.detect ERROR : [AVHWFramesContext @ 0x7cb4c004a200] Failed to read image from surface 0x4000013: 20 (the requested function is not implemented).
2025-08-17 14:50:43.103116096 [2025-08-17 16:50:43] ffmpeg.tapo_salo.detect ERROR : [hwdownload @ 0x7cb4cc003940] Failed to download frame: -5.
2025-08-17 14:50:43.103389094 [2025-08-17 16:50:43] ffmpeg.tapo_salo.detect ERROR : [vf#1:0 @ 0x58e926640100] Error while filtering: Input/output error
2025-08-17 14:50:43.103757114 [2025-08-17 16:50:43] ffmpeg.tapo_salo.detect ERROR : [vf#1:0 @ 0x58e926640100] Task finished with error code: -5 (Input/output error)
2025-08-17 14:50:43.104038712 [2025-08-17 16:50:43] ffmpeg.tapo_salo.detect ERROR : [vf#1:0 @ 0x58e926640100] Terminating thread with return code -5 (Input/output error)
2025-08-17 14:50:43.104310516 [2025-08-17 16:50:43] ffmpeg.tapo_salo.detect ERROR : [vost#1:0/rawvideo @ 0x58e9264d05c0] Could not open encoder before EOF
2025-08-17 14:50:43.104574467 [2025-08-17 16:50:43] ffmpeg.tapo_salo.detect ERROR : [vost#1:0/rawvideo @ 0x58e9264d05c0] Task finished with error code: -22 (Invalid argument)
2025-08-17 14:50:43.104904955 [2025-08-17 16:50:43] ffmpeg.tapo_salo.detect ERROR : [vost#1:0/rawvideo @ 0x58e9264d05c0] Terminating thread with return code -22 (Invalid argument)
2025-08-17 14:50:43.105251148 [2025-08-17 16:50:43] ffmpeg.tapo_salo.detect ERROR : [out#1/rawvideo @ 0x58e9264d5bc0] Nothing was written into output file, because at least one of its streams received no packets.
2025-08-17 14:50:43.105582115 [2025-08-17 16:50:43] watchdog.tapo_salo INFO : Restarting ffmpeg...
2025-08-17 14:50:43.110699444 [2025-08-17 16:50:43] watchdog.tapo_escritori ERROR : Ffmpeg process crashed unexpectedly for tapo_escritori.
2025-08-17 14:50:43.110993427 [2025-08-17 16:50:43] watchdog.tapo_escritori ERROR : The following ffmpeg logs include the last 100 lines prior to exit.
2025-08-17 14:50:43.111222724 [2025-08-17 16:50:43] ffmpeg.tapo_escritori.detect ERROR : [aac @ 0x5a1e932bfc00] Too many bits 8832.000000 > 6144 per frame requested, clamping to max
2025-08-17 14:50:43.111641024 [2025-08-17 16:50:43] ffmpeg.tapo_escritori.detect ERROR : [segment @ 0x5a1e932b2ec0] 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
2025-08-17 14:50:43.112111574 [2025-08-17 16:50:43] ffmpeg.tapo_escritori.detect ERROR : [vost#0:0/copy @ 0x5a1e932c4740] Non-monotonic DTS; previous: 0, current: 0; changing to 1. This may result in incorrect timestamps in the output file.
2025-08-17 14:50:43.112495868 [2025-08-17 16:50:43] ffmpeg.tapo_escritori.detect ERROR : [AVHWFramesContext @ 0x78f60804b900] Failed to read image from surface 0x4000013: 20 (the requested function is not implemented).
2025-08-17 14:50:43.112944250 [2025-08-17 16:50:43] ffmpeg.tapo_escritori.detect ERROR : [hwdownload @ 0x78f614003940] Failed to download frame: -5.
2025-08-17 14:50:43.113223892 [2025-08-17 16:50:43] ffmpeg.tapo_escritori.detect ERROR : [vf#1:0 @ 0x5a1e932c3400] Error while filtering: Input/output error
2025-08-17 14:50:43.113492159 [2025-08-17 16:50:43] ffmpeg.tapo_escritori.detect ERROR : [vf#1:0 @ 0x5a1e932c3400] Task finished with error code: -5 (Input/output error)
2025-08-17 14:50:43.113728701 [2025-08-17 16:50:43] ffmpeg.tapo_escritori.detect ERROR : [vf#1:0 @ 0x5a1e932c3400] Terminating thread with return code -5 (Input/output error)
2025-08-17 14:50:43.113987073 [2025-08-17 16:50:43] ffmpeg.tapo_escritori.detect ERROR : [vost#1:0/rawvideo @ 0x5a1e932c0f40] Could not open encoder before EOF
2025-08-17 14:50:43.114462561 [2025-08-17 16:50:43] ffmpeg.tapo_escritori.detect ERROR : [vost#1:0/rawvideo @ 0x5a1e932c0f40] Task finished with error code: -22 (Invalid argument)
2025-08-17 14:50:43.114955924 [2025-08-17 16:50:43] ffmpeg.tapo_escritori.detect ERROR : [vost#1:0/rawvideo @ 0x5a1e932c0f40] Terminating thread with return code -22 (Invalid argument)
2025-08-17 14:50:43.115378466 [2025-08-17 16:50:43] ffmpeg.tapo_escritori.detect ERROR : [out#1/rawvideo @ 0x5a1e932bf100] Nothing was written into output file, because at least one of its streams received no packets.
2025-08-17 14:50:43.116032687 [2025-08-17 16:50:43] watchdog.tapo_escritori INFO : Restarting ffmpeg...
2025-08-17 14:50:43.125733489 [2025-08-17 16:50:43] watchdog.tapo_dormitori ERROR : Ffmpeg process crashed unexpectedly for tapo_dormitori.
2025-08-17 14:50:43.126010621 [2025-08-17 16:50:43] watchdog.tapo_dormitori ERROR : The following ffmpeg logs include the last 100 lines prior to exit.
2025-08-17 14:50:43.126335949 [2025-08-17 16:50:43] ffmpeg.tapo_dormitori.detect ERROR : [aac @ 0x64cc38fb1340] Too many bits 8832.000000 > 6144 per frame requested, clamping to max
2025-08-17 14:50:43.126611945 [2025-08-17 16:50:43] ffmpeg.tapo_dormitori.detect ERROR : [segment @ 0x64cc38fb20c0] 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
2025-08-17 14:50:43.126879478 [2025-08-17 16:50:43] ffmpeg.tapo_dormitori.detect ERROR : [vost#0:0/copy @ 0x64cc38fa2d80] Non-monotonic DTS; previous: 0, current: 0; changing to 1. This may result in incorrect timestamps in the output file.
2025-08-17 14:50:43.127098855 [2025-08-17 16:50:43] ffmpeg.tapo_dormitori.detect ERROR : [AVHWFramesContext @ 0x7c4604080300] Failed to read image from surface 0x4000013: 20 (the requested function is not implemented).
2025-08-17 14:50:43.127369276 [2025-08-17 16:50:43] ffmpeg.tapo_dormitori.detect ERROR : [hwdownload @ 0x7c4614003940] Failed to download frame: -5.
2025-08-17 14:50:43.127610449 [2025-08-17 16:50:43] ffmpeg.tapo_dormitori.detect ERROR : [vf#1:0 @ 0x64cc38fb5a80] Error while filtering: Input/output error
2025-08-17 14:50:43.127859543 [2025-08-17 16:50:43] ffmpeg.tapo_dormitori.detect ERROR : [vf#1:0 @ 0x64cc38fb5a80] Task finished with error code: -5 (Input/output error)
2025-08-17 14:50:43.128068181 [2025-08-17 16:50:43] ffmpeg.tapo_dormitori.detect ERROR : [vf#1:0 @ 0x64cc38fb5a80] Terminating thread with return code -5 (Input/output error)
2025-08-17 14:50:43.128362490 [2025-08-17 16:50:43] ffmpeg.tapo_dormitori.detect ERROR : [vost#1:0/rawvideo @ 0x64cc38fb2380] Could not open encoder before EOF
2025-08-17 14:50:43.128634996 [2025-08-17 16:50:43] ffmpeg.tapo_dormitori.detect ERROR : [vost#1:0/rawvideo @ 0x64cc38fb2380] Task finished with error code: -22 (Invalid argument)
2025-08-17 14:50:43.128861648 [2025-08-17 16:50:43] ffmpeg.tapo_dormitori.detect ERROR : [vost#1:0/rawvideo @ 0x64cc38fb2380] Terminating thread with return code -22 (Invalid argument)
2025-08-17 14:50:43.129123661 [2025-08-17 16:50:43] ffmpeg.tapo_dormitori.detect ERROR : [out#1/rawvideo @ 0x64cc38facac0] Nothing was written into output file, because at least one of its streams received no packets.
2025-08-17 14:50:43.129436166 [2025-08-17 16:50:43] watchdog.tapo_dormitori INFO : Restarting ffmpeg... Relevant go2rtc log output2025-08-17 14:50:14.385927341 [INFO] Preparing new go2rtc config...
2025-08-17 14:50:14.846781780 [INFO] Starting go2rtc...
2025-08-17 14:50:14.926168715 16:50:14.926 INF go2rtc platform=linux/amd64 revision=fa580c5 version=1.9.9
2025-08-17 14:50:14.926190700 16:50:14.926 INF config path=/dev/shm/go2rtc.yaml
2025-08-17 14:50:14.926732785 16:50:14.926 INF [rtsp] listen addr=:8554
2025-08-17 14:50:14.926867228 16:50:14.926 INF [api] listen addr=:1984
2025-08-17 14:50:14.927346025 16:50:14.927 INF [webrtc] listen addr=:8555
2025-08-17 14:50:23.689632739 [INFO] Starting go2rtc healthcheck service...
2025-08-17 14:50:39.207263998 16:50:39.206 WRN github.com/AlexxIT/go2rtc/internal/streams/producer.go:170 > error="read tcp 172.30.71.2:49714->192.168.2.135:554: i/o timeout" url=rtsp://yyy:xxx@192.168.2.135:554/stream1 Operating systemHome Assistant OS Install methodDocker Compose Network connectionWired Camera make and modeltapo c200 and c210 Screenshots of the Frigate UI's System metrics pagesnot relevant Any other information that may be helpfulNo response |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Based on the error logs, you're experiencing hardware acceleration issues with VAAPI after upgrading to Frigate 0.16. The key errors show:
This indicates VAAPI hardware acceleration is failing. Here are the solutions to try: 1. Update Your Hardware Acceleration ConfigurationYour current config uses ffmpeg:
hwaccel_args: preset-vaapi
input_args: preset-rtsp-restream
output_args:
record: preset-record-generic-audio-aac 2. Check Your VAAPI DriverYou're using environment:
- LIBVA_DRIVER_NAME=iHD 3. Verify Hardware Acceleration SetupThe hwaccel docs referenced in the presets documentation recommend ensuring the correct driver is chosen for VAAPI(1). You may need to verify your hardware acceleration setup is working properly with your specific Intel hardware. 4. Fallback OptionIf VAAPI continues to fail, you can temporarily disable hardware acceleration by removing the The issue appears to be related to changes in how Frigate 0.16 handles hardware acceleration with your specific Intel graphics setup. The VAAPI driver may need adjustment for compatibility with the newer version. 📚 Sources: Have another question? Just tag @inkeep. |
Beta Was this translation helpful? Give feedback.
-
Seems solved after use iHD instead of i965 using my Intel Iris Graphics 6100 = Gen8. I don't know why I was using i965 on 0.15 :S does something changed in the documentation? |
Beta Was this translation helpful? Give feedback.
The base image was updated to Debian 12 for Frigate 0.16, as did the packaged Intel drivers. It makes sense that some users may need to update the host and/or adjust their iGPU drivers because of those changes.