vaapimpeg2enc unable to encode in 1920x1080@60fps
Environment: Platform: TGL/ADL Media stack: Q1 2021 release
Commands to reproduce: gst-launch-1.0 -v videotestsrc pattern=snow ! video/x-raw,width=1920,height=1080,framerate=60/1,format=NV12 ! vaapimpeg2enc ! mpegvideoparse ! mpegtsmux ! filesink location=/home/root/test_mpeg2.mpg gst-launch-1.0 -v videotestsrc pattern=snow ! video/x-raw,width=1920,height=1080,framerate=60/1,format=NV12 ! vaapimpeg2enc ! video/mpeg,profie="high" ! mpegvideoparse ! mpegtsmux ! filesink location=/home/root/test_mpeg2.mpg gst-launch-1.0 -v videotestsrc pattern=snow ! video/x-raw,width=1920,height=1080,framerate=60/1,format=NV12 ! vaapimpeg2enc ! video/mpeg,profie="high-1440" ! mpegvideoparse ! mpegtsmux ! filesink location=/home/root/test_mpeg2.mpg
errors message: Got context from element 'vaapiencodempeg2-0': gst.vaapi.Display=context, gst.vaapi.Display=(GstVaapiDisplay)"(GstVaapiDisplayGLX)\ vaapidisplayglx0"; /GstPipeline:pipeline0/GstVideoTestSrc:videotestsrc0.GstPad:src: caps = video/x-raw, format=(string)NV12, width=(int)1920, height=(int)1152, framerate=(fraction)60/1, multiview-mode=(string)mono, pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive /GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:src: caps = video/x-raw, format=(string)NV12, width=(int)1920, height=(int)1152, framerate=(fraction)60/1, multiview-mode=(string)mono, pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive 0:00:00.064128927 53598 0x5647a7d4d800 ERROR vaapi gstvaapiencoder_mpeg2.c:160:ensure_level: failed to find a suitable level matching codec config /GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:sink: caps = video/x-raw, format=(string)NV12, width=(int)1920, height=(int)1152, framerate=(fraction)60/1, multiview-mode=(string)mono, pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive 0:00:00.064324268 53598 0x5647a7d4d800 ERROR vaapi gstvaapiencoder_mpeg2.c:160:ensure_level: failed to find a suitable level matching codec config 0:00:00.090853084 53598 0x5647a7d4d800 ERROR vaapi gstvaapiencoder_mpeg2.c:160:ensure_level: failed to find a suitable level matching codec config 0:00:00.090913950 53598 0x5647a7d4d800 ERROR vaapi gstvaapiencoder_mpeg2.c:160:ensure_level: failed to find a suitable level matching codec config