streaming audio and video in gstreamer

Tag: gstreamer Author: ZHUANGGE1 Date: 2013-10-17

i'm trying to read a video stream , and an audio stream comming from different sources in parallel with autovideosink and autoaudiosink in gstreamer ,but i m failing to find any clear solution of this
i had an idea to use avimux to contain both streams into one and then stream the muxed element but it's not working for me so for . an example of a command with videotestsrc and audiotestserc would be very helpfull , many thanks here s what i tried so far :

gst-launch-0.10  avimux name=mux. ! autovideoconvert ! autovideosink 
uridecodebin uri= ! ffmpegcolorspace ! imagefreeze
! mux.
uridecodebin uri=http::"mp3file"  ! autoaudioconvert !mux.