Rendering Raw video with gstreamer

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

Rendering Raw video with gstreamer

william.l.metcalf
Rendering Raw video with gstreamer

I am developing a c application using gstreamer and th decklink api which pulls in video frames from a capture card, stores them into a buffer, and pushes that buffer through a gstreamer pipeline.  One of my development steps right now is to write the buffers into a file, and try to play that file with gstreamer.  I am using the following pipeline to try and play the file:

gst-launch filesrc location=video.raw ! videoparse ! autovideosink

but the video produced is just a very bright grainy image, and I can sort of see my video in the background.  I have tried toying around with the "format" property but the video produced does not change.

I am new to playing around with raw video files, and I am not even really sure if autovideosink can handle raw video, so any help that anyone can provide me would be greatly appreciated.

- William


_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Rendering Raw video with gstreamer

David Schleef-2
On Wed, Jul 06, 2011 at 05:58:13PM -0500, William Metcalf wrote:
>
> I am developing a c application using gstreamer and th decklink api which pulls in video frames from a capture card, stores them into a buffer, and pushes that buffer through a gstreamer pipeline.  One of my development steps right now is to write the buffers into a file, and try to play that file with gstreamer.  I am using the following pipeline to try and play the file:
>
> gst-launch filesrc location=video.raw ! videoparse ! autovideosink
>

If you want to store raw video, I would start with y4menc/y4mdec.
Otherwise, if you really want to store raw video with no framing
information, you'll have to tell videoparse all the information
about the video.



David

_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Rendering Raw video with gstreamer

william.l.metcalf
So using y4menc I would capture the video frames in a buffer, push the
buffer into a pipeline using appsrc, then link appsrc to y4menc, and
then write the information to a file.

Essentially - buffer->appsrc->y4menc->filesink

Then to play the file - filesrc->videoparse->autovideosink

Does this seem correct or am I doing this incorrectly?

- William

On 7/6/2011 6:26 PM, David Schleef wrote:

> On Wed, Jul 06, 2011 at 05:58:13PM -0500, William Metcalf wrote:
>> I am developing a c application using gstreamer and th decklink api which pulls in video frames from a capture card, stores them into a buffer, and pushes that buffer through a gstreamer pipeline.  One of my development steps right now is to write the buffers into a file, and try to play that file with gstreamer.  I am using the following pipeline to try and play the file:
>>
>> gst-launch filesrc location=video.raw ! videoparse ! autovideosink
>>
> If you want to store raw video, I would start with y4menc/y4mdec.
> Otherwise, if you really want to store raw video with no framing
> information, you'll have to tell videoparse all the information
> about the video.
>
>
>
> David
>
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel