457
edits
No edit summary |
|||
Line 16: | Line 16: | ||
== Pipeline structure == | == Pipeline structure == | ||
To replicate the results using your images, videos, or cameras, you can use the following pipeline as a base for the case of 2 cameras, then you can add the other inputs for the other cases. Also, you can adjust the resolution if needed. | |||
<source lang=bash> | |||
INPUT_0=<VIDEO_INPUT_0> | |||
INPUT_1=<VIDEO_INPUT_1> | |||
gst-launch-1.0 -e cudastitcher name=stitcher \ | |||
homography-list="`cat homographies.json | tr -d "\n" | tr -d " "`" \ | |||
filesrc location=$INPUT_0 ! qtdemux ! h264parse ! nvv4l2decoder ! queue ! nvvidconv ! stitcher.sink_0 \ | |||
filesrc location=$INPUT_1 ! qtdemux ! h264parse ! nvv4l2decoder ! queue ! nvvidconv ! stitcher.sink_1 \ | |||
stitcher. ! perf print-cpu-load=true ! fakesink -v | |||
</source> | |||
<source lang=bash> | |||
INPUT_0=<VIDEO_INPUT_0> | |||
INPUT_1=<VIDEO_INPUT_1> | |||
INPUT_2=<VIDEO_INPUT_2> | |||
gst-launch-1.0 -e cudastitcher name=stitcher \ | |||
homography-list="`cat homographies.json | tr -d "\n" | tr -d " "`" \ | |||
filesrc location=$INPUT_0 ! qtdemux ! h264parse ! nvv4l2decoder ! queue ! nvvidconv ! stitcher.sink_0 \ | |||
filesrc location=$INPUT_1 ! qtdemux ! h264parse ! nvv4l2decoder ! queue ! nvvidconv ! stitcher.sink_1 \ | |||
filesrc location=$INPUT_2 ! qtdemux ! h264parse ! nvv4l2decoder ! queue ! nvvidconv ! stitcher.sink_2 \ | |||
stitcher. ! perf print-cpu-load=true ! fakesink -v | |||
</source> | |||
<source lang=bash> | <source lang=bash> | ||
INPUT_0=<VIDEO_INPUT_0> | INPUT_0=<VIDEO_INPUT_0> | ||
INPUT_1=<VIDEO_INPUT_1> | INPUT_1=<VIDEO_INPUT_1> | ||
INPUT_2=<VIDEO_INPUT_2> | |||
INPUT_3=<VIDEO_INPUT_3> | |||
INPUT_4=<VIDEO_INPUT_4> | |||
INPUT_5=<VIDEO_INPUT_5> | |||
gst-launch-1.0 -e cudastitcher name=stitcher \ | gst-launch-1.0 -e cudastitcher name=stitcher \ | ||
homography-list="`cat homographies.json | tr -d "\n" | tr -d " "`" \ | homography-list="`cat homographies.json | tr -d "\n" | tr -d " "`" \ | ||
filesrc location=$INPUT_0 ! qtdemux ! h264parse ! nvv4l2decoder ! queue ! nvvidconv ! stitcher.sink_0 \ | filesrc location=$INPUT_0 ! qtdemux ! h264parse ! nvv4l2decoder ! queue ! nvvidconv ! stitcher.sink_0 \ | ||
filesrc location=$INPUT_1 ! qtdemux ! h264parse ! nvv4l2decoder ! queue ! nvvidconv ! stitcher.sink_1 \ | filesrc location=$INPUT_1 ! qtdemux ! h264parse ! nvv4l2decoder ! queue ! nvvidconv ! stitcher.sink_1 \ | ||
filesrc location=$INPUT_2 ! qtdemux ! h264parse ! nvv4l2decoder ! queue ! nvvidconv ! stitcher.sink_2 \ | |||
filesrc location=$INPUT_3 ! qtdemux ! h264parse ! nvv4l2decoder ! queue ! nvvidconv ! stitcher.sink_3 \ | |||
filesrc location=$INPUT_4 ! qtdemux ! h264parse ! nvv4l2decoder ! queue ! nvvidconv ! stitcher.sink_4 \ | |||
filesrc location=$INPUT_5 ! qtdemux ! h264parse ! nvv4l2decoder ! queue ! nvvidconv ! stitcher.sink_5 \ | |||
stitcher. ! perf print-cpu-load=true ! fakesink -v | stitcher. ! perf print-cpu-load=true ! fakesink -v | ||
</source> | </source> |
edits