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.
skipping video download also skips non-video post-processing actions #9073
Comments
|
Just following this because I have a bot that depends on the ability to have srt subtitles, but I have no use for the video (and I don't want to waste the bandwidth downloading the video). I would love to see this get fixed. |
|
For now you can just call ffmpeg manually:
|
|
This bug is still a bug:
It spits out the sub files in VTT, but doesn't convert them to SRT. |
|
Is it possible to call the post-processing through an API call instead of running the command line? |
|
A hacky approach is to create a file with the same name as the file to download and not specifying |
|
I have created a PR at #9738. Please help test it. |
|
nyuszika7h mentioned "ffmpeg -i foo.vtt foo.srt" Interestingly I discovered: youtube-dl.exe --convert-subs srt --all-subs http://www.tg4.ie/en/player/home/?pid=5270396083001 [generic] ?pid=5270396083001: Requesting header
|
|
@NothingCanPlayVTT Cygwin and ffmpeg perhaps? |
|
You don't need to use Cygwin. Just download Zeranoe's FFmpeg builds and put it in your |
|
As of version
Subtitles are downloaded as
|
Make sure you are using the latest version: run
youtube-dl --versionand ensure your version is 2016.04.01. 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?
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 ```):Description of your issue, suggested solution and other information
Using the
--skip-downloadoption seems to skip post-processing options, or at least the--convert-subsoption. The other post-processing options are related to the video, so it makes sense that they'd be skipped, but--skip-downloadis a handy feature for downloading subtitles but not the video (particularly for really large videos that you've already downloaded and don't want to download again), and post-processing options for the subtitles should be processed.Either that, or for the sake of internal consistency,
--skip-downloadshould also skip downloading subtitles. Perhaps the ability to download subtitles but not the video was an accidental feature? Maybe--skip-downloadwas always intended as a dry-run feature, to not download anything? Personally though, I would prefer there be some way to download just the subtitles and post-process them.In the example command above, the video has subtitles in vtt format. Without the
--skip-downloadoption, the vtt subtitles are eventually converted to srt. However with the--skip-downloadoption, they're left as vtt.