Install any skill in seconds. Free to start, no credit card required.
Get Started Free →yangge521/rtmp-streaming
RTMP 视频推流方案,使用 FFmpeg + SRS 流媒体服务器实现推理结果实时推流
Passed 18 of 21 test cases with the skill, and 15 of 21 without it.
3 fixed16 passed either way3 still failing0 broke
Tokens, turns and time describe resource use, not a dollar price.
The instructions your model reads when the skill loads.
使用 FFmpeg 将 YOLO 推理结果帧编码推流到 SRS 流媒体服务器,实现实时视频分析结果分发。支持 GPU 硬件编码加速(NVENC/VA-API/摩尔线程 mtenc)。
docker run -d --name srs -p 1935:1935 -p 8080:8080 ossrs/srs:latest
构建 ffmpeg 命令:输入 rawvideo/bgr24/1920x1080/60fps,输出 libx264/ultrafast/zerolatency/flv 到 rtmp://127.0.0.1:1935/live/stream_01。通过 subprocess.Popen 启动进程,用 proc.stdin.write 写入帧数据。
使用 StreamManager 类管理多个推流进程:add_stream 创建进程,write_frame 写入帧,按 GPU 分配编码资源。
test cases passed, vs 15 / 21 without
More skills from the same source and nearby in the registry, with their headline benchmark lift.