Embedding videos with subtitles

This is basic manual of embedding videos with subtitles.

If the video is on your own YouTube channel you can directly upload a subtitle file (see creating subtitle file).

If the video isn't on your YouTube channel you can ask the channel's owner to upload the subtitle file (see creating subtitle file). Some owners will accept it, some will deny it, some will accept it only after unacceptable long time. If the channel owner is our partner we can try it. But better to have some back up, e.g. via Amara.org.

Creating subtitle file

If you haven't subtitle file yet you can make one, see about Caption software and services (on YouTube). I recommend using Amara.org - it provides simple user interface for creating new subtitles, timing, translation and embedding. You can download the created subtitle files and upload them directly to your YouTube videos (preferred for your videos) or send them to video's owner (recommended, but without guaranties). See guide to use Amara.org (in Czech).

But independent to owner of YouTube video, you can embed the video with your subtitles in your elected language - all via Amara.org. So you don't need to be a video owner or to ask him/her, it is sufficient to use subtitles via Amara.org.

Embedding videos with subtitles

Embedding videos from Amara.org

Default embedding

Embed code:

<script type="text/javascript" src="http://s3.amazonaws.com/s3.www.universalsubtitles.org/embed.js"> 
( 
  {"video_url": "http://www.youtube.com/watch?v=530Y4a6jomI"} 
) 
</script>

Embedding with forced language (Polish) - see usage guide

Embed code:

<script type="text/javascript" src="http://s3.amazonaws.com/s3.www.universalsubtitles.org/embed.js"> 
( 
  {"video_url": "http://www.youtube.com/watch?v=530Y4a6jomI", 
   "base_state": {"language": "pl"}} 
) 
</script>

Embedding videos from YouTube

Default

Embed code:

<iframe width="560" height="315" src="//www.youtube.com/embed/rgKHtrbqH8Y" frameborder="0" allowfullscreen></iframe>

With forced language (Polish) - see usage guide - Add captions to an embedded video (there is an error, you have to use syntax ?cc_lang_pref=pl&cc_load_policy=1 (so, question mark ?, not ampersand &))

Embed code:

<iframe width="560" height="315" src="//www.youtube.com/embed/rgKHtrbqH8Y?cc_lang_pref=pl&cc_load_policy=1" frameborder="0" allowfullscreen></iframe>



Osobné nástroje