Live data from Hacker News

Show HN: YouTube-dl wrapper with added features to easily manage YouTube audio

github.com

11–20 of 49 posts

Re: Show HN: YouTube-dl wrapper with added features to easily manage YouTube audio

#12
post #8

Typo in the readme: yt-audo I'd make a PR but I'm not near a computer right now. This is great. I have a couple audio files I need to pull for my kid and this is gonna save me a couple steps. Thank you!

done

Re: Show HN: YouTube-dl wrapper with added features to easily manage YouTube audio

#13
post #5

Earlier quoted context omitted.

Off the top of my head, isnt that just the -x flag?

It's a bit more than that. Eg: One can configure their own CLI arguments to keep track of particular playlist(s). $ yt-audio --your-arg1 --your-arg2 This will sync playlist/audios configured against these arguments.

Sorry, no doubt your app does more than -x. I just meant for extracting audio alone.

Re: Show HN: YouTube-dl wrapper with added features to easily manage YouTube audio

#14
post #5

YouTube-dl demolishes 100 pain points of using the modern web This wrapper gets rid of the only pain point in using YouTube-dl which was having to google every time you wanted just the audio. Great work

Off the top of my head, isnt that just the -x flag?

I’m not near a computer but I was persuaded I have used youtube-dl -f mp3 https://... before.

Re: Show HN: YouTube-dl wrapper with added features to easily manage YouTube audio

#15
Cannot understand what exactly is that. I have used a simple alias called (unsurprisingly) yt-audio for years, which is youtube-dl with appropriate flags (-x, --audio-quality, --download-archive, -o, etc.), and this seems to be exactly that, only written in python for some reason.

Re: Show HN: YouTube-dl wrapper with added features to easily manage YouTube audio

#16
post #10
post #5

Earlier quoted context omitted.

Off the top of my head, isnt that just the -x flag?

I have a file under ~/bin called youtube-mp3 which has this one-liner: exec $HOME/d/youtube-dl/youtube-dl -t -x --audio-format=mp3 "$@" (Edit: I'm sure this script does a lot more, but making ytdl download only the audio is fairly simple. Note the above command converts the file to mp3 which some people may not want to do because it's lossy.)

What is -t?

Re: Show HN: YouTube-dl wrapper with added features to easily manage YouTube audio

#17
post #5

Earlier quoted context omitted.

Off the top of my head, isnt that just the -x flag?

I’m not near a computer but I was persuaded I have used youtube-dl -f mp3 https://.. . before.

Well, if you use just -x alone, it will not attempt to get the format you ask for. So you will probably end up with a m4a (mp4 container with just AAC audio) or ogg (vorbis/i think opus?) depending on whether the best quality is encoded in h264, WebM/VP8 or WebM/VP9. Which may not be what you want.

OTOH, if you specify a format directly without -x, it may not extract the audio alone. For example if you wanted M4A, you'd specify -x on top of specifying the format explicitly.

edit: as krick points out though, it doesn’t seem videos generally have an mp3 format, at least on YouTube.

Re: Show HN: YouTube-dl wrapper with added features to easily manage YouTube audio

#18

youtube-dl is the only thing that makes the modern web actually usable. I ended up writing a bot that runs on a docker scheduled task and looks at trello. I can drop a youtube link on the board and it will grab the audio. Great for when I hear a song somewhere that I want to add to my phone later.

How are you managing this integration? IFTTT?

Re: Show HN: YouTube-dl wrapper with added features to easily manage YouTube audio

#19
post #15

Cannot understand what exactly is that. I have used a simple alias called (unsurprisingly) yt-audio for years, which is youtube-dl with appropriate flags (-x, --audio-quality, --download-archive, -o, etc.), and this seems to be exactly that, only written in python for some reason.

It adds a few more functionalities like setting up custom arguments, option to keep track of downloaded titles without archive file, and a few more. It just tries to make audio/playlist management easy. As mentioned, it is a youtube-dl wrapper. So under the hood it uses classic youtube-dl arguments.

Re: Show HN: YouTube-dl wrapper with added features to easily manage YouTube audio

#20
post #5

Earlier quoted context omitted.

Off the top of my head, isnt that just the -x flag?

I’m not near a computer but I was persuaded I have used youtube-dl -f mp3 https://.. . before.

I don't think -f mp3 would ever work, -f is for choosing file format to download. So -f mp3 would work only if there is a source with codename mp3, which I don't think I've ever seen. You may be using -f bestaudio -x or something along the lines of it.
Post reply on HN