<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">It must be my own naivet. Building from src, debugging led to the simple answer that works. Thanks specially to Nirbheek.<div class=""><br class=""></div><div class="">gst-launch-1.0 $@ v4l2src device=/dev/video2 ! queue ! video/x-h264,width=1920,height=1080,framerate=30/1 ! h264parse ! queue max-size-buffers=0 max-size-bytes=0 max-size-time=1000000000 ! mux. pulsesrc device=0 ! audioconvert ! \</div><div class=""><br class=""></div><div class="">audioresample ! audio/x-raw, rate=16000 \</div><div class="">^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^</div><div class=""><br class=""></div><div class="">! queue ! avenc_aac ! queue ! mux. mpegtsmux name=mux ! filesink location='output.mp4'</div><div class=""><div class=""><div><br class=""><blockquote type="cite" class=""><div class="">On 31 Jul 2021, at 7:50 pm, James via gstreamer-devel <<a href="mailto:gstreamer-devel@lists.freedesktop.org" class="">gstreamer-devel@lists.freedesktop.org</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 24px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><br class="Apple-interchange-newline"><br class=""><blockquote type="cite" class=""><div class="">On 25 Jul 2021, at 11:58 am, James Linder via gstreamer-devel <<a href="mailto:gstreamer-devel@lists.freedesktop.org" class="">gstreamer-devel@lists.freedesktop.org</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><br class="" style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 24px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;"><br class="" style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 24px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;"><blockquote type="cite" class="" style="font-family: Helvetica; font-size: 24px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;">On 24 Jul 2021, at 2:21 pm, Nirbheek Chauhan via gstreamer-devel <<a href="mailto:gstreamer-devel@lists.freedesktop.org" class="">gstreamer-devel@lists.freedesktop.org</a>> wrote:<br class=""><br class="">Hi James,<br class=""><br class="">It looks like you forgot to add a space after `false` and before the<br class="">`!`, which is why setting the property failed, as the error message<br class="">tells you.<br class=""><br class="">Cheers,<br class="">Nirbheek<br class=""><br class="">On Sat, Jul 24, 2021 at 11:30 AM James Linder via gstreamer-devel<br class=""><<a href="mailto:gstreamer-devel@lists.freedesktop.org" class="">gstreamer-devel@lists.freedesktop.org</a>> wrote:<br class=""><blockquote type="cite" class=""><br class=""><br class=""><br class=""><blockquote type="cite" class="">On 23 Jul 2021, at 9:08 pm, Nirbheek Chauhan <<a href="mailto:nirbheek.chauhan@gmail.com" class="">nirbheek.chauhan@gmail.com</a>> wrote:<br class=""><br class="">Hi James,<br class=""><br class="">I tested this pipeline on my system with a Logitech C920, and I was<br class="">able to record 40 seconds of audio + video without issues. Note that<br class="">you need to use "gst-launch-1.0 -e" to ensure that EOS is sent on<br class="">Ctrl+C. This is the full command-line I used:<br class=""><br class="">gst-launch-1.0 -e v4l2src device=/dev/video2 ! queue !<br class="">video/x-h264,width=1920,height=1080,framerate=30/1 ! h264parse ! queue<br class="">! mux. pulsesrc ! audioconvert ! queue ! avenc_aac ! queue ! mux.<br class="">mpegtsmux name=mux ! filesink location='output.ts'<br class=""><br class="">The audio dropouts might be an issue with the selected clock, so maybe<br class="">try "pulsesrc provide-clock=false" which will use the system clock.<br class="">Another possibility is that your webcam is not actually outputting<br class="">frames fast enough. This often happens in low light conditions.<br class=""><br class="">You might also like to see the "min-upstream-latency" and "latency"<br class="">properties on mpegtsmux, in case your devices have a startup delay.<br class=""><br class="">Cheers,<br class="">Nirbheek<br class=""><br class="">On Fri, Jul 23, 2021 at 12:15 PM James Linder via gstreamer-devel<br class=""><<a href="mailto:gstreamer-devel@lists.freedesktop.org" class="">gstreamer-devel@lists.freedesktop.org</a>> wrote:<br class=""><blockquote type="cite" class=""><br class="">My question is so simple that I cannot believe there is no answer<br class=""><br class="">I have a camera providing 1080 at 30Hz in h254<br class="">I want to record the output together with pulse audio.<br class=""><br class="">Google is fulll of tales of woe: eg<br class=""><br class=""><a href="http://gstreamer-devel.966125.n4.nabble.com/How-do-you-record-audio-and-video-off-a-webcam-td4687419.html" class="">http://gstreamer-devel.966125.n4.nabble.com/How-do-you-record-audio-and-video-off-a-webcam-td4687419.html</a><br class=""><br class="">Trying his ‘it works’ scenario found it does not work is even worse than mp4:<br class=""><br class=""><br class="">Mine: audio cuts out in 15 sec<br class=""><br class="">gst-launch-1.0 $@ v4l2src device=/dev/video2 ! queue ! video/x-h264,width=1920,height=1080,framerate=30/1 ! h264parse ! queue max-size-buffers=0 max-size-bytes=0 max-size-time=1000000000 ! mux. pulsesrc device=0 ! audioconvert ! queue ! avenc_aac ! queue ! mux. mpegtsmux name=mux ! filesink location='output.mp4'<br class=""><br class="">His: audio cust out in 1 sec<br class=""><br class="">gst-launch-1.0 $@ v4l2src device=/dev/video2 ! queue ! video/x-h264,width=1920,height=1080,framerate=30/1 ! h264parse ! queue max-size-buffers=0 max-size-bytes=0 max-size-time=1000000000 ! \<br class="">mux.  pulsesrc device=alsa_input.usb-Sensoray_Co.__Inc._Sensoray_Model_2263_551645-04.analog-stereo ! audioconvert ! vorbisenc ! matroskamux name=mux ! filesink location=‘output.mkv'<br class=""><br class="">Can anyone help?<br class=""></blockquote></blockquote><br class="">I guess it is time to walk away, licking my wounds.<br class="">Thanks for the help.<br class="">I posted my results here:<span class="Apple-converted-space"> </span><a href="http://tigger.ws/downloads/output.ts" class="">http://tigger.ws/downloads/output.ts</a><br class=""><br class="">What may be intersting/relevant:<br class="">I am using an i3 nuc. HTOP shows 4 cores (actually 2 + 2 threads) at 2-5% busy.<br class="">I can record audio or video endlessly without any issue, just not together.<br class="">I cannot see a reference to provide-clock=false and indeed<br class=""><br class="">WARNING: erroneous pipeline: could not set property "provide-clock" in element "pulsesrc0" to "false!”<br class=""></blockquote></blockquote><br class="" style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 24px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;"><span class="" style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 24px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;">Thanks for the help, provide-clock=false definitly made a difference doubling the record time. ie 8 sec to 20 sec.</span><br class="" style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 24px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;"><span class="" style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 24px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;">During my fool-about I managed to select a silent source and recorded, silently, for 10 min.</span><br class="" style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 24px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;"><span class="" style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 24px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;">I suspect the answer is in reach, I just cannot see it.</span><br class="" style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 24px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;"><br class="" style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 24px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;"><span class="" style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 24px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;">BTW</span><br class="" style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 24px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;"><br class="" style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 24px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;"><blockquote type="cite" class="" style="font-family: Helvetica; font-size: 24px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;"><blockquote type="cite" class=""><blockquote type="cite" class="">you need to use "gst-launch-1.0 -e" to ensure that EOS is sent on<br class="">Ctrl+C.<br class=""></blockquote></blockquote></blockquote><br class="" style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 24px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;"><span class="" style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 24px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;">$@ means $ gst.launch -e -v</span><br class="" style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 24px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;"><span class="" style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 24px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;">means gstreamer inherits the flags</span><br class=""></div></blockquote></div></div></blockquote></div>[snip]</div></div><div class="">James</div></body></html>