Giter Site home page Giter Site logo

Comments (6)

timfengzi avatar timfengzi commented on June 6, 2024

The entire SRS program will crash, rendering all pages inaccessible.

TRANS_BY_GPT4

from srs.

winlinvip avatar winlinvip commented on June 6, 2024

It is a bug about converting RTSP to RTMP, there is a log "duration":1.23:

[2024-04-15 22:12:17.076][INFO][1537][41559egi] 45B video sh, codec(7, profile=Main, level=5.1, 3200x1800, 0kbps, 0.0fps, 0.0s)
[2024-04-15 22:12:17.077][INFO][1537][41559egi] 7B audio sh, codec(10, profile=LC, 1channels, 0kbps, 8000HZ), flv(16bits, 2channels, 44100HZ)
[2024-04-15 22:12:18.271][INFO][1537][41559egi] time diff to large=1293, next out=7072, new pkt=1440, set to new pkt

[2024-04-15 22:13:23.287][WARN][1537][41559egi][62] ignore task failed code=1018(StConnect)(ST connect server failed) : callback on_hls http://127.0.0.1:7071/controller/srs/onHls : http: post http://127.0.0.1:7071/controller/srs/onHls with {"server_id":"vid-4249b16","service_id":"0ta99422","action":"on_hls","client_id":"41559egi","ip":"127.0.0.1","vhost":"__defaultVhost__","app":"live","tcUrl":"rtmp://127.0.0.1:1935/live","stream":"3144002875-1360-49","param":"?ipc_id=3144002875-1360-49&id=492",
"duration":1.23,"cwd":"/","file":"./objs/nginx/html/live/3144002875-1360-49/2-1713190361081.ts","url":"live/3144002875-1360-49/2-1713190361081.ts","m3u8":"./objs/nginx/html/live/3144002875-1360-49/3144002875-1360-49.m3u8","m3u8_url":"live/3144002875-1360-49/3144002875-1360-49.m3u8","seq_no":2,"stream_url":"/live/3144002875-1360-49","stream_id":"vid-b933772"}, status=28671, res= : http: client post : http: connect server : http: tcp connect http 127.0.0.1:7071 to=30000ms, rto=30000ms : tcp: connect 127.0.0.1:7071 to=30000ms : connect to 127.0.0.1:7071

I think it's related to your stream content. Could you describe how to reproduce this issue? What's your RTSP client? Which browser did you use?

from srs.

timfengzi avatar timfengzi commented on June 6, 2024

The network camera is utilizing FFmpeg to pull an RTSP stream and then convert it to an RTMP stream for broadcasting, using the SRS (Simple Real-time Server) on a Windows platform.

TRANS_BY_GPT4

from srs.

winlinvip avatar winlinvip commented on June 6, 2024

Please use TCP for RTSP, do not use UDP, as UDP may have issues such as out-of-order packets that could result in incorrect timestamps.

If the issue cannot be resolved, encode the stream once with FFmpeg before pushing it to SRS.

This issue is not related to SRS; it pertains to the RTSP stream.

TRANS_BY_GPT4

from srs.

timfengzi avatar timfengzi commented on June 6, 2024

It is utilizing TCP.

TRANS_BY_GPT4

from srs.

winlinvip avatar winlinvip commented on June 6, 2024

I have mentioned before, this is not an issue with SRS; please seek assistance on the FFmpeg forum.

TRANS_BY_GPT4

from srs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.