videocrop: Fail to accept nor reject the unsupported caps such as P010_10LE
Describe your issue
The following commands can not work:
gst-launch-1.0 -vf filesrc location=10bits-444.h265 ! h265parse ! vah265dec ! vapostproc ! "video/x-raw" ! videocrop left=100 ! glimagesink
and
gst-launch-1.0 -vf filesrc location=10bits.h265 ! h265parse ! vah265dec ! vapostproc ! "video/x-raw" ! videocrop left=100 ! glimagesink
Fails with log:
0:00:00.066613464 3294429 0x55fb30573b60 WARN videocrop gstvideocrop.c:931:gst_video_crop_set_info:<videocrop0> Unsupported format
0:00:00.066623275 3294429 0x55fb30573b60 WARN basetransform gstbasetransform.c:1379:gst_base_transform_setcaps:<videocrop0> FAILED to configure incaps video/x-raw, width=(int)800, height=(int)600, interlace-mode=(string)progressive, multiview-mode=(string)mono, multiview-flags=(GstVideoMultiviewFlagsSet)0:ffffffff:/right-view-first/left-flipped/left-flopped/right-flipped/right-flopped/half-aspect/mixed-mono, pixel-aspect-ratio=(fraction)1/1, framerate=(fraction)30/1, format=(string)P010_10LE and outcaps video/x-raw, width=(int)700, height=(int)600, interlace-mode=(string)progressive, multiview-mode=(string)mono, multiview-flags=(GstVideoMultiviewFlagsSet)0:ffffffff:/right-view-first/left-flipped/left-flopped/right-flipped/right-flopped/half-aspect/mixed-mono, pixel-aspect-ratio=(fraction)1/1, framerate=(fraction)30/1, format=(string)P010_10LE
Expected Behavior
The image should be displayed correctly. The vapostproc should convert the P010_10LE to some supported format by videcrop and the command should run correctly.
Observed Behavior
Error with not-negotiated (-4), leaving vapostproc do nothing.
Setup
- Operating System: Linux
- GStreamer Version:
- Command line: