zhangsong1234
zhangsong1234
> > Hi, > > i have a problem with module, only work with 2 connections, can you help me with NGINX conf? > > Thx > > Same here....
graph.force_close()是不是不会把ffmpeg运行的线程杀死,使用graph.force_close()后进程出现了异常,Ctrl+c 杀不死脚本进程了
看起来可能是rtsp使用了udp传输导致的丢包,程序中是否可以配置-rtsp_transport tcp参数?
ffmpeg_decoder.cpp 中 获取input_path后,添加如下代码,解决了丢包问题 if (input_path_.find("rtsp://") != -1) { av_dict_set(&opts, "rtsp_transport", "tcp", 0); } 但在拉流过程中,通过调用forcer_close(),有时会导致程序core掉,应该是ffmpeg未释放导致