I am new to gstreamer, I want to record both audio and video save it into .mp4 format, Recording video using webcam and audio using MIC

Here this is my pipeline

gst-launch-1.0 -e v4l2src ! queue ! x264enc ! h264parse ! queue ! qtmux0. alsasrc ! 'audio/x-raw,rate=44100,depth=24' ! audioconvert ! audioresample ! voaacenc ! aacparse ! qtmux ! filesink location=test.mp4

When i am executing it the video is recording only for 10sec the audio not even recording, Its giving some message like

WARNING: from element /GstPipeline:pipeline0/GstAlsaSrc:alsasrc0:  
Can't record audio fast enough  
Additional debug info:  
gstaudiobasesrc.c(866): gst_audio_base_src_create (): /GstPipeline:pipeline/GstAlsaSrc:alsasrc0:  
Dropped 425565 samples. This is most likely because downstream can't keep up and is consuming samples too slowly.

Help me get over through this Thank You in advance

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.