[gst-devel] How to play a file lying on localhost using gst-launch ?

wl2776 wl2776 at gmail.com
Tue Dec 28 17:00:18 CET 2010


playbin2 discovers that you give it an HTTP url.
Then it searches through its element registry and discovers what source
elements can handle http protocol, finds one, creates its instance, sets its
location property to the uri value, 
Then it lets the source element to connect to the HTTP server, send GET
request, receive response, output received data and so on.


Anirudh wrote:
> 
> well!!! I tried to run that command u gave & it played the file but I
> didn't get how it worked internally. I was trying to run it by making a
> pipeline structure like I mentioned in my question. Since I am a newbie in
> field of GStreamer if I manage to run the file using the way I was trying
> to do earlier
> (this way)
> anirudh at anirudh-laptop:~$ gst-launch-0.10 tcpclientsrc protocol=none
>  host=localhost port=80 ! oggdemux ! vorbisdec ! audioconvert ! alsasink
>  Setting pipeline to PAUSED ...
>  Pipeline is PREROLLING ... 
> 
> 
> then I will probably understand a bit more.I have been thru around 60
> pages of the manual & I am able to understand the basics of Gstreamer and
> this pipeline structure is right now more clearer in my mind. So can u
> help me out on that ?
> 

tcpclientsrc will not do since it expects raw data to come from the TCP
socket, but the HTTP server won't send them out without HTTP request.

You should also learn about the OSI model and where TCP and HTTP protocols
are in it.
-- 
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/How-to-play-a-file-lying-on-localhost-using-gst-launch-tp3165195p3166116.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.




More information about the gstreamer-devel mailing list