How To Code A LIVE Streaming Server: Convert RTMP to HLS #2

Поділитися
Вставка
  • Опубліковано 2 лют 2025

КОМЕНТАРІ • 70

  • @abdicodes
    @abdicodes  3 роки тому +6

    Forgot to mention that the index.html is made using hls.js! You can't watch HLS streams with a normal HTML video player!
    Package is here: github.com/video-dev/hls.js/

    • @kalkaprasad7916
      @kalkaprasad7916 3 роки тому +1

      Hello, I want to run this App on my hosted website, How to I Do. Can you help me with this. i wan to share to remote location. how to do ?

    • @jjulio1111
      @jjulio1111 3 роки тому +1

      I managed to do this,a page, and certify the http server, but I can't access the server in a secure way, as it rejects me and/or doesn't allow me to access that way later.

    • @gbengaayodeji6480
      @gbengaayodeji6480 2 роки тому

      In that case, can we create rtmp.js for an index.html instead of converting it to HLS first?

  • @pedroaraya9160
    @pedroaraya9160 3 роки тому +4

    Dude pls don't stop making videos!!

  • @meekscs6369
    @meekscs6369 3 роки тому +1

    Super excited to see part 3 and where you take this.. hoping to see some sorta zoom clone or live two-way video conferencing of some sort. Keep going you are doing great!!

  • @harryx4137
    @harryx4137 2 роки тому +1

    He is definitely the man keep up the good work mare ur amazing u subscriber should be ove 100thousand

  • @EdwinManual
    @EdwinManual 3 роки тому +3

    This channel is fucking underrated 🔥

  • @defc0n659
    @defc0n659 3 роки тому

    Good job, you're the best. I'm really excited waiting for you new video. Thanks so much for your work.

  • @mvee
    @mvee 3 роки тому +5

    now I can build a twitch competitor :)

  • @vahistar
    @vahistar 3 роки тому +1

    Good job men! I love your work it is what we need in 2021

  • @ethankopit7480
    @ethankopit7480 3 роки тому

    Love your videos!

  • @herbertk9266
    @herbertk9266 3 роки тому

    Thank you that is what I was looking for

  • @scratchguy5851
    @scratchguy5851 4 місяці тому +1

    Hi, I want to style the webpage (index.html) of LiveStream, any idea how??

  • @JohnWeland
    @JohnWeland 3 роки тому +1

    Awesome work my dude! I know you did a LINODE video (part #3) but it would be pretty sick if you decided to do an AWS setup using AWS-CDK and AWS-SDK. Given that Amazon owns Twitch AWS has a ton of media tools like transcoding, conversion, etc. I could see the RTMP server being set up on "AWS batch" where each new stream would be a batch process spinning up an RTMP server for the duration of that stream. Use AWS Gateway as a replacement for Express, and you could use DynamoDB (AWS version of NoSQL like Mongo) for username/key pair. You could then use AWS S3 for video storage like VODs.
    It's an undertaking but it could be a sweet playlist!

  • @migillett
    @migillett 3 роки тому

    Would love to see an example of a user database for getting stream keys. This has been amazing, thank you.

  • @staplepin8099
    @staplepin8099 3 роки тому

    This is gold thanks man ...

  • @nafcho1
    @nafcho1 3 роки тому

    BROO I LOVE YOUR CONTENT!!!!!!

  • @RolandsZeltins
    @RolandsZeltins Рік тому

    Thanks for video, but how would you go about sending that hls stream to yourube? I wan to send it to multiple youtube chanels. Like restream them.

  • @anhtranngoc4622
    @anhtranngoc4622 3 роки тому

    great video !!!

  • @pjw3d87
    @pjw3d87 2 роки тому

    thanks @AbdisalanCodes ! I got docker-compose working on an M1 Mac but there's still approx 30 seconds latency.
    Any tips on how to optimize things to reduce latency?

  • @cesarbuenrostro622
    @cesarbuenrostro622 3 роки тому

    One question, why the NGINX is required in order to get the rtpm connection, is possible reach the same result using just nodeJs ?

  • @mahdiuser100p8
    @mahdiuser100p8 3 роки тому

    thanks for the video
    is it possible to stream static files ?
    like a mp4 or mp3 file not stream using obs
    take spotify for example

  • @jjulio1111
    @jjulio1111 3 роки тому

    I managed to do this,a page, and certify the http server, but I can't access the server in a secure way, as it rejects me and/or doesn't allow me to access that way later.

  • @OkolieRaymond
    @OkolieRaymond 2 роки тому

    Hello
    I came across this video of yours. I have a set up like this (Amazon CloudFront Video Streaming using RTMP Distribution With S3) I inherited but the issue I am having is that of latency.
    The end users who view the live stream of this setup all experience a latency of greater than 15 secs and sometimes even 25 secs during live streaming. The application users use to access or create these live streams is a mobile application and encoding and transcoding is done via ffmpeg. Basically, when the user uploads a video, the video gets stored on an ec2 instance, where ffmpeg encodes and transcodes the video before sending the chunks to an s3 bucket that's the origin for the cloudfront distribution.
    I would like to inquire what i can do to achieve lower latency?

  • @JennyX69
    @JennyX69 3 роки тому

    can you use nginx with no-ip at all? would it help if things change for net connections , min usually don't but you never know.

  • @phuongmainguyen4791
    @phuongmainguyen4791 3 роки тому

    Hi I do it follow your video. I had a list of .ts file, but live stream in localhost:8080 don't work. What's wrong???

  • @Zaddi_eth
    @Zaddi_eth 2 роки тому

    there is a significant difference between video 1 and 2, are we expected to just copy your git for the beginning of the video? i got through the first video fairly easy, and the very beginning of the second video threw me for a loop

    • @Zaddi_eth
      @Zaddi_eth 2 роки тому

      your VSC showing the docker logo instead of mine saying the current location threw me for a loop in video 1 as well

    • @bossgd100
      @bossgd100 2 роки тому

      i have the same feeling ...

  • @manaspaul
    @manaspaul 3 роки тому +1

    Could you please make tutorial about how UA-cam or Twitch does the streaming in node express with any frontend framework. Preferably vuejs or react

  • @trungphan-ov9xf
    @trungphan-ov9xf 3 роки тому

    I'm curious as to how to alter the video file in data from.ts to.mp4.

  • @sikfreeze
    @sikfreeze 2 роки тому

    What if we want to be able to stream multiple protocols like RTSP UDP RTP as well? Do we need to have a dedicated server for each protocol?

    • @abdicodes
      @abdicodes  2 роки тому

      Same server, different server, either is possible really.

    • @sikfreeze
      @sikfreeze 2 роки тому

      @@abdicodes Thank you. By the way, great great tutorial. I'm really new to these streaming stuff, your tutorial really clarified a lot of things for me. I'm currently finding a way to play RTSP on browser, I know it needs ffmpeg for the transcoding but not sure if it needs the streaming server like this or not...or can we extend from this tutorial? Basically, RTSP as the input and HLS as the output.

  • @UTKARSHTIWARI-v4o
    @UTKARSHTIWARI-v4o Рік тому

    Hey, how would i build a similar website but for just audio?

  • @minhannguyen3869
    @minhannguyen3869 3 роки тому

    Can you public the livestream from the web too and release it? please , thanks

  • @aksidhu8121
    @aksidhu8121 3 роки тому

    thank you so much for this video ,Sir.
    I need to note down the latency , can you help me with that ,please.

  • @conbatengineer
    @conbatengineer 2 роки тому

    Should I learn html first before I do any of this? Also do I need any experience to learn html?

    • @abdicodes
      @abdicodes  2 роки тому

      Do it at the same time, if there’s something you don’t know, look it up and experiment 👍

  • @prabhakarkumar8927
    @prabhakarkumar8927 2 роки тому

    hello brother i need a RTMP url of any live stream video for my project how can i get ????

  • @principe.borodin
    @principe.borodin 3 роки тому

    Fantastic, do you pretend make a video teach record the live?

  • @nawiawi554
    @nawiawi554 3 роки тому

    Good day sir. Than you for a clearly toturial about setting up server with nginx. Anyway can you make another tutorial how to add secure_link_md5 to secure the live streaming video?

  • @dominiccogan945
    @dominiccogan945 3 роки тому

    Is it possible to implement this into an actual website? Like have many people streaming to the same website? Like how twitch or UA-cam works?

    • @Tonymalon
      @Tonymalon 2 роки тому

      I would like to know as well

  • @JohnWeland
    @JohnWeland 3 роки тому

    Other thoughts (see my comment below for the first thoughts), what about Web RTC and SRT protocols over RTMP and HLS?

  • @staplepin8099
    @staplepin8099 3 роки тому +1

    Would love real-time webrtc with TURN servers ..

    • @jijojoseph8721
      @jijojoseph8721 3 роки тому +1

      maybe with the help of some media server like Kurento that take inputs from ipcamera and stream to html page

    • @staplepin8099
      @staplepin8099 3 роки тому +1

      @@jijojoseph8721 I’ve done it with webrtc public stem servers .. but wanna learn to do it with turn servers to get around NAT .. I couldn’t find resources to learn on how to build a TURN server ... thanks

    • @jijojoseph8721
      @jijojoseph8721 3 роки тому

      @@staplepin8099 have you got any github link with ipcamera-webrtc(stem)? tried a lot but could not end in a working one...

  • @TYPLive
    @TYPLive 3 роки тому

    Do you have a new discord link? The one in your bio has expired :(

    • @abdicodes
      @abdicodes  3 роки тому

      Whoops! I'll update that. thanks

  • @kidzeus2433
    @kidzeus2433 3 роки тому

    How to store the recorded files into mongodb after the streamer is finished recording???

  • @xXarea57Xx
    @xXarea57Xx 3 роки тому

    A Chat app would be nice to see, so the viewers could chat a bit while watching the stream

  • @yourstrulynb8362
    @yourstrulynb8362 3 роки тому

    How do I add my mobile phone as a video source

  • @RavinanKumar
    @RavinanKumar 3 роки тому

    How would you LIVE stream to an HTTP with minimal latency?

    • @abdicodes
      @abdicodes  3 роки тому

      I’m probably not the best one to ask when it comes to minimal latency 😄 I’m just curious on how to get things working then make improvements later on

  • @JennyX69
    @JennyX69 3 роки тому

    2:20 that's exactly what I want to do

  • @codewithsub5083
    @codewithsub5083 3 роки тому

    Good Job man! Can you plz make a video on, publish stream from web instead of OBS studio like facebook does in live streaming from web.
    Thanks 👍

  • @qazimiqazim443
    @qazimiqazim443 3 роки тому

    Hello @AbdisalanCodes i need your help if you want to help me, i have my own RTMP but i need to create on HLS M3U8 , but i dont no how to do that pls if you can help me i waitng for your answer pls @AbdisalanCodes

  • @idkcoder
    @idkcoder 3 роки тому

    Mine keeps on lagging

  • @Jemar_Deshun_Blount-Golden
    @Jemar_Deshun_Blount-Golden 3 роки тому +1

    i see you brushed your teeth today

  • @buyonfilmztv2040
    @buyonfilmztv2040 2 роки тому

    I installed ngnix to live stream to the web but ngnix will only run if ( # hls_path /nginx/srv/hls/;) and only stream to Vlc but if i remove the pipe symbol ngnix will not run please help.

  • @Imurenge-TV
    @Imurenge-TV 2 роки тому

    How can we contact you if we have a project and want to hire you? Please send us your email so we can reach out

  • @buyonfilmztv2040
    @buyonfilmztv2040 2 роки тому

    I installed ngnix to live stream to the web but ngnix will only run if ( # hls_path /nginx/srv/hls/;) and only stream to Vlc but if i remove the pipe symbol ( # ) ngnix will not run please help.