<div dir="ltr">I get the same result doing gst-inspect-1.0 with those parameters.<div><br></div><div>VIDEO:/home/user % gst-inspect-1.0 | grep bitmap</div><div>libav: avdec_bmp: libav BMP (Windows and OS/2 bitmap) decoder</div><div>libav: avenc_bmp: libav BMP (Windows and OS/2 bitmap) encoder</div><div>VIDEO:/home/user % gst-inspect-1.0 avenc_bmp | grep image</div><div> image/bmp</div><div> </div><div> The only difference I see is my search has avdec_bmp listed first.</div><div>Has anyone ever successfully saved a bitmap file from inside a program using gst_video_convert_sample?</div><div>If I cannot come up with an elegant solution from within gstreamer, I will be forced to either A: create a command line using gst-launch and save with a filesink,</div><div>or B: Figure out how to take a raw image write a bitmap file myself.</div><div><br></div><div>Best Regards,</div><div>Jack</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Dec 21, 2017 at 1:27 AM, 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 class="">On Wed, 20 Dec 2017 15:53:27 -0700 (MST)<br>
jackson80 <<a href="mailto:jackstuff3@gmail.com">jackstuff3@gmail.com</a>> wrote:<br>
<br>
> Okay, I may have had a few eyes glaze over when I said my code looks like<br>
> some code where I included a link.<br>
><br>
> Well, here is actual working code. My problem in in the save_images_cb<br>
> routine. I can set the caps to "image/png" and the code will extract and<br>
> save a png coded image file. When I try to save a bitmap with caps defined<br>
> as "image/bitmap", I get an error from gst_video_convert sample and it<br>
> prints "Failed converting frame. Error: Cannot find any image encoder for<br>
> caps image/bitmap".<br>
><br>
<br>
</span>$ gst-inspect-1.0 | grep bitmap<br>
<span class="">libav: avenc_bmp: libav BMP (Windows and OS/2 bitmap) encoder<br>
libav: avdec_bmp: libav BMP (Windows and OS/2 bitmap) decoder<br>
<br>
</span>$ gst-inspect-1.0 avenc_bmp | grep image<br>
image/bmp<br>
<br>
It looks like "image/bmp" is the correct capability to pass to<br>
gst_video_convert_sample().<br>
<br>
Ciao,<br>
Antonio<br>
<span class="HOEnZb"><font color="#888888"><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/<wbr>Posting_style</a><br>
Q: Why is top-posting such a bad thing?<br>
</font></span></blockquote></div><br></div>