chrisbenincasa / tunarr

Create a classic TV experience using your own media - IPTV backed by Plex/Jellyfin
https://tunarr.com/
zlib License
183 stars 14 forks source link

Add YouTube as a media source #179

Open chrisbenincasa opened 8 months ago

chrisbenincasa commented 8 months ago

It would be great to be able to input a Youtube channel or playlist as a media source and have Tunarr stream is seamlessly. We could package yt-dlp in our Docker images and feed streams from there right into ffmpeg sources, potentially. I'm sure there are other ways to do this as well.

chrisbenincasa commented 6 months ago

Minimal example of streaming directly from YT > FFMPEG:

yt-dlp -f 'bv+ba/b' https://www.youtube.com/watch\?v\=IjoiaKngj2g -o - | \
  ffmpeg -f webm -i pipe: -map v:0 -map a:0 -c:v h264_videotoolbox -b:v 30000k -c:a copy -f mpegts pipe:1 | \
  ffplay -
GrandUpheaval commented 1 month ago

Any recent plans on implementing this? Would be very convenient for saving storage space.