mpeg2 video decoding issue on IMX8M

cancel
Showing results for 
Search instead for 
Did you mean: 

mpeg2 video decoding issue on IMX8M

261 Views
fredericduchass
Contributor III

Hello,

I try to decode an MPEG2TS video stream on my IMX8M but i get a lot framerate with several display glictches.

The pipeline used is :

gst-launch-1.0 filesrc location=/run/media/sda1/TS/test/testMpeg2.ts ! tsdemux ! vpudec ! queue ! kmssink

video file : attached to this post

OS : Yocto Sumo

Kernel : 4.14.78

tsdemux : 1.14.0

Some informations :

This pipeline with mpegvideoparse is working :

  • gst-launch-1.0 filesrc location=/run/media/sda1/TS/test/testMpeg2_1.ts ! tsdemux ! mpegvideoparse ! vpudec ! queue ! kmssink

--> why vpudec is not able to decode without mpegvideoparse ?

  • Using aiurdemux (without mpegvideoparse) instead of tsdemux gives better decoding but it gives me other failure in other case.

gst-launch-1.0 filesrc location=/run/media/sda1/TS/test/testMpeg2.ts ! aiurdemux ! vpudec ! queue ! kmssink

--> why aiurdemux is better in this case ?

BR

Frédéric

Labels (1)
0 Kudos
4 Replies

132 Views
igorpadykov
NXP TechSupport
NXP TechSupport

Hi Frédéric

one can try

gst-launch-1.0 filesrc location=file_HD.ts ! video/mpegts ! tsdemux ! queue max-size-time=0 ! vpudec ! queue max-size-time=0 ! waylandsink

use Demo Images from

i.MX Software | NXP 

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

0 Kudos

132 Views
fredericduchass
Contributor III

Hi Igor,

My problem is with this particular file. With others files, I have no problem.

For sure, there is a problem using tsdemux + vpudec with this file.

Can you try with the TS file that I have provided ?

BR

Frédéric

0 Kudos

132 Views
igorpadykov
NXP TechSupport
NXP TechSupport

Hi Frédéric

seems you are using and developing own gstreamer sources as mentioned on
IMX8M and custom Gstreamer source 

NXP supports only own imx-gst1.0-plugin - i.MX Gstreamer 1.0 Plugin   described in Linux L4.14.98_2.0.0 Documentation

For support with own gstreamer customizations may be suggested to proceed with extended support of NXP Professional Services:
NXP Professional Services | NXP 

Best regards
igor

0 Kudos

132 Views
fredericduchass
Contributor III

Hi Igor,

There is not link with the other post I've made.... (particlualrly with my custom gstreamer source)

Read carrefully but in the problem explain at the top, i use a "filesrc".

My pipeline is not specific. Every user can read an mpeg2ts file.

BR

Frédéric 

0 Kudos