<br>Hi,<br>
<br>
The following pipeline works fine:<br>
<br>
gst-launch-0.10 dshowvideosrc num_buffers=250 ! video/x-raw-yuv,
framerate=(fraction)25/1, width=320, height = 240 ! queue !
ffmpegcolorspace ! ffenc_mpeg4 ! queue ! avimux name=mux audiotestsrc
num_buffers=400&nbsp; ! queue ! ffenc_mp2 ! queue ! mux. mux. ! filesink
location=record.avi<br>
<br>
(in the log I can see : &quot;New clock: <span style="color: rgb(51, 51, 255);">GstSystemClock</span>&quot;)<br>
<br>
I mean record.avi file can be playback correctly, the video and the testsound are ok.<br>
<br>
Now I would like to use the dshowaudiosrc instead of the audiotestsrc :<br>
<br>
gst-launch-0.10 dshowvideosrc num_buffers=250 ! video/x-raw-yuv,
framerate=(fraction)25/1, width=320, height = 240 ! queue !
ffmpegcolorspace ! ffenc_mpeg4 ! queue ! avimux name=mux dshowaudiosrc
num_buffers=20&nbsp; ! queue ! ffenc_mp2 ! queue ! mux. mux. ! filesink
location=record.avi<br>
<br>
(in the log I can see &quot;New clock: <span style="color: rgb(51, 51, 255);">GstAudioSrcClock</span>&quot;)<br>
<br>
But when I play the record.avi file, the video is not ok. The video is
played very very fast, about 0.5 sec, but the audio is ok.<br>
<br>
So it seems to be a problem about the clock.<br>
<br>
So I tryed to set the dshowaudiosrc <span style="color: rgb(51, 51, 255);">provide-clock</span> property to FALSE. (default is TRUE) :<br>
<br>
gst-launch-0.10 dshowvideosrc num_buffers=250 ! video/x-raw-yuv,
framerate=(fraction)25/1, width=320, height = 240 ! queue !
ffmpegcolorspace ! ffenc_mpeg4 ! queue ! avimux name=mux dshowaudiosrc
num_buffers = 20 provide-clock=0 ! queue ! ffenc_mp2 ! queue ! mux.
mux. ! filesink location=record.avi<br>
<br>
There is the log :<br>
<br>
Setting pipeline to PAUSED ...<br>
Pipeline is live and does not need PREROLL ...<br>
Setting pipeline to PLAYING ...<br>
New clock: <span style="color: rgb(51, 51, 255);">GstSystemClock</span><br>
WARNING: from element /pipeline0/dshowaudiosrc0: Can&#39;t record audio fast en<br>
ough<br>
Additional debug info:<br>
E:\devel-release\src_releases\gst-plugins-base\gst-libs\gst\audio\gstbaseau<br>
diosrc.c(668): (function) (): /pipeline0/dshowaudiosrc0:<br>
dropped 286650 samples<br>
<br>
** (gst-launch-0.10:3704): CRITICAL **: file E:\devel-release\src_releases\<br>
gstreamer\gst\gstsegment.c: line 450: assertion `segment-&gt;format == format&#39;<br>
&nbsp;failed<br>
Got EOS from element &quot;pipeline0&quot;.<br>
Execution ended after 16716824000 ns.<br>
Setting pipeline to PAUSED ...<br>
Setting pipeline to READY ...<br>
Setting pipeline to NULL ...<br>
FREEING pipeline ...<br>
<br>
The when playing the record.avi file with VLC, th video is ok but there is no audio.<br>
If I play the record.avi file with classic player, first the audio is
played without video, then the video is played without audio.<br>
<br>
So It seems I have not correclty configured the <span style="color: rgb(51, 51, 255);">dshowaudiosrc</span> because the first pipeline works fine.<br>
<br>
Help would be appreciated.<br>
<br>
Sincerely<br>
<br>
Julien I.<br><br><div class="gmail_quote">2008/4/29 Julien Moutte &lt;<a href="mailto:julien@moutte.net">julien@moutte.net</a>&gt;:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
Try adding a queue between the src elements and the video/audio encoders.<br>
<br>
Julien<br>
<br>
Andy Sturges wrote:<br>
&gt; Julien,<br>
&gt;<br>
&gt; thanks for replying to this question, &nbsp;I&#39;ll give a bit more detail on<br>
&gt; the problem I am seeing. &nbsp;The pipeline in the email is not my original<br>
&gt; pipe line - which as you suggested encodes the video and audio mux<br>
&gt; them together and then save them to a file:<br>
&gt;<br>
&gt; gst-launch-0.10.exe dshowvideosrc ! ffmpegcolorspace ! videorate !<br>
&gt; video/x-raw-yuv,framerate=15/1 ! ffmpegcolorspace ! theoraenc ! queue<br>
&gt; ! oggmux name=mux dshowaudiosrc ! audioconvert ! vorbisenc ! queue !<br>
&gt; mux. mux. ! queue ! filesink location=output.ogg<br>
&gt;<br>
&gt; But the encoded video was showing very slow video capture speed but<br>
&gt; good audio capture. &nbsp;Capturing the video on its own to a file has no<br>
&gt; problems. &nbsp;The example in my mail was just the simplest pipe I could<br>
&gt; produce which would illustrate the problem.<br>
&gt;<br>
&gt; My video and audio source is a Logitech USB web cam &nbsp;and I am using<br>
&gt; the latest Windows binary downloads (which look like they may be based<br>
&gt; an older gstreamer release than current source release) so if there<br>
&gt; are some newer binaries available I would like to try them.<br>
&gt;<br>
&gt; thanks Andy<br>
<div><div></div><div class="Wj3C7c">&gt;<br>
&gt; On Mon, Apr 28, 2008 at 6:59 AM, Julien Moutte &lt;<a href="mailto:julien@moutte.net">julien@moutte.net</a>&gt; wrote:<br>
&gt;<br>
&gt;&gt; First you probably have a latency issue as this is a live pipeline and<br>
&gt;&gt; avimux / avidemux could add some latency.<br>
&gt;&gt;<br>
&gt;&gt; &nbsp;Second you should not try to play what you just muxed in the same pipeline.<br>
&gt;&gt; You should compress the video and then store to a file that you can play<br>
&gt;&gt; later on. If you want local feedback from the capture you should use tee<br>
&gt;&gt; after the source and have a preview branch.<br>
&gt;&gt;<br>
&gt;&gt; &nbsp;Julien<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; &nbsp;On Apr 23, 2008, at 1:40, Andy Sturges &lt;<a href="mailto:andy@sturges.me.uk">andy@sturges.me.uk</a>&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;&gt; I am trying to capture video and audio and mux them into a single file<br>
&gt;&gt;&gt; on windows XP, but am seeing very slow video capture when using any form<br>
&gt;&gt;&gt; of mux. &nbsp;To illustrate the problem here a a couple of simple examples:<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; This pipeline works fine:<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; &nbsp; gst-launch-0.10.exe dshowvideosrc ! ffmpegcolorspace &nbsp;! directdrawsink<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; but adding a mux/demux stage into the pipe causes the video to be very<br>
&gt;&gt;&gt; slow:<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; &nbsp;dshowvideosrc ! ffmpegcolorspace ! avimux ! avidemux !<br>
&gt;&gt;&gt; ffmpegcolorspace ! directdrawsink<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; I have tried adding queues and videorate controls but this makes no<br>
&gt;&gt;&gt; difference.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Any input on this problem welcome,<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Andy<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; -------------------------------------------------------------------------<br>
&gt;&gt;&gt; This SF.net email is sponsored by the 2008 JavaOne(SM) Conference<br>
&gt;&gt;&gt; Don&#39;t miss this year&#39;s exciting event. There&#39;s still time to save $100.<br>
&gt;&gt;&gt; Use priority code J8TL2D2.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt; <a href="http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone" target="_blank">http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone</a><br>
&gt;&gt;<br>
&gt;&gt;&gt; _______________________________________________<br>
&gt;&gt;&gt; gstreamer-devel mailing list<br>
&gt;&gt;&gt; <a href="mailto:gstreamer-devel@lists.sourceforge.net">gstreamer-devel@lists.sourceforge.net</a><br>
&gt;&gt;&gt; <a href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel" target="_blank">https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</a><br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
<br>
-------------------------------------------------------------------------<br>
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference<br>
Don&#39;t miss this year&#39;s exciting event. There&#39;s still time to save $100.<br>
Use priority code J8TL2D2.<br>
<a href="http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone" target="_blank">http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone</a><br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.sourceforge.net">gstreamer-devel@lists.sourceforge.net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel" target="_blank">https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</a><br>
</div></div></blockquote></div><br>