gst-launch-1.0 -v rtspsrc location='rtsp://admin:1234qwer@192.168.10.225' latency=50 \
! rtph264depay \
! queue \
! h264parse \
! nvdec_h264 \
! nvvidconv \
! dsexample full-frame=1 \
! nvosd \
! 'video/x-raw(memory:NVMM), format=(string)RGBA, width=(int)1920, height=(int)1080' \
! nvvidconv \
! 'video/x-raw, format=(string)RGBA, width=(int)960, height=(int)540' \
! videoconvert \
! 'video/x-raw, format=(string)NV12, width=(int)960, height=(int)540' \
! queue \
! x264enc bitrate=2048 speed-preset=superfast tune=zerolatency \
! rtph264pay config-interval=1 pt=96 mtu=4096 \
! udpsink host=10.0.0.2 port=5000
this is success, but
- I need scale, but result is crop
- why not use nvvidconv convert color space in gpu ,but must use videoconvert
- I can use nvdec_h264 to decode video in gpu, but I can not find which is encode in gpu