Extra notes on converting files
The first post is the best way to do this. Here are some of my notes.
1. Download the video
Find the video URL and run a command like this:
2. Convert to Audio Optional
- Find the filename of the mp4:
ls -t *.mp4
You will convert the file using
Substitute the FILENAME.mp4. Note the single quotes around the name in case there are spaces in the name.
Maybe check the file is encode with AAC:
ffmpeg -i 'FILENAME'
Convert the file, changing the mp4 extension to an m4a extension:
ffmpeg -i 'FILENAME.mp4' -c copy 'FILENAME.m4a'
Adding the Audio to iTunes
File => Open => Add to Library. Pick the AAC file.
Find the file in your playlist:
- Sync the playlist with your iPhone
Downloading a Video Playlist and Converting to Audio
So you can listen at 1.5x speed!
This will download my StartupSchool Playlist:
youtube-dl --download-archive startup-school-archive.txt https://www.youtube.com/playlist?list=PL5VAKH-U1M6e7V53gHmKecwVLbdLu5Rip
--download-archive options ensures that if you add more videos to the playlist, you won't re-download those. Great option!
To convert audio in any formats to mp3:
ffmpeg -i FILENAME.EXT -vn -acodec libmp3lame FILENAME.mp3