So I’m planning on putting out a reveal video soon, and I would like to use Taylor Swift as the background music, but I’m not sure how to go about it. How are you guys a) getting the files to use to music and b) dealing with copyright on youtube?
First off, which Taylor Swift song are you planning to use?
Secondly, if you have Youtube Premium, you can download it straight from youtube, and convert the .mp4 file to an .mp3 using a site. The less legal way would be using a youtube-to-mp3 converter website, which skips the downloading as an .mp4, and you just copy+paste the link to get the .mp3 file. But, if you’ve ever seen the ‘Never Illegally Download’ meme, you know how that ends.
Please use the first option if possible
I would like to emphasize that if you’re planning on downloading music, you should only download music that is considered public domain
For me, I generally enjoy not having to deal with ads from yt-to-mp3 converters. So I would do the following to download entire playlists:
- Download latest python Download Python | Python.org
- Download Pycharm Community Edition Download PyCharm: Python IDE for Professional Developers by JetBrains
- Create a project in Pycharm
- Open the terminal and type in the following commands:
python -m pip install --upgrade pytube
pip install moviepy
- Put into the main.py script and read through the comments to understand what to fill in:
# python -m pip install --upgrade pytube # pip install moviepy # Create an empty folder, and put the location of the folder here with the slashes as \\ folder = "C:\\Users\\Connor\\Downloads\\youtube" # Link to playlist playlistlink = "https://www.youtube.com/playlist?list=PLZsKIRwHS9lK363329y6l9WuevZ6OTuWK" from pytube import YouTube from pytube import Playlist import os import moviepy.editor as mp import re runDownload = True if runDownload: playlist = Playlist(playlistlink) #prints each video url, which is the same as iterating through playlist.video_urls for url in playlist: print(url) #prints address of each YouTube object in the playlist for vid in playlist.videos: print(vid) for url in playlist: YouTube(url).streams.filter(only_audio=True).first().download(folder) #for url in playlist: # YouTube(url).streams.first().download(folder) for file in os.listdir(folder): if re.search('mp4', file): mp4_path = os.path.join(folder,file) mp3_path = os.path.join(folder,os.path.splitext(file)+'.mp3') new_file = mp.AudioFileClip(mp4_path) new_file.write_audiofile(mp3_path) os.remove(mp4_path)
- Right click the editor screen and click “run”
Yet again, download with caution. But this automatically downloads an entire YouTube playlist to a designated folder.
youtube-dl -x --audio-format mp3 "https://www.youtube.com/watch?v=dQw4w9WgXcQ"
(obviously, substitute that URL with the URL of the appropriately-licensed video of your choice)