Hi DaneLLL,
Thank you for your reply.
I have downloaded gst_jpg_on_demand.zip.
I did some changes as below:
-
changed width=2592, height=1944.
-
launch_stream changed from:
launch_stream
<< “nvcamerasrc ! "
<< “video/x-raw(memory:NVMM), width=”<< w <<”, height="<< h <<", framerate=30/1 ! "
<< “tee name=t1 "
<< “t1. ! queue ! nvoverlaysink "
<< “t1. ! queue ! nvvidconv ! "
<< “video/x-raw, format=I420, width=”<< w <<”, height=”<< h <<” ! "
<< "appsink name=mysink ";
to
launch_stream
<< “v4l2src device=/dev/video0 ! "
<< “video/x-raw, width=”<< w <<”, height="<< h <<", framerate=28/1 ! "
<< “tee name=t1 "
<< “t1. ! queue ! nvvidconv ! video/x-raw(memory:NVMM), format=(string)I420 ! nvv4l2h265enc ! h265parse ! rtph265pay ! udpsink clients=192.168.18.18:5201 sync=false "
<< “t1. ! queue ! nvvidconv ! "
<< “video/x-raw, format=I420, width=”<< w <<”, height=”<< h <<” ! "
<< "appsink name=mysink ";
Below is the output from the terminal:
Preview string: v4l2src device=/dev/video0 ! video/x-raw, width=2592, height=1944, framerate=28/1 ! tee name=t1 t1. ! queue ! nvvidconv ! video/x-raw(memory:NVMM), format=(string)I420 ! nvv4l2h265enc ! h265parse ! rtph265pay ! udpsink clients=192.168.18.18:5201 sync=false t1. ! queue ! nvvidconv ! video/x-raw, format=I420, width=2592, height=1944 ! appsink name=mysink
JPEG encoding string: appsrc name=mysource ! video/x-raw,width=2592,height=1944,format=I420,framerate=1/1 ! nvjpegenc ! multifilesink location=snap-%03d.jpg
Opening in BLOCKING MODE
NvMMLiteOpen : Block : BlockType = 8
===== NVMEDIA: NVENC =====
NvMMLiteBlockCreate : Block : BlockType = 8
NVMEDIA: H265 : Profile : 1
going to exit
On my laptop, launched gstreamer to view the stream video. But no video has been received.
I tried the gstreamer command below from Jetson nano.
gst-launch-1.0 -v v4l2src device=/dev/video0 ! "video/x-raw, format=(string)UYVY, width=(int)2592, height=(int)1944,framerate=28/1" ! nvvidconv ! "video/x-raw(memory:NVMM),format=(string)I420" ! nvv4l2h265enc ! h265parse ! rtph265pay ! udpsink clients=192.168.18.18:5201 sync=false
My laptop received the video stream from Jetson Nano, which proved that the video stream gstreamer code on Jetson Nano and PC are correct.
Question:
- why launch stream from the application program does not stream the video?
- I can’t find any picture has been saved. Which command used to capture the still image?
Thanks