17 lines
735 B
Bash
Executable File
17 lines
735 B
Bash
Executable File
#!/bin/bash
|
|
|
|
gst-launch-1.0 filesrc location=$1 ! \
|
|
rawvideoparse format=2 height=540 width=960 framerate=60000/1001 ! \
|
|
clocksync sync-to-first=true ! \
|
|
nvvideoconvert ! \
|
|
capsfilter caps="video/x-raw(memory:NVMM),format=RGBA,height=1080,width=1920" ! \
|
|
m.sink_0 nvstreammux name=m batch-size=1 width=1920 height=1080 ! \
|
|
nvinfer config-file-path=config.txt ! \
|
|
nvvideoconvert ! \
|
|
nvsegvisual ! \
|
|
capsfilter caps="video/x-raw(memory:NVMM),format=RGBA" ! \
|
|
nvvideoconvert ! \
|
|
nvv4l2h264enc bitrate=6850000 profile=2 preset-id=3 control-rate=2 idrinterval=256 tuning-info-id=3 ! \
|
|
capsfilter caps="video/x-h264,profile=main" ! h264parse ! mpegtsmux ! \
|
|
filesink location="autotest-nvv4l2h264enc-main-test-base-daVinci.mp4"
|