GithubHelp home page GithubHelp logo

youtube-hls-m3u8's Introduction

Many public broadcasts are now available on YouTube as live videos. I was looking for a way to add these to my Android TV as digital channels. As a result, I created this service to get the live feed of a YouTube video as an HLS or M3U streaming link. I then add it as a channel to any IPTV client. If you are interested, here is a GitHub repository with a list of channels available on YouTube.

Although I have taken great care to keep the service stable, please note that the service is currently hosted on a basic tier of a cloud provider to keep the cost minimal. It might not have sufficient resources to handle numerous requests at a time. If you need a stable service, I would suggest you deploy this service with your cloud provider. An executable of this service is available at my blog.

Youtube IPTV Channels

It creates a permanent link for a Youtube live channel or video, which adds it to any IPTV client.

For a Youtube Channel

It picks up the live feed of a YouTube channel. It works well when a YouTube channel has a single live feed or goes live frequently. It does not work when a channel has multiple live feeds simultaneously. Please use the video link for this case.

# format of the link
https://ythls-v2.onrender.com/channel/$youtube_channel_id.m3u8

# example
https://ythls-v2.onrender.com/channel/UCt4t-jeY85JegMlZ-E5UWtA.m3u8

For a Youtube Video

It picks up the live feed of a YouTube video. The video should be live for it to work.

# format of the link
https://ythls-v2.onrender.com/video/$youtube_video_id.m3u8

# example
https://ythls-v2.onrender.com/video/Nq2wYlWFucg.m3u8

Support

Please include a link to this GitHub repository if you use this service.

youtube-hls-m3u8's People

Contributors

abskmj avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

youtube-hls-m3u8's Issues

Could you please give an instruction about deploying on any other cloud server?

Hello abskmj,

The repository Youtube-HLS-m3u8 is very good, and help me a lot when using the ythls.onrender.com permanent link. As you said, it would be better to deply it on other cloud server in order to save resources to onrender.com.

Could you please give out guides or instructions for the deployment? Such as, when we get a new Linux server from any cloud provider, any commands need to input? any prerequirement libraries need to install? or using any docker image environment?

Many thanks,

About this script

Hello,
Very interesting script, I have two question:

  1. Is there any option how to put this script in my web and work from my website
  2. How to get directly youtube HD video

Getting video sources

Hello im triyng to getting source codes in normal videos. Live stream is easy but how we will do it in videos ?

Add Dailymotion support

Add the possibility of doing exactly the same thing with Dailymotion links (live and video).

Maybe a different project in the same spirit as this one, with the possibility of making a service accessible from a m3u8 url.

Channel with multiple live streams gives error

Works for any channel with one live stream.. but gives following error when there are multiple live streams

Error: Stream not found for Youtube URL: https://www.youtube.com/channel/UCMmpLL2ucRHAXbNHiCPyIyg/live<br> &nbsp; &nbsp;at getLiveStream (/home/vagrant/setup-apps/scrappers/youtube-iptv-channels/src/app.js:30:15)<br> &nbsp; &nbsp;at process.processTicksAndRejections (node:internal/process/task_queues:95:5)<br> &nbsp; &nbsp;at async /home/vagrant/setup-apps/scrappers/youtube-iptv-channels/src/app.js:73:30

Fixed stream quality

Hey,

Is there any way to keep a fixed stream quality?? I'm setting it up on my Android TV, but don't have much of internet bandwidth to run streams on 1080p or 720p, so I'd like it to run on a fixed 480p. Is it possible??

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.