<no subject>

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

<no subject>

Darren Staples
I’ve only recently come across Gstreamer, so I’m hoping you guys might be able to give me some pointers as to the best way to achieve the following.

I need an application which will take video input (in any of the common i.e. AVI, FLV, MPG, MOV etc. formats) from a local file, and decode the frames one by one. I want the frames to be 8-bit luminance only i.e. greyscale, and I need to be able to access the raw pixel data for each frame.

Processing of the luminance frame data may be slower than the ‘natural’ frame rate of the video, so ‘playback’ will almost certainly be slower than real-time. How do I control the pipeline so I process a single frame before decoding the next ?

I don’t care about any audio track that might or might not be present.

Any pointers or tips you can offer would be greatly appreciated :)

Thanks in advance,

Darren


------------------------------------------------------------------------------

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: <no subject>

Wim Taymans
The best way is to create a pipeline with uridecodebin as the generic
decoder element and then link  appsink as the sink element and pull
buffers from it one by one. You can configure appsink to only accept
grey video and use ffmpegcolorspace to convert to that format

Wim

On Tue, Jan 6, 2009 at 1:20 PM, Darren Staples <[hidden email]> wrote:

> I've only recently come across Gstreamer, so I'm hoping you guys might be
> able to give me some pointers as to the best way to achieve the following.
>
> I need an application which will take video input (in any of the common i.e.
> AVI, FLV, MPG, MOV etc. formats) from a local file, and decode the frames
> one by one. I want the frames to be 8-bit luminance only i.e. greyscale, and
> I need to be able to access the raw pixel data for each frame.
>
> Processing of the luminance frame data may be slower than the 'natural'
> frame rate of the video, so 'playback' will almost certainly be slower than
> real-time. How do I control the pipeline so I process a single frame before
> decoding the next ?
>
> I don't care about any audio track that might or might not be present.
>
> Any pointers or tips you can offer would be greatly appreciated :)
>
> Thanks in advance,
>
> Darren
>
>
> ------------------------------------------------------------------------------
>
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>
>

------------------------------------------------------------------------------
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel