[gst-devel] adding tee to alsasink causing problems

Rohan rohan at perzonae.com
Tue Sep 29 12:55:30 CEST 2009

Hi James,

I am no expert but could you put the actual gst-launch commands you
are using, because it is not clear here where you use the tee twice,
for either.

I have been meddling with splitting audio/video but instead of for
saving to file, sending an image to the sender, as well as to another
receiving computer.

I am guessing this might give you what you want.  You do not seem to
be naming the tee, and calling it again.

gst-launch-0.10 v4l2src ! tee name=tee ! tee. ! queue ! \
video/x-raw-yuv,width=320,height=240 ! ffmpegcolorspace ! ffenc_flv ! \
ffmux_flv ! filesink location=/path/to/file tee. ! queue ! xvimagesink

I have not tried the same with the sound, but that should get your
video recording and displaying (nota bene: not tested, just an off the
top of my head guess)

For the sound the use of the tee should do the business.  I have not
messed with mux(es) yet, so I could have gone wrong there, but the tee
stuff should probably resemble the above.  You name the tee, and then
refer to it later in the commandline by name.

Hope this helps,


James Pearson wrote:
> So here is my pipeline. The point is to record audio and video and  
> display it at the same time.
> v4l2src -> tee -> video/x-raw-yuv,width=320,height=240 ->  
> ffmpegcolorspace -> ffenc_flv -> ffmux_flv -> filesink
>                            -> xvimagesink
> alsasrc -> tee > audioresample -> audio-x-raw-int,rate=44100 - ->  
> audioconvert -> lame -> ffmux_flv (same mux as above)
>                            -> alsasink
> I have been using this pipeline minus the tee for live playback  
> (alsasink,xvimagesink) for some time and it is working well. The video  
> part, even with the live display works ok but when i add in the tee  
> and alsasink the pipeline gets stuck with nothing going to disk and  
> the video displayed is stuck. Even just adding the alsasink to the  
> pipeline without connecting it causes this result. Any suggestions? I  
> already tried adding queues to almost everything.
> Thanks
> -James-
> ------------------------------------------------------------------------------
> Come build with us! The BlackBerry® Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay 
> ahead of the curve. Join us from November 9-12, 2009. Register now!
> http://p.sf.net/sfu/devconf
> _______________________________________________
> 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