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

Timeout getting decoded frame #124

Open
wxd9199 opened this issue Oct 28, 2024 · 1 comment
Open

Timeout getting decoded frame #124

wxd9199 opened this issue Oct 28, 2024 · 1 comment
Labels
question Further information is requested

Comments

@wxd9199
Copy link

wxd9199 commented Oct 28, 2024

decode rtsp hevc steam, use av_hwframe_map copy data, but:

@ avcodec_send_packet(codec_ctx_, packet_)

What's strange is that the problem occurs every time when decode frame 31
log:

[hevc_rkmpp @ 0x7f6000a480] Wrote 5405 bytes to decoder
[2024-10-28 20:22:19.215] [error] [ffmpegdecoder.cc:345] 1: af avcodec_send_packet ms:0
[2024-10-28 20:22:19.215] [info] [ffmpegdecoder.cc:354] ========================startread avcodec_receive_frame num:30
[2024-10-28 20:22:19.215] [info] [readthread.cc:72] Get_Frame time-, duration: 1 delay: 40 remaining_delay:39 fps:25
[2024-10-28 20:22:19.255] [info] [readthread.cc:48] ========================startread!
[NULL @ 0x7f60009d90] nal_unit_type: 1(TRAIL_R), nuh_layer_id: 0, temporal_id: 0
[2024-10-28 20:22:19.256] [error] [ffmpegdecoder.cc:336] 0: GetPacket ret:0 packet_size :6596
[2024-10-28 20:22:19.256] [error] [ffmpegdecoder.cc:339] 1: bf avcodec_send_packet ret:0
[hevc_rkmpp @ 0x7f6000a480] Wrote 6596 bytes to decoder
[2024-10-28 20:22:19.256] [error] [ffmpegdecoder.cc:345] 1: af avcodec_send_packet ms:0
[2024-10-28 20:22:19.256] [info] [ffmpegdecoder.cc:354] ========================startread avcodec_receive_frame num:30
[2024-10-28 20:22:19.256] [info] [readthread.cc:72] Get_Frame time-, duration: 1 delay: 40 remaining_delay:39 fps:25
[2024-10-28 20:22:19.296] [info] [readthread.cc:48] ========================startread!
[NULL @ 0x7f60009d90] nal_unit_type: 1(TRAIL_R), nuh_layer_id: 0, temporal_id: 0
[2024-10-28 20:22:19.297] [error] [ffmpegdecoder.cc:336] 0: GetPacket ret:0 packet_size :6910
[2024-10-28 20:22:19.297] [error] [ffmpegdecoder.cc:339] 1: bf avcodec_send_packet ret:0
[hevc_rkmpp @ 0x7f6000a480] Timeout getting decoded frame
[hevc_rkmpp @ 0x7f6000a480] Timeout getting decoded frame
[hevc_rkmpp @ 0x7f6000a480] Timeout getting decoded frame
[hevc_rkmpp @ 0x7f6000a480] Timeout getting decoded frame
[hevc_rkmpp @ 0x7f6000a480] Timeout getting decoded frame
[hevc_rkmpp @ 0x7f6000a480] Timeout getting decoded frame
[hevc_rkmpp @ 0x7f6000a480] Timeout getting decoded frame
[hevc_rkmpp @ 0x7f6000a480] Timeout getting decoded frame
[hevc_rkmpp @ 0x7f6000a480] Timeout getting decoded frame
[hevc_rkmpp @ 0x7f6000a480] Timeout getting decoded frame
[hevc_rkmpp @ 0x7f6000a480] Timeout getting decoded frame

@nyanmisaka nyanmisaka added the question Further information is requested label Oct 28, 2024
@nyanmisaka
Copy link
Owner

Test decoder with the ffmpeg command listed in the Wiki page.
https://github.com/nyanmisaka/ffmpeg-rockchip/wiki/Decoder

If it works fine, check your own code instead of ffmpeg-rockchip.

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

No branches or pull requests

2 participants