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.
Please follow the guide below
xinto all the boxes [ ] relevant to your issue (like this:[x])Make sure you are using the latest version: run
youtube-dl --versionand ensure your version is 2018.07.10. 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 the
-vflag to your command line you run youtube-dl with (youtube-dl -v <your command line>), 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
Some SRT files downloaded by youtube_dl are being written with two digit millisecond timestamps. For example, when executing the following (the url is publicly visible):
The SRT starts out with
The 34, 26, and 44 should be 340, 260 and 440ms respectively. Some applications may instead interpret this as 34ms, 26ms, and 44ms, which can result in subtitles appearing for only a few milliseconds randomly during videos (at least on some encoders/players, depending on how they interpret the malformed srt?).
I hacked a quick and dirty fix to add an extra 0 if this type of timestamp is found
Following this, the first few lines are encoded correctly:
But I'm not yet familiar enough with the codebase or situation to know if this is needed in all other extractors.