nvv4l2h264enc added

This commit is contained in:
root 2025-06-26 15:04:07 +00:00
parent acdc6a2843
commit bab79cf1c1

16
nv4l2gst.sh Executable file
View File

@ -0,0 +1,16 @@
#!/bin/bash
GST_DEBUG_COLOR_MODE=off \
GST_TRACERS="latency(flags=pipeline+element)" \
GST_DEBUG="GST_TRACER:7" \
GST_DEBUG_FILE=latency_traces.log \
gst-launch-1.0 videotestsrc pattern=smpte ! \
capsfilter caps="video/x-raw, width=1920, height=1080, framerate=30/1" ! \
nvvideoconvert ! \
capsfilter caps="video/x-raw(memory:NVMM)" ! \
nvv4l2h264enc bitrate=10000000 control-rate=1 idrinterval=1 tuning-info-id=3 preset-id=3 profile=2 ! \
video/x-h264, profile=main ! \
nvv4l2decoder ! \
nvvideoconvert ! \
glupload ! \
glcolorconvert ! \
glimagesink sync=false