Mpeg2video decode bug

Hi.

head /etc/nv_tegra_release
# R32 (release), REVISION: 7.2, GCID: 30192233, BOARD: t186ref, EABI: aarch64, DATE: Sun Apr 17 09:53:50 UTC 2022

I’m trying to transcode mpeg2video .ts file with gstreamer

gst-launch-1.0 -vv filesrc location=Not_able_to_Transcode_using_GPU_Coder_software.ts ! tsparse ! video/mpegts ! tsdemux ! queue ! mpegvideoparse ! nvv4l2decoder num-extra-surfaces=4 ! queue ! nvvidconv  ! 'video/x-raw(memory:NVMM), format=(string)I420' ! nvv4l2h264enc bitrate=5000000 ! h264parse ! queue ! matroskamux name=mux ! filesink location=g0.mkv -e

and get a lot of error messages like

[NvMediaParserParse:357] Video parser parse failed: 0

As a result, the file is not transcoded.

Looks like a decoder bug.

Sample attached:

Not_able_to_Transcode_using_GPU_Coder_software.ts (13.6 MB)

You may try:

gst-launch-1.0 filesrc location=Not_able_to_Transcode_using_GPU_Coder_software.ts ! tsdemux ! avdec_mpeg2video ! nvvidconv ! nvv4l2h264enc ! h264parse ! matroskamux ! filesink location=trancoded_h264.mkv

Yes, it works.
But I wanted to show exactly the bug when using the nvv4l2decoder. And maybe it will be fixed?

Hi,
Hardware decoder does not support all types of mpeg2 stream. This mpeg2 stream is not supported and please use software decoder.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.