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.
No audio after first download #8800
Comments
|
Post the full output of youtube-dl when run with
Do not post screenshots of verbose log only plain text is acceptable. The output (including the first lines) contains important debugging information. Issues without the full output are often not reproducible and therefore do not get solved in short order, if ever. |
|
Should I open a new case or do you reopen it? |
|
You explicitly told youtube-dl not to download playlist thus you'll not have anything downloaded apart from the video LIcBlkncCMw.
|
|
That's right and I don't object to that. It's what I want because the ruby script does a few things like ignoring private videos and setting id3 tags. It iterates over an object list, containing urls like the above and the title. (See attached ZIP file with ruby script for details) But I don't see why that should cause youtube-dl to download a mp3 file without audio - which it does on my OSX box. Even if I execute youtube-dl directly in the terminal with the given command above it doesn't work - audio is missing for the file downloaded. Do I use the tool wrong? |
|
Private videos and any other that cause errors can be skipped with |
|
Sorry, thought you'd had read my description above: It depends. If I run the script the first time, the first download works. After that it doesn't. Thanks for the pointer with the extension. |
|
Your playlist, if you use it from your script, is just a file with URLs, correct? Because then you could also try
|
|
You should clearly state your problem. From
it's impossible to decipher that you are passing bunch of video/playlist URLs in row but not misusing the behavior of a single playlist URL with |
|
Ah, that explains the issue. But I can't wrap my head around the clumsy interface. If I define the output file explicitly as a mp3 file, why should I use a wild card? That eases the internal handling for youtube-dl, but doesn't make much sense from a user point of view. I want to define the final output name, not the internal handling path of youtube-dl. And you're right. The player I used on Linux seems to parse the file headers and ignore the file extension. iTunes doesn't, apparently. Thanks for the grumpy help. |
|
Output template specifies the template for files that will be downloaded not files that will be created after postprocessing (i.e. audio extraction in your case). You've already specified |
I have written a small ruby script which uses youtube-dl to download all videos of a specific playlist as mp3s and set the mp3 tags.
The problem is that after the first video the files do not have any audio.
Youtube-dl is called as a system command like that:
This issue seems to be platform related. The script works on Linux but on my OSX 10.11.3 box the files have no audio.
youtube-dl is called like this:
My ffmpeg installation:
My youtube-dl installation:
The complete script is attached. (Requires ruby, ffmpeg and youtube-dl)
yt_pl_grabber.zip