Can't record audio fast enough problems

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Can't record audio fast enough problems

David Klasinc
Greetings,

if someone could shed some light on this. I am trying to capture my
screen and record audio from pulse or alsa source. I am working on
python application and I get the same behavior in python app and if I
use gst-launch.

Here's the command line I use:

gst-launch ximagesrc endx=1680 endy=1050 use-damage=false \
show-pointer=true ! videorate ! video/x-raw-rgb,framerate=25/1 ! \
ffmpegcolorspace ! queue ! schroenc rate-control=lossless ! queue ! \
mux. pulsesrc ! audio/x-raw-int ! audiorate ! \
audio/x-raw-int,rate=44100 ! flacenc ! queue ! mux. matroskamux \
name=mux ! queue ! filesink location="test.mkv"

No matter what codecs I used for audio or video and no matter what
compression level I tried, I always ended up with the error:

WARNING: from element /GstPipeline:pipeline0/GstPulseSrc:pulsesrc0:
Can't record audio fast enough
gstbaseaudiosrc.c(822): gst_base_audio_src_create
(): /GstPipeline:pipeline0/GstPulseSrc:pulsesrc0:
Dropped 1054240 samples. This is most likely because downstream can't
keep up and is consuming samples too slowly.

I even tried recording raw data and muxing it into avimux and I got the
same problems. Tried on several different machines. If my endx and endy
parameters to were lower than everything was working as it should.

So, my question is this a global performance issue? I can't capture
1680x1050 video and audio at the same time? Or is something wrong with
my command line?

Regards,
David



------------------------------------------------------------------------------
Download new Adobe(R) Flash(R) Builder(TM) 4
The new Adobe(R) Flex(R) 4 and Flash(R) Builder(TM) 4 (formerly
Flex(R) Builder(TM)) enable the development of rich applications that run
across multiple browsers and platforms. Download your free trials today!
http://p.sf.net/sfu/adobe-dev2dev
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Can't record audio fast enough problems

Marco Ballesio
Hi,

On Sun, Oct 17, 2010 at 5:26 PM, David Klasinc <[hidden email]> wrote:
Greetings,

if someone could shed some light on this. I am trying to capture my
screen and record audio from pulse or alsa source. I am working on
python application and I get the same behavior in python app and if I
use gst-launch.

Here's the command line I use:

gst-launch ximagesrc endx=1680 endy=1050 use-damage=false \
show-pointer=true ! videorate ! video/x-raw-rgb,framerate=25/1 ! \
ffmpegcolorspace ! queue ! schroenc rate-control=lossless ! queue ! \
mux. pulsesrc ! audio/x-raw-int ! audiorate ! \
audio/x-raw-int,rate=44100 ! flacenc ! queue ! mux. matroskamux \
name=mux ! queue ! filesink location="test.mkv"

No matter what codecs I used for audio or video and no matter what
compression level I tried, I always ended up with the error:

WARNING: from element /GstPipeline:pipeline0/GstPulseSrc:pulsesrc0:
Can't record audio fast enough
gstbaseaudiosrc.c(822): gst_base_audio_src_create
(): /GstPipeline:pipeline0/GstPulseSrc:pulsesrc0:
Dropped 1054240 samples. This is most likely because downstream can't
keep up and is consuming samples too slowly.

If the message appears only a few times at the beginning of the recording operation it's not something I would worry about. Basically, during the initialisation phase of the elements in the pipeline, load may increase and pulsesrc may see high latencies in the source element for a while. If instead the message is continuous you may try reducing the overall CPU load by e.g. increasing the output bitrates of the encoders.

Regards
 

I even tried recording raw data and muxing it into avimux and I got the
same problems. Tried on several different machines. If my endx and endy
parameters to were lower than everything was working as it should.

So, my question is this a global performance issue? I can't capture
1680x1050 video and audio at the same time? Or is something wrong with
my command line?

Regards,
David



------------------------------------------------------------------------------
Download new Adobe(R) Flash(R) Builder(TM) 4
The new Adobe(R) Flex(R) 4 and Flash(R) Builder(TM) 4 (formerly
Flex(R) Builder(TM)) enable the development of rich applications that run
across multiple browsers and platforms. Download your free trials today!
http://p.sf.net/sfu/adobe-dev2dev
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel


------------------------------------------------------------------------------
Download new Adobe(R) Flash(R) Builder(TM) 4
The new Adobe(R) Flex(R) 4 and Flash(R) Builder(TM) 4 (formerly
Flex(R) Builder(TM)) enable the development of rich applications that run
across multiple browsers and platforms. Download your free trials today!
http://p.sf.net/sfu/adobe-dev2dev
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel