<div dir="auto"><div><br><div class="gmail_extra"><br><div class="gmail_quote">Le 26 déc. 2017 12:02 PM, "Jack D" <<a href="mailto:jackstuff3@gmail.com">jackstuff3@gmail.com</a>> a écrit :<br type="attribution"><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Nicolas, do you mean only primary ranked elements will be auto plugged?</div></blockquote></div></div></div><div dir="auto"><br></div><div dir="auto">No, any element with rank different then none may be plugged.</div><div dir="auto"><br></div><div dir="auto"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><br></div><div>I get this:  % gst-inspect-1.0 avenc_bmp | grep Rank</div><div>  Rank                     secondary (128)</div></div></blockquote></div></div></div><div dir="auto"><br></div><div dir="auto">So this is not the problem. Have your read the code behind convert sample?</div><div dir="auto"><br></div><div dir="auto"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="elided-text"><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Dec 22, 2017 at 2:51 PM, Nicolas Dufresne <span dir="ltr"><<a href="mailto:nicolas@ndufresne.ca" target="_blank">nicolas@ndufresne.ca</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto"><span><div><br><div class="gmail_extra"><br><div class="gmail_quote">Le 22 déc. 2017 12:40 PM, "Jack D" <<a href="mailto:jackstuff3@gmail.com" target="_blank">jackstuff3@gmail.com</a>> a écrit :<br type="attribution"><blockquote class="m_-8984601095703374296m_8400460704778148385quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I found a file in gst-plugins-base/gst-libs/gst/<wbr>pbutils named descriptions.c and listed in the file are image formats with static descriptions. I created a test and from all these 27 formats, only two worked correctly and allowed me to save an image: image/jpeg and image/png. Also, upon closer examination using gst-inspect-1.0, I could only find three elements that state explicitly they encode image files. pnmenc, jpegenc and pngenc. So, is this just a limitation? I can create a bitmap using gst-launch but I cannot create one using gst_video_convert_sample.<div>Is there a guide somewhere that explains using the output of gst-lauinch-1.0 -v, I can take all the srcs and sinks listed and create the correct pipeline in my program?</div></div></blockquote></div></div></div><div dir="auto"><br></div></span><div dir="auto">If there is a rationale it is likely the rank, this is printed by gst-inspect. Only ranked element will be autoplug. Jpeg and PNG is by far the majority of the formats in use today.</div><div dir="auto"><br></div><div dir="auto"><br></div><div dir="auto"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="m_-8984601095703374296m_8400460704778148385quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="m_-8984601095703374296h5"><div dir="ltr"><div>Best Regards,</div><div>Jack</div></div><div class="m_-8984601095703374296m_8400460704778148385elided-text"><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Dec 21, 2017 at 3:13 PM, Jack D <span dir="ltr"><<a href="mailto:jackstuff3@gmail.com" target="_blank">jackstuff3@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I did notice that error on my part but image/bmp or image/bitmap, neither of these work.</div><div class="m_-8984601095703374296m_8400460704778148385m_4476629641335567508HOEnZb"><div class="m_-8984601095703374296m_8400460704778148385m_4476629641335567508h5"><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Dec 21, 2017 at 2:25 PM, Antonio Ospite <span dir="ltr"><<a href="mailto:ao2@ao2.it" target="_blank">ao2@ao2.it</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span>On Thu, 21 Dec 2017 13:33:24 -0700<br>
Jack D <<a href="mailto:jackstuff3@gmail.com" target="_blank">jackstuff3@gmail.com</a>> wrote:<br>
<br>
> I get the same result doing gst-inspect-1.0 with those parameters.<br>
><br>
> VIDEO:/home/user % gst-inspect-1.0 | grep bitmap<br>
> libav:  avdec_bmp: libav BMP (Windows and OS/2 bitmap) decoder<br>
> libav:  avenc_bmp: libav BMP (Windows and OS/2 bitmap) encoder<br>
> VIDEO:/home/user % gst-inspect-1.0 avenc_bmp | grep image<br>
>       image/bmp<br>
><br>
>  The only difference I see is my search has avdec_bmp listed first.<br>
> Has anyone ever successfully saved a bitmap file from inside a program<br>
> using gst_video_convert_sample?<br>
</span>[...]<br>
<br>
Your program should work, I was trying to point out that you have to use<br>
image/bmp instead of image/bitmap.<br>
<div class="m_-8984601095703374296m_8400460704778148385m_4476629641335567508m_-5323396580073443764HOEnZb"><div class="m_-8984601095703374296m_8400460704778148385m_4476629641335567508m_-5323396580073443764h5"><br>
Ciao,<br>
   Antonio<br>
<br>
--<br>
Antonio Ospite<br>
<a href="https://ao2.it" rel="noreferrer" target="_blank">https://ao2.it</a><br>
<a href="https://twitter.com/ao2it" rel="noreferrer" target="_blank">https://twitter.com/ao2it</a><br>
<br>
A: Because it messes up the order in which people normally read text.<br>
   See <a href="http://en.wikipedia.org/wiki/Posting_style" rel="noreferrer" target="_blank">http://en.wikipedia.org/wiki/P<wbr>osting_style</a><br>
Q: Why is top-posting such a bad thing?<br>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>
</div><br></div></div><span>______________________________<wbr>_________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank">gstreamer-devel@lists.freedesk<wbr>top.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/gstreamer-dev<wbr>el</a><br>
<br></span></blockquote></div><br></div></div></div>
<br>______________________________<wbr>_________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank">gstreamer-devel@lists.freedesk<wbr>top.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/gstreamer-dev<wbr>el</a><br>
<br></blockquote></div><br></div>
</div><br>______________________________<wbr>_________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.<wbr>freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/gstreamer-<wbr>devel</a><br>
<br></blockquote></div><br></div></div></div>