vaapipostproc can't handle framerate setting
when using vaapipostproc the framerate can't work
./gst-launch-1.0 rtspsrc location=rtsp://192.168.100.146:8554/live/token10 latency=0 protocols=0x00000004 buffer-mode=auto ! rtph265depay ! h265parse ! vaapih265dec ! vaapipostproc ! "video/x-raw, width=1280,height=720,framerate=(fraction)25/1" ! vaapih264enc ! fakesink
and the error:
Got context from element 'vaapiencodeh264-0': gst.vaapi.Display=context, gst.vaapi.Display=(GstVaapiDisplay)"\(GstVaapiDisplayDRM\)\ vaapidisplaydrm1", gst.vaapi.Display.GObject=(GstObject)"\(GstVaapiDisplayDRM\)\ vaapidisplaydrm1";
Progress: (open) Opening Stream
Pipeline is PREROLLED ...
Prerolled, waiting for progress to finish...
Progress: (connect) Connecting to rtsp://192.168.100.146:8554/live/token10
Progress: (open) Retrieving server options
Progress: (open) Retrieving media info
Progress: (request) SETUP stream 0
Progress: (open) Opened Stream
Setting pipeline to PLAYING ...
New clock: GstSystemClock
Progress: (request) Sending PLAY request
Progress: (request) Sending PLAY request
Progress: (request) Sent PLAY request
Redistribute latency...
Redistribute latency...
0:00:00.919198096 17782 0x24a4b00 WARN basetransform gstbasetransform.c:1370:gst_base_transform_setcaps:<vaapipostproc0> transform could not transform video/x-raw(memory:VASurface), format=(string)NV12, width=(int)1920, height=(int)1080, 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, colorimetry=(string)1:4:5:3, framerate=(fraction)0/1 in anything we support
0:00:00.919270629 17782 0x24a4b00 WARN basetransform gstbasetransform.c:1370:gst_base_transform_setcaps:<vaapipostproc0> transform could not transform video/x-raw(memory:VASurface), format=(string)NV12, width=(int)1920, height=(int)1080, 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, colorimetry=(string)1:4:5:3, framerate=(fraction)0/1 in anything we support
0:00:00.919276389 17782 0x24a4b00 WARN GST_PADS gstpad.c:4351:gst_pad_peer_query:<vaapidecode_h265-0:src> could not send sticky events
0:00:00.919468584 17782 0x24a4b00 WARN basetransform gstbasetransform.c:1370:gst_base_transform_setcaps:<vaapipostproc0> transform could not transform video/x-raw(memory:VASurface), format=(string)NV12, width=(int)1920, height=(int)1080, 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, colorimetry=(string)1:4:5:3, framerate=(fraction)0/1 in anything we support
0:00:00.919525283 17782 0x24a4b00 WARN basetransform gstbasetransform.c:1370:gst_base_transform_setcaps:<vaapipostproc0> transform could not transform video/x-raw(memory:VASurface), format=(string)NV12, width=(int)1920, height=(int)1080, 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, colorimetry=(string)1:4:5:3, framerate=(fraction)0/1 in anything we support
0:00:00.919587125 17782 0x24a4b00 WARN basetransform gstbasetransform.c:1370:gst_base_transform_setcaps:<vaapipostproc0> transform could not transform video/x-raw(memory:VASurface), format=(string)NV12, width=(int)1920, height=(int)1080, 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, colorimetry=(string)1:4:5:3, framerate=(fraction)0/1 in anything we support
0:00:00.920598751 17782 0x24a4700 WARN rtspsrc gstrtspsrc.c:6234:gst_rtspsrc_loop:<rtspsrc0> error: Internal data stream error.
0:00:00.920608516 17782 0x24a4700 WARN rtspsrc gstrtspsrc.c:6234:gst_rtspsrc_loop:<rtspsrc0> error: streaming stopped, reason not-negotiated (-4)
ERROR: from element /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0: Internal data stream error.
Additional debug info:
../subprojects/gst-plugins-good/gst/rtsp/gstrtspsrc.c(6234): gst_rtspsrc_loop (): /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0:
streaming stopped, reason not-negotiated (-4)
Execution ended after 0:00:00.815900278
Setting pipeline to NULL ...
0:00:00.924284612 17782 0x24a4700 WARN default gstrtspconnection.c:1354:writev_bytes: Operation was cancelled
0:00:00.924294652 17782 0x24a4700 WARN rtspsrc gstrtspsrc.c:6589:gst_rtspsrc_try_send:<rtspsrc0> error: Could not send message. (Received end-of-file)
ERROR: from element /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0: Could not write to resource.
Additional debug info:
../subprojects/gst-plugins-good/gst/rtsp/gstrtspsrc.c(6589): gst_rtspsrc_try_send (): /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0:
Could not send message. (Received end-of-file)
0:00:00.924320430 17782 0x24a4700 WARN rtspsrc gstrtspsrc.c:9016:gst_rtspsrc_pause:<rtspsrc0> error: Could not send message. (Received end-of-file)
ERROR: from element /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0: Could not write to resource.
Additional debug info:
../subprojects/gst-plugins-good/gst/rtsp/gstrtspsrc.c(9016): gst_rtspsrc_pause (): /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0:
Could not send message. (Received end-of-file)
Freeing pipeline ...
when remote the framerate, the pipeline works:
./gst-launch-1.0 rtspsrc location=rtsp://192.168.100.146:8554/live/token10 latency=0 protocols=0x00000004 buffer-mode=auto ! rtph265depay ! h265parse ! vaapih265dec ! vaapipostproc ! "video/x-raw, width=1280,height=720" ! vaapih264enc ! fakesink