Active Topics

 


Reply
Thread Tools
Posts: 10 | Thanked: 1 time | Joined on Jan 2011
#1
Hi

I am trying to use gst-launch to stream a live feed to a web browser. To make things simple I was hoping to use a named pipe, so gst-launch would write to the file and a python web server would read and forward the feed to the browser via http ( progresive download ).

I am looking for any advice or sample. My problem so far is I start gst-launch, then the web service to read the contents of the file created. I only get one chunk then the web site hangs.

Any ideas of how this should be done. I am trying to find a way to stream from gst-launch without using a media server. Also using udp or tcp sinks needs the client address and port which makes it hard to work via a NAT or firewall. So that is why I am looking at named pipes.

Any advice or examples would be great.

Thanks
 
Posts: 2,014 | Thanked: 1,581 times | Joined on Sep 2009
#2
Originally Posted by kktester View Post
Hi

I am trying to use gst-launch to stream a live feed to a web browser. To make things simple I was hoping to use a named pipe, so gst-launch would write to the file and a python web server would read and forward the feed to the browser via http ( progresive download ).

I am looking for any advice or sample. My problem so far is I start gst-launch, then the web service to read the contents of the file created. I only get one chunk then the web site hangs.

Any ideas of how this should be done. I am trying to find a way to stream from gst-launch without using a media server. Also using udp or tcp sinks needs the client address and port which makes it hard to work via a NAT or firewall. So that is why I am looking at named pipes.

Any advice or examples would be great.

Thanks
http://talk.maemo.org/showthread.php?t=70877

Might be a good place to start
__________________
Class .. : Power Poster, Potential Coder
Humor .. : [*********] Alignment: Chaotic Evil
Patience : [***-------] Weapon(s): +2 Logic Mace
Agro ... : |*****-----] Relic(s) : G1, N900

 
Posts: 10 | Thanked: 1 time | Joined on Jan 2011
#3
the problem with the link you gave is it uses an sdp file. within the sdp file you define the N900 address and port ( the problem is on the N900 you need the clients address and port which will cause problems going through a firewall ).

That is why I want a way to get the output from gst-launch as a file so I can stream via http. Since the file will be a named pipe, the idea was that the web site would simply read chunks at a time and send to the client as a progresive download.

Thanks for the input though
 
Posts: 1,378 | Thanked: 1,604 times | Joined on Jun 2010 @ Göteborg, Sweden
#4
Search this forum for a program called "motion". Whilst it is for motion detection it has many parameters (I believe you "switch off" motion detection) as can act as as a server. I write this from memory and it is old sdram so ymmv...

I know you asked about gst-launch and pipes but I thought I would throw this in.... apologies if off the mark.
 
Reply


 
Forum Jump


All times are GMT. The time now is 02:23.