[gst-devel] About appsink frames

Arnout Vandecappelle arnout at mind.be
Thu Apr 29 17:24:26 CEST 2010


On Thursday 29 April 2010 14:12:11, Wes Miller wrote:
> So I decided to try this:
> 
>      gstoarse(  "souphttpsrc timestamp=true ! multipartdemux !
> image/jpeg,width=640,height=480 ! matroskamux ! appsink" );  // note
>  appsink replaced filesink.
> 
> Now I made a do while not eos loop that catches every frame.
> 
> From looking at the timestamp info in the frame I see that I get an
> occasional bad timestamp (-1, I think)).  Where do these frames fome
>  from?  How Do I interpret them?
> 
> Also, if I stream all the frames into a file I get a container full of
>  jpegs with some stuff up front.  The file, however, won't play as a
>  matroska file (matroskademux ! jpegdec ! ppmpegcolorspace !
>  autovideosink).
> 
> So, how does saving the frames out of matroskamux this way differ from
> filesink?  Is there something I need to know to add or throw away?

 matroskamux does a lot of seeks.  If your appsink ignores them, the 
resulting file will have headers and such in the wrong order.

 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




More information about the gstreamer-devel mailing list