Skip to content

Commit

Permalink
add h264parse to nvidia pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
mbattista authored and m1k1o committed Apr 1, 2023
1 parent 70325e0 commit d2f51fa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .docker/base/Dockerfile.nvidia
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ RUN set -eux; \
#
# STAGE 1: SERVER
#
FROM golang:1.18-bullseye as server
FROM golang:1.20-bullseye as server
WORKDIR /src

#
Expand Down Expand Up @@ -85,7 +85,7 @@ RUN go get -v -t -d . && go build -o bin/neko cmd/neko/main.go
#
# STAGE 2: CLIENT
#
FROM node:14-bullseye-slim as client
FROM node:18-bullseye-slim as client
WORKDIR /src

#
Expand Down
2 changes: 1 addition & 1 deletion server/internal/capture/pipelines.go
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ func NewVideoPipeline(rtpCodec codec.RTPCodec, display string, pipelineSrc strin
return "", err
}

pipelineStr = fmt.Sprintf(videoSrc+"video/x-raw,format=NV12 ! nvh264enc name=encoder preset=5 zerolatency=1 gop-size=15 bitrate=%d rc-mode=5 ! video/x-h264,stream-format=byte-stream,profile=constrained-baseline"+pipelineStr, display, fps, bitrate)
pipelineStr = fmt.Sprintf(videoSrc+"video/x-raw,format=NV12 ! nvh264enc name=encoder preset=4 bitrate=%d rc-mode=5 ! h264parse config-interval=3 ! video/x-h264,stream-format=byte-stream,profile=constrained-baseline"+pipelineStr, display, fps, bitrate)
} else {
// https://gstreamer.freedesktop.org/documentation/openh264/openh264enc.html?gi-language=c#openh264enc
// gstreamer1.0-plugins-bad
Expand Down

0 comments on commit d2f51fa

Please sign in to comment.