当调用ffmpeg推拉流接口后,一段时间后自动断流,在重新调用该接口 同一个rtmp地址的,会循环开启推拉流断流 一直

看了下代码大概是ffmpeg的map缓存的key没有清理掉导致,如果主动调用delFFmpegSource就没问题

以下是部分日志

2020-10-23 01:02:22.077 D MediaServer[6] RtmpSession.cpp:25 ~RtmpSession | 139988151597728(172.17.0.1:53062)

2020-10-23 01:02:22.077 I MediaServer[6] MediaSource.cpp:379 emitEvent | 媒体注销:rtmp defaultVhost live 5555

2020-10-23 01:02:22.077 I MediaServer[6] MediaSource.cpp:379 emitEvent | 媒体注销:ts defaultVhost live 5555

2020-10-23 01:02:22.077 I MediaServer[6] MediaSource.cpp:379 emitEvent | 媒体注销:hls defaultVhost live 5555

2020-10-23 01:02:22.077 I MediaServer[6] MediaSource.cpp:379 emitEvent | 媒体注销:rtsp defaultVhost live 5555

2020-10-23 01:02:22.077 I MediaServer[6] MediaSource.cpp:379 emitEvent | 媒体注销:fmp4 defaultVhost live 5555

2020-10-23 01:02:22.078 T MediaServer[6] HttpSession.cpp:112 onError | 139988155095136(127.0.0.1:44837) end of file

2020-10-23 01:02:22.078 T MediaServer[6] HttpSession.cpp:32 ~HttpSession | 139988155095136(127.0.0.1:44837)

2020-10-23 01:03:16.695 I MediaServer[6] Process.cpp:193 s_wait | process terminated, pid=335, exit code=1

2020-10-23 01:03:16.695 W MediaServer[6] Process.cpp:251 s_kill | kill process 335 failed:no such process

2020-10-23 01:03:16.695 I MediaServer[6] Process.cpp:141 run | start child process 361, log file:/opt/media/bin/ffmpeg/ffmpeg.log.361

Logo

北京人形旗下天工造物具身智能开源社区,聚焦具身天工与慧思开物两大平台

更多推荐