-
-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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 stream not available via HTTP-FLV #4242
Comments
The nginx config its proxy:
proxy to
|
Yes, the port is remapped in docker to expose on 18080 because the port is already in use on the host machine from another service. To be clear: this Config works when directly streaming to RTMP and using the .flv URL in VLC or mpegts.js. Only when publishing using SRT the flv is not available/doesn't load (times out). |
Can I get you some logs? Any debug settings I need? Edit: Updated the first post with the docker config and specific version of SRS 6. |
Is the |
It plays well using RTMP and playing via the external https://domain/live/livestream.flv, yes (via the NGINX location, which uses But not for SRT. |
I tried your srs conf, SRT publish and http-flv plays well in my machine.
Try above two cmds, check in your env. |
Does |
@suzp1984 You're right, I must've been doing something wrong. When trying to play back an SRT HEVC stream, it still works with mpegts.js, but ffplay shows:
How would I push an AV1 stream via SRT, to get it inside stream.flv to be played back with mpegts.js? That wouldn't work via srt_to_rtmp I guess, but would need a remux? (AV1 is possible inside mpegts.js in the development version AFAIK) The doc states:
Why the intermediate step to RTMP? That severely limits the video codecs one can use. |
That's What the |
If that's the answer to any feature requests, that'd be sad. No, honestly: Would it be possible to not have that intermediate step to RTMP? Or, ideally, support the latest ERTMP spec out of the box? Thank you! |
SRS support Enhanced RTMP, but only HEVC(H.265) code. |
Yes, that's why I was referring to the latest ERTMP spec, which is Enhanced RTMP V2: https://veovera.org/docs/enhanced/enhanced-rtmp-v2.html |
As far as i know, AV1 is not yet supported with SRT (only WebRTC and eRTMP), because SRT uses MPEG-TS and AV1 is not yet implemented for transport stream usage. |
SRT is codec agnostic by nature, but relies on MPEGTS, correct; Nimble for example accepts AV1 via SRT already; the other current MPEGTS implementations don't (FFmpeg at least doesn't); Not sure if the spec is even finalized yet: https://github.com/AOMediaCodec/av1-mpeg2-ts/issues/ So the only option at the moment would be to implement the Enhanced RTMP V2 spec |
But the original issue has been resolved, so let's continue here: #4239 |
Describe the bug
I'm pushing a h264 stream using OBS to SRS's SRT endpoint. From how I understand the documentation, this should then be exposed via /app/live/key.flv, but it's unplayable (timeout via mpegts.js and VLC). Am I missing something?
SRS is behind an NGINX reverse proxy if that helps, config:
SRS config:
Docker-Compose:
Version
SRS V6 docker (via dockerhub), SRS/6.0.155
The text was updated successfully, but these errors were encountered: