Trying to encode a captured frame as a Bitmap (.bmp)

Nicolas Dufresne nicolas at ndufresne.ca
Tue Dec 26 21:08:52 UTC 2017


Le 26 déc. 2017 12:02 PM, "Jack D" <jackstuff3 at gmail.com> a écrit :

Nicolas, do you mean only primary ranked elements will be auto plugged?


No, any element with rank different then none may be plugged.


I get this:  % gst-inspect-1.0 avenc_bmp | grep Rank
  Rank                     secondary (128)


So this is not the problem. Have your read the code behind convert sample?


On Fri, Dec 22, 2017 at 2:51 PM, Nicolas Dufresne <nicolas at ndufresne.ca>
wrote:

>
>
> Le 22 déc. 2017 12:40 PM, "Jack D" <jackstuff3 at gmail.com> a écrit :
>
> I found a file in gst-plugins-base/gst-libs/gst/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.
> 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?
>
>
> 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.
>
>
> Best Regards,
> Jack
>
> On Thu, Dec 21, 2017 at 3:13 PM, Jack D <jackstuff3 at gmail.com> wrote:
>
>> I did notice that error on my part but image/bmp or image/bitmap, neither
>> of these work.
>>
>> On Thu, Dec 21, 2017 at 2:25 PM, Antonio Ospite <ao2 at ao2.it> wrote:
>>
>>> On Thu, 21 Dec 2017 13:33:24 -0700
>>> Jack D <jackstuff3 at gmail.com> wrote:
>>>
>>> > I get the same result doing gst-inspect-1.0 with those parameters.
>>> >
>>> > VIDEO:/home/user % gst-inspect-1.0 | grep bitmap
>>> > libav:  avdec_bmp: libav BMP (Windows and OS/2 bitmap) decoder
>>> > libav:  avenc_bmp: libav BMP (Windows and OS/2 bitmap) encoder
>>> > VIDEO:/home/user % gst-inspect-1.0 avenc_bmp | grep image
>>> >       image/bmp
>>> >
>>> >  The only difference I see is my search has avdec_bmp listed first.
>>> > Has anyone ever successfully saved a bitmap file from inside a program
>>> > using gst_video_convert_sample?
>>> [...]
>>>
>>> Your program should work, I was trying to point out that you have to use
>>> image/bmp instead of image/bitmap.
>>>
>>> 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?
>>>
>>
>>
>
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
>
>
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
>

_______________________________________________
gstreamer-devel mailing list
gstreamer-devel at lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20171226/d17d9538/attachment-0001.html>


More information about the gstreamer-devel mailing list