q191201771 / lal

🔥 Golang audio/video live streaming lib/client/server. support RTMP, RTSP(RTP/RTCP), HLS, HTTP[S]/WebSocket-FLV/TS, GB28181, H264/H265/AAC/G711/OPUS, relay, cluster, record, HTTP Notify/API/UI. 直播

Home Page:https://pengrl.com/lal

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Bug] Stream_Name 为空,无法拉流

libreui opened this issue · comments

lal_server: master分支
始终无法得到steam_name, 无法拉流

{
    "error_code": 0,
    "desp": "succ",
    "data": {
        "groups": [
            {
                "stream_name": "", /* 不正确 */
                "app_name": "live/libre", /* 不正确 */
                "audio_codec": "AAC",
                "video_codec": "H264",
                "video_width": 1280,
                "video_height": 720,
                "pub": {
                    "session_id": "RTMPPUBSUB1",
                    "protocol": "RTMP",
                    "base_type": "PUB",
                    "remote_addr": "192.168.0.125:62469",
                    "start_time": "2023-07-09 13:52:35.774",
                    "read_bytes_sum": 2610213,
                    "wrote_bytes_sum": 3500,
                    "bitrate_kbits": 1961,
                    "read_bitrate_kbits": 1961,
                    "write_bitrate_kbits": 0
                },
                "subs": null,
                "pull": {
                    "session_id": "",
                    "protocol": "",
                    "base_type": "",
                    "remote_addr": "",
                    "start_time": "",
                    "read_bytes_sum": 0,
                    "wrote_bytes_sum": 0,
                    "bitrate_kbits": 0,
                    "read_bitrate_kbits": 0,
                    "write_bitrate_kbits": 0
                },
                "in_frame_per_sec": []
            }
        ]
    }
}

推流用的什么,完整的推流url是什么,

使用的OBS推流
推流URL:
rtmp://192.168.0.200:1935/live/libre

可能是obs填写URL没填对,按下面的方法试试:

服务器输入框中填写 rtmp://127.0.0.200:1935/live
串流密钥输入框中填写 libre