Self built live video streaming using akka-http
Configuration file is application.conf
You need to set at least these 3 variables in the application.conf file:
livevideostream.fps
example : livevideostream.fps = 25
How many frames will be produced by the source and also the output video frame.
livevideostream.port
example: livevideostream.port = 1234
Which port will be used by this application.
livevideostream.level
example: livevideostream.level = 1
Number of different quality levels. ** Only 1 and 3 are available**
livevideostream.numberOfCores
example: livevideostream.numberOfCores = 2
Number of threads will be used by the program. Number of cores is automatically detected and the default is maximum.
livevideostream.videoDirectory
example: livevideostream.videoDirectory = "folder1/folder2"
A folder named livevideostream will be created under the given directory and all files will be stored there. Default is current working directory.
You need to have the latest versions of sbt and ffmpeg downloaded and installed on your computer.
First go to project directory then: sbt run
Alternatively you can pull the docker image from dockerhub
docker pull hivecdn/testvideoserver:latest
then run with port forwarding
docker run -p 1234:1234 hivecdn/testvideoserver:latest
finally open your favorite web browser and type
http://localhost:1234