need ffmpeg v4.3.1 or higher, maybe
( sudo snap install ffmpeg
will work on Ubuntu20.04 )
- on ubuntu20
$ sudo add-apt-repository ppa:savoury1/ffmpeg4
$ sudo apt-get update && apt-get install -y ffmpeg \
or
$ sudo snap install ffmpeg
- run script
$ cd scripts
$ ./ll-rtmpsrc.sh
then inject mp4 stream via rtmp on port 1935.
$ node index.js
then open http://localhost:5000
- PORT
- port number of http server ( default: 5000 )
- LOG_LEVEL
- log level ( 'trace', 'debug', 'info', 'warn', 'error' and 'fatal'. default: 'info' )
- DASH_DIR
- directory to store files created by dash-packager ( default
dash-data/
)
- directory to store files created by dash-packager ( default
$ docker-compose up
then open http://localhost
( in docker-compose, varnish
is used as well. )
© kensaku.komatsu