[gst-devel] GStreamer / C++ example ?

Stefan Kost ensonic at hora-obscura.de
Mon Apr 30 15:36:12 CEST 2007


Hi,

Quoting fabien <fabien.castan at free.fr>:

> Thank you for your answer, I will try...
> Is fakesink and appsink exactly the same thing ?
No, fakesink is more for testing, but has a signal callback to grab  
frames. App sink has a proper mechanism to receive the data (I haven't  
used that later, they are fairly new).

> If I succeed to open a video... how can I go to the next or previous
> frame ? And go to a precise position in a movie ?
You send seek events to the pipeline to go to a specific position. A  
seek can also set a playback rate (normaly 1.0, -1.0 would be  
reverse). You get next/previous frame as the pipeline runs. Please not  
that reverse playback does not yet work for many formats.

> Can I use the status PAUSED and move in the movie ?
You can also seek while playing.

Stefan
>
>
> Stefan Kost a écrit :
>> Hi Fabien,
>>
>> in GStreamer you usually do not take out data, you write own   
>> plugins and add them to the processing pipeline. If you still need   
>> to take the data, you can use fakesink/appsink (and vice versa   
>> fakesrc/appsrc to inject).
>>
>> To decode any video use decodebin and connect fakesink's to the   
>> output-pads. Grepping the sources for decodebin should help you to   
>> locate some examples.
>>
>> Stefan
>>>






More information about the gstreamer-devel mailing list