Edward-Wu / srt-live-server

srt live server for low latency

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Has someone tested the GStreamer plays SRT stream out by sls?

robertvxt opened this issue · comments

Hi guys,

Could you please help me to confirm: GStreamer plays SRT stream out by sls?

Imagine, I start sls server by ./sls -c ../sls.conf and the boardcaster starts stream by ./slc -r srt://[your.sls.ip]:8080?streamid=uplive.sls.com/live/test -i [the full file name of exist ts file].

As expectation, I can play this SRT stream by GStreamer gst-launch-1.0 -v srtsrc uri=srt://[your.sls.ip]:8080?streamid=live.sls.com/live/test ! decodebin ! autovideosink but error occurs:

Setting pipeline to PAUSED ...
ERROR: Pipeline doesn't want to pause.
ERROR: from element /GstPipeline:pipeline0/GstSRTSrc:srtsrc0: Could not open resource for reading.
Additional debug info:
gstsrtsrc.c(118): gst_srt_src_start (): /GstPipeline:pipeline0/GstSRTSrc:srtsrc0:
Failed to open SRT: Invalid host
Setting pipeline to NULL ...
Freeing pipeline ...

GStreamer version:

~# gst-launch-1.0 --version
gst-launch-1.0 version 1.16.2
GStreamer 1.16.2
https://launchpad.net/distros/ubuntu/+source/gstreamer1.0

Thanks

Yes, works fine in FastoCloud (based on gstreamer)

I use Gstreamer plugin for OBS and it's working fine, but you need to make sure you have the plugins (features) installed. I did run into an issue where it was complaining about a missing plugin. So while I was installing Gstreamer I needed to make sure it installed everything.