Code Monkey home page Code Monkey logo

nginx-vod-module-docker's Introduction

nginx-vod-module-docker

Local dockerfile for run nginx vod module by kaltura

Building locally

This repository uses Docker's multi-stage builds, therefore building this image requires Docker 17.05 or higher. Given that you have all the required dependencies, building the image is as simple as running a docker build:

docker build -t nginxvod -f Dockerfile .

here nginxvod is your local image name, and you can change this name if you like

Running this example locally

You can run this example locally with Docker

docker run -p 3030:80 -v $PWD/videos:/opt/static/videos -v $PWD/nginx.conf:/usr/local/nginx/conf/nginx.conf nginxvod
  • docker run on port 3030, you can change this port if you want
  • open port on server firewall
  • /videos its local directory for video sources
  • nginx.conf its nginx config file.
  • you can change video path by change $PWD/videos to new path
  • Add -d after run, if you want run it background

Example

  • HLS: http://localhost:3030/hls/demo.mp4/master.m3u8
  • Dash: http://localhost:3030/dash/demo.mp4/manifest.mpd
  • Thumbnail: http://localhost:3030/thumb/demo.mp4/thumb-1000.jpg

Run examples

  • Run in background :
docker run -d -p 3030:80 -v $PWD/videos:/opt/static/videos -v $PWD/nginx.conf:/usr/local/nginx/conf/nginx.conf nginxvod

Source

nginx-vod-module-docker's People

Contributors

voltan avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

nginx-vod-module-docker's Issues

不同视频格式怎么自动转为m3u8

你好作者:

  • 你的这个项目可以将mp4格式自动转为m3u8。但是并不能将其它格式自动转为m3u8。比如:rmvb | m4v 等等,但是都能通过ffmpeg手动转为mp4,我的想法是我根本不需要手动修改什么,能否在你的基础上修改点什么让它自动转。如果能,怎么修改?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.