[gst-devel] dshowvideosrc with a mux
julien at moutte.net
Tue Apr 29 12:03:21 CEST 2008
Try adding a queue between the src elements and the video/audio encoders.
Andy Sturges wrote:
> thanks for replying to this question, I'll give a bit more detail on
> the problem I am seeing. The pipeline in the email is not my original
> pipe line - which as you suggested encodes the video and audio mux
> them together and then save them to a file:
> gst-launch-0.10.exe dshowvideosrc ! ffmpegcolorspace ! videorate !
> video/x-raw-yuv,framerate=15/1 ! ffmpegcolorspace ! theoraenc ! queue
> ! oggmux name=mux dshowaudiosrc ! audioconvert ! vorbisenc ! queue !
> mux. mux. ! queue ! filesink location=output.ogg
> But the encoded video was showing very slow video capture speed but
> good audio capture. Capturing the video on its own to a file has no
> problems. The example in my mail was just the simplest pipe I could
> produce which would illustrate the problem.
> My video and audio source is a Logitech USB web cam and I am using
> the latest Windows binary downloads (which look like they may be based
> an older gstreamer release than current source release) so if there
> are some newer binaries available I would like to try them.
> thanks Andy
> On Mon, Apr 28, 2008 at 6:59 AM, Julien Moutte <julien at moutte.net> wrote:
>> First you probably have a latency issue as this is a live pipeline and
>> avimux / avidemux could add some latency.
>> Second you should not try to play what you just muxed in the same pipeline.
>> You should compress the video and then store to a file that you can play
>> later on. If you want local feedback from the capture you should use tee
>> after the source and have a preview branch.
>> On Apr 23, 2008, at 1:40, Andy Sturges <andy at sturges.me.uk> wrote:
>>> I am trying to capture video and audio and mux them into a single file
>>> on windows XP, but am seeing very slow video capture when using any form
>>> of mux. To illustrate the problem here a a couple of simple examples:
>>> This pipeline works fine:
>>> gst-launch-0.10.exe dshowvideosrc ! ffmpegcolorspace ! directdrawsink
>>> but adding a mux/demux stage into the pipe causes the video to be very
>>> dshowvideosrc ! ffmpegcolorspace ! avimux ! avidemux !
>>> ffmpegcolorspace ! directdrawsink
>>> I have tried adding queues and videorate controls but this makes no
>>> Any input on this problem welcome,
>>> This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
>>> Don't miss this year's exciting event. There's still time to save $100.
>>> Use priority code J8TL2D2.
>>> gstreamer-devel mailing list
>>> gstreamer-devel at lists.sourceforge.net
More information about the gstreamer-devel