【问题标题】:Getting Warning messages from alsasrc从 alsasrc 获取警告消息
【发布时间】:2016-06-15 02:56:29
【问题描述】:
gst-launch-1.0 v4l2src ! videoconvert ! video/x-raw,format=I420 ! videoparse width=640 height=480 framerate=30/1 ! x264enc bitrate=2048 ref=4 key-int-max=20 byte-stream=true tune=zerolatency ! video/x-h264,stream-format=byte-stream,profile=main ! queue ! mux. alsasrc ! audioparse rate=44100 format=raw raw-format=s16le channels=2 ! faac perfect-timestamp=true ! aacparse ! queue ! mux. mpegtsmux name=mux ! rtpmp2tpay ! udpsink host=10.0.0.239 port=9090 sync=true async=false qos=true qos-dscp=46

在执行上述管道时,我不断收到以下警告消息..

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

那么如何克服呢??

【问题讨论】:

    标签: gstreamer alsa v4l2


    【解决方案1】:

    问题与警告消息相同This is most likely because downstream can't keep up and is consuming samples too slowly.

    换句话说,您的过程很慢,因此无法跟上输入速度。 从最高优先级尝试以下解决方案:

    1. queue也添加到视频分支
    2. 将属性 sync=false 设置为 udpsink(在某些情况下有效,但当然不是很好,因为它可能会导致某些部分速度异常)
    3. 将属性 provide-clock=false 设置为 alsasrc(在某些情况下可能会在音频时钟不好的情况下起作用)
    4. 调整管道以在视频处理分支中提高速度

    如果您无法调整管道,唯一的选择是 .... 停止打印调试日志,并接受此限制 ...

    【讨论】:

    • 感谢您的帮助,我已经尝试了上述选项,但问题仍然存在。
    猜你喜欢
    • 2013-08-26
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-07-30
    • 1970-01-01
    • 1970-01-01
    • 2021-09-29
    • 2011-02-15
    相关资源
    最近更新 更多