Issue:

In rpi4 platform we are seeing issues with playing MPEG2 streams while no issues in playing H264 streams.

And it is known that Rpi4 boards doesn't have hardware decoders for MPEG2 but has hardware decoders only for H264.

 

Requirement:

To find a way to play MPEG2 streams through software decoders in Rpi4 platforms.


Software Decoders available in gstreamer :

Below were the software decoder plugins available for MPEG2 streams:

  1. avdec_mpeg2video

       2. mpeg2dec

       3. v4l2mpeg2dec


  1. avdec_mpeg2video :

avdec_mpeg2video plugin was available in RPI4 platform by default.

avdec_mpeg2video: libav MPEG-2 video decoder.

The avdec_mpeg2video plugin has been successfully used as a complete software decoder for a different platform (AM 5728).


For more details refer below link:

AM5728 EVM Multimedia Performance Testbench | RidgeRun - RidgeRun Developer Connection


       2. mpeg2dec:

Mpeg2dec was another software decoder plugin used to decode MPEG-2 video decoder. But it was not available in RPI4 as default and was part of ugly plugins.

Need to check on the steps to install this plugin in the Rpi4 RDKV platform



       3. V4l2mpeg2dec:


V4l2mpeg2dec is another software decoder used to decode MPEG-2 video decoder. And again v4l2mpeg2dec was not available in RPI4 as default and was part of Bad Plugins.

Need to check on the steps to install this plugin in the Rpi4 RDKV platform


Commit ID of the implementation of V4l2mpeg2dec:


commit 477b824f8e04c6b2c0ceb16107cd983422a535e3
Author: Daniel Almeida <daniel.almeida@collabora.com>
Date:   Tue Apr 6 16:40:28 2021 -0300    v4l2codecs: Implement a MPEG2 V4L2 decoder element    Implement a MPEG2 V4L2 decoder element based on the previous h264
    implementation.    Part-of: <
https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1013>

Need to check on the steps to install this plugin in the Rpi4 RDKV platform.

  • No labels