0

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

0

1 Answer 1

1

Maybe you need a "queue" before the "muxing":

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.