Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SRT is not enabled, and SRT live streaming cannot be performed #4275

Open
zeke202207 opened this issue Jan 6, 2025 · 0 comments
Open

SRT is not enabled, and SRT live streaming cannot be performed #4275

zeke202207 opened this issue Jan 6, 2025 · 0 comments
Labels
TransByAI Translated by AI/GPT.

Comments

@zeke202207
Copy link

zeke202207 commented Jan 6, 2025

Describe the bug

I am a beginner user of SRS and encountered an issue during the configuration process. Following the official documentation to configure SRT found here: https://ossrs.net/lts/zh-cn/docs/v6/doc/srt, I used the default srt.conf to start SRS. However, I noticed that port 10080 was not being listened to, which resulted in a failure when attempting to stream with ffmpeg.

Version

Version: 6.0.155
Operating Platform: Windows 10

To Reproduce

  1. The default configuration for srt.conf is as follows:
# SRT config.

listen              1935;
max_connections     1000;
daemon              off;
srs_log_tank        console;

http_api {
    enabled         on;
    listen          1985;
}

http_server {
    enabled         on;
    listen          8080;
    dir             ./objs/nginx/html;
}

srt_server {
    enabled on;
    listen **10080**;
    maxbw 1000000000;
    connect_timeout 4000;
    peerlatency 0;
    recvlatency 0;
    latency 0;
    tsbpdmode off;
    tlpktdrop off;
    sendbuf 2000000;
    recvbuf 2000000;
}

# @doc https://github.com/ossrs/srs/issues/1147#issuecomment-577607026
vhost __defaultVhost__ {
    srt {
        enabled     on;
        srt_to_rtmp on;
    }

    http_remux {
        enabled     on;
        mount       [vhost]/[app]/[stream].flv;
    }
}
  1. In the Windows Command Prompt, running the command netstat -ano | findstr 10080 did not reveal any services listening.

image

  1. FFMpeg failed to initiate streaming.
ffmpeg -re -i 1.mp4 -c copy -pes_payload_size 0 -f mpegts  'srt://127.0.0.1:10080?streamid=#!::r=live/livestream,m=publish'

image

TRANS_BY_GPT4

@winlinvip winlinvip added the TransByAI Translated by AI/GPT. label Jan 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
TransByAI Translated by AI/GPT.
Projects
None yet
Development

No branches or pull requests

2 participants