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

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

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

NinjaGod
This post was updated on .
CONTENTS DELETED
The author has deleted this message.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: How to play a file lying on localhost using gst-launch ?

Wim Taymans
On Mon, 2010-12-27 at 08:23 -0800, Anirudh wrote:
> I am having a file on my localhost server at the address:
> http://localhost/htdocs/test.ogg
>

try

gst-launch-0.10 playbin2 uri=http://localhost/htdocs/test.ogg

Wim

> I am trying to play it using tcpclientsrc (test.ogg has just audio so I need
> not to worry about the video part)
>
> anirudh@anirudh-laptop:~$ gst-launch-0.10 tcpclientsrc protocol=none
> host=localhost port=80 ! oggdemux ! vorbisdec ! audioconvert ! alsasink
> Setting pipeline to PAUSED ...
> Pipeline is PREROLLING ...
>
> and then it keeps waiting. I know that I am doing a mistake, and I know that
> without giving the URL of the file I can not play it but I don't know how to
> give the URL because tcpclientsrc has just 3 properties (protocol,host,port)
> which I can set and none of them is for setting the URL.
>
> So I want to know how to play that file using command line.
> please help me out on this issue.
>
>



------------------------------------------------------------------------------
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and,
should the need arise, upgrade to a full multi-node Oracle RAC database
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: How to play a file lying on localhost using gst-launch ?

NinjaGod
This post was updated on .
CONTENTS DELETED
The author has deleted this message.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: How to play a file lying on localhost using gst-launch ?

_vaibhav_
you may be interested in this:

( for video )
$ gst-launch-0.10 souphttpsrc location= http://localhost/htdocs/test.ogg ! oggdemux ! theoradec ! xvimagesink -v



Kind Regards,
Vaibhav Ingale | +91-9226938504
[hidden email]
http://vaibhav-ingale.blogspot.com/



On Mon, Dec 27, 2010 at 10:13 PM, Anirudh <[hidden email]> wrote:

wow! a reply from Wim Taymans...thanks for the reply.

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@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 ?


--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/How-to-play-a-file-lying-on-localhost-using-gst-launch-tp3165195p3165225.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and,
should the need arise, upgrade to a full multi-node Oracle RAC database
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel


------------------------------------------------------------------------------
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and,
should the need arise, upgrade to a full multi-node Oracle RAC database
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: How to play a file lying on localhost using gst-launch ?

wl2776
Administrator
In reply to this post by NinjaGod
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@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.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: How to play a file lying on localhost using gst-launch ?

wl2776
Administrator
wl2776 wrote
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,
Well, to be more specific, it creates the uridecodebin element, gives that uri to it, it creates the source element and the decodebin element, which builds the rest of the decoding chain, basing on data, received from the source element.

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@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.
Loading...