Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Batch files for video and audio both output mp3 files??? #11740
Comments
|
Never mind, looks like it's working now. Must have changed something before posting or I just can't tell the difference between .mp3 and .mp4. |
|
Nothing is converted to mp3 as clearly seen from the log. |
Please follow the guide below
xinto all the boxes [ ] relevant to your issue (like that [x])Make sure you are using the latest version: run
youtube-dl --versionand ensure your version is 2017.01.14. If it's not read this FAQ entry and update. Issues with outdated version will be rejected.Before submitting an issue make sure you have:
What is the purpose of your issue?
The following sections concretize particular purposed issues, you can erase any section (the contents between triple ---) not applicable to your issue
If the purpose of this issue is a bug report, site support request or you are not completely sure provide the full verbose output as follows:
Add
-vflag to your command line you run youtube-dl with, copy the whole output and insert it here. It should look similar to one below (replace it with your log inserted between triple ```):If the purpose of this issue is a site support request please provide all kinds of example URLs support for which should be included (replace following example URLs by yours):
Files in playlist.txt:
https://www.youtube.com/playlist?list=PL14jBUq-jFtk1afnxnaJCAtbw_X0zkrIW
https://www.youtube.com/watch?v=7m7FpzOxbkQ
Note that youtube-dl does not support sites dedicated to copyright infringement. In order for site support request to be accepted all provided example URLs should not violate any copyrights.
Description of your issue, suggested solution and other information
Downloaded youtube-dl and put the path in system variables. Created a batch file to download my YouTube playlist videos, tested and worked. Here is the code:
youtube-dl -v -i -o "C:\YouTube\Video%%(playlist)s/%%(playlist_index)s - %%(title)s.%%(ext)s" --batch-file "C:\Youtubedl\Batch Files\Playlists.txt"
Next I downloaded FFmpeg and put the path in System Variables, created a batch file to extract audio from the video files and tested. Worked. Here is the code:
youtube-dl -i -o "C:\YouTube\Audio%%(playlist)s/%%(playlist_index)s - %%(title)s.%%(ext)s" --batch-file "C:\Youtubedl\Batch Files\Playlists.txt" --extract-audio --audio-format mp3
Went back to run the video file and batch file now converts it to mp3.
Same code:
youtube-dl -v -i -o "C:\YouTube\Video%%(playlist)s/%%(playlist_index)s - %%(title)s.%%(ext)s" --batch-file "C:\Youtubedl\Batch Files\Playlists.txt"
What am I missing??