I.mx6Q MJPEG video HW decoding

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

I.mx6Q MJPEG video HW decoding

919 Views
glavinic
Contributor I

Hello,

I'm trying to use gst + imxvpu to decode mjpeg stream. This is the gst command which I'm using:

gst-launch-1.0 souphttpsrc location=http://IP/mjpg/video.mjpg ! jpegparse ! imxvpudec ! autovideosink

The problem with this one is that it is pretty slow, I get 1fps. Camera (AXIS, P3905-R) is configured with 25 fps. Following command displays proper video, although, fps suffers a bit on the higher image quality settings, which is the reason for trying to make use of the hw acc:

gst-launch-1.0 souphttpsrc location=http://IP/mjpg/video.mjpg ! jpegdec ! autovideosink

As far as I understand documentation, imxvpu should work with baseline mjpeg. Since I havent found what exactly basic mjpeg means, I understand it refers to Baseline DCT, SOF0 == ff c0 from the jpeg codec format. I have inspected my stream, and it is indeed this one.

Feeding stream directly to the imxvpudec results with an error:

gst-launch-1.0 souphttpsrc location=http://IP/mjpg/video.mjpg ! imxvpudec ! autovideosink
Setting pipeline to PAUSED ...
[INFO] Product Info: i.MX6Q/D/S
Pipeline is PREROLLING ...
ERROR: from element /GstPipeline:pipeline0/GstSoupHTTPSrc:souphttpsrc0: Internal data flow error.
Additional debug info:
gstreamer1.0/1.4.5-r0/gstreamer-1.4.5/libs/gst/base/gstbasesrc.c(2933): gst_base_src_loop (): /GstPipeline:pipeline0/GstSoupHTTPSrc:souphttpsrc0:
streaming task paused, reason error (-5)
ERROR: pipeline doesn't want to preroll.
Setting pipeline to NULL ...
Freeing pipeline ...

Platform on which I'm running this is a bit behind, it is based on yocto 1.8, gst-launch-1.0 version 1.4.5, GStreamer 1.4.5, imxvpu 0.11.1.

I'd be grateful for any advices and pointers.

Thanks,

Matija

Labels (3)
0 Kudos
Reply
1 Reply

670 Views
igorpadykov
NXP Employee
NXP Employee

Hi Matija

imxvpu ,imxvpudec used by gstreamer-imx plugins supported

by community and one can post issue on

Issues · Freescale/gstreamer-imx · GitHub 

Alternatively one can try nxp imx-gst1.0-plugins, its usage is described

in Linux Guide included in linux documentation on

i.MX Software|NXP 

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos
Reply