There seems to be a problem with decoding

Hello,
Thank you for your answer.

There seems to be a problem with decoding.
When I play the resulting .yuv file, it looks like this:

What am I supposed to do?

Thank you.

Hi,
It looks like yo don’t select I420 or NV12 correctly. You may share the steps so that we can check and suggest next.

hi,
If you use videoparse, you may set format=23 and check again.

  format              : Format of images in raw stream
                        flags: readable, writable
                        Enum "GstVideoFormat" Default: 2, "i420"
(skip...)
                           (2): i420             - GST_VIDEO_FORMAT_I420
(...skip)
                           (23): nv12             - GST_VIDEO_FORMAT_NV12
1 Like

Hello,

Where can I find this code snippet?

thank you.

Hi

Please run gat-launch-1.0 videoparse

Hi DaneLLL.

I want to decode /data/Video/sample_outdoor_car_1080p_10fps.h264 to sample.yuv In the form of a complete video file using nvdec.

What am I supposed to do?

Thank you.

Hi,

Your command should work:

For saving only one frame, please refer to