question about fakesrc

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

question about fakesrc

acolubri
In all the examples I've found about pushing user-defined buffers
through fakesrc, for example:
http://gstreamer.freedesktop.org/data/doc/gstreamer/head/manual/html/section-data-spoof.html
the bpp and depth are always both set to 16. Is this a limitation of
fakesrc? I have tried sending 32
bits buffers with rgba data, but without success.

Does anyone have more examples/code samples involving fakesrc?

Many thanks.
Andres

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: question about fakesrc

dcharlesm
On Sun, Mar 2, 2008 at 5:30 PM, Andres Colubri <[hidden email]> wrote:
> In all the examples I've found about pushing user-defined buffers
>  through fakesrc, for example:
>  http://gstreamer.freedesktop.org/data/doc/gstreamer/head/manual/html/section-data-spoof.html
>  the bpp and depth are always both set to 16. Is this a limitation of
>  fakesrc? I have tried sending 32
>  bits buffers with rgba data, but without success.
>
>  Does anyone have more examples/code samples involving fakesrc?

I guess you need to include a caps filter in between your src and
sink.  Since fakesrc and fakesink could handle any caps, I used audio
ones.

gst-launch fakesrc sizetype=2 num-buffers=5 ! audio/x-raw-int,
width=32, depth= 32 ! fakesink

check on your caps for your actual sink and just change them to
something more accurate.

I hope this helps.

Daniel.

>
>  Many thanks.
>  Andres
>
>  -------------------------------------------------------------------------
>  This SF.net email is sponsored by: Microsoft
>  Defy all challenges. Microsoft(R) Visual Studio 2008.
>  http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
>  _______________________________________________
>  gstreamer-devel mailing list
>  [hidden email]
>  https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: question about fakesrc

acolubri
Thanks for the answer!

However, I did some testings setting the caps to the desired value
(bpp=32, depth=24 in my case), but my application hangs... I guess I'll
keep playing around with this.

I've also read that there is a new element called GstAppSrc that makes
this type of operations (injecting buffers into the pipeline) much
easier. Do you have any code example with this element?

Andres

Daniel Charles wrote:

> On Sun, Mar 2, 2008 at 5:30 PM, Andres Colubri <[hidden email]> wrote:
>  
>> In all the examples I've found about pushing user-defined buffers
>>  through fakesrc, for example:
>>  http://gstreamer.freedesktop.org/data/doc/gstreamer/head/manual/html/section-data-spoof.html
>>  the bpp and depth are always both set to 16. Is this a limitation of
>>  fakesrc? I have tried sending 32
>>  bits buffers with rgba data, but without success.
>>
>>  Does anyone have more examples/code samples involving fakesrc?
>>    
>
> I guess you need to include a caps filter in between your src and
> sink.  Since fakesrc and fakesink could handle any caps, I used audio
> ones.
>
> gst-launch fakesrc sizetype=2 num-buffers=5 ! audio/x-raw-int,
> width=32, depth= 32 ! fakesink
>
> check on your caps for your actual sink and just change them to
> something more accurate.
>
> I hope this helps.
>
> Daniel.
>  
>>  Many thanks.
>>  Andres
>>
>>  -------------------------------------------------------------------------
>>  This SF.net email is sponsored by: Microsoft
>>  Defy all challenges. Microsoft(R) Visual Studio 2008.
>>  http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
>>  _______________________________________________
>>  gstreamer-devel mailing list
>>  [hidden email]
>>  https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>>
>>    
>
>  


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel