Gstreamer非常新,但我正在尝试使用Gstreamer命令实现一个网络流。到目前为止,我已经成功地让管道使用了视频filesrc,但是当我尝试将一个文件to放在它的位置时,我就有麻烦了。以下是我尝试过的
终端上的输出是
Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
/GstPipeline:pipeline0/GstRtpBin:rtpbin.GstGhostPad:send_rtcp_src_0: caps = application/x-rtcp
/GstPipeline:pipeline0/GstRtpBin:rtpbin
/GstRtpSession:rtpsession0.GstPad:send_rtcp_src: caps = application/x-rtcp
/GstPipeline:pipeline0/GstUDPSink:udpsink1.GstPad:sink: caps = application/x-rtcp
/GstPipeline:pipeline0
/GstRtpBin:rtpbin.GstGhostPad:send_rtcp_src_0.GstProxyPad:proxypad3: caps = application/x-rtcp
ERROR: from element /GstPipeline:pipeline0/GstMatroskaDemux:matroskademux0: GStreamer encountered a general stream error.
Additional debug info:
matroska-demux.c(4492): gst_matroska_demux_loop (): /GstPipeline:pipeline0
/GstMatroskaDemux:matroskademux0:
stream stopped, reason not-linked
Execution ended after 1096585 ns.
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
/GstPipeline:pipeline0/GstUDPSink:udpsink1.GstPad:sink: caps = NULL
/GstPipeline:pipeline0/GstRtpBin:rtpbin.GstGhostPad:send_rtcp_src_0: caps = NULL
/GstPipeline:pipeline0/GstRtpBin:rtpbin
/GstRtpSession:rtpsession0.GstPad:send_rtcp_src: caps = NULL
/GstPipeline:pipeline0/GstMatroskaDemux:matroskademux0.GstPad:audio_00: caps = NULL
/GstPipeline:pipeline0/GstMatroskaDemux:matroskademux0.GstPad:video_00: caps = NULL
Setting pipeline to NULL ...
Freeing pipeline ...如果有人知道如何修复管道来正确地解析文件或提高x264enc在Gstreamer中的性能,我将非常感激!
发布于 2013-07-15 16:54:38
您可以尝试在h264parse元素之前添加一个队列元素。另外,在管道中指定matroskademux的视频src pad。
https://stackoverflow.com/questions/17325770
复制相似问题