I can create an mp3 of a YouTube video with the following command:
youtube-dl --extract-audio --audio-format mp3 http://www.youtube.com/watch?v=rtOvBOTyX00
It creates an mp3 with the following filename:
Christina Perri - A Thousand Years [Official Music Video]-rtOvBOTyX00.mp3
I don't need the video ID part (rtOvBOTyX00) at the end and would like to have just the following:
Christina Perri - A Thousand Years [Official Music Video].mp3
Is this achievable with youtube-dl's options? If not, what's the next best solution?
ERROR: Error in output template: unsupported format character 't' (0x74) at index 1 (encoding: 'UTF-8'). – Joseph John May 30 '15 at 07:36man youtube-dlI'm seraching for a fix – Maythux May 30 '15 at 07:42youtube-dl: error: Cannot download a video and extract audio into the same file! Use "/%(uploader)s/%(title)s.%(ext)s" instead of "/%(uploader)s/%(title)s" as the output template. But Ben's answer works fine! – Joseph John May 30 '15 at 07:47Christina Perri - A Thousand Years [Official Music Video].mp3you stated that,,, Christina Perri is the uploader, so indeed you ask for the uploader – Maythux May 30 '15 at 07:51