{"id":19519075,"url":"https://github.com/bizz84/convert-srt-vtt","last_synced_at":"2025-04-26T07:31:06.249Z","repository":{"id":37373912,"uuid":"203977206","full_name":"bizz84/convert-srt-vtt","owner":"bizz84","description":"Bash script to convert closed captions from SRT to VTT format","archived":false,"fork":false,"pushed_at":"2019-08-23T11:01:56.000Z","size":4,"stargazers_count":15,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-26T06:02:28.336Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bizz84.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-08-23T10:26:28.000Z","updated_at":"2024-07-22T10:21:06.000Z","dependencies_parsed_at":"2022-08-19T15:30:31.945Z","dependency_job_id":null,"html_url":"https://github.com/bizz84/convert-srt-vtt","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bizz84%2Fconvert-srt-vtt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bizz84%2Fconvert-srt-vtt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bizz84%2Fconvert-srt-vtt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bizz84%2Fconvert-srt-vtt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bizz84","download_url":"https://codeload.github.com/bizz84/convert-srt-vtt/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250953336,"owners_count":21513298,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-11T00:16:16.088Z","updated_at":"2025-04-26T07:31:06.009Z","avatar_url":"https://github.com/bizz84.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Srt to VTT converter\n\nThis script can be used to convert subtitles from Srt to VTT format.\n\n## Example workflow: Generate VTT subtitles for your own videos\n\n### Upload Video to YouTube and generate Closed Captions\n\n- Upload video: [https://www.youtube.com/upload](https://www.youtube.com/upload)\n- Open with the (old) Creator Studio\n- Set video as unlisted (if this should not be public)\n- Once video is uploaded, select Subtitles/CC tab and wait until CCs are published (auto-generated)\n- Then Click on the Generated CC and download the subtitles in `.srt` format.\n\n**NOTE**: YouTube supports downloading captions in VTT format as well. But the VTT format used is not supported by all players (e.g. Udemy).\n\nHence, this script was created to convert `.srt` to \"simple\" `.vtt`.\n\n## Convert\n\nRun:\n\n```\nconvert-srt-vtt.sh file.srt\n```\n\nThis will output a `file.srt.vtt` file.\n\n## Batch convert\n\nTo convert all files in a given folder, run:\n\n```\nconvert-all-srt-vtt.sh\n```\n\n## Overlapping captions\n\nWhen using `.srt`, the start and end times for each caption can overlap.\n\nExample input file (notice how the end time of each caption is after the start time of the next caption):\n\n```\n1\r\n00:00:00,030 --\u003e 00:00:04,920\r\nhello and welcome to my course on coding\r\n\r\n2\r\n00:00:02,730 --\u003e 00:00:06,930\r\nwith flutter by taking this course you\r\n\r\n3\r\n00:00:04,920 --\u003e 00:00:09,510\r\nwill learn how to use flutter to build\r\n```\n\nUnfortunately, not all players support overlapping captions.\n\nSo this script manipulates the timestamps, so that each caption starts exactly at the end of the previous one.\n\nExample output file:\n\n```\nWEBVTT\n\n00:00:00.030 --\u003e 00:00:02.730\nhello and welcome to my course on coding\r\n\n00:00:02.730 --\u003e 00:00:04.920\nwith flutter by taking this course you\r\n\n00:00:04.920 --\u003e 00:00:06.930\nwill learn how to use flutter to build\r\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbizz84%2Fconvert-srt-vtt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbizz84%2Fconvert-srt-vtt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbizz84%2Fconvert-srt-vtt/lists"}