L4T Multimedia Issue

I’m using L4T 32.3.1. By modifying Multimedia API sample 02_video_dec_cuda, I was able to scale 1920x1080 h264 video into 1280x720 ARGB32 data.

Howerer, it keep showing logs like:
libv4l2_nvvidconv (0):(1548) (INFO) : Stitch rect’s right out of boundary, set to MAXlibv4l2_nvvidconv (0):(1553) (INFO) : Stitch rect’s bottom out of boundary, set to MAXconv decconv cap

My question is: What does it means? And can I disable this log?

Hi,
Please share a patch on 02_video_dec_cuda so that we can reproduce the problematic prints.

I only modified jetson_multimedia_api/samples/02_video_dec_cuda/videodec_main.cpp at line 618
In Function query_and_set_capture :

// ret = ctx->conv->setCapturePlaneFormat((ctx->out_pixfmt == 1 ?
//                                             V4L2_PIX_FMT_NV12M :
//                                             V4L2_PIX_FMT_YUV420M),
//                                         crop.c.width,
//                                         crop.c.height,
//                                         V4L2_NV_BUFFER_LAYOUT_PITCH);
// if (ctx->enable_osd_text)
// {
//     cout<<" Text overlay can only work with ABGR format, set converter capture plane to ABGR" <<endl;
//     ret = ctx->conv->setCapturePlaneFormat(V4L2_PIX_FMT_ABGR32,
//                                             crop.c.width,
//                                             crop.c.height,
//                                             V4L2_NV_BUFFER_LAYOUT_PITCH);
// }

ret = ctx->conv->setCapturePlaneFormat(V4L2_PIX_FMT_ABGR32,
                                        1280,
                                        720,
                                        V4L2_NV_BUFFER_LAYOUT_PITCH);

Thanks

Hi,
You also need to set destination resolution to 1280x720.

ret = ctx->conv->setDestRect(0, 0, 1280/*crop.c.width*/, 720/*crop.c.height*/);

Yes, it solve my problem, thanks!!!