无法流式传输到crtmpserver,发送数据时出错:管道损坏

时间:2016-06-08 10:23:06

标签: media gstreamer rtmp live-streaming flv

使用Gstreamer最新版本 gst-launch-1.0版本1.8.1 GStreamer 1.8.1

命令:

gst-launch-1.0 -m -v --gst-debug-level=2  autovideosrc ! video/x-raw,width=640,height=480 !  videoconvert ! tcpclientsink host="hidden_ip" port=1935

流式传输到crtmpserver(在ubuntu AWS ec2上),它具有以下开放,可公开访问和工作的端口

 sudo netstat -putan|grep crtmp
tcp        0      0 0.0.0.0:9999            0.0.0.0:*               LISTEN      7235/crtmpserver
tcp        0      0 0.0.0.0:1935            0.0.0.0:*               LISTEN      7235/crtmpserver
tcp        0      0 0.0.0.0:9999            0.0.0.0:*               LISTEN      11734/crtmpserver
tcp        0      0 0.0.0.0:1935            0.0.0.0:*               LISTEN      11734/crtmpserver
tcp        0      0 0.0.0.0:9999            0.0.0.0:*               LISTEN      11689/crtmpserver
tcp        0      0 0.0.0.0:1935            0.0.0.0:*               LISTEN      11689/crtmpserver
tcp        0      0 0.0.0.0:8080            0.0.0.0:*               LISTEN      7235/crtmpserver
tcp        0      0 0.0.0.0:8080            0.0.0.0:*               LISTEN      11734/crtmpserver
tcp        0      0 0.0.0.0:8080            0.0.0.0:*               LISTEN      11689/crtmpserver
tcp        0      0 0.0.0.0:6665            0.0.0.0:*               LISTEN      7235/crtmpserver
tcp        0      0 0.0.0.0:6665            0.0.0.0:*               LISTEN      11734/crtmpserver
tcp        0      0 0.0.0.0:6665            0.0.0.0:*               LISTEN      11689/crtmpserver
tcp        0      0 0.0.0.0:6666            0.0.0.0:*               LISTEN      7235/crtmpserver
tcp        0      0 0.0.0.0:6666            0.0.0.0:*               LISTEN      11734/crtmpserver
tcp        0      0 0.0.0.0:6666            0.0.0.0:*               LISTEN      11689/crtmpserver

错误:

错误:来自element / GstPipeline:pipeline0 / GstTCPClientSink:tcpclientsink0:将数据发送到“hidden_​​ip:1935”时出错。 其他调试信息: gsttcpclientsink.c(217):gst_tcp_client_sink_render():/ GstPipeline:pipeline0 / GstTCPClientSink:tcpclientsink0: 仅写入了614400字节的236024:发送数据时出错:管道损坏 执行在0:00:01.308461393

之后结束

完成错误跟踪 http://pastebin.com/aEFYb5q6

非常感谢, 在期待中感谢

更新: 在iptable和gst插件上做了一些解决方法之后 我终于得到了查询错误。关于如何解决这个问题的任何想法都将受到欢迎

来自ubuntu 15.10的

gst脚本

gst-launch-1.0 -m -v --gst-debug-level=2 v4l2src ! video/x-h264,width=320,height=240,framerate=10/1 ! h264parse ! flvmux ! rtmpsink location ='rtmp://<hidden_ip>/live'

来自gst的痕迹

flvmux gstflvmux.c:1238:gst_flv_mux_write_header:<flvmux0> downstream did not handle seeking query
............
flvmux gstflvmux.c:1246:gst_flv_mux_write_header:<flvmux0> downstream is not seekable, but streamable=false. Will ignore that and create streamable output instead
........
gstbasesrc.c(2948): gst_base_src_loop (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0:
streaming task paused, reason not-negotiated (-4)
Execution ended after 0:00:00.213998674

0 个答案:

没有答案