5 ms·
Does this play nice with Python youtube-dl? [1] [2]. I want to run a python script on my computer that captures youtube audio of certain government meetings wit
by thwythwy 7y ago
Does this play nice with Python youtube-dl? [1] [2]. I want to run a python script on my computer that captures youtube audio of certain government meetings without first having to dl the entire video and convert it (while doing a bunch of other stuff before and after automatically, all without me touching anything).
[1] https://stackoverflow.com/questions/27473526/download-only-audio-from-youtube-video-using-youtube-dl-in-python-script https://stackoverflow.com/questions/27473526/download-only-a...
[2] https://stackoverflow.com/questions/39665160/youtube-dl-python-script-postprocessing-error-ffmpeg-codecs-arent-being-recogn https://stackoverflow.com/questions/39665160/youtube-dl-pyth...
- icebraining 7y agoUnless you need to convert the audio format, I don't think you need ffmpeg at all - youtube-dl can just download the audio stream and save it to a file. Just list the available formats from a video and choose an audio-only format.
- thwythwy 7y agowill try thank you
- Nullabillity 7y agoAlso, IIRC youtube-dl will automatically re-encode it using ffmpeg if you pick an unavailable format!
- timendum 7y agoInsome cases youtube-dl downloads the content via ffmpeg, see [1] [1] https://github.com/ytdl-org/youtube-dl/blob/c3bcd206eb031de30179c88ac7acd806a477ceae/youtube_dl/downloader/__init__.py https://github.com/ytdl-org/youtube-dl/blob/c3bcd206eb031de3...
- A2017U1 7y agoyoutube-dl -x <url> uses ffmpeg out of the box to extract mp3 audio from a video.
- FabHK 7y agoTry eg `youtube-dl -f 140 <URL>` to download just the .m4a audio stream. `youtube-dl -F <URL>` will display the available formats.
- blue4 7y agoNot sure what you mean, you're able to easily just use youtube-dl to download the audio only. Is the conversion suppose to change it into a certain filetype or something?
- rasz 7y agoYou neither need youtube-dl nor ffmpeg for that. JS userscript and wget is enough. Every YT page includes an array with links to all video/audio sources.