arut / nginx-ts-module

NGINX MPEG-TS Live Module
BSD 2-Clause "Simplified" License
422 stars 91 forks source link

Working with GStreamer #38

Closed jimfcarroll closed 6 years ago

jimfcarroll commented 6 years ago

Has anyone got this working with GSteamer?

The only plugin that can stream data to http from gstreamer is souphttpclientsink which does a series of PUTs rather than one POST (curlhttpsink as far as I can tell doesn't seem to handle streaming video) This doesn't appear to work with the module. I get a file or 2 but they're tiny and the stream always quits with a closed connection error.

EDIT: If it helps, I got it working using ffmpeg as a proxy. E.g.

nginx running on 80 at publishing on /publish/

ffmpeg tcp server for input sending to nginx:

ffmpeg -f mpegts -i tcp://0.0.0.0:7654?listen -c copy -f mpegts http://127.0.0.1/publish/test

gstreamer processing sending mpegts stream to ffmpeg's tcp listener:

gst-launch-1.0 [...]  mpegtsmux ! tcpclientsink port=7654
jimfcarroll commented 6 years ago

I dropped to using the nginx-rtmp-module and that works fine.