mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2026-01-24 07:31:22 +01:00
avcodec_receive_packet return AVERROR(EAGAIN),cannot receive encoded packets continuously #58
Labels
No labels
bug
enhancement
help wanted
invalid
pull-request
question
upstream
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: starred/ffmpeg-rockchip#58
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @MUCHWAY on GitHub (May 26, 2024).
avcodec_receive_packet cannot receive encoded packets continuously. The current thinking is that 'h264_rkmpp' is used as decoder and encoder. The frame rate of video source is 25fps. avcodec_receive_packet does not receive packets in every cycle. Packets are always received after an interval of one cycle.
My key code is:
When code is run, output information via printf:
avcodec_receive_packetreturn AVERROR(EAGAIN),I try to send more packet to endocer, but there was no improvement.@MUCHWAY commented on GitHub (May 26, 2024):
When I use
h264_rkmpponly as an encoder, not as a decoder, the same program runs as follows:@nyanmisaka commented on GitHub (May 26, 2024):
Please use the ffmpeg command line to reproduce the issue.
@nyanmisaka commented on GitHub (Jun 10, 2024):
Use
-flags +low_delayif you need one-input-one-output encoder mode.