[gst-devel] Muxing audiotestsrc and videotestsrc in singlepipeline

Felipe Contreras felipe.contreras at gmail.com
Tue Oct 7 20:55:00 CEST 2008


On Tue, Oct 7, 2008 at 8:36 AM, Irfan Shaikh
<irfanshaikh at tataelxsi.co.in> wrote:
> Hi,
>
>  Actually this pipeline is able to mux in ASF container
>
> gst-launch filesrc
> location=/root/Desktop/teststreams/mpeg4/mpeg4_imaadpcm.ASF ! decodebin
> name=d ffmux_asf name=mux ! filesink location=/root/Desktop/asf1.asf d. !
> queue ! videoscale ! ffenc_msmpeg4 ! queue ! mux. d. ! queue ! ffenc_mp2 !
> mp3parse ! queue ! mux
>
>
> Also i tried to mux vedio ans audio seperately in ASF container
>
> Example:
> 1) gst-launch videotestsrc ! ffmpegcolorspace ! ffenc_mpeg4 ! ffmux_asf !
> filesink=/root/Desktop/mpeg4.asf
> 2) gst-launch audiotestsrc ! audioconvert ! ffenc_mp2 ! ffmux_asf !
> filesink=/root/Desktop/mp2.asf
>
> I dont know hoe to mux audiotestsrc and videotestsrc together for the above
> scenario in ASF container format. Please sugest me structure on pipeline to
> mux the above in single pipeline.

Do it step by step:

mux:
ffmux_asf name=m ! filesink location=foo.asf

video:
videotestsrc ! ffmpegcolorspace ! ffenc_mpeg4

audio:
audiotestsrc ! audioconvert ! ffenc_mp2

Then simply add the muxing part to the video and audio " ! m." and join them:
ffmux_asf name=m ! filesink location=foo.asf videotestsrc !
ffmpegcolorspace ! ffenc_mpeg4 ! m. audiotestsrc ! audioconvert !
ffenc_mp2 ! m.

-- 
Felipe Contreras




More information about the gstreamer-devel mailing list