Quantcast

how to capture the http stream

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

how to capture the http stream

anil v
HI All,

  I trying to recieve the http stream and want to write the stream on to file without decoding. Is it possible with gstreamer ? if so can any one please suggest me how can i do this.

Thanks in Advance.

Thanks,
Anil V

------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
lucky parental unit.  See the prize list and enter to win:
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
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 capture the http stream

michael smith-6-3
On Thu, Jun 24, 2010 at 2:23 AM, anil v <[hidden email]> wrote:
> HI All,
>
>   I trying to recieve the http stream and want to write the stream on to
> file without decoding. Is it possible with gstreamer ? if so can any one
> please suggest me how can i do this.

Of course that's possible. You could just run a pipeline containing an
appropriate http source, and filesink.

Mike

------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
lucky parental unit.  See the prize list and enter to win:
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
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 capture the http stream

Wes Miller
You can do as little as whateversrc ! filesink, which should store the raw stream.

You may also want to consider whateversrc ! matroskamux ! filesink that will store your raw stream in a matroska container file (filetype is mkv).   When you use that file you'll need to run it through a matroskademux element.  For reasons I do not understand, the matroska storage format is considered better than just straight storing the stream.

Wes
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: how to capture the http stream

Arnout Vandecappelle

On Thursday 24 June 2010 21:52:54, Wes Miller wrote:
> You may also want to consider whateversrc ! matroskamux ! filesink that
> will store your raw stream in a matroska container file (filetype is
> mkv).

  In that case, you'll also need to insert a parser element to find the
boundaries between frames.  Otherwise it'll be stored in the file in chunks
of 2Kbytes instead of chunks of one frame.

 The parser element to use depends on the stream type: mpeg4videoparse,
h264parse, jpegparse, multipartdemux, ...

> When you use that file you'll need to run it through a
> matroskademux element. For reasons I do not understand, the matroska
> storage format is considered better than just straight storing the
> stream.

 One reason is that it stores the boundaries between frames, so you don't
need to use a codec-specific scanner to find them (which you need to do e.g.
seeking).  Second reason is that it stores timestamps, so you can play back
the stream at the same rate it was recorded (otherwise it will just be
decoded at maximum CPU speed).  And finally, it allows you to multiplex
video and audio (hence the name 'mux').

 Regards,
 Arnout

--
Arnout Vandecappelle                               arnout at mind be
Senior Embedded Software Architect                 +32-16-286540
Essensium/Mind                                     http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium                BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint:  31BB CF53 8660 6F88 345D  54CC A836 5879 20D7 CF43

------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
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 capture the http stream

Wes Miller
Amout,

Thanks for the explanation.  

Wes
Loading...