View Code? Open in Web Editor
NEW
rtmp server for windows, mac, linux, android. (mpegts hls)
License: GNU General Public License v2.0
gortmp's Introduction
Client(IP : 192.168.2.99)
-
ffmpeg : push the desktop to the server.
ffmpeg.exe -report -f dshow -i audio="virtual-audio-capturer" -f dshow -i video="screen-capture-recorder" -vcodec libx264 -acodec aac -s 1920*1080 -r 25 -g 25 -pix_fmt yuv420p -preset veryfast -tune zerolatency -f flv rtmp://192.168.2.100/myapp/mystream
Server(IP : 192.168.2.100)
-
Run Server(need to install "golang" environment)。
go run main.go
Pull Live Stream(IP : 192.168.2.99)
-
ffplay.
ffplay.exe -i rtmp://192.168.2.100/myapp/mystream -fflags nobuffer
-
LAN delay in about 0.5 seconds.
-
Delay picture.
![image](https://github.com/sevenzoe/Photos/raw/master/Delay.png)
gortmp's People
Contributors
gortmp's Issues
第一个问题:我测试的时候,生成的ts文件播放不了。但是我用ffmpeg生成的ts确是可以播放的?这方面我不是很专业,询问一下大神。
第二个问题:就是生成的m3u8只能播放2s之后就停止了。
第三个问题:m3u8为什么只有最后两个ts文件。
我们使用这个服务端然后使用ffmpeg进行推流,大概半天以后,ffmpeg的CPU占用率会缓慢上升,最终到达100%.重启服务端后ffmpeg的CPU占用率恢复正常.