[gst-devel] GStreamer-CRITICAL **: gst_bin_add: assertion `GST_IS_ELEMENT (element)' failed
Guilherme
grlongo.ireland at gmail.com
Wed May 6 19:58:55 CEST 2009
Just for reference, I know that I have to specify a buffer size in
case of non-live audio streamer, but my audio comes from a live src
(alsasrc).
For video the size would be calculated as:
size = width * height * bpp;
GST_BUFFER_SIZE (buffer) = size
GST_BUFFER_MALLOCDATA (buffer) = g_malloc(size);
And for a live src???
Tks!
-------------------
Guilherme Longo
Dept. Eng. da Computação
Unaerp
Linux User - #484927
*Before Asking
http://www.istf.com.br/?page=perguntas
!- I'd rather die on my feet than live on my knees -!
Guilherme wrote:
> Hi all!
>
> I successfully created a buffer:
>
> g_print ("\n\nCreating Buffer\n"); buffer = gst_buffer_new();
> if(!buffer)
> g_printerr ("buffer could not be created\n");
> else
> g_print ("Buffer Created\n\n");
>
> And now I want to output all source content in this buffer and when it
> is full output its content in a sink element.
>
> At the moment my pipeline is like that:
>
> gst_bin_add_many (GST_BIN (pipeline), source, filesink, NULL);
> gst_element_link_many (source, filesink, NULL);
>
> How can I implement such a feature? I tried inserting the buffer
> directly in the pipeline but a get the following error:
>
> (buffer_analysis:3559): GStreamer-CRITICAL **: gst_bin_add:
> assertion `GST_IS_ELEMENT (element)' failed
>
>
> Can I get some help?
>
> Tks!
>
> -------------------
>
> Guilherme Longo
> Dept. Eng. da Computação
> Unaerp
>
> Linux User - #484927
>
> *Before Asking
> http://www.istf.com.br/?page=perguntas
>
> !- I'd rather die on my feet than live on my knees -!
>
>
>
> ldac wrote:
>> Thanks Jyoti,
>>
>> your explanation about the needed of an EOF for the avimux element
>> justifies my problem perfectly.
>>
>> So, I guess that If I am recording an avi file from a live
>> source (v4l or whatever) I should send that EOF before stopping ...
>> But ... Is there some way to send an EOF signal to a pipeline? Is the
>> source element the one who must send that signal? Is enough to send
>> EOF to the avimux element? It is possible?
>>
>> Thanks all again and again.
>> Regards,
>> LD.
>>
>>
>> ------------------------------------------------------------------------------
>>
>> The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
>> production scanning environment may not be a perfect world - but
>> thanks to
>> Kodak, there's a perfect scanner to get the job done! With the NEW
>> KODAK i700
>> Series Scanner you'll get full speed at 300 dpi even with all image
>> processing features enabled. http://p.sf.net/sfu/kodak-com
>> _______________________________________________
>> gstreamer-devel mailing list
>> gstreamer-devel at lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>>
>>
>
More information about the gstreamer-devel
mailing list