to control tee plugin

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]


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!

 

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





[Index of Archives]     [Linux Embedded]     [Linux ARM Kernel]     [Linux for ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux Media]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux