vaapipostproc changes size of image even when width and height parameter are set to 0
Hi,
I am using the next pipeline:
rtspsrc->rtph264depay->h264parse->vaapih264dec->vaapipostproc->capsfilter->videoconvert->appsink
When I set the parameters of width and height in vaapipostproc it works fine, but when I don't specify the width and height there is an IP camera that shows a green screen image. If I remove the vaapipostproc from the pipeline, then it works fine but we need to have this component in the pipeline.
When I put the debugger in gstreamer with GST_DEBUG=3, these are the error messages I get from the pipeline:
0:00:40.831616665 6 0x7f00286d8400 WARN videofilter gstvideofilter.c:296:gst_video_filter_transform: warning: invalid video buffer received 0:00:40.950975777 6 0x7f00286d8400 ERROR default video-frame.c:181:gst_video_frame_map_id: invalid buffer size 6185160 < 6186240
I printed the size of the image in the appsink and it was [1908x1080], but the IP camera is configured to [1920x1080]. If I changed the size of the video in the camera configuration UI to [2688x1520], which it is the maximum value, then it shows the video correctly.
My question is why I do I see the green image when the camera resolution is set to [1920x1080] and it only works when it is set to maximum resolution? We can't hardcode the size of the image so I wonder if I am missing something.
Thanks in advances for your help.
Gstreamer version: GStreamer Core Library version 1.20.3