RidgeRun Image Projector/RidgeRun Image Projector/Examples/GStreamer pipelines: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 37: Line 37:


<syntaxhighlight lang=bash>
<syntaxhighlight lang=bash>
gst-launch-1.0 nvarguscamerasrc sensor-id=0 ! nvvidconv ! "video/x-raw(memory:NVMM), width=1920, height=1080" ! queue ! rreqrprojector radius=$S0_rad lens=$S0_LENS center_x=$S0_C_X center_y=$S0_C_Y rot-X=$S0_R_X rot-y=$S0_R_Y ! nvvidconv ! nvv4l2h264enc bitrate=20000000 ! h264parse ! mp4mux ! filesink location=projection.mp4
gst-launch-1.0 nvarguscamerasrc sensor-id=0 ! nvvidconv ! "video/x-raw(memory:NVMM), width=1920, height=1080" ! queue ! rreqrprojector radius=$S0_rad lens=$S0_LENS center_x=$S0_C_X center_y=$S0_C_Y rot-x=$S0_R_X rot-y=$S0_R_Y ! nvvidconv ! nvv4l2h264enc bitrate=20000000 ! h264parse ! mp4mux ! filesink location=projection.mp4
</syntaxhighlight>
</syntaxhighlight>


Line 45: Line 45:


<syntaxhighlight lang=bash>
<syntaxhighlight lang=bash>
gst-launch-1.0 filesrc location=fisheye180.mp4 ! qtdemux ! h264parse ! nvv4l2decoder ! nvvidconv ! "video/x-raw(memory:NVMM), width=1920, height=1080, format=RGBA" ! queue ! rreqrprojector radius=$S0_rad lens=$S0_LENS center_x=$S0_C_X center_y=$S0_C_Y rot-X=$S0_R_X rot-y=$S0_R_Y ! nvvidconv ! nvv4l2h264enc bitrate=20000000 ! h264parse ! mp4mux ! filesink location=projection.mp4
gst-launch-1.0 filesrc location=fisheye180.mp4 ! qtdemux ! h264parse ! nvv4l2decoder ! nvvidconv ! "video/x-raw(memory:NVMM), width=1920, height=1080, format=RGBA" ! queue ! rreqrprojector radius=$S0_rad lens=$S0_LENS center_x=$S0_C_X center_y=$S0_C_Y rot-x=$S0_R_X rot-y=$S0_R_Y ! nvvidconv ! nvv4l2h264enc bitrate=20000000 ! h264parse ! mp4mux ! filesink location=projection.mp4
</syntaxhighlight>
</syntaxhighlight>


Line 55: Line 55:


<syntaxhighlight lang=bash>
<syntaxhighlight lang=bash>
gst-launch-1.0 filesrc location=fisheye180.jpeg ! jpegdec ! nvvidconv ! queue !  rreqrprojector radius=$S0_rad lens=$S0_LENS center_x=$S0_C_X center_y=$S0_C_Y rot-X=$S0_R_X rot-y=$S0_R_Y  ! videoconvert ! queue !  jpegenc ! filesink location=proj0.jpeg
gst-launch-1.0 filesrc location=fisheye180.jpeg ! jpegdec ! nvvidconv ! queue !  rreqrprojector radius=$S0_rad lens=$S0_LENS center_x=$S0_C_X center_y=$S0_C_Y rot-x=$S0_R_X rot-y=$S0_R_Y  ! videoconvert ! queue !  jpegenc ! filesink location=proj0.jpeg
</syntaxhighlight>
</syntaxhighlight>


Line 61: Line 61:


<syntaxhighlight lang=bash>
<syntaxhighlight lang=bash>
gst-launch-1.0 filesrc location=fisheye180.jpeg ! jpegdec ! videoconvert ! queue !  rreqrprojector radius=$S0_rad lens=$S0_LENS center_x=$S0_C_X center_y=$S0_C_Y rot-X=$S0_R_X rot-y=$S0_R_Y  ! videoconvert ! queue !  jpegenc ! filesink location=proj0.jpeg
gst-launch-1.0 filesrc location=fisheye180.jpeg ! jpegdec ! videoconvert ! queue !  rreqrprojector radius=$S0_rad lens=$S0_LENS center_x=$S0_C_X center_y=$S0_C_Y rot-x=$S0_R_X rot-y=$S0_R_Y  ! videoconvert ! queue !  jpegenc ! filesink location=proj0.jpeg
</syntaxhighlight>
</syntaxhighlight>


Line 149: Line 149:
gst-launch-1.0 -e -v \ cudastitcher name=stitcher \
gst-launch-1.0 -e -v \ cudastitcher name=stitcher \
homography-list="`cat result.json | tr -d "\n" | tr -d " "`" \
homography-list="`cat result.json | tr -d "\n" | tr -d " "`" \
nvarguscamerasrc sensor-id=0 ! nvvidconv ! rreqrprojector radius=$S0_rad lens=$S0_LENS center_x=$S0_C_X center_y=$S0_C_Y rot-X=$S0_R_X rot-y=$S0_R_Y rot-z=$S0_R_Z name=proj0 !  queue ! stitcher.sink_0 \
nvarguscamerasrc sensor-id=0 ! nvvidconv ! rreqrprojector radius=$S0_rad lens=$S0_LENS center_x=$S0_C_X center_y=$S0_C_Y rot-x=$S0_R_X rot-y=$S0_R_Y rot-z=$S0_R_Z name=proj0 !  queue ! stitcher.sink_0 \
nvarguscamerasrc sensor-id=1 ! nvvidconv ! rreqrprojector radius=$S1_rad lens=$S1_LENS center_x=$S1_C_X center_y=$S1_C_ rot-X=$S1_R_X rot-y=$S1_R_Y name=proj1 !  queue ! stitcher.sink_1 \
nvarguscamerasrc sensor-id=1 ! nvvidconv ! rreqrprojector radius=$S1_rad lens=$S1_LENS center_x=$S1_C_X center_y=$S1_C_ rot-x=$S1_R_X rot-y=$S1_R_Y name=proj1 !  queue ! stitcher.sink_1 \
stitcher. ! queue ! nvvidconv ! nvv4l2h264enc bitrate=30000000 ! h264parse ! queue ! qtmux ! filesink location=$OUTPUT
stitcher. ! queue ! nvvidconv ! nvv4l2h264enc bitrate=30000000 ! h264parse ! queue ! qtmux ! filesink location=$OUTPUT
</syntaxhighlight>
</syntaxhighlight>
Line 159: Line 159:
gst-launch-1.0 -e -v \ cudastitcher name=stitcher \
gst-launch-1.0 -e -v \ cudastitcher name=stitcher \
homography-list="`cat result.json | tr -d "\n" | tr -d " "`" \
homography-list="`cat result.json | tr -d "\n" | tr -d " "`" \
nvarguscamerasrc sensor-id=0 ! nvvidconv ! rreqrprojector radius=$S0_rad lens=$S0_LENS center_x=$S0_C_X center_y=$S0_C_Y rot-X=$S0_R_X rot-y=$S0_R_Y rot-z=$S0_R_Z name=proj0 !  queue ! stitcher.sink_0 \
nvarguscamerasrc sensor-id=0 ! nvvidconv ! rreqrprojector radius=$S0_rad lens=$S0_LENS center_x=$S0_C_X center_y=$S0_C_Y rot-x=$S0_R_X rot-y=$S0_R_Y rot-z=$S0_R_Z name=proj0 !  queue ! stitcher.sink_0 \
nvarguscamerasrc sensor-id=1 ! nvvidconv ! rreqrprojector radius=$S1_rad lens=$S1_LENS center_x=$S1_C_X center_y=$S1_C_ rot-X=$S1_R_X rot-y=$S1_R_Y name=proj1 !  queue ! stitcher.sink_1 \
nvarguscamerasrc sensor-id=1 ! nvvidconv ! rreqrprojector radius=$S1_rad lens=$S1_LENS center_x=$S1_C_X center_y=$S1_C_ rot-x=$S1_R_X rot-y=$S1_R_Y name=proj1 !  queue ! stitcher.sink_1 \
stitcher. ! queue ! nvvidconv ! xvimagesink
stitcher. ! queue ! nvvidconv ! xvimagesink
</syntaxhighlight>
</syntaxhighlight>
Line 176: Line 176:
gst-launch-1.0 -e -v \ cudastitcher name=stitcher \
gst-launch-1.0 -e -v \ cudastitcher name=stitcher \
homography-list="`cat result.json | tr -d "\n" | tr -d " "`" \
homography-list="`cat result.json | tr -d "\n" | tr -d " "`" \
filesrc location=$INPUT_0 ! qtdemux ! queue ! h264parse ! nvv4l2decoder ! queue ! nvvidconv ! rreqrprojector radius=$S0_rad lens=$S0_LENS center_x=$S0_C_X center_y=$S0_C_Y rot-X=$S0_R_X rot-y=$S0_R_Y rot-z=$S0_R_Z name=proj0 !  queue ! stitcher.sink_0 \
filesrc location=$INPUT_0 ! qtdemux ! queue ! h264parse ! nvv4l2decoder ! queue ! nvvidconv ! rreqrprojector radius=$S0_rad lens=$S0_LENS center_x=$S0_C_X center_y=$S0_C_Y rot-x=$S0_R_X rot-y=$S0_R_Y rot-z=$S0_R_Z name=proj0 !  queue ! stitcher.sink_0 \
filesrc location=$INPUT_1 ! qtdemux ! queue ! h264parse ! nvv4l2decoder ! queue ! nvvidconv ! rreqrprojector radius=$S1_rad lens=$S1_LENS center_x=$S1_C_X center_y=$S1_C_ rot-X=$S1_R_X rot-y=$S1_R_Y name=proj1 !  queue ! stitcher.sink_1 \
filesrc location=$INPUT_1 ! qtdemux ! queue ! h264parse ! nvv4l2decoder ! queue ! nvvidconv ! rreqrprojector radius=$S1_rad lens=$S1_LENS center_x=$S1_C_X center_y=$S1_C_ rot-x=$S1_R_X rot-y=$S1_R_Y name=proj1 !  queue ! stitcher.sink_1 \
stitcher. ! queue ! nvvidconv ! nvv4l2h264enc bitrate=30000000 ! h264parse ! queue !  qtmux ! filesink location=$OUTPUT
stitcher. ! queue ! nvvidconv ! nvv4l2h264enc bitrate=30000000 ! h264parse ! queue !  qtmux ! filesink location=$OUTPUT
</syntaxhighlight>
</syntaxhighlight>
Line 193: Line 193:
gst-launch-1.0 -e -v \ cudastitcher name=stitcher \
gst-launch-1.0 -e -v \ cudastitcher name=stitcher \
homography-list="`cat result.json | tr -d "\n" | tr -d " "`" \
homography-list="`cat result.json | tr -d "\n" | tr -d " "`" \
filesrc location=$INPUT_0 ! jpegparse ! jpegdec ! nvvidconv ! rreqrprojector radius=$S0_rad lens=$S0_LENS center_x=$S0_C_X center_y=$S0_C_Y rot-X=$S0_R_X rot-y=$S0_R_Y rot-z=$S0_R_Z name=proj0 !  queue ! stitcher.sink_0 \
filesrc location=$INPUT_0 ! jpegparse ! jpegdec ! nvvidconv ! rreqrprojector radius=$S0_rad lens=$S0_LENS center_x=$S0_C_X center_y=$S0_C_Y rot-x=$S0_R_X rot-y=$S0_R_Y rot-z=$S0_R_Z name=proj0 !  queue ! stitcher.sink_0 \
filesrc location=$INPUT_1 ! jpegparse ! jpegdec ! nvvidconv ! rreqrprojector radius=$S1_rad lens=$S1_LENS center_x=$S1_C_X center_y=$S1_C_ rot-X=$S1_R_X rot-y=$S1_R_Y name=proj1 !  queue ! stitcher.sink_1 \
filesrc location=$INPUT_1 ! jpegparse ! jpegdec ! nvvidconv ! rreqrprojector radius=$S1_rad lens=$S1_LENS center_x=$S1_C_X center_y=$S1_C_ rot-x=$S1_R_X rot-y=$S1_R_Y name=proj1 !  queue ! stitcher.sink_1 \
stitcher. ! queue ! videoconvert ! jpegenc ! filesink location=$OUTPUT
stitcher. ! queue ! videoconvert ! jpegenc ! filesink location=$OUTPUT
</syntaxhighlight>
</syntaxhighlight>
335

edits