Basic questions about HTTP / TCP

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Basic questions about HTTP / TCP

themanonthemoon
Hello!

I am just getting into the world of networking/protocols/streaming and could
use some clarifying answers.

1. Why is there no simple way to setup an http server in a similar way to
using a tcpserversink or a udpsink? If I need to send a video to an http
server how would I do this?

2. What is actually happening under the hood when I use a tcpserversink? If
I use this sink, I can view the video in an html5 video element in my
browser. Doesn't this mean somewhere along the line it is using an http
protocol?

Thanks in advance.




--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Basic questions about HTTP / TCP

Nicolas Dufresne-5


Le lun. 17 sept. 2018 04 h 13, themanonthemoon <[hidden email]> a écrit :
Hello!

I am just getting into the world of networking/protocols/streaming and could
use some clarifying answers.

1. Why is there no simple way to setup an http server in a similar way to
using a tcpserversink or a udpsink? If I need to send a video to an http
server how would I do this?

If you are serving files, you don't need GStreamer. If you want to serve streams, you can use libsoup, and giosink. You could also write an element for that, but I guess it's not very flexible and won't adapt to all use cases.


2. What is actually happening under the hood when I use a tcpserversink? If
I use this sink, I can view the video in an html5 video element in my
browser. Doesn't this mean somewhere along the line it is using an http
protocol?

I am very surprised you managed to get anything working in a video tag using tcpserversink.






--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Basic questions about HTTP / TCP

themanonthemoon
Thanks for the reply. I am indeed serving streams.

I also thought it was weird I was able to open tcpserversink streams in my
browser with only an html5 video tag. I was hoping to figure out the
underlying protocol for benchmarking purposes.





--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Basic questions about HTTP / TCP

Krutskikh Ivan
I have a working solution which streams video from ip and web cams using http. I used basehttpserver from standart python library and nginx for load balansing. Gstreamer  pipeline looks like: rtsp- mpegtsmux - multisocket sink. You can link me directly if you want details.

пн, 17 сент. 2018 г. в 19:29, themanonthemoon <[hidden email]>:
Thanks for the reply. I am indeed serving streams.

I also thought it was weird I was able to open tcpserversink streams in my
browser with only an html5 video tag. I was hoping to figure out the
underlying protocol for benchmarking purposes.





--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel