node-media-service 的代码
```javascript
const NodeMediaServer = require('node-media-server');
const config = {
rtmp: {
port: 1935,
chunk_size: 60000,
gop_cache: true,
ping: 30,
ping_timeout: 1000
},
http: {
port:8083,
allow_origin: '*'
},
https: {
port: 8446,
key:'F:\\ssl\\ivynetcircle_privatekey.key',
cert:'F:\\ssl\\ivynetcircle.com-cert.pem',
allow_origin: '*'
},
auth: {
play: true,
publish: true,
secret: 'nodemedia2017privatekey'
}
};
var nms = new NodeMediaServer(config)
nms.run();
nodeJS node-media-sevice官网说要
3.expiration time: 2017/8/23 11:25:21 ,The calculated expiration timestamp is
1503458721
4.The combination HashValue is:
HashValue = md5("/live/stream-1503458721-nodemedia2017privatekey”)
HashValue = 80c1d1ad2e0c2ab63eebb50eed64201a
5.Final request address
rtmp://192.168.0.10/live/stream?sign=1503458721-80c1d1ad2e0c2ab63eebb50eed64201a
The 'sign' keyword can not be modified
请问ffmpeg要如何推流
```
ffmpeg.exe -re -i .\test.mp4 -c copy -f flv rtmp://hostname.com:1935/live/stream?sign=1503458721-80c1d1ad2e0c2ab63eebb50eed64201a
是这样吗?谢谢
我用localhost是可以实现的 就是不知道如何用hostname和ip形式实现 谢谢