Problem multiplexing streams

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Problem multiplexing streams

Francisco Javier Cano Sandoval
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: [hidden email]
=============================================

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Problem multiplexing streams

Francisco Javier Cano Sandoval
Sure.
This is the server pipeline:

gst-launch videotestsrc ! ffmpegcolorspace ! ffenc_h263p ! rtph263ppay !
udpsink host=10.95.109.29 port=50000 audiotestsrc ! queue ! audioconvert
! speexenc ! rtpspeexpay ! udpsink host=10.95.109.29 port=50002

Regards

--
=============================================
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: [hidden email]
=============================================


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel