From 24699ec512136309318e1dc2750264944b50f0d7 Mon Sep 17 00:00:00 2001 From: m1k1o Date: Thu, 1 Apr 2021 22:08:35 +0200 Subject: [PATCH] set H264 in arm base. --- .m1k1o/arm-base/Dockerfile | 1 + README.md | 5 ++--- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.m1k1o/arm-base/Dockerfile b/.m1k1o/arm-base/Dockerfile index 58f50dfd..db861687 100644 --- a/.m1k1o/arm-base/Dockerfile +++ b/.m1k1o/arm-base/Dockerfile @@ -119,6 +119,7 @@ ENV NEKO_BIND=:8080 # # custom arm values -> video pipeline with GPU encoding +ENV NEKO_H264=1 ENV NEKO_VIDEO='ximagesrc display-name=%s use-damage=0 show-pointer=true use-damage=false ! video/x-raw,framerate=30/1 ! videoconvert ! queue ! video/x-raw,framerate=30/1,format=NV12 ! v4l2h264enc extra-controls="controls,h264_profile=0,video_bitrate=1250000;" ! h264parse config-interval=3 ! video/x-h264,profile=baseline,stream-format=byte-stream' # diff --git a/README.md b/README.md index ab96d169..a4cc2c60 100644 --- a/README.md +++ b/README.md @@ -188,7 +188,7 @@ services: # increase on rpi's with more then 1gb ram. shm_size: "520mb" ports: - - "8084:8080" + - "8088:8080" - "52000-52100:52000-52100/udp" # this is important since we need a GPU for hardware acceleration alternatively mount the devices into the docker. privileged: true @@ -197,8 +197,7 @@ services: NEKO_PASSWORD: 'neko' NEKO_PASSWORD_ADMIN: 'admin' NEKO_EPR: 52000-52100 - NEKO_H264: 1 - # optional: Change target bitrate and framerate on this parameter. + # optional: change target bitrate and framerate on this parameter. NEKO_VIDEO: | ximagesrc display-name=%s use-damage=0 show-pointer=true use-damage=false ! video/x-raw,framerate=30/1