<div dir="ltr">Hi,
<div><br></div><div><br></div><div>I'm trying to use gstreamer to capture and encode live video and audio from a USB dongle.</div><div><br></div><div>My last attempt:</div><div><br></div><div>gst-launch-1.0 v4l2src device=/dev/video0 norm=45056 ! queue ! videoconvert ! videoscale ! videorate ! 'video/x-raw, width=640, height=400, framerate=15/1, format=I420' ! x264enc ! h264parse ! stream. pulsesrc device="alsa_input.usb-Hauppauge_Hauppauge_Device_0013745411-01.analog-stereo" ! queue ! audioconvert ! audioresample ! 'audio/x-raw, channels=2, rate=48000' ! lamemp3enc ! mpegaudioparse ! stream. mpegtsmux name=stream ! queue ! filesink location=/home/rodrigo/temp/test.mpeg<br></div><div><br></div><div>To my surprise I get several messages like:</div><div><br></div><div><div>Setting pipeline to PAUSED ...</div><div>Pipeline is live and does not need PREROLL ...</div><div>Setting pipeline to PLAYING ...</div><div>New clock: GstPulseSrcClock</div><div>Redistribute latency...</div><div>Redistribute latency...</div><div>Redistribute latency...</div><div>WARNING: from element /GstPipeline:pipeline0/GstPulseSrc:pulsesrc0: Can't record audio fast enough</div><div>Additional debug info:</div><div>gstaudiobasesrc.c(847): gst_audio_base_src_create (): /GstPipeline:pipeline0/GstPulseSrc:pulsesrc0:</div><div>Dropped 125760 samples. This is most likely because downstream can't keep up and is consuming samples too slowly.</div></div><div><br></div><div>All messages from the warning to the "too slowly" are repeated all the time.</div><div><br></div><div>My first surprise: I believe an eight core processor should be much more than enough to do such a job without problems but apparently it isn't.</div><div><br></div><div>My second surprise,: it's the _audio_ that's being too slowly processed, not the video.</div><div><br></div><div>In reality I believe I'm doing something wrong. Can someone help me find what it is?</div><div><br></div><div>BTW, I'm using GStreamer 1.12.3 on Ubuntu 17.10.</div><div><br></div><div><br></div><div>Regards,</div><div><br></div><div>Rodrigo Severo</div><div><br></div></div>