dvdgiessen / nginx-rtmp-docker Goto Github PK
View Code? Open in Web Editor NEWDockerfile for building lightweight nginx + rtmp module for replicating streams
Dockerfile for building lightweight nginx + rtmp module for replicating streams
Hi,
I'm trying to use your image. I installed IP Camera Lite, and can connect to rtmp server to stream iphone camera. I've tried a few different clients but I can't connect/access video stream, rtmp://192.168.1.103/live/stream/
Can someone help me stream iphone camera to this rtmp server and access it from another pc?
Hi,
Thanks a lot for this image, it works really well for me!
I'm trying to install other packages such as ffmpeg:
RUN apk add --no-cache \ ffmpeg \ build-base \ libressl-dev
When I try to use ffmpeg or ssh into the running container, ffmpeg is not found.
What am I doing wrong in my installation?
I'm running the docker container, and streaming to it from OBS works fine. However, as soon as clients start connecting an issue becomes clear: clients are left waiting, receiving no data.
I've tried a few different clients now (VLC, Kodi, rtmpdump
), and all suffer with the same problem.
Here's a log from rtmpdump
:
C:\Users\Alex>rtmpdump -r rtmp://microserver/live/stream
RTMPDump v2.3
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
WARNING: You haven't specified an output file (-o filename), using stdout
Connecting ...
INFO: Connected...
Starting download at: 0.000 kB
ERROR: RTMP_ReadPacket, failed to read RTMP packet header
Caught signal: 2, cleaning up, just a second...
0.000 kB / 0.00 sec
Download may be incomplete (downloaded about 0.00%), try resuming
This doesn't seem to be an obvious connection issue: clients are connecting and waiting fine, and show up in the nginx logs once they disconnect.
In addition, client connections only seem to have a chance of working for the first few seconds of a stream. Put another way, if the stream has been running for longer than 5 or 10 seconds, clients have absolutely no chance of connecting.
I'm running Ubuntu Server 16.04 (Xenial) with Docker 1.12.1. I'm not using a custom nginx.conf
. I'm using OBS on Windows to create the stream.
Love how dirt simple this docker is, a lot of guides surrounding nginx configurations typically show a few examples of how to transcode (namely w/ ffmpeg). May be nice to have an include ffmpeg option. Thoughts?
There's a docker file for ffmpeg here https://github.com/jrottenberg/ffmpeg.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.