标签:
docker
docker pull jasonrivers/nginx-rtmp docker run -it -p 1935:1935 -p 8080:8080 jasonrivers/nginx-rtmp /bin/sh
nginx目录似乎在/opt/nginx/下面,查看配置文件,发现是在节点live
hls的url路径是在hls节点
mac安装ffmpeg
brew install ffmpeg
转码并推流
//这里似乎有问题 #ffmpeg -re -i ~/Projects/rtmp/xgtt/1.mp4 -vcodec libx264 -acodec aac -f flv rtmp://localhost:1935/live/mystream ffmpeg -re -i ~/Projects/rtmp/xgtt/1.mp4 -c copy -f flv rtmp://localhost:1935/live/mystream
访问
<div> <p>local video</p> <video autoplay webkit-playsinline> <source src="http://192.168.1.55:8080/hls/mystream.m3u8" type="application/vnd.apple.mpegurl" /> <p class="warning">Your browser does not support HTML5 video.</p> </video> </div>
标签:
原文地址:http://www.cnblogs.com/ziyouchutuwenwu/p/5777531.html