Hacker News new | ask | show | jobs
by sondh 2831 days ago
Just yesterday I built an Android app to cast audio-only (ogg format) from YouTube to Chromecast. Had to do it because:

1. Baby needs her white noise to sleep

2. No other sites have those "8 hours womb sounds" as good as YouTube

3. The YouTube app refuses to cast to Google Home mini

Came across ydls[1] which uses youtube-dl and ffmpeg to download then transcode media on-the-fly. It's not very effective but works great! We no longer have to turn on the TV in our baby room. Check out the source code[2] if you are also a new parent.

1: https://github.com/wader/ydls

2: https://github.com/daohoangson/android-ydls

1 comments

Save the video's audio as a local file if you want to keep using it. Any YouTube video is bound to disappear without warning at any time.