ossrs / httpx-static

A HTTP/HTTPS API proxy for SRS.
https://github.com/ossrs/srs
MIT License
642 stars 222 forks source link

windows version: facing issue to get rtmp working #63

Closed Abu-Abdullah closed 8 years ago

Abu-Abdullah commented 8 years ago

Hi,

i have compiled the latest code in windows and tried it with a stream coming from ffmpeg (feed from PI camera). im trying to play it from FMLE. default configuration

{
  "listen": 1935,
  "log": {
    "tank": "file",
    "level": "trace",
    "file": "oryx.log"
  },
  "vhosts": [
    {
      "name": "__defaultVhost__"
    }
  ]
}

command from Raspberry:

raspivid -fl -t 0 -w 640 -h 480 -b 1200000 -fps 15 -pf baseline -o - | ffmpeg -re -i - -vcodec copy -an -f flv -y rtmp://192.168.2.3/live/livestream

error

[oryx][warn] 2016/05/17 20:33:07 [1816][100] windows not support daemon.
[oryx][trace] 2016/05/17 20:33:07 [1816][100] Oryx/0.1.17(MonkeyKing) Copyright (c) 2013-2015 Oryx(ossrs)
[oryx][trace] 2016/05/17 20:33:07 [1816][100] The go-oryx is SRS++, focus on real-time live streaming cluster.
[oryx][trace] 2016/05/17 20:33:07 [1816][100] set gc percent from 100 to 100
[oryx][trace] 2016/05/17 20:33:07 [1816][100] rtmp listen at tcp://1935
[oryx][trace] 2016/05/17 20:33:07 [1816][100] init server ok, conf=src.json, log=file(trace/oryx.log), workers=0/8, gc=0/100%, daemon=true
[oryx][trace] 2016/05/17 20:33:07 [1816][100] apply workers 8 and previous is 8
[oryx][warn] 2016/05/17 20:33:07 [1816][100] windows does not support reload with signal.
[oryx][trace] 2016/05/17 20:33:07 [1816][100] match iface=Ethernet, ip=169.254.30.218, hwaddr=6c:f0:49:e0:f5:23, pub=Internet
[oryx][trace] 2016/05/17 20:33:07 [1816][100] match iface=Ethernet, ip=192.168.137.1, hwaddr=6c:f0:49:e0:f5:23, pub=Intranet
[oryx][trace] 2016/05/17 20:33:07 [1816][100] match iface=VirtualBox Host-Only Network, ip=192.168.56.1, hwaddr=0a:00:27:00:00:07, pub=Intranet
[oryx][trace] 2016/05/17 20:33:07 [1816][100] match iface=Ethernet 2, ip=192.168.2.3, hwaddr=6c:f0:49:e0:f5:33, pub=Intranet
[oryx][trace] 2016/05/17 20:33:07 [1816][100] local ip is [Ethernet/169.254.30.218/6c:f0:49:e0:f5:23/Internet Ethernet/192.168.137.1/6c:f0:49:e0:f5:23/Intranet VirtualBox Host-Only Network/192.168.56.1/0a:00:27:00:00:07/Intranet Ethernet 2/192.168.2.3/6c:f0:49:e0:f5:33/Intranet] exported Ethernet/169.254.30.218/6c:f0:49:e0:f5:23/Internet
[oryx][trace] 2016/05/17 20:33:21 [1816][101] rtmp accept 192.168.2.18:58328
[oryx][trace] 2016/05/17 20:33:21 [1816][101] complex handshake ok.
[oryx][trace] 2016/05/17 20:33:21 [1816][101] connect at rtmp://192.168.2.3:1935/live AMF0
[oryx][trace] 2016/05/17 20:33:21 [1816][101] output chunk size to 60000
[oryx][trace] 2016/05/17 20:33:21 [1816][101] input chunk size to 60000
[oryx][trace] 2016/05/17 20:33:21 [1816][101] client identified, type=fmle-publish, stream_name=livestream, duration=0.00
[oryx][trace] 2016/05/17 20:33:21 [1816][101] redirect vhost 192.168.2.3 to __defaultVhost__
[oryx][trace] 2016/05/17 20:33:21 [1816][101] fmle ignore AMF0/AMF3 command message.
[oryx][trace] 2016/05/17 20:33:21 [1816][101] cache metadta sh.
[oryx][trace] 2016/05/17 20:33:21 [1816][101] cache video sh.
[oryx][trace] 2016/05/17 20:33:24 [1816][102] rtmp accept [::1]:64292
[oryx][trace] 2016/05/17 20:33:24 [1816][102] rollback to simple handshake.
[oryx][trace] 2016/05/17 20:33:24 [1816][102] connect at rtmp://localhost/live AMF0
[oryx][trace] 2016/05/17 20:33:24 [1816][102] output chunk size to 60000
[oryx][error] 2016/05/17 20:33:29 [1816][102] timeout for 5s
[oryx][warn] 2016/05/17 20:33:29 [1816][102] read basic header failed. err is read tcp [::1]:1935->[::1]:64292: use of closed network connection
[oryx][warn] 2016/05/17 20:33:29 [1816][102] rtmp receiver terminated with read tcp [::1]:1935->[::1]:64292: use of closed network connection
[oryx][trace] 2016/05/17 20:33:29 [1816][102] closed
[oryx][trace] 2016/05/17 20:33:29 [1816][103] rtmp accept [::1]:64293
[oryx][trace] 2016/05/17 20:33:29 [1816][103] rollback to simple handshake.
[oryx][trace] 2016/05/17 20:33:29 [1816][103] connect at rtmp://localhost/live AMF0
[oryx][trace] 2016/05/17 20:33:29 [1816][103] output chunk size to 60000
[oryx][error] 2016/05/17 20:33:34 [1816][103] timeout for 5s
[oryx][warn] 2016/05/17 20:33:34 [1816][103] read basic header failed. err is read tcp [::1]:1935->[::1]:64293: use of closed network connection
[oryx][warn] 2016/05/17 20:33:34 [1816][103] rtmp receiver terminated with read tcp [::1]:1935->[::1]:64293: use of closed network connection
[oryx][trace] 2016/05/17 20:33:34 [1816][103] closed
[oryx][warn] 2016/05/17 20:33:07 [1816][100] windows not support daemon.
[oryx][trace] 2016/05/17 20:33:07 [1816][100] Oryx/0.1.17(MonkeyKing) Copyright (c) 2013-2015 Oryx(ossrs)
[oryx][trace] 2016/05/17 20:33:07 [1816][100] The go-oryx is SRS++, focus on real-time live streaming cluster.
[oryx][trace] 2016/05/17 20:33:07 [1816][100] set gc percent from 100 to 100
[oryx][trace] 2016/05/17 20:33:07 [1816][100] rtmp listen at tcp://1935
[oryx][trace] 2016/05/17 20:33:07 [1816][100] init server ok, conf=src.json, log=file(trace/oryx.log), workers=0/8, gc=0/100%, daemon=true
[oryx][trace] 2016/05/17 20:33:07 [1816][100] apply workers 8 and previous is 8
[oryx][warn] 2016/05/17 20:33:07 [1816][100] windows does not support reload with signal.
[oryx][trace] 2016/05/17 20:33:07 [1816][100] match iface=Ethernet, ip=169.254.30.218, hwaddr=6c:f0:49:e0:f5:23, pub=Internet
[oryx][trace] 2016/05/17 20:33:07 [1816][100] match iface=Ethernet, ip=192.168.137.1, hwaddr=6c:f0:49:e0:f5:23, pub=Intranet
[oryx][trace] 2016/05/17 20:33:07 [1816][100] match iface=VirtualBox Host-Only Network, ip=192.168.56.1, hwaddr=0a:00:27:00:00:07, pub=Intranet
[oryx][trace] 2016/05/17 20:33:07 [1816][100] match iface=Ethernet 2, ip=192.168.2.3, hwaddr=6c:f0:49:e0:f5:33, pub=Intranet
[oryx][trace] 2016/05/17 20:33:07 [1816][100] local ip is [Ethernet/169.254.30.218/6c:f0:49:e0:f5:23/Internet Ethernet/192.168.137.1/6c:f0:49:e0:f5:23/Intranet VirtualBox Host-Only Network/192.168.56.1/0a:00:27:00:00:07/Intranet Ethernet 2/192.168.2.3/6c:f0:49:e0:f5:33/Intranet] exported Ethernet/169.254.30.218/6c:f0:49:e0:f5:23/Internet
[oryx][trace] 2016/05/17 20:33:21 [1816][101] rtmp accept 192.168.2.18:58328
[oryx][trace] 2016/05/17 20:33:21 [1816][101] complex handshake ok.
[oryx][trace] 2016/05/17 20:33:21 [1816][101] connect at rtmp://192.168.2.3:1935/live AMF0
[oryx][trace] 2016/05/17 20:33:21 [1816][101] output chunk size to 60000
[oryx][trace] 2016/05/17 20:33:21 [1816][101] input chunk size to 60000
[oryx][trace] 2016/05/17 20:33:21 [1816][101] client identified, type=fmle-publish, stream_name=livestream, duration=0.00
[oryx][trace] 2016/05/17 20:33:21 [1816][101] redirect vhost 192.168.2.3 to __defaultVhost__
[oryx][trace] 2016/05/17 20:33:21 [1816][101] fmle ignore AMF0/AMF3 command message.
[oryx][trace] 2016/05/17 20:33:21 [1816][101] cache metadta sh.
[oryx][trace] 2016/05/17 20:33:21 [1816][101] cache video sh.
[oryx][trace] 2016/05/17 20:33:24 [1816][102] rtmp accept [::1]:64292
[oryx][trace] 2016/05/17 20:33:24 [1816][102] rollback to simple handshake.
[oryx][trace] 2016/05/17 20:33:24 [1816][102] connect at rtmp://localhost/live AMF0
[oryx][trace] 2016/05/17 20:33:24 [1816][102] output chunk size to 60000
[oryx][error] 2016/05/17 20:33:29 [1816][102] timeout for 5s
[oryx][warn] 2016/05/17 20:33:29 [1816][102] read basic header failed. err is read tcp [::1]:1935->[::1]:64292: use of closed network connection
[oryx][warn] 2016/05/17 20:33:29 [1816][102] rtmp receiver terminated with read tcp [::1]:1935->[::1]:64292: use of closed network connection
[oryx][trace] 2016/05/17 20:33:29 [1816][102] closed
[oryx][trace] 2016/05/17 20:33:29 [1816][103] rtmp accept [::1]:64293
[oryx][trace] 2016/05/17 20:33:29 [1816][103] rollback to simple handshake.
[oryx][trace] 2016/05/17 20:33:29 [1816][103] connect at rtmp://localhost/live AMF0
[oryx][trace] 2016/05/17 20:33:29 [1816][103] output chunk size to 60000
[oryx][error] 2016/05/17 20:33:34 [1816][103] timeout for 5s
[oryx][warn] 2016/05/17 20:33:34 [1816][103] read basic header failed. err is read tcp [::1]:1935->[::1]:64293: use of closed network connection
[oryx][warn] 2016/05/17 20:33:34 [1816][103] rtmp receiver terminated with read tcp [::1]:1935->[::1]:64293: use of closed network connection
[oryx][trace] 2016/05/17 20:33:34 [1816][103] closed

from VLC it shows little different error:

[oryx][trace] 2016/05/17 21:29:06 [9456][596] rtmp accept 192.168.2.3:65058
[oryx][trace] 2016/05/17 21:29:06 [9456][596] complex handshake ok.
[oryx][trace] 2016/05/17 21:29:06 [9456][596] connect at rtmp://192.168.2.3:1935/live AMF0
[oryx][trace] 2016/05/17 21:29:06 [9456][596] output chunk size to 60000
[oryx][trace] 2016/05/17 21:29:06 [9456][596] client identified, type=unknown, stream_name=, duration=0.00
[oryx][trace] 2016/05/17 21:29:06 [9456][596] redirect vhost 192.168.2.3 to __defaultVhost__
[oryx][warn] 2016/05/17 21:29:06 [9456][596] close invalid unknown client
[oryx][error] 2016/05/17 21:29:06 [9456][596] read body failed. err is read tcp 192.168.2.3:1935->192.168.2.3:65058: use of closed network connection
[oryx][warn] 2016/05/17 21:29:06 [9456][596] rtmp receiver terminated with read tcp 192.168.2.3:1935->192.168.2.3:65058: use of closed network connection
[oryx][trace] 2016/05/17 21:29:06 [9456][596] closed
winlinvip commented 8 years ago

fixed by https://github.com/ossrs/go-oryx/pull/64