jbilcke-hf HF staff commited on
Commit
2c58d43
1 Parent(s): 07ae658

debugging the stream

Browse files
Files changed (2) hide show
  1. media-server.js +2 -0
  2. scripts/stream.sh +1 -1
media-server.js CHANGED
@@ -1,11 +1,13 @@
1
  const NodeMediaServer = require('node-media-server')
2
 
3
  const config = {
 
4
  auth: {
5
  api: true,
6
  api_user: process.env.WEBTV_MEDIA_SERVER_USER,
7
  api_pass: process.env.WEBTV_MEDIA_SERVER_PASSWORD
8
  },
 
9
  rtmp: {
10
  port: 1935,
11
  chunk_size: 60000,
 
1
  const NodeMediaServer = require('node-media-server')
2
 
3
  const config = {
4
+ /*
5
  auth: {
6
  api: true,
7
  api_user: process.env.WEBTV_MEDIA_SERVER_USER,
8
  api_pass: process.env.WEBTV_MEDIA_SERVER_PASSWORD
9
  },
10
+ */
11
  rtmp: {
12
  port: 1935,
13
  chunk_size: 60000,
scripts/stream.sh CHANGED
@@ -1,2 +1,2 @@
1
  echo "starting the FFMPEG stream, to merge video and audio and send it to the RTMP server.."
2
- ffmpeg -i video.pipe -i audio.pipe -c copy -f flv $WEBTV_RTMP_URL
 
1
  echo "starting the FFMPEG stream, to merge video and audio and send it to the RTMP server.."
2
+ ffmpeg -re -i video.pipe -i audio.pipe -c:v libx264 -preset veryfast -tune zerolatency -c:a aac -ar 44100 -f flv rtmp://localhost/live/webtv