[gst-embedded] to control tee plugin
Stefan Kost
ensonic at hora-obscura.de
Tue Feb 17 23:46:30 PST 2009
sunwenmao schrieb:
> Hi,
>
> The mistake “}” is made by me with a copy error carelessly, sorry!
>
> In fact, I just want to use tee plugin to produce two video streams from pad0 and
>
> pad1. When one of the two pads is closed, the other can still work normally, that
>
> means I can control any one of them to realize the function of opening and closing
>
> at any time. But now, when I close one pad, both of them do not produce video
>
> streams, and the solution has been not found until now!
>
> Can you help me and thanks a lot!
>
>
I can't see any obvious error in the code. Maybe you can add some GST_INFO()
statements and check if your codepath are actually called, print the pad_name
and so on.
Stefan
>
> Best Regards
>
>
>
> SunWenmao
>
>
>
>
>
> ------------------------------------------------------------------------------------------------------------------------------
>
> hi,
>
> sunwenmao schrieb:
>> Hi,
>>
>> I want to modify the plugin-tee in gstreamer in some details! In the function
>> of the file gsttee.c in gstreamer-0.10.19:
>>
>> static GstFlowReturn gst_tee_handle_buffer (GstTee * tee, GstBuffer * buffer)
>>
>> I plan to add two pads (src0 and src1)in order to control any one of them
>> to output datas! So I write some codes as follows:
>>
>> if( strcmp(pad_name, "src0") == 0 )
>>
>> ret = gst_tee_do_push (tee, pad, buffer); }
>>
>> else
>>
>> ret = GST_FLOW_OK; //do nothing
>>
>
> that code looks wrong - thre is an unmatched "}" on the 2nd line. Maybe you
> could tell us what you want to do. Quite likely there is a better approach, that
> does not require changing the element code.
>
> Stefan
>
>> But when I input the instruction like this: gst-launch v4l2src ! tee name=t t.
>> ! queue ! filesink location=./test1.yuv t. ! queue ! filesink
> location=./test2.yuv
>> in davinci DM6446, both of the two video files are empty! I don’t know the
>> reason and search for some information on Internet all the time, but no
>> results! So I really
>>
>> want to know weather the tee plugin can control any one of the two pads
>> separately! Hope someone can help me!
>>
>> Thanks very much!
>>
>>
>>
>> Best Regards
>>
>> SunWenmao from China
>
>
> ------------------------------------------------------------------------------
> Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
> -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
> -Strategies to boost innovation and cut costs with open source participation
> -Receive a $600 discount off the registration fee with the source code: SFAD
> http://p.sf.net/sfu/XcvMzF8H
> _______________________________________________
> Gstreamer-embedded mailing list
> Gstreamer-embedded at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gstreamer-embedded
More information about the Gstreamer-embedded
mailing list