how to record audio and video in gstreamer

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP








up vote
0
down vote

favorite












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










share|improve this question



























    up vote
    0
    down vote

    favorite












    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










    share|improve this question

























      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      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










      share|improve this question















      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







      gstreamer audio-recording video-recording






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Mar 14 at 7:28









      stumblebee

      2,3083922




      2,3083922










      asked Mar 14 at 5:39









      vignesh

      12




      12

























          active

          oldest

          votes











          Your Answer







          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "89"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          convertImagesToLinks: true,
          noModals: false,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













           

          draft saved


          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1014781%2fhow-to-record-audio-and-video-in-gstreamer%23new-answer', 'question_page');

          );

          Post as a guest



































          active

          oldest

          votes













          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes















           

          draft saved


          draft discarded















































           


          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1014781%2fhow-to-record-audio-and-video-in-gstreamer%23new-answer', 'question_page');

          );

          Post as a guest













































































          Popular posts from this blog

          pylint3 and pip3 broken

          Missing snmpget and snmpwalk

          How to enroll fingerprints to Ubuntu 17.10 with VFS491