viseron: Failed to open /dev/dri/renderD128 as DRM device node.

Hey! Thanks for this awesome tool (as far a I can tell based on the concept). Unfortunately I’m unable to start it up.

Everything seems fine until I receive FFmpeg process has exited.

[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.low viseron0
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] 10-adduser: executing... 
usermod: no changes
************************ UID/GID *************************
User uid:    911
User gid:    911
************************** Done **************************
[cont-init.d] 10-adduser: exited 0.
[cont-init.d] 20-set-env-vars: executing... 
****** Checking for hardware acceleration platforms ******
OpenCL is available!
VA-API is available!
CUDA cannot be used
*********************** Done *****************************
[cont-init.d] 30-check-if-rpi: executing... 
********** Checking if we are running on an RPi **********
Not running on any supported RPi
*********************** Done *****************************
[cont-init.d] 30-check-if-rpi: exited 0.
[cont-init.d] 40-gid-video-device: executing... 
[cont-init.d] 40-gid-video-device: exited 0.
[cont-init.d] 50-edgetpu-permission: executing... 
/var/run/s6/etc/cont-init.d/50-edgetpu-permission: line 3: lsusb: command not found
stat: cannot stat '/dev/bus/usb//': No such file or directory
groupmod: invalid group ID ''
[cont-init.d] 50-edgetpu-permission: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
[2021-05-15 10:17:11] [viseron                 ] [INFO    ] - -------------------------------------------
[2021-05-15 10:17:11] [viseron                 ] [INFO    ] - Initializing...
[2021-05-15 10:17:11] [viseron                 ] [DEBUG   ] - Starting cleanup scheduler
[2021-05-15 10:17:11] [viseron                 ] [DEBUG   ] - Running initial cleanup
[2021-05-15 10:17:11] [viseron.cleanup         ] [DEBUG   ] - Running cleanup
[2021-05-15 10:17:11] [viseron.detector        ] [DEBUG   ] - Initializing object detector darknet
[2021-05-15 10:17:14] [viseron.data_stream     ] [DEBUG   ] - Subscribing to data topic */frame/scan/object, <queue.Queue object at 0x7fe820bf6e80>
[2021-05-15 10:17:14] [viseron.detector        ] [DEBUG   ] - Object detector initialized
[2021-05-15 10:17:14] [viseron                 ] [INFO    ] - Initializing NVR threads
[2021-05-15 10:17:14] [viseron.nvr.frontdoor   ] [DEBUG   ] - Initializing NVR thread
[2021-05-15 10:17:14] [viseron.camera.frontdoor] [DEBUG   ] - Initializing camera Frontdoor
[2021-05-15 10:17:14] [viseron.camera.frontdoor] [DEBUG   ] - Getting stream information for rtsp://*****:*****@****//h264Preview_01_sub
[2021-05-15 10:17:31] [viseron.camera.frontdoor] [DEBUG   ] - Stream information from FFprobe: Width: 640 Height: 480 FPS: 0 Video Codec: h264 Audio Codec: aac
[2021-05-15 10:17:31] [viseron.camera.frontdoor] [DEBUG   ] - Resolution: 640x480 @ 7 FPS
[2021-05-15 10:17:31] [viseron.data_stream     ] [DEBUG   ] - Subscribing to data topic frontdoor/frame/decode/object, <queue.Queue object at 0x7fe820c1d820>
[2021-05-15 10:17:31] [viseron.camera.frontdoor] [DEBUG   ] - Starting decoder thread
[2021-05-15 10:17:31] [viseron.camera.frontdoor] [DEBUG   ] - Running decoder frontdoor.object_detection at 1.0s interval, every 7.0 frame(s)
[2021-05-15 10:17:31] [viseron.camera.frontdoor] [DEBUG   ] - Camera Frontdoor initialized
[2021-05-15 10:17:31] [viseron.data_stream     ] [DEBUG   ] - Subscribing to data topic frontdoor/frame/processed/object, <queue.Queue object at 0x7fe820c1d2b0>
[2021-05-15 10:17:31] [viseron.motion.frontdoor] [DEBUG   ] - Initializing motion detector
[2021-05-15 10:17:31] [viseron.data_stream     ] [DEBUG   ] - Subscribing to data topic frontdoor/frame/decode/motion, <queue.Queue object at 0x7fe8203a9580>
[2021-05-15 10:17:31] [viseron.motion.frontdoor] [DEBUG   ] - Starting decoder thread
[2021-05-15 10:17:31] [viseron.motion.frontdoor] [DEBUG   ] - Running decoder frontdoor.motion_detection at 1.0s interval, every 7.0 frame(s)
[2021-05-15 10:17:31] [viseron.data_stream     ] [DEBUG   ] - Subscribing to data topic frontdoor/frame/scan/motion, <queue.Queue object at 0x7fe8203a9040>
[2021-05-15 10:17:31] [viseron.motion.frontdoor] [DEBUG   ] - Motion detector initialized
[2021-05-15 10:17:31] [viseron.data_stream     ] [DEBUG   ] - Subscribing to data topic frontdoor/frame/processed/motion, <queue.Queue object at 0x7fe820c1dd90>
[2021-05-15 10:17:31] [viseron.camera.frontdoor] [DEBUG   ] - Starting capture thread
[2021-05-15 10:17:31] [viseron.recorder.frontdoor] [DEBUG   ] - Initializing ffmpeg recorder
[2021-05-15 10:17:31] [viseron.recorder.frontdoor] [DEBUG   ] - Creating folder /segments/Frontdoor
[2021-05-15 10:17:31] [viseron.camera.frontdoor] [DEBUG   ] - FFMPEG decoder command: ffmpeg -hide_banner -loglevel debug -avoid_negative_ts make_zero -fflags nobuffer -flags low_delay -strict experimental -fflags +genpts -use_wallclock_as_timestamps 1 -vsync 0 -stimeout 5000000 -hwaccel vaapi -vaapi_device /dev/dri/renderD128 -rtsp_transport tcp -i rtsp://*****:*****@***//h264Preview_01_sub -f segment -segment_time 5 -reset_timestamps 1 -strftime 1 -c:v copy -c:a copy /segments/Frontdoor/%Y%m%d%H%M%S.mp4 -filter:v fps=1 -f rawvideo -pix_fmt nv12 pipe:1
[2021-05-15 10:17:31] [viseron.nvr.frontdoor   ] [DEBUG   ] - NVR thread initialized
[2021-05-15 10:17:31] [viseron.nvr.frontdoor   ] [DEBUG   ] - Waiting for first frame
[2021-05-15 10:17:31] [viseron                 ] [INFO    ] - Initialization complete
Splitting the commandline.
Reading option '-hide_banner' ... matched as option 'hide_banner' (do not show program banner) with argument '1'.
Reading option '-loglevel' ... matched as option 'loglevel' (set logging level) with argument 'debug'.
Reading option '-avoid_negative_ts' ... matched as AVOption 'avoid_negative_ts' with argument 'make_zero'.
Reading option '-fflags' ... matched as AVOption 'fflags' with argument 'nobuffer'.
Reading option '-flags' ... matched as AVOption 'flags' with argument 'low_delay'.
Reading option '-strict' ...Routing option strict to both codec and muxer layer
 matched as AVOption 'strict' with argument 'experimental'.
Reading option '-fflags' ... matched as AVOption 'fflags' with argument '+genpts'.
Reading option '-use_wallclock_as_timestamps' ... matched as AVOption 'use_wallclock_as_timestamps' with argument '1'.
Reading option '-vsync' ... matched as option 'vsync' (video sync method) with argument '0'.
Reading option '-stimeout' ... matched as AVOption 'stimeout' with argument '5000000'.
Reading option '-hwaccel' ... matched as option 'hwaccel' (use HW accelerated decoding) with argument 'vaapi'.
Reading option '-rtsp_transport' ... matched as AVOption 'rtsp_transport' with argument 'tcp'.
Reading option '-i' ... matched as input url with argument 'rtsp://*******//h264Preview_01_sub'.
Reading option '-f' ... matched as option 'f' (force format) with argument 'segment'.
Reading option '-segment_time' ... matched as AVOption 'segment_time' with argument '5'.
Reading option '-reset_timestamps' ... matched as AVOption 'reset_timestamps' with argument '1'.
Reading option '-strftime' ... matched as AVOption 'strftime' with argument '1'.
Reading option '-c:v' ... matched as option 'c' (codec name) with argument 'copy'.
Reading option '-c:a' ... matched as option 'c' (codec name) with argument 'copy'.
Reading option '/segments/Frontdoor/%Y%m%d%H%M%S.mp4' ... matched as output url.
[AVHWDeviceContext @ 0x557a2bf20980] Failed to open /dev/dri/renderD128 as DRM device node.
[AVHWDeviceContext @ 0x557a2bf20980] No VA display found for device /dev/dri/renderD128.
[2021-05-15 10:17:31] [viseron.camera.frontdoor] [ERROR   ] - FFmpeg process has exited

docker-compose.yml

version: "3.7"
services:
  viseron01:
    image: roflcoopter/viseron:dev
    container_name: viseron01
    volumes:
      - "viseron/recordings:/recordings"
      - "viseron/config:/config"
      - "/etc/localtime:/etc/localtime:ro"
      - type: tmpfs # Optional: 1GB of memory, reduces SSD/SD Card wear
        target: /tmp/cache
        tmpfs:
          size: 1000000000
    devices:
      - /dev/dri/renderD128
    restart: unless-stopped
    ports:
      - 8888
    deploy:
      resources:
        limits:
          memory: 1024M

config.yml

cameras:
  - name: Frontdoor
    mqtt_name: viseron_frontdoor
    stream_format: rtsp
    host: ***
    port: 554
    username: ***
    password: "***"
    path: //h264Preview_01_sub
    width: 640
    height: 480
    fps: 7
    ffmpeg_loglevel: debug
logging:
  level: debug

Same setup works fine with frigate (/dev/dri/renderD128,…). I noticed this log entry, could that mean something? groupmod: invalid group ID ''

Any idea what I can try?

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 20 (11 by maintainers)

Most upvoted comments

Seems to work, thanks! 😃

Does it work if you add this?

    environment:
      - PUID=0
      - PGID=0

If so i need to take a look at why permissions arent set properly. Also the groupmod: invalid group ID '' is a bug introduced by the latest pull but it should not affect the video devices.