BabitMF / bmf

Cross-platform, customizable multimedia/video processing framework. With strong GPU acceleration, heterogeneous design, multi-language support, easy to use, multi-framework compatible and high performance, the framework is ideal for transcoding, AI inference, algorithm integration, live video streaming, and more.
https://babitmf.github.io/
Apache License 2.0
773 stars 65 forks source link

输入为rtsp直播流时,有时会出现av_read_frame(input_fmt_ctx_, &pkt)返回AVERROR_EOF #123

Open zhangsong1234 opened 3 months ago

zhangsong1234 commented 3 months ago

同时起多个bmf脚本,每个脚本拉取一路直播流,过程中有时会出现av_read_frame(input_fmtctx, &pkt)返回AVERROR_EOF,导致程序终止

JackLau1222 commented 3 months ago

用的哪个脚本?直播流确认无误没有丢包? 可以先用ffplay验证一下

zhangsong1234 commented 3 months ago

用的人脸识别的脚本,模型替换为了自己的模型,中间添加了部分处理逻辑,逻辑上有时会耗时较长,但总体是可以达到实时处理的速度。 rtsp流采用的tcp传输,基本不会有丢包。直播流是一直有的且正常

zhangsong1234 commented 3 months ago

用人脸识别的脚本,在inference中添加time.sleep(0.1)会很容易复现这种问题,现象看起来是在压力大时比较容易出现