Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: encoder vah264enc failed #1823

Open
fti-npawar opened this issue Jun 26, 2024 · 1 comment
Open

[Bug]: encoder vah264enc failed #1823

fti-npawar opened this issue Jun 26, 2024 · 1 comment
Assignees
Labels
AVC AVC , MPEG2 VP8 etc. Encode video encode related

Comments

@fti-npawar
Copy link

fti-npawar commented Jun 26, 2024

Which component impacted?

No response

Is it regression? Good in old configuration?

None

What happened?

  1. Build libva 2.21 and latest media-driver 24.1.5.

  2. Pipeline -
    GST_DEBUG=3 gst-launch-1.0 filesrc location=filename.mp4 ! h264parse ! vah264dec ! vah264enc ! h264parse ! filesink location=Videos.h264

  3. Logs

`0:00:00.032152231 15995 0x557c6d7224a0 ERROR               vafilter gstvafilter.c:381:gst_va_filter_open:<vafilter0> vaCreateContext: resource allocation failed
0:00:00.032170274 15995 0x557c6d7224a0 WARN                      va plugin.c:248:plugin_register_vpp: Failed open VA filter
Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
Got context from element 'vah264enc0': gst.va.display.handle=context, gst-display=(GstObject)"\(GstVaDisplayDrm\)\ vadisplaydrm2", description=(string)"Intel\(R\)\ Gen\ Graphics", path=(string)/dev/dri/renderD128;
`

What's the usage scenario when you are seeing the problem?

Transcode for media delivery, Others

What impacted?

No response

Debug Information

  1. Platform Details -
    GPU: Meteor Lake-P [Intel Arc Graphics]
    CPU: Intel® Core™ Ultra 7 Processor 155HL
    Kernel: Linux 6.7.12+bpo-amd64 1 SMP PREEMPT_DYNAMIC Debian 6.7.12-1~bpo12+1 (2024-05-06) x86_64 GNU/Linux

  2. OS Details:
    OS: Ubuntu: 22.04
    libva version: 2.21
    libva-utils version: 2.21
    GmmLib: intel-gmmlib-22.3.18
    Driver version: Intel iHD driver for Intel(R) Gen Graphics - 24.1.5
    GStreamer: 1.24.0

  3. ls /dev/dri
    image

  4. vainfo

error: can't connect to X server!
libva info: VA-API version 1.21.0
libva info: User environment variable requested driver 'iHD'
libva info: Trying to open /opt/scorer/lib/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_21
libva info: va_openDriver() returns 0
vainfo: VA-API version: 1.21 (libva 2.12.0)
vainfo: Driver version: Intel iHD driver for Intel(R) Gen Graphics - 24.1.5 (8068c2e11)
vainfo: Supported profile and entrypoints
      VAProfileNone                   :	VAEntrypointVideoProc
      VAProfileMPEG2Simple            :	VAEntrypointVLD
      VAProfileMPEG2Main              :	VAEntrypointVLD
      VAProfileH264Main               :	VAEntrypointVLD
      VAProfileH264Main               :	VAEntrypointEncSlice
      VAProfileH264High               :	VAEntrypointVLD
      VAProfileH264High               :	VAEntrypointEncSlice
      VAProfileJPEGBaseline           :	VAEntrypointVLD
      VAProfileJPEGBaseline           :	VAEntrypointEncPicture
      VAProfileH264ConstrainedBaseline:	VAEntrypointVLD
      VAProfileH264ConstrainedBaseline:	VAEntrypointEncSlice
      VAProfileVP8Version0_3          :	VAEntrypointVLD
      VAProfileHEVCMain               :	VAEntrypointVLD
      VAProfileHEVCMain               :	VAEntrypointEncSlice
      VAProfileHEVCMain10             :	VAEntrypointVLD
      VAProfileHEVCMain10             :	VAEntrypointEncSlice
      VAProfileVP9Profile0            :	VAEntrypointVLD
      VAProfileVP9Profile0            :	VAEntrypointEncSlice
      VAProfileVP9Profile1            :	VAEntrypointVLD
      VAProfileVP9Profile1            :	VAEntrypointEncSlice
      VAProfileVP9Profile2            :	VAEntrypointVLD
      VAProfileVP9Profile2            :	VAEntrypointEncSlice
      VAProfileVP9Profile3            :	VAEntrypointVLD
      VAProfileVP9Profile3            :	VAEntrypointEncSlice
      VAProfileHEVCMain12             :	VAEntrypointVLD
      VAProfileHEVCMain422_10         :	VAEntrypointVLD
      VAProfileHEVCMain422_12         :	VAEntrypointVLD
      VAProfileHEVCMain444            :	VAEntrypointVLD
      VAProfileHEVCMain444            :	VAEntrypointEncSlice
      VAProfileHEVCMain444_10         :	VAEntrypointVLD
      VAProfileHEVCMain444_10         :	VAEntrypointEncSlice
      VAProfileHEVCMain444_12         :	VAEntrypointVLD
      VAProfileHEVCSccMain            :	VAEntrypointVLD
      VAProfileHEVCSccMain            :	VAEntrypointEncSlice
      VAProfileHEVCSccMain10          :	VAEntrypointVLD
      VAProfileHEVCSccMain10          :	VAEntrypointEncSlice
      VAProfileHEVCSccMain444         :	VAEntrypointVLD
      VAProfileHEVCSccMain444         :	VAEntrypointEncSlice
      VAProfileAV1Profile0            :	VAEntrypointVLD
      VAProfileAV1Profile0            :	VAEntrypointEncSlice
      VAProfileHEVCSccMain444_10      :	VAEntrypointVLD
      VAProfileHEVCSccMain444_10      :	VAEntrypointEncSlice`

libva_trace.log.095009.zip

Do you want to contribute a patch to fix the issue?

None

@fti-npawar fti-npawar changed the title [Bug]: [Bug]: encoder vah264enc failed Jun 26, 2024
@Jexu Jexu added Encode video encode related AVC AVC , MPEG2 VP8 etc. labels Jul 9, 2024
@intel-mediadev
Copy link
Contributor

Auto Created VSMGWL-74802 for further analysis.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
AVC AVC , MPEG2 VP8 etc. Encode video encode related
Projects
None yet
Development

No branches or pull requests

5 participants