intel / intel/libvpl

Enhance HEVC Decoding Compatibility of Intel VPL 2.15.0 on Ubuntu 22.04

Open
#191 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
371
Forks
107
PR merge metrics
No merged PRs in 30d

Description

# Background
1. Hardware: Intel I7-10500, 16GB Memory
2. Operating System: Ubuntu 22.04
3. Library Version: Intel VPL 2.15.0

# Problem Description
When I attempted to decode HEVC videos using the legacy-decode mode of Intel VPL, the decoding failed with an error code of -15.
The same HEVC videos can be decoded successfully via FFmpeg software decoding, and can also be played normally in mainstream media players.
Root Cause Analysis
Through log printing and debugging, I inferred that the decoding failure might be caused by the VPL decoder's inability to properly parse and process the HEVC sequence header of the original video stream.
A workaround was tested and verified as follows:
Use FFmpeg to remux the original HEVC stream into an MP4 container with the command: ffmpeg -i input.hevc -vcodec copy output.mp4
Extract the HEVC stream from the remuxed MP4 file again with: ffmpeg -i output.mp4 -vcodec copy extracted.hevc
The extracted HEVC stream can then be decoded normally by the VPL legacy-decode mode.

[cam_1080p-test.zip](https://github.com/user-attachments/files/24726486/cam_1080p-test.zip)

# Question
What configurations or modifications can be made to improve the robustness of the Intel VPL decoder, enabling it to decode the original HEVC streams correctly without the need for pre-remuxing?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.