rss-bridge icon indicating copy to clipboard operation
rss-bridge copied to clipboard

Youtube Audio Feed

Open captn3m0 opened this issue 7 years ago • 8 comments

I found https://github.com/frou/yt2pod recently, which looks like a neat solution (Youtube based RSS feeds that work for podcast readers and send only the audio files). I'm not sure how feasible it is without the Youtube-API or youtube-dl and in PHP, but might be worth considering.

/cc @frou

captn3m0 avatar Sep 23 '18 09:09 captn3m0

Hi there - Indeed, I don't think it would be technically possible to subsume yt2pod in rss-bridge. But you can certainly use the code as reference material to do the same thing if you want to.

There is apparently an official PHP API client for YouTube, though I'm not sure if the rant in the rss-bridge README means that you prefer scraping, or just that the end-user shouldn't have to care about APIs.

frou avatar Sep 23 '18 10:09 frou

rss-bridge prefers scraping, but I'm not sure if that is a good idea without marking youtube-dl as a dependency.

captn3m0 avatar Sep 24 '18 15:09 captn3m0

You can find an API based YouTubeBridge on the Wiki: https://github.com/RSS-Bridge/rss-bridge/wiki/Extended-Bridges

The bridge probably isn't up to date, as I shifted back to the original bridge for simplicity, but it should generally work.

There is apparently an official PHP API client for YouTube, though I'm not sure if the rant in the rss-bridge README means that you prefer scraping, or just that the end-user shouldn't have to care about APIs.

Scraping is the prefered way because it doesn't involve signing contracts or having to look out for traffic use. Also, API keys are tracked and can be revoked at any moment. That being said, there are already a few bridges utilizing APIs (just search for "API" in the bridges folder).

I'm not sure if that is a good idea without marking youtube-dl as a dependency.

As far as I can tell, youtube-dl is utilized to download and extract the audio files from YouTube. We can just skip that part and provide links to the destination. The necessary link is actually part of the DOM, just search for "audio" on any video on YouTube.

logmanoriginal avatar Sep 26 '18 18:09 logmanoriginal

See #1508

somini avatar Apr 12 '20 17:04 somini

Okay so this is a request for transforming youtube feeds to podcast feeds. Consumable by podcast software?

dvikan avatar Mar 27 '22 00:03 dvikan

yt-dlp is the current generic video downloader thingy, it supports -x to automatically use ffmpeg to extract audio.

That's a Python project though, not a simple thing to integrate. Maybe https://github.com/frou/yt2pod is a better fit for this.

somini avatar Mar 27 '22 00:03 somini

yt-dlp is the current generic video downloader thingy, it supports -x to automatically use ffmpeg to extract audio.

That's a Python project though, not a simple thing to integrate. Maybe https://github.com/frou/yt2pod is a better fit for this.

yt2pod calls out to the yt-dlp command at runtime :)

BTW m4a audio files are one of the many formats that can be downloaded, so the big video files do not necessarily need to be downloaded at all.

frou avatar Mar 27 '22 21:03 frou

this is still relevant. rss-bridge could download and cache the audio files. big change though since it should be done async.

dvikan avatar Sep 12 '23 17:09 dvikan