Youtube to Anki

AnkiWeb addon 964531817

1 other version of this addon exists. Compare versions ↓

Generates a complete Anki deck with audio and pictures from a YouTube link and its subtitles, supporting language selection, card limits, picture sizing, and subtitle optimization.
AI-generated summary; may contain mistakes.

card-creationimport

Open on AnkiWeb GitHub Find alternatives

AnkiWeb

Votes
18 (πŸ‘ 10 Β· πŸ‘Ž 8)
Updated
2024-06-09
Anki versions
2.1.66~
License
GPL-3.0 (from the GitHub repository)
Virus scan
No ClamAV match A match does not prove malware. No match does not prove that the code is safe.
Languages
Python, XML
Description language
en

Maintenance

abandoned

  • Last update or commit: 2024-06-09 (875 days before the snapshot).
  • Test files: 5.
  • GitHub Actions workflows: 1.
  • Commits in the last year: 0.
  • Issues: 5 open, 25 closed.
  • Pull requests: 0 open, 30 merged.
  • Median first response: 16 hours (28 answered issues and pull requests).
  • Outside pull requests: 100% of 23 merged.
  • Forks that may still be maintained: "Youtube's Video to SRS Deck" (1023383878).

Will it work on my Anki?

Version branches
Min AnkiMax AnkiUpdated
2.1.602.1.66+2024-06-09
History across monthly snapshots

Loading…

Compare versions

The original addon and its forks. The best value in each column is in bold.

VersionWorks on Anki 26.09.3MaintenanceLast activity VotesApprovalGitHub starsNotes
Youtube to Anki this addon original likely abandoned 9 Jun 2024 πŸ‘ 10 Β· πŸ‘Ž 8 34% 25
↳ Youtube's Video to SRS Deck (AI-detected; may be wrong) likely abandoned 5 Dec 2021 πŸ‘ 1 Β· πŸ‘Ž 1 9% –

Forks can add features or work in a different way. Read the description before you change to another version. Fork detection is incomplete, so other versions can exist.

Similar addons

Youtube's Video to SRS Deck fork

Converts a YouTube link and its subtitles into a full Anki deck with audio, images, and sentences, offering automatic caption fallback, card limits, and customizable image dimensions.

card-creationimportfork-or-reupload

2 votes 9% approval πŸ‘ 1 Β· πŸ‘Ž 1 Anki 2.1.46~ Updated 2021-12-05
Youtube Audio Miner

Stores YouTube videos in a searchable sentence database, adds matching audio, sentences, and screenshots to existing cards, and creates Subs2SRS decks from videos or playlists.

card-creationimportdeck-management

2 votes 34% approval πŸ‘ 2 Β· πŸ‘Ž 0 ⭐ 5 Anki 2.1.16~ Updated 2022-08-28

Description

An Anki addon that generates a full-fledged deck with audio and pictures from a YouTube link using subtitles with the click of a button. This eliminates the need for having to download a video, or the accompanying subtitles, re-timing them, and dealing with TSV files to import. For those of you familiar with Subs2SRS, consider this to be the YouTube version.

This addon offers several features:

  • Supports all languages
  • Fallback to automatically generated subs if man-made captions could not be found
  • Set a limit to how many cards are generated
  • Choose the dimensions of the pictures
  • Fast card generation

Installation

  1. In Tools > Addons, click Get addon and use the code 964531817
  2. Restart Anki for changes to take place
If you are a Linux or Mac user, make sure to install ffmpeg using your package manager.

Usage

  1. Enter the YouTube link for the video
  2. Choose the appropriate note type and fields for the card data
  3. Specify the subtitle language (default: English)
  4. Hit generate. After a bit, refresh your decks, and you should see a deck named after the title of the video

Quality of the subtitles

TL;DR: In order to get the best learning experience, work with the videos that have high-quality manually generated subtitles (e.g., TED talks). Enable the option "Optimize subtitles" to get sentence-based Anki cards: one card per sentence.

The YouTube to Anki (Y2A) extension uses subtitle ranges to cut the corresponding audio fragments out of the downloaded video. If the subtitles are well-crafted by the creators of a YouTube video, the resulting Anki cards will 90%+ perfectly match the audio from the MP3 files generated by the extension.

YouTube's videos can have automatically and manually generated subtitles.

When a video has manually generated subtitles, it is likely to have:

  • Capitalized sentences and correct punctuation.
  • Subtitle ranges match the actual sentences as they are spoken on a video.
For the manually generated subtitles, the Y2A extension provides an optimization that merges the subtitle texts so that the full sentences are formed, one sentence per one Anki card. The optimization relies on the punctuation found in the subtitles, e.g. ".", ",", "?" in order to decide when a sentence should end. The option is enabled with the "Optimize subtitles" flag.

Examples of good YouTube videos that can be used for testing this extension:

When a video has automatically generated subtitles, it is most often that the extension cannot produce good Anki cards: the subtitle text will have neither capitalized letters nor punctuation, and therefore the Anki cards will not be sentence-based.

Contributing

All contributions are gladly welcomed! Feel free to open an issue or create a pull request if you have any new changes/ideas in mind.

README

YouTube to Anki

An Anki addon that generates a full-fledged deck with audio and pictures from a YouTube link using subtitles with the click of a button. This eliminates the need for having to download a video, or the accompanying subtitles, re-timing them, and dealing with TSV files to import. For those of you familiar with Subs2SRS, consider this to be the YouTube version.

This addon offers several features:

  • Supports all languages
  • Fallback to automatically generated subs if man-made captions could not be found
  • Set a limit to how many cards are generated
  • Choose the dimensions of the pictures
  • Fast card generation

Installation

  1. In Tools > Addons, click Get addon and use the code 964531817
  2. Restart Anki for changes to take place

If you are a Linux or Mac user, make sure to install ffmpeg using your package manager.

Usage

  1. Enter the YouTube link for the video
  2. Choose the appropriate note type and fields for the card data
  3. Specify the subtitle language (default: English)
  4. Hit generate. After a bit, refresh your decks, and you should see a deck named after the title of the video

Quality of the subtitles

TL;DR: In order to get the best learning experience, work with the YouTube's videos that have high-quality manually generated subtitles (e.g., TED talks). Enable option "Optimize subtitles" to get sentence-based Anki cards: one card per sentence.

The YouTube to Anki (Y2A) extension uses subtitle ranges to cut the corresponding audio fragments out of the downloaded video. If the subtitles are well-crafted by the creators of a YouTube video, the resulting Anki cards will 90%+ perfectly match the audio from the MP3 files generated by the extension.

YouTube's videos can have automatically and manually generated subtitles.

When a video has manually generated subtitles, it is likely to have:

  • Capitalized sentences and correct punctuation.
  • Subtitle ranges matching the actual sentences as they are spoken on a video.

For the manually generated subtitles, the Y2A extension provides an optimization which merges the subtitle texts so that the full sentences are formed, one sentence per one Anki card. The optimization relies on the punctuation found in the subtitles, e.g. ".", ",", "?" in order to decide when a sentence should end. The option is enabled with the "Optimize subtitles" flag.

Examples of good YouTube videos that can be used for testing this extension:

When a video has automatically generated subtitles, it is most often that the extension cannot produce good Anki cards: the subtitle text will have neither capitalized letters nor punctuation, and therefore the Anki cards will not be sentence-based.

Development

Before moving on, be sure you have python and poetry setup.

  1. Clone the repository
git clone https://github.com/kamui-fin/yt-to-anki.git
cd yt-to-anki
  1. Install dependencies
poetry install
  1. Install pre-commit hooks
poetry run pre-commit install
  1. If you are on windows, you need to create a top-level directory called ffmpeg with ffmpeg.exe inside
  2. Bundle everything (or update the bundle)
poetry run invoke package-dev
  1. Create a symlink of dist/ inside of your Anki data's addons21/ folder
ln -s ./dist ~/.local/share/Anki2/addons21/yt-to-anki
  1. Now you can use the dev command for simultaneously running anki with the updated bundle
poetry run invoke dev

Contributing

All contributions are gladly welcomed! Feel free to open an issue or create a pull request if you have any new changes/ideas in mind.