Multimedia in Anki

Anki supports adding sounds, pictures and videos to your cards.

The Media Directory

Anki stores your media in the same place as your deck. For example, if your deck is called

mydeck.anki

Then Anki will put media files in a folder called

mydeck.media

Adding Media in Anki

Open the AddItems dialog, using Edit>Add Items. Then click on the 'add sound/video' or 'add picture' icon. Once you select a file, Anki will copy it to your deck's media directory. If you want Anki to delete the original when you add media, go into Settings>Preferences>Advanced.

You can also add media using drag and drop. You can drag files from your desktop, or you can drag images from your web browser.

Playing Media

Anki will only play sounds if they are on the card. You must ensure that the field where the sound is added is in either the question or answer template. For example, if you've created a separate "Sound" field, you need to add that field to the question, the answer, or both. See ModelProperties for more information.

Importing Media

See FileImport#ImportingMedia

Synchronizing Media

Anki's sync support does not support media, because it is costly to do so. However, you can keep your media synchronized using a free service called DropBox. Sign up for an account, and put your deck and media folder in your drop box.

Using Media with AnkiOnline

It is possible to have sounds and images when using AnkiOnline. To do this, you need to tell Anki a website where the media can be found. This can be your personal website if you have one, or it can be the public area of your drop box.

To tell Anki, go into Settings>Deck Properties>Edit and add the link to your website in the Media URL section. You will need to do this for each separate model. The reason the URL is per model is this makes it possible for users of shared decks to access the media. If you don't want people to know the location of your website, remember to remove the Media URL before sharing your deck.

You must not use spaces or foreign characters in the URL. So if your local media folder is called:

EspaƱol avanzado.media

Then you could use a URL like:

http://mysite.com/EspanolAvanzado.media

Also note that (unlike the Desktop Anki program) AnkiOnline only supports .mp3 files - wav/ogg/etc is not supported, so you will need to transcode the files before using them with AnkiOnline.

If you have followed the above steps and it's still not working, your browser may be blocking the flash sound player. Try lowering your security settings for the AnkiOnline website or adding an exception to your ad/script-blocking software.

LaTeX

If you use LaTeX on your cards, you only need LaTeX installed on one machine. Use Tools>Advanced>Cache LaTeX and a bunch of images will be placed in the media folder. AnkiOnline and other desktop clients will automatically use those to display LaTeX questions if they are available.

Downloading Media

If you're subscribed to a deck which has media, and you want to use it offline, use Tools>Advanced>Download Missing Media. Note this is only necessary if you're subscribing to a deck - if you have downloaded a deck using File>Download>Shared Deck, all the media is already packed inside. It's also not necessary if you're using DropBox to share your media between computers, since you can rely on DropBox to keep your files in sync.

AnkiWiki: MediaSupport (last edited 2010-01-20 07:04:41 by DamienElmes)