encoder H264

Open
#157 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
25/100
Issue type
Documentation
Clarity
Needs clarification
Activity status
Stale
Tech stack
c

Research direction

Start with libva-utils/encode/h264encode.c and the SURFACE_NUM definition. Trace how surfaces are allocated and used, then compare the behavior for values 1, 2, and 3. Done would be a clear explanation of the value's role and why smaller values produce an error.

Written by the indexing model from the issue text.

Description

Hello i try to use encoder h264 in my project.
I'm a newbie in decoding/encoding.
In example libva-utils/encode/h264encode.c there is a line - #define SURFACE_NUM 16 /* 16 surfaces for reference */
What does this number mean?
In example we upload the first SURFACE_NUM frames from file into surfaces, then encode all frames.
It's encoding buffer? If i reduce this number to 1 or 2 i have an error - 3 and more - working case.

Dominant language
C
Stars
244
Forks
175
Avg merge
9d 7h
Merged PRs (30d)
1

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from intel/libva-utils

All issues in intel/libva-utils

Similar issues

More C issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.