Vaapivp9enc negotiation error for 4k yuv stream
ENV: Gstreamer: commit 20301a882008dc849abec33d5d29d86441d86cae gst-plugins-base: commit a171eb80d6d809e3be3cd0531e499dde3c3a3f33 gst-plugins-good: commit 8445685a21b7c912595827646ef2900ebc84a100 gstreamer-vaapi: commit 5fe553f4
I am running below gstreamer command on TigerLake platform:
#gst-launch-1.0 filesrc location=test_3840x2160_NV12.yuv ! videoparse format=nv12 width=3840 height=2160 ! vaapivp9enc ! matroskamux ! filesink location=/tmp/out.vp9 Setting pipeline to PAUSED ... Pipeline is PREROLLING ... Got context from element 'vaapiencodevp9-0': gst.vaapi.Display=context, gst.vaapi.Display=(GstVaapiDisplay)"(GstVaapiDisplayGLX)\ vaapidisplayglx0"; ERROR: from element /GstPipeline:pipeline0/GstVideoParse:videoparse0/GstRawVideoParse:inner_rawvideoparse: Internal data stream error. Additional debug info: ../libs/gst/base/gstbaseparse.c(3679): gst_base_parse_loop (): /GstPipeline:pipeline0/GstVideoParse:videoparse0/GstRawVideoParse:inner_rawvideoparse: streaming stopped, reason not-negotiated (-4) ERROR: pipeline doesn't want to preroll. Setting pipeline to PAUSED ... Pipeline is PREROLLED ... Setting pipeline to PLAYING ... New clock: GstSystemClock Setting pipeline to READY ... Setting pipeline to NULL ... Freeing pipeline ...
Whereas 1080p below command working fine. #gst-launch-1.0 filesrc location=test_1080p_NV12.yuv ! videoparse format=nv12 width=1920 height=1080 ! vaapivp9enc ! matroskamux ! filesink location=/tmp/out1.vp9