tunarr icon indicating copy to clipboard operation
tunarr copied to clipboard

Add YouTube as a media source

Open chrisbenincasa opened this issue 1 year ago • 2 comments

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 avatar Mar 15 '24 20:03 chrisbenincasa

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 -

chrisbenincasa avatar May 30 '24 11:05 chrisbenincasa

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

GrandUpheaval avatar Nov 03 '24 02:11 GrandUpheaval