mirror of
https://github.com/m1k1o/neko.git
synced 2025-06-03 03:12:41 +02:00
docs: add nvidis gpu examples. #502
This commit is contained in:
parent
972d16031e
commit
81c259cdc9
2 changed files with 150 additions and 27 deletions
|
@ -188,8 +188,9 @@ See documentation for [ximagesrc](https://gstreamer.freedesktop.org/documentatio
|
|||
hq:
|
||||
gst_pipeline: |
|
||||
ximagesrc display-name={display} show-pointer=true use-damage=false
|
||||
! videoconvert
|
||||
! videoconvert ! queue
|
||||
! vp8enc
|
||||
name=encoder
|
||||
target-bitrate=3072000
|
||||
cpu-used=4
|
||||
end-usage=cbr
|
||||
|
@ -206,8 +207,9 @@ See documentation for [ximagesrc](https://gstreamer.freedesktop.org/documentatio
|
|||
lq:
|
||||
gst_pipeline: |
|
||||
ximagesrc display-name={display} show-pointer=true use-damage=false
|
||||
! videoconvert
|
||||
! videoconvert ! queue
|
||||
! vp8enc
|
||||
name=encoder
|
||||
target-bitrate=1024000
|
||||
cpu-used=4
|
||||
end-usage=cbr
|
||||
|
@ -235,8 +237,9 @@ See documentation for [ximagesrc](https://gstreamer.freedesktop.org/documentatio
|
|||
main:
|
||||
gst_pipeline: |
|
||||
ximagesrc display-name={display} show-pointer=true use-damage=false
|
||||
! videoconvert
|
||||
! videoconvert ! queue
|
||||
! x264enc
|
||||
name=encoder
|
||||
threads=4
|
||||
bitrate=4096
|
||||
key-int-max=15
|
||||
|
@ -247,6 +250,36 @@ See documentation for [ximagesrc](https://gstreamer.freedesktop.org/documentatio
|
|||
! appsink name=appsink
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="nvh264enc" label="NVENC H264 configuration">
|
||||
|
||||
```yaml title="config.yaml"
|
||||
capture:
|
||||
video:
|
||||
codec: h264
|
||||
ids: [ main ]
|
||||
pipelines:
|
||||
main:
|
||||
gst_pipeline: |
|
||||
ximagesrc display-name={display} show-pointer=true use-damage=false
|
||||
! videoconvert ! queue
|
||||
! video/x-raw,format=NV12
|
||||
! nvh264enc
|
||||
name=encoder
|
||||
preset=2
|
||||
gop-size=25
|
||||
spatial-aq=true
|
||||
temporal-aq=true
|
||||
bitrate=4096
|
||||
vbv-buffer-size=4096
|
||||
rc-mode=6
|
||||
! h264parse config-interval=-1
|
||||
! video/x-h264,stream-format=byte-stream
|
||||
! appsink name=appsink
|
||||
```
|
||||
|
||||
This configuration requires [Nvidia GPU](https://developer.nvidia.com/cuda-gpus) with [NVENC](https://developer.nvidia.com/nvidia-video-codec-sdk) support.
|
||||
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
</details>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue