Gstreamer 使用gst启动流媒体视频?
我想流媒体文件(视频或音频)。我使用命令:Gstreamer 使用gst启动流媒体视频?,gstreamer,Gstreamer,我想流媒体文件(视频或音频)。我使用命令: 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进行流式处理,我遇到了一个错误: "ERROR: from element /GstPipeline:pipeline0/GstVorbisEnc:vorb
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
进行流式处理,我遇到了一个错误:
"ERROR: from element /GstPipeline:pipeline0/GstVorbisEnc:vorbisenc0: Internal GStreamer error: negotiation problem. Please file a bug at http://bugzilla.gnome.org/enter_bug.cgi?product=GStreamer.
Additional debug info:
gstvorbisenc.c(1227): gst_vorbis_enc_chain (): /GstPipeline:pipeline0/GstVorbisEnc:vorbisenc0:
encoder not initialized (input is not audio?)
ERROR: pipeline doesn't want to preroll.
“错误:来自元素/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:
编码器未初始化(输入不是音频?)
错误:管道不想预卷。
请帮助我解决此问题,谢谢。您将编码和多路复用的比特流插入音频编码器。这不可能工作
在您的情况下,
filesrc!udpsink
将通过网络发送您的文件,在另一端,您必须接收文件udpsrc
,对其进行解复用oggdemux
,对其进行解码theoradec
或vorbisdec
,然后将其导入接收器autovideosink
或autoaudiosink
,是的,当我删除时编码器,此命令与:“gst-launch-0.10 filesrc location=“/home/motsach/GStreamerTest/test.ogg”相同!rtpvorbispay pt=96!udpsink主机=127.0.0.1端口=5000”。但是,这不起作用,我收到了错误:“将管道设置为暂停。。。管道正在预滚。。。警告:从元素/GstPipeline:pipeline0/GstRtpVorbisPay:rtpvorbispay0:无法解码流。。。忽略收到的未知标头错误:来自元素/GstPipeline:pipeline0/GstRtpVorbisPay:rtpvorbispay0:元素未实现对此流的处理。请归档一个bug。“请给我解释一下,谢谢!