Eyevinn / srt-whep

SRT to WHEP (WebRTC)
Apache License 2.0
69 stars 9 forks source link

Configuration issue ? #20

Closed SNRSE closed 1 year ago

SNRSE commented 1 year ago

Hey, I am trying to run the docker container with

  -i 0.0.0.0:6001 \
  -o 0.0.0.0:7001 \
  -p 8000 -s listener

so i can stream in a SRT feed from my Local OBS to the cloud. these are the errors i am getting:

{"v":0,"name":"srt_whep","msg":"starting 1 workers","level":30,"hostname":"ip-172-31-21-120.us-east-2.compute.internal","pid":1,"time":"2023-06-28T10:05:21.961092638Z","target":"actix_server::builder","line":200,"file":"/root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/actix-server-2.2.0/src/builder.rs"}
{"v":0,"name":"srt_whep","msg":"Tokio runtime found; starting in existing Tokio runtime","level":30,"hostname":"ip-172-31-21-120.us-east-2.compute.internal","pid":1,"time":"2023-06-28T10:05:21.961124288Z","target":"actix_server::server","line":197,"file":"/root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/actix-server-2.2.0/src/server.rs"}

(gst-plugin-scanner:9): GLib-GObject-WARNING **: 10:05:22.445: cannot register existing type 'GstRtpSrc'

(gst-plugin-scanner:9): GLib-GObject-CRITICAL **: 10:05:22.445: g_type_add_interface_static: assertion 'G_TYPE_IS_INSTANTIATABLE (instance_type)' failed

(gst-plugin-scanner:9): GLib-CRITICAL **: 10:05:22.446: g_once_init_leave: assertion 'result != 0' failed

(gst-plugin-scanner:9): GStreamer-CRITICAL **: 10:05:22.446: gst_element_register: assertion 'g_type_is_a (type, GST_TYPE_ELEMENT)' failed

(gst-plugin-scanner:9): GLib-GObject-WARNING **: 10:05:22.446: cannot register existing type 'GstRtpSink'

(gst-plugin-scanner:9): GLib-GObject-CRITICAL **: 10:05:22.446: g_type_add_interface_static: assertion 'G_TYPE_IS_INSTANTIATABLE (instance_type)' failed

(gst-plugin-scanner:9): GLib-CRITICAL **: 10:05:22.446: g_once_init_leave: assertion 'result != 0' failed

(gst-plugin-scanner:9): GStreamer-CRITICAL **: 10:05:22.446: gst_element_register: assertion 'g_type_is_a (type, GST_TYPE_ELEMENT)' failed
{"v":0,"name":"srt_whep","msg":"SRT Input uri: srt://0.0.0.0:6001?mode=listener","level":30,"hostname":"ip-172-31-21-120.us-east-2.compute.internal","pid":1,"time":"2023-06-28T10:05:22.612429044Z","target":"srt_whep::stream::pipeline","line":178,"file":"src/stream/pipeline.rs"}
{"v":0,"name":"srt_whep","msg":"Running discoverer...","level":30,"hostname":"ip-172-31-21-120.us-east-2.compute.internal","pid":1,"time":"2023-06-28T10:05:22.612453675Z","target":"srt_whep::stream::pipeline","line":180,"file":"src/stream/pipeline.rs"}
{"v":0,"name":"srt_whep","msg":"Duration: 0:00:00.000000000","level":30,"hostname":"ip-172-31-21-120.us-east-2.compute.internal","pid":1,"time":"2023-06-28T10:05:37.645283353Z","target":"srt_whep::stream::helper","line":36,"file":"src/stream/helper.rs"}
{"v":0,"name":"srt_whep","msg":"Tags:","level":30,"hostname":"ip-172-31-21-120.us-east-2.compute.internal","pid":1,"time":"2023-06-28T10:05:37.64530692Z","target":"srt_whep::stream::helper","line":12,"file":"src/stream/helper.rs"}
{"v":0,"name":"srt_whep","msg":"  no tags","level":30,"hostname":"ip-172-31-21-120.us-east-2.compute.internal","pid":1,"time":"2023-06-28T10:05:37.645313308Z","target":"srt_whep::stream::helper","line":20,"file":"src/stream/helper.rs"}
{"v":0,"name":"srt_whep","msg":"Failed to setup pipeline: Discoverer error Error while obtaining stream info","level":50,"hostname":"ip-172-31-21-120.us-east-2.compute.internal","pid":1,"time":"2023-06-28T10:05:37.645579766Z","target":"srt_whep","line":29,"file":"src/main.rs"}

any pointers what i might be doing wrong ?

birme commented 1 year ago

What are the stream output settings from OBS?

birme commented 1 year ago

Also if you are running with -s listener it expects that the srt receiver you are passing through is in listener mode and in your example you need to have the IP of the receiver and that it is online

Wkkkkk commented 1 year ago

Hi SNRSE , thanks a lot for trying it out.

We are experiencing the same issues on Ubuntu when using Docker and trying our best to fix them. I will write to you once a fix is available.

Wkkkkk commented 1 year ago

Hi @SNRSE , I've tried to build the program on Mac / Linux Mint / Ubuntu and it should be running without issue. Please check the updated instructions and let me know if you have any questions.

Support for Docker will come soon.