use vaapih264enc encode yuv fail
This is the test video: http://mirror.lemaker.org/bus_vga.7z
ubuntu 18.04
ii gstreamer1.0-tools 1.14.1-1ubuntu18.04.2 amd64 Tools for use with GStreamer
ii gstreamer1.0-vaapi:amd64 1.14.1-1ubuntu18.04.1 amd64 VA-API plugins for GStreamer
lspci -nn|grep -i vga
04:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Ellesmere [Radeon RX 470/480] [1002:67df] (rev ef)
ii mesa-amdgpu-va-drivers:amd64 1:18.0.0-673703 amd64 Mesa VA-API video acceleration drivers
ii mesa-amdgpu-vdpau-drivers:amd64 1:18.0.0-673703 amd64 Mesa VDPAU video acceleration drivers
gst-launch-1.0 --gst-debug-level=2 filesrc location=./bus_vga.yuv ! videoparse format=2 width=640 height=480 framerate=25/1 ! vaapih264enc ! filesink location=./out.avc Setting pipeline to PAUSED ... 0:00:02.155217539 21062 0x5638182b2950 WARN basesrc gstbasesrc.c:3583:gst_base_src_start_complete: pad not activated yet Pipeline is PREROLLING ... Got context from element 'vaapiencodeh264-0': gst.vaapi.Display=context, gst.vaapi.Display=(GstVaapiDisplay)"(GstVaapiDisplayDRM)\ vaapidisplaydrm1"; 0:00:02.157118958 21062 0x5638182b5ca0 WARN baseparse gstbaseparse.c:3611:gst_base_parse_loop:<inner_rawvideoparse> error: Internal data stream error. 0:00:02.157158211 21062 0x5638182b5ca0 WARN baseparse gstbaseparse.c:3611:gst_base_parse_loop:<inner_rawvideoparse> error: streaming stopped, reason not-negotiated (-4) ERROR: from element /GstPipeline:pipeline0/GstVideoParse:videoparse0/GstRawVideoParse:inner_rawvideoparse: Internal data stream error. Additional debug info: gstbaseparse.c(3611): 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 NULL ... Freeing pipeline ...