【问题标题】:Using gst-launch to streaming video?使用 gst-launch 流式传输视频?
【发布时间】:2012-02-22 23:31:25
【问题描述】:

我想流式传输媒体文件(视频或音频)。我使用了命令:

gst-launch-0.10 filesrc location="/home/ms/GStreamerTest/test.ogg" ! vorbisenc \
! rtpvorbispay pt=96 ! udpsink host=127.0.0.1 port=5000

流式传输文件test.ogg,但是,我得到一个错误:

“错误:来自元素 /GstPipeline:pipeline0/GstVorbisEnc:vorbisenc0:内部 GStreamer 错误:协商问题。请在 http://bugzilla.gnome.org/enter_bug.cgi?product=GStreamer 提交错误。
附加调试信息:
gstvorbisenc.c(1227): gst_vorbis_enc_chain (): /GstPipeline:pipeline0/GstVorbisEnc:vorbisenc0:
编码器未初始化(输入不是音频?)
错误:管道不想预卷。

请帮我解决这个问题,谢谢。

【问题讨论】:

    标签: gstreamer


    【解决方案1】:

    您将编码和混合的比特流插入音频编码器。那不可能。

    在您的情况下,filesrc ! udpsink 将通过网络发送您的文件,而在另一端,您必须接收它 udpsrc,解复用它 oggdemux,解码它 theoradecvorbisdec,然后通过管道将其输入一个水槽autovideosinkautoaudiosink

    【讨论】:

    • 是的,当我删除编码器时,此命令与:“gst-launch-0.10 filesrc location="/home/motsach/GStreamerTest/test.ogg" !rtpvorbispay pt=96 !udpsink host= 127.0.0.1 端口=5000”。但是,这不起作用,我收到错误:“将管道设置为暂停 ... 管道正在预滚动 ... 警告:来自元素 /GstPipeline:pipeline0/GstRtpVorbisPay:rtpvorbispay0: 无法解码流。...忽略未知标头收到错误:来自元素/GstPipeline:pipeline0/GstRtpVorbisPay:rtpvorbispay0:元素未实现此流的处理。请提交错误。请帮我解释一下,谢谢!
    猜你喜欢
    • 1970-01-01
    • 2013-10-02
    • 1970-01-01
    • 2017-12-08
    • 1970-01-01
    • 2011-10-13
    • 1970-01-01
    • 2017-02-26
    • 1970-01-01
    相关资源
    最近更新 更多