Skip to content
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

Use souphttpsrc as it provides better error messages #151

Merged
merged 1 commit into from
Sep 14, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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