Trying to encode a captured frame as a Bitmap (.bmp)
Antonio Ospite
ao2 at ao2.it
Thu Dec 21 08:27:23 UTC 2017
On Wed, 20 Dec 2017 15:53:27 -0700 (MST)
jackson80 <jackstuff3 at gmail.com> wrote:
> Okay, I may have had a few eyes glaze over when I said my code looks like
> some code where I included a link.
>
> Well, here is actual working code. My problem in in the save_images_cb
> routine. I can set the caps to "image/png" and the code will extract and
> save a png coded image file. When I try to save a bitmap with caps defined
> as "image/bitmap", I get an error from gst_video_convert sample and it
> prints "Failed converting frame. Error: Cannot find any image encoder for
> caps image/bitmap".
>
$ gst-inspect-1.0 | grep bitmap
libav: avenc_bmp: libav BMP (Windows and OS/2 bitmap) encoder
libav: avdec_bmp: libav BMP (Windows and OS/2 bitmap) decoder
$ gst-inspect-1.0 avenc_bmp | grep image
image/bmp
It looks like "image/bmp" is the correct capability to pass to
gst_video_convert_sample().
Ciao,
Antonio
--
Antonio Ospite
https://ao2.it
https://twitter.com/ao2it
A: Because it messes up the order in which people normally read text.
See http://en.wikipedia.org/wiki/Posting_style
Q: Why is top-posting such a bad thing?
More information about the gstreamer-devel
mailing list