Este commit está contenido en:
Your Name
2020-07-03 11:49:11 +00:00
padre 48621bb2ed
commit 52d607ee8e
Se han modificado 547 ficheros con 37750 adiciones y 36525 borrados

Ver fichero

@@ -35,14 +35,25 @@ const config = {
app: 'live',
ac: 'aac',
hls: true,
hlsFlags: '[hls_time=2:hls_list_size=3:hls_flags=delete_segments]'
hlsFlags: '[hls_time=30:hls_list_size=5:hls_flags=delete_segments]'
// args: '-profile:v baseline -level 3.0 -start_number 0'
// dash: true,
// dashFlags: '[f=dash:window_size=3:extra_window_size=5]'
},
// {
// app: 'ale',
// ac: 'aac',
// hls: true,
// hlsFlags: '[hls_time=2:hls_list_size=3:hls_flags=delete_segments]'
// },
// {
// app: 'live',
// mp4: true,
// mp4Flags: '[movflags=faststart]'
// }
// {
// app: 'live',
// mp4: true
// }
]
},
@@ -55,7 +66,7 @@ const config = {
// tasks: [{
// app: 'live',
// mode: 'push',
// edge: 'rtmp://a.rtmp.youtube.com/live2/xvc5-mcaq-rkcu-p5fy-ep2e',
// edge: 'rtmp://a.rtmp.youtube.com/live2/dqpj-00y7-v2vt-yrpu-em4h',
// appendName: false
// }]
// }

Ver fichero

@@ -12,6 +12,7 @@ services:
volumes:
- ./app.js:/usr/src/app/app.js:ro
- ./entrypoint.sh:/usr/src/app/entrypoint.sh:ro
- ./emitir.sh:/usr/src/app/emitir.sh:ro
- ./media:/usr/src/app/media
- ./lists:/lists:ro
expose:
@@ -23,6 +24,7 @@ services:
networks:
mynet:
ipv4_address: 172.14.0.101
peertube:
networks:
mynet:
@@ -31,3 +33,6 @@ networks:
config:
- subnet: 172.14.0.0/24
peertube:
external:
name: peertube_mynet

8
production/nms/entrypoint.sh Archivo normal → Archivo ejecutable
Ver fichero

@@ -4,8 +4,6 @@ apk upgrade
apk add ffmpeg
node app.js &
sleep 1s
while [ True ]; do
for i in $(cat /lists/fanta.txt); do
ffmpeg -loglevel quiet -re -i async:cache:"$i" -threads 2 -f flv -vcodec h264 -acodec aac rtmp://127.0.0.1/live/streaming?sign=1590502038931-b04c1d7b5bfc3dc61ddce23b2dda3649
done
done
./emitir.sh /lists/domingosnegros.txt /live/streaming?sign=1591094634811-f60cc56ae2f6fe84244dd22920837c21 &
#./emitir.sh /lists/fanta-orig.txt /live/pelis?sign=1591044906701-e424ed0f9ae4e4a9193db9177ad12aeb &
/bin/sleep infinity