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

Error in decoding the stream when using Hardware Encoder #857

Open
hamzanaeemcowlar opened this issue Apr 27, 2023 · 2 comments
Open

Error in decoding the stream when using Hardware Encoder #857

hamzanaeemcowlar opened this issue Apr 27, 2023 · 2 comments

Comments

@hamzanaeemcowlar
Copy link

Hello,

I am encountering an issue where the saved rtmp stream cannot be played by ffplay, resulting in the following error message:

[h264 @ 0x7f4c4e5cd780] decode_slice_header error
[h264 @ 0x7f4c4e5cd780] no frame!
[h264 @ 0x7f4c4e5cd780] non-existing PPS 0 referenced
Last message repeated 1 times
[h264 @ 0x7f4c4e5cd780] decode_slice_header error
[h264 @ 0x7f4c4e5cd780] no frame!
[mpegts @ 0x7f4c50cfa800] decoding for stream 0 failed

My device is a Radxa Rock 5B, and I am using the "c2.rk.avc.encoder" hardware encoder. I have attempted to resolve the issue by changing the iFrameinterval to 0, but the problem persists. However, when I use a software decoder, the issue is resolved. Unfortunately, my requirements necessitate the use of the hardware encoder. Can you provide assistance with this matter?

@begeekmyfriend

@hamzanaeemcowlar
Copy link
Author

(I used google Translate to write chinese, So, that it is easy for you to understand)

你好,

我遇到保存的rtmp流无法用ffplay播放的问题,导致出现如下错误信息:

[h264 @ 0x7f4c4e5cd780] decode_slice_header error
[h264 @ 0x7f4c4e5cd780] no frame!
[h264 @ 0x7f4c4e5cd780] non-existing PPS 0 referenced
Last message repeated 1 times
[h264 @ 0x7f4c4e5cd780] decode_slice_header error
[h264 @ 0x7f4c4e5cd780] no frame!
[mpegts @ 0x7f4c50cfa800] decoding for stream 0 failed

我的设备是 Radxa Rock 5B,我使用的是“c2.rk.avc.encoder”硬件编码器。我试图通过将 iFrameinterval 更改为 0 来解决问题,但问题仍然存在。但是,当我使用软件解码器时,问题就解决了。不幸的是,我的要求需要使用硬件编码器。你能就此事提供帮助吗?

@begeekmyfriend

@begeekmyfriend
Copy link
Owner

Hi, sorry for my late reply. I am not quite familiar with c2.rk.avc.encoder ported on Rock 5B platform. You need to rewrite SrsEncoder.java maybe to fit the custom SDK.

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