Giter Site home page Giter Site logo

nginx-rtmp-dockerfile's Introduction

NGINX RTMP Dockerfile

This Dockerfile installs NGINX configured with nginx-rtmp-module, ffmpeg and some default settings for HLS live streaming.

Note: in the current state, this is just an experimental project to play with RTMP and HLS.

How to use

  1. Build and run the container (docker build -t nginx_rtmp . & docker run -p 1935:1935 -p 8080:80 --rm nginx_rtmp).

  2. Stream your live content to rtmp://localhost:1935/encoder/stream_name where stream_name is the name of your stream.

  3. In Safari, VLC or any HLS compatible browser / player, open http://localhost:8080/hls/stream_name.m3u8. Note that the first time, it might take a few (10-15) seconds before the stream works. This is because when you start streaming to the server, it needs to generate the first segments and the related playlists.

Links

nginx-rtmp-dockerfile's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

nginx-rtmp-dockerfile's Issues

Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

#6 551.7
#6 551.7 E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

executor failed running [/bin/sh -c apt-get update && apt-get upgrade -y && apt-get clean && apt-get install -y --no-install-recommends build-essential wget software-properties-common && add-apt-repository ppa:mc3man/trusty-media && apt-get update && apt-get install -y --no-install-recommends ffmpeg && apt-get install -y --no-install-recommends libpcre3-dev zlib1g-dev libssl-dev wget && rm -rf /var/lib/apt/lists/*]: exit code: 100

Add a license

Hi,

I'd like to be able to formally contribute to this project, but as there is no LICENSE I will be forced to greenfield my own configuration. I would love if this project was liberally licensed e.g. MIT/BSD!

Create thumbnail

Maybe it's not related to this repo.
But what is the best way to generate thumbnail from HLS or RTMP periodically?

Can't connect how it's write on README

Can't connect how it's wrote on README

Stream your live content to rtmp://localhost:1935/encoder/stream_name where stream_name is the name of your stream.

I write: rtmp://myipv4:1935/encoder/stream
and get:
http://i.imgur.com/4IgbCHI.png
But if i do rtmp://myipv4:1935/encoder
and Play path. Stream is working, but hls doesn't work.

Stat log:
1.6.2 1.1.4 gcc 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.1) Jul 17 2016 14:35:13 6 6444 191 2438392 379007999 1485568 180462723 encoder stream 16451742477928 161258879 1486216 128390432 255832 2222088 17191.247.155.172422378FMLE/3.0 (compatible; FMSc/1.0)rtmp://myipv4.ru:1935/encoder027420736 128072024H264Main644.1AACLC248000 1 1 hls 0

P.S /data/hls is empty

root@471fa8485c3c:/data/hls# pwd
/data/hls
root@471fa8485c3c:/data/hls# ls -all
total 8
drwx------ 2 nobody root 4096 Jul 17 15:57 .
drwxr-xr-x 3 root root 4096 Jul 17 14:36 ..
root@471fa8485c3c:/data/hls#

Cant install dock

I can't install dock:
press: docker build -t nginx_rtmp .

my system: #50-Ubuntu SMP Wed Jul 13 00:07:12 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

xenial has ffmpeg on self repos.

Reading package lists... W: The repository 'http://ppa.launchpad.net/mc3man/trusty-media/ubuntu xenial Release' does not have a Release file. E: Failed to fetch http://ppa.launchpad.net/mc3man/trusty-media/ubuntu/dists/xenial/main/binary-amd64/Packages 404 Not Found E: Some index files failed to download. They have been ignored, or old ones used instead. The command '/bin/sh -c apt-get update' returned a non-zero code: 100

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.