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

How to handle AVERROR(EAGAIN) #21

Open
peteryang023 opened this issue Aug 29, 2021 · 2 comments
Open

How to handle AVERROR(EAGAIN) #21

peteryang023 opened this issue Aug 29, 2021 · 2 comments

Comments

@peteryang023
Copy link

I meet a problem while calling avcodec_receive_packet to encode png bytes into H264, it returns AVERROR(EAGAIN) in the first 10s, from the comment, it mentions that:
0 on success, otherwise negative error code: AVERROR(EAGAIN): output is not available in the current state - user must try to send input AVERROR_EOF: the encoder has been fully flushed, and there will be no more output packets AVERROR(EINVAL): codec not opened, or it is a decoder other errors: legitimate encoding errors
I want to know how to clear the buffer while returning errors. How to send AVERROR_EOF?

@Ruslan-B Ruslan-B transferred this issue from Ruslan-B/FFmpeg.AutoGen Aug 30, 2021
@Ruslan-B
Copy link
Owner

Transferred, not related to bindings

@Ruslan-B
Copy link
Owner

I guess looking for C\C++ examples going to be good advice.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants