Project

General

Profile

ZLMediaKit

  1. 开启MediaServer(编译后目录:ZLMediaKit/release/linux/Debug)
    ./MediaServer -s default.pem -c config.ini -l 0
    

    注:
    1)config.ini有个配置:
    [rtc]
    datachannel_echo=1
    用于实时通信(RTC)应用程序中,特别是在使用 WebRTC 的情况下,启用数据通道的回显功能。
    启用 datachannel_echo=1 后,数据通道会将接收到的数据回传给发送者。这在调试和测试时非常有用,因为它允许开发者验证数据是否正确发送和接收。
    默认可以不打开
    2)-l 代表 "log level"(日志级别)
    3)版本:
    origin https://gitee.com/xia-chu/ZLMediaKit (fetch)
    origin https://gitee.com/xia-chu/ZLMediaKit (push)
    当前git分支: master
    当前git hash值: 61a93fa
  2. 推流:ffmpeg version 4.2.7-0ubuntu0.1
    ffmpeg -re -stream_loop -1 -i 1.mp4 -vcodec copy -acodec copy -f flv -y rtmp://127.0.0.1:1935/live/livestream
    
  3. 拉流
    rtsp://127.0.0.1:554/live/livestream