<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On 24 Apr 2021, at 5:16 pm, Tim-Philipp Müller via gstreamer-devel <<a href="mailto:gstreamer-devel@lists.freedesktop.org" class="">gstreamer-devel@lists.freedesktop.org</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><span style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 24px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;" class="">On Sat, 2021-04-24 at 15:18 +0800, James via gstreamer-devel wrote:</span><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 24px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 24px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><span style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 24px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;" class="">Hi,</span><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 24px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 24px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><blockquote type="cite" style="font-family: Helvetica; font-size: 24px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; text-decoration: none;" class="">Learning but still lots to go.<br class=""><br class="">I have a test pipeline<br class=""><br class="">gst-launch-1.0 -t v4l2src name=source device=/dev/video2 ! \<br class=""> <span class="Apple-converted-space"> </span>video/x-h264,width=1920,height=1080,framerate=30/1 ! \<br class=""> <span class="Apple-converted-space"> </span>h264parse ! queue ! avdec_h264 ! \<br class=""> <span class="Apple-converted-space"> </span>autovideosink<br class=""><br class=""><br class="">I coded that as<br class=""><br class=""> <span class="Apple-converted-space"> </span>pipeline = gst_parse_launch ("v4l2src name=source ! "<br class=""> <span class="Apple-converted-space"> </span>"video/x-h264,width=1920,height=1080,framerate=30/1 ! "<br class=""> <span class="Apple-converted-space"> </span>"h264parse ! queue ! avdec_h264 ! autovideosink", NULL);<br class=""><br class="">The two do not yield the same result, in particular the gst-launch<br class="">does feedback 1920x1080 to the card.<br class="">The compiled code does not, so the card stays in its native 720x576<br class="">resolution.<br class=""><br class="">What and why<br class=""><br class=""><a href="https://gstreamer.freedesktop.org/documentation/tools/gst-" class="">https://gstreamer.freedesktop.org/documentation/tools/gst-</a><br class="">launch.html?gi-language=c<br class=""><br class="">says -o file, but that option does not exist. How can I find what<br class="">parse did to make a pipeline<br class=""></blockquote><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 24px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><span style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 24px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;" class="">gst-launch uses gst_parse_launch() so it should behave the same.</span><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 24px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 24px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><span style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 24px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;" class="">Your gst-launch pipeline has an additional device=/dev/video2 though?</span><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 24px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""></div></blockquote></div><br class=""><div class="">Tim ta</div><div class=""><br class=""></div><div class=""><div class=""> g_object_set (source, "device", argv[1], NULL);</div></div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">but in particular gst-launch passes the resolution back to the card, the compiled pipeline does not.</div><div class="">gst-launch does that too (not pass back) if the CAPS are further down the line, ie other elements do not pass caps back. </div><div class="">So if parse-launch () does not do it correctly what does parse-launch () actuallly do (read the source, Luke) but how to see the pipeline that it makes. Maybe spelunking -v</div><div class=""><br class=""></div><div class="">James</div></body></html>