267
edits
mNo edit summary |
|||
Line 120: | Line 120: | ||
=== Saving a stitch from three MP4 videos === | === Saving a stitch from three MP4 videos === | ||
==== Example pipeline ==== | |||
<syntaxhighlight lang=bash> | <syntaxhighlight lang=bash> | ||
BORDER_WIDTH=10 | BORDER_WIDTH=10 | ||
Line 139: | Line 141: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
==== Example pipeline for x86 ==== | |||
<syntaxhighlight lang=bash> | |||
BORDER_WIDTH=10 | |||
INPUT_0=video_0.mp4 | |||
INPUT_1=video_1.mp4 | |||
INPUT_2=video_2.mp4 | |||
OUTPUT=/tmp/stitching_result.mp4 | |||
gst-launch-1.0 -e cudastitcher name=stitcher \ | |||
homography-list="`cat homographies.json | tr -d "\n" | tr -d " "`" \ | |||
border-width=$BORDER_WIDTH \ | |||
filesrc location=$INPUT_0 ! qtdemux ! h264parse ! avdec_h264 ! videoconvert ! "video/x-raw, width=1920, height=1080, format=RGBA" ! queue ! stitcher.sink_0 \ | |||
filesrc location=$INPUT_1 ! qtdemux ! h264parse ! avdec_h264 ! videoconvert ! "video/x-raw, width=1920, height=1080, format=RGBA" ! queue ! stitcher.sink_1 \ | |||
filesrc location=$INPUT_2 ! qtdemux ! h264parse ! avdec_h264 ! videoconvert ! "video/x-raw, width=1920, height=1080, format=RGBA" ! queue ! stitcher.sink_2 \ | |||
stitcher. ! queue ! videoconvert ! x264enc ! h264parse ! mp4mux ! filesink location=$OUTPUT | |||
</syntaxhighlight> | |||
== Specifying a format == | == Specifying a format == |
edits