Gstreamer convert to RGB on Nano

Michael Gruner michael.gruner at ridgerun.com
Fri Feb 5 15:52:03 UTC 2021


Sadly, nvvidconv doesn’t support RGB (or any other 24bit RGB format). Just RGBx (32 bits) and friends. So yes, a custom CUDA kernel could do it, or you could take a look at VPI <https://docs.nvidia.com/vpi/index.html> which already has a CUDA based conversion to RGB.

> On 5 Feb 2021, at 09:49, gotsring <gotsring at live.com> wrote:
> 
> Typically you don't have to specify what format to convert to when you use a
> videoconvert or nvvidconv element. It should automatically figure out what
> it can use to make it work. You also don't have to restate things like
> framerate and image dimensions if they're staying the same.
> 
> I don't have snapshotfilter, but you can do the same with videorate and
> multifilesink. Try this out:
> 
> gst-launch-1.0 nvarguscamerasrc ! 'video/x-raw(memory:NVMM), width=1280,
> height=720, framerate=120/1' ! tee name=t \
> t. ! queue ! nvvidconv ! videorate ! 'video/x-raw, framerate=2/1' ! jpegenc
> ! multifilesink location="snapshot_%04d.jpg" \
> t. ! queue ! nvvidconv ! omxh264enc ! h264parse ! qtmux ! filesink
> location=tester1.mp4 -e
> 
> 
> 
> --
> Sent from: http://gstreamer-devel.966125.n4.nabble.com/
> _______________________________________________
> 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/20210205/72ccc163/attachment.htm>


More information about the gstreamer-devel mailing list