Skip to content

Commit

Permalink
Use souphttpsrc as it provides better error messages (#151)
Browse files Browse the repository at this point in the history
  • Loading branch information
biglittlebigben authored Sep 14, 2023
1 parent 6823d2d commit 659e413
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
10 changes: 8 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -160,10 +160,10 @@ redis:
address: localhost:6379
```

On MacOS, if GStreamer was installed using Homebrew, the following environment must be set:
On MacOS, if GStreamer was installed using Homebrew, the following environment must be set in order to ensure that GStreamer can load all its plugins:

```shell
export GST_PLUGIN_PATH=/opt/homebrew/Cellar/gst-plugins-base:/opt/homebrew/Cellar/gst-plugins-good:/opt/homebrew/Cellar/gst-plugins-bad:/opt/homebrew/Cellar/gst-plugins-ugly:/opt/homebrew/Cellar/gst-plugins-bad:/opt/homebrew/Cellar/gst-libav 
export DYLD_LIBRARY_PATH=/opt/homebrew/lib
```

Then to run the service:
Expand All @@ -172,6 +172,12 @@ Then to run the service:
ingress --config=config.yaml
```

If starting an Ingress fails with a GStreamer error such as `Failed to load libsoup library` or `no such element factory "souphttpsrc`, try deleting your GStreamer plugin registry with:

```shell
rm -rf ~/.cache/gstreamer-1.0/
```

#### Running with Docker

To run against a local LiveKit server, a Redis server must be running locally. The Ingress service must be instructed to connect to LiveKit server and Redis on the host. The host network is accessible from within the container on IP:
Expand Down
2 changes: 1 addition & 1 deletion pkg/media/urlpull/source.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ type URLSource struct {
func NewURLSource(ctx context.Context, p *params.Params) (*URLSource, error) {
bin := gst.NewBin("input")

elem, err := gst.NewElement("curlhttpsrc")
elem, err := gst.NewElement("souphttpsrc")
if err != nil {
return nil, err
}
Expand Down

0 comments on commit 659e413

Please sign in to comment.