Create a Live Stream with Nginx and FFmpeg using HLS RTMP and Docker Compose

  Рет қаралды 3,798

WittCode

WittCode

Күн бұрын

Пікірлер: 30
@mr_tpk
@mr_tpk 4 ай бұрын
Thank you for sharing this wonderful tutorial. With your guidance I was able to implement a live streaming app in Python. Thanks a lot dude. Keep up the good work.
@matthewdraevich4214
@matthewdraevich4214 Ай бұрын
great tutorial. I do have a question if possible :) So, you stream the video file live. But how is it possible to stream live while allowing viewers to rewind? For example, KZbin offers the ability to watch a live stream from an earlier timestamp. As I can guess, it somehow related to your backend implementation rather than to NGINX configuration. So, an ingester will stream its video using RTMP, then our backend will assemble it to a video file and then forward the stream to NGINX/CDN over HLS/DASH? Hope the question is clear.
@WittCode
@WittCode Ай бұрын
Yeah I think that could actually be implemented through the HTML Video element. You could use the currentTime attribute or something along those lines?
@vkeychaudhari
@vkeychaudhari 3 күн бұрын
Can I stream a live screen share with sound?
@SunHouse-APTO61
@SunHouse-APTO61 2 ай бұрын
Good video, do you have the repository with all the files you used?
@WittCode
@WittCode 2 ай бұрын
hey there! yup my blog site in the description should contain everything!
@romeocaillon2506
@romeocaillon2506 Ай бұрын
Thank you for the video and the comprehensive blog. I've deployed this code on a vps server, but unfortunately I can't get it to work. I have The media could not be loaded, either because the server or network failed or because the format is not supported. Maybe someone else also had this error and managed to solve it.
@WittCode
@WittCode Ай бұрын
Hey there thanks for watching! Are there any more logs than just that? Check the logs in each of the containers. Also what is the video format you are using?
@terfy
@terfy 26 күн бұрын
so.. this is a live stream.. what about if you just want to serve a youtube like service, on-demand videos ?.. and how many dockers should I create then ? one for each video ?
@WittCode
@WittCode 23 күн бұрын
That's a fully loaded question! I wouldn't spin up a container per video though. You would just have multiple streams at once. You containerize each process not each video!
@GMNNATBR
@GMNNATBR 3 ай бұрын
to change the video file to an RTMP camera input?
@WittCode
@WittCode 2 ай бұрын
Sounds like a future video idea!
@hugo-abdou
@hugo-abdou Ай бұрын
​@@WittCode yes please wee nead to know how to stream directly from the webcam to server then to the viewers like Facebook lives or youtube
@scratchguy5851
@scratchguy5851 Ай бұрын
Hello, I'm getting an error like this whenever I start. Is there any fix for this? ! ffmpeg Warning pull access denied for ffmpeg-i, repository does not exist or may require 'docker login': denied: requested access to the resource is denied ! nginx Warning pull access denied for nginx-i, repository does not exist or may require 'docker login': denied: requested access to the resource is denied
@WittCode
@WittCode Ай бұрын
Looks like you're trying to pull an image called ffmpeg-i from an online repo. ffmpeg-i is what I called the image. The actual image is just called ffmpeg
@scratchguy5851
@scratchguy5851 Ай бұрын
@@WittCode Ok but I ran into another problem, it says The system cannot find the file specified. ffmpeg: image: ffmpeg container_name: ${FFMPEG_HOST} build: context: ./ffmpeg dockerfile: Dockerfile env_file: .env depends_on: - nginx
@WittCode
@WittCode Ай бұрын
@@scratchguy5851 The issue is in the message. It can't find the file
@scratchguy5851
@scratchguy5851 Ай бұрын
@@WittCode Thank you sir, I reinstalled Docker and it fixed all the errors
@WittCode
@WittCode Ай бұрын
@@scratchguy5851 Interesting! But hey if it works it works!
@danliciousxs4415
@danliciousxs4415 Ай бұрын
Hey, I wanted to ask how I can use an RTMP link as the input instead of a video file?
@WittCode
@WittCode Ай бұрын
I don't know off the top of my head but I would suggest checking the ffmpeg docs. You probably just have to change the command to stream from a link as opposed to a file.
@Ayoubz73
@Ayoubz73 Ай бұрын
now how can i host this live thats i want to stream the live in my host web site how can or is possible
@WittCode
@WittCode Ай бұрын
That's the beauty of Docker! You can just get a cheap VPS, spin this up there, and change the locations to that server.
@thiagocosme242
@thiagocosme242 4 ай бұрын
Good job, i need code with python
@WittCode
@WittCode 2 ай бұрын
😀
Auto Restart/Rebuild with Docker Compose Watch
35:11
Kevin Wade
Рет қаралды 4,2 М.
НАШЛА ДЕНЬГИ🙀@VERONIKAborsch
00:38
МишАня
Рет қаралды 2,7 МЛН
إخفاء الطعام سرًا تحت الطاولة للتناول لاحقًا 😏🍽️
00:28
حرف إبداعية للمنزل في 5 دقائق
Рет қаралды 82 МЛН
НИКИТА ПОДСТАВИЛ ДЖОНИ 😡
01:00
HOOOTDOGS
Рет қаралды 2,5 МЛН
Mom had to stand up for the whole family!❤️😍😁
00:39
Customize Dev Containers in VS Code with Dockerfiles and Docker Compose
6:16
Laravel Docker Nginx + PHP-FPM + op_cache
22:07
Emad Zaamout
Рет қаралды 16 М.
Deploying Django with Docker Compose, Gunicorn and Nginx
15:59
Django road
Рет қаралды 97 М.
Multi-streaming with No Limits | Free | NGINX self-hosted method
12:30
What is Docker Compose? Multiple Containers & Docker Networking
14:18
Using NGINX Open Source for Video Streaming and Storage
14:11
FFmpeg Streaming - Next Step: RTMP Configuration and Usage
31:48
Как настроить стриминговый сервер Nginx-RTMP на Ubuntu Linux
1:09:41
18 Weird and Wonderful ways I use Docker
26:18
NetworkChuck
Рет қаралды 312 М.
Configure a Docker Nginx Reverse Proxy Image and Container
10:51
Cameron McKenzie
Рет қаралды 97 М.
НАШЛА ДЕНЬГИ🙀@VERONIKAborsch
00:38
МишАня
Рет қаралды 2,7 МЛН