how to record audio and video in gstreamer
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:pipeline0/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
got the pipeline now it is recording audio and video perfectly
Here the pipeline
gst-launch-1.0 -e v4l2src ! 'video/x-raw,width=960,height=720,framerate=30/1' ! queue ! x264enc tune=zerolatency ! mux. alsasrc ! audio/x-raw,width=16,depth=16,rate=44100,channel=1 ! queue ! audioconvert ! audioresample ! voaacenc ! aacparse ! qtmux name=mux ! filesink location=test.mp4 sync=false
if still anything incorrect in the pipeline let me know
链接地址: http://www.djcxy.com/p/43944.html上一篇: 如何在VB.NET中创建一个属性“Write Once Read Many”?
下一篇: 如何在gstreamer中录制音频和视频