<table cellpadding=3 cellspacing=0 border=0 width=100% bgcolor=white><tr valign=top><td width=100%><font size=2 color=black>hi all,<br> <br>i want to create an application which can simultaneously<br>capture live audio-video data(from microphone and webcam) , encode it and stream it using rtp , <br> <br>at the client side i want to receive av data and play it( what about av sync) <BR><BR><BR><br><FONT size=2>

<P>using gstreamer-0.10.12, gst-plugins-base-0.10.12 ,gst-ffmpeg-0.10.2</P>

<P>i tried the following</P>

<P> </P>

<P> </P>

<P>[root@pritesh mp4creator]# gst-launch -v v4lsrc ! videoscale !</P>

<P>"video/x-raw-yuv,frame-rate=(double)15.0" ! queue ! ffmpegcolorspace !</P>

<P>ffenc_mpeg4 ! ffmux_mp4 ! filesink location=webcam.mp4</P>

<P>Setting pipeline to PAUSED ...</P>

<P>/pipeline0/v4lsrc0.src: caps = video/x-raw-yuv, format=(fourcc)I420,</P>

<P>width=(int)160, height=(int)120, framerate=(fraction)25/1,</P>

<P>frame-rate=(double)15</P>

<P>Pipeline is live and does not need PREROLL ...</P>

<P>Setting pipeline to PLAYING ...</P>

<P>New clock: GstSystemClock</P>

<P>/pipeline0/videoscale0.src: caps = video/x-raw-yuv, format=(fourcc)I420,</P>

<P>width=(int)160, height=(int)120, framerate=(fraction)25/1,</P>

<P>frame-rate=(double)15</P>

<P>/pipeline0/videoscale0.sink: caps = video/x-raw-yuv, format=(fourcc)I420,</P>

<P>width=(int)160, height=(int)120, framerate=(fraction)25/1,</P>

<P>frame-rate=(double)15</P>

<P>/pipeline0/capsfilter0.src: caps = video/x-raw-yuv, format=(fourcc)I420,</P>

<P>width=(int)160, height=(int)120, framerate=(fraction)25/1,</P>

<P>frame-rate=(double)15</P>

<P>/pipeline0/capsfilter0.sink: caps = video/x-raw-yuv, format=(fourcc)I420,</P>

<P>width=(int)160, height=(int)120, framerate=(fraction)25/1,</P>

<P>frame-rate=(double)15</P>

<P>/pipeline0/queue0.sink: caps = video/x-raw-yuv, format=(fourcc)I420,</P>

<P>width=(int)160, height=(int)120, framerate=(fraction)25/1,</P>

<P>frame-rate=(double)15</P>

<P>/pipeline0/queue0.src: caps = video/x-raw-yuv, format=(fourcc)I420,</P>

<P>width=(int)160, height=(int)120, framerate=(fraction)25/1,</P>

<P>frame-rate=(double)15</P>

<P>/pipeline0/ffmpegcsp0.src: caps = video/x-raw-yuv, format=(fourcc)I420,</P>

<P>width=(int)160, height=(int)120, framerate=(fraction)25/1,</P>

<P>frame-rate=(double)15</P>

<P>/pipeline0/ffmpegcsp0.sink: caps = video/x-raw-yuv, format=(fourcc)I420,</P>

<P>width=(int)160, height=(int)120, framerate=(fraction)25/1,</P>

<P>frame-rate=(double)15</P>

<P>/pipeline0/ffenc_mpeg40.src: caps = video/mpeg, width=(int)160,</P>

<P>height=(int)120, framerate=(fraction)25/1, mpegversion=(int)4,</P>

<P>systemstream=(boolean)false</P>

<P>/pipeline0/ffenc_mpeg40.sink: caps = video/x-raw-yuv, format=(fourcc)I420,</P>

<P>width=(int)160, height=(int)120, framerate=(fraction)25/1,</P>

<P>frame-rate=(double)15</P>

<P>/pipeline0/ffmux_mp40.video_0: caps = video/mpeg, width=(int)160,</P>

<P>height=(int)120, framerate=(fraction)25/1, mpegversion=(int)4,</P>

<P>systemstream=(boolean)false</P>

<P>after some time stopped the procedure</P>

<P> </P>

<P>Caught interrupt -- handling interrupt.</P>

<P>Interrupt: Setting pipeline to PAUSED ...</P>

<P>Execution ended after 93657591000 ns.</P>

<P>Setting pipeline to PAUSED ...</P>

<P>Setting pipeline to READY ...</P>

<P>/pipeline0/ffmux_mp40.video_0: caps = NULL</P>

<P>/pipeline0/ffenc_mpeg40.src: caps = NULL</P>

<P>/pipeline0/ffenc_mpeg40.sink: caps = NULL</P>

<P>/pipeline0/ffmpegcsp0.src: caps = NULL</P>

<P>/pipeline0/ffmpegcsp0.sink: caps = NULL</P>

<P>/pipeline0/queue0.src: caps = NULL</P>

<P>/pipeline0/queue0.sink: caps = NULL</P>

<P>/pipeline0/capsfilter0.src: caps = NULL</P>

<P>/pipeline0/capsfilter0.sink: caps = NULL</P>

<P>/pipeline0/videoscale0.src: caps = NULL</P>

<P>/pipeline0/videoscale0.sink: caps = NULL</P>

<P>/pipeline0/v4lsrc0.src: caps = NULL</P>

<P>Setting pipeline to NULL ...</P>

<P>FREEING pipeline .</P>

<P>in the created mp4 file only mdat exists and i cannot play it with any</P>

<P>player</P>

<P>any ideas</P></FONT>

<BR><br></font></td></tr></table><p><hr><font size=2 face=geneva><b>Join Excite! - <a href=http://www.excite.com target=_blank>http://www.excite.com</a></b><br>The most personalized portal on the Web!</font>