nyanmisaka / ffmpeg-rockchip

FFmpeg with async and zero-copy Rockchip MPP & RGA support
Other
325 stars 47 forks source link

使用av_read_frame进行rtsp拉流阻塞的问题 #50

Closed Pi-Boss closed 3 months ago

Pi-Boss commented 3 months ago

当rtsp流设备以外断电后再恢复供电。av_read_frame会被永远阻塞。尽管我已经设置了stimeout / timeout 。这并没有效果 @nyanmisaka

nyanmisaka commented 3 months ago

This sounds like an issue in the RTSP demuxer. The current RKMPP decoder logic is based on the Rockchip maintainer's reference implementation. Please try switching to a software decoder to see if it can still be reproduced.

Also don't submit an issue without any debug logs (-v debug), it won't help.

Pi-Boss commented 3 months ago

It seems I've found the issue. In FFmpeg, obtaining RTSP streams and unwrapping them doesn't rely on hardware decoders. I managed to resolve the continuous blocking by adding callback functions. Thank you! @nyanmisaka