How to stop camera display when recoding use gstreamer,how to get EOS when stop recoding

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to stop camera display when recoding use gstreamer,how to get EOS when stop recoding

743 Views
陈万里
Contributor I

Hi 

I use IMX6Q Ltib

I work is capture usb camera ,display and recording use gstreamer 0.10

usr tee element separation v4l2src source element ,and then

    gst_bin_add_many(GST_BIN(pipeline),v4l2src,tee,disqueue,mfw_v4lsink,ffmpegcolorspace,savequeue,vpuenc,avimux,filesink,NULL);

and respectively link ,

gst_element_link_many(v4l2src,tee,NULL) != TRUE ||
     gst_element_link_many(disqueue,mfw_v4lsink,NULL) != TRUE ||
     gst_element_link_many(ffmpegcolorspace,savequeue,vpuenc,avimux,filesink,NULL) !=TRUE

now i can play,but ,i can't when display stop recoding ,when recoding stop display

and other  question ,when i play my recoded with glay the can't play ,but play in windows, so i think i need add EOS message but i don't know how to add 

thanks  very much 

Sky 

0 Kudos
1 Reply

459 Views
陈万里
Contributor I

Ok,thanks a lot ,but how to solve first question.

i use pipeline and build two branch and then link them,as follows

 gst_bin_add_many(GST_BIN(pipeline),v4l2src,tee,disqueue,mfw_v4lsink,ffmpegcolorspace,savequeue,vpuenc,avimux,filesink,NULL);

gst_element_link_many(v4l2src,tee,NULL) != TRUE ||
gst_element_link_many(disqueue,mfw_v4lsink,NULL) != TRUE ||
gst_element_link_many(ffmpegcolorspace,savequeue,vpuenc,avimux,filesink,NULL) !=TRUE

this use tee element ,one branch  mfw_v4lsink element used for display,other branch filesink  used for recording .

however i want close or let not work one branch ,that's say i want stop display ,but recording ,stop recording ,but distplay.

thanks a lot .

0 Kudos