[gst-devel] Problem multiplexing streams

Francisco Javier Cano Sandoval fjcs at tid.es
Wed Mar 26 17:43:36 CET 2008


Hello,
I have a problem while multiplexing an audio and a video stream. The 
situation is the following:

    * In the server, I have a pipeline that sends audio and video RTP
      from videotestsrc and audiotestsrc to the client.
    * In the client, I receive both streams and want, simultaneously, to
      visualize through xvimagesink / alsasink, and to write a file in
      disk, multiplexing them into an ogg file.

The server pipeline works fine. The client pipeline, on the other hand, 
is not working. My idea is to receive both RTP streams using udpsrc 
elements, then decoding and directing to xvimagesink and alsasink. Prior 
to the las step, I use a tee element to get two equal flows for dumping 
to the file. With these replicated flows, I apply the transformations to 
encode video with Theora codec and audio with Vorbis. Then, I would put 
these two streams into an ogg muxer and then link to a filesink. But the 
real situation is that I cannot link both audio and video to the muxer. 
If I do that, file is not properly written to disk, and even audio is 
not correctly played through alsasink. If I remove one of the muxer 
inputs (linking it to fakesink, for instance), the other is written with 
no problem.
The pipeline is this:

gst-launch udpsrc port=50000 caps="application/x-rtp, 
media=(string)video, payload=(int)96, clock-rate=(int)90000, 
encoding-name=(string)H263-1998" ! rtph263pdepay ! ffdec_h263 ! 
videorate ! tee name=tee01 ! queue ! xvimagesink sync=false tee01. ! 
ffmpegcolorspace ! theoraenc ! queue ! oggmux name=muxer ! queue ! 
filesink location=kk.ogg udpsrc port=50002 caps="application/x-rtp, 
media=(string)audio, payload=(int)110, clock-rate=(int)24000, 
encoding-name=(string)SPEEX" ! rtpspeexdepay ! speexdec ! tee name=tee02 
! audioconvert ! vorbisenc ! queue ! muxer. tee02. ! queue ! alsasink 
sync=false

Any ideas?
Thanks in advance.

-- 
=============================================
Francisco J. Cano Sandoval
---------------------------------------------
Telefónica I+D
2124 - Tecnologías de vídeo
Via Augusta 177, 08021 Barcelona, España
---------------------------------------------
Tlf: (+34) 93 295 6352
Fax: (+34) 93 365 3043
email: fjcs at tid.es
=============================================

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20080326/ddb34dd6/attachment.htm>


More information about the gstreamer-devel mailing list