adding subtitles to video

adding subtitles to video

por Anderson Hsu -
Número de respostas: 27

Dear Support Team, 

If our video is fla format, how can we add add subtitles to  the video as shown as the screen Thanks you.


(Edited by Mary Cooch to clarify question - original submission Thursday, 31 August 2017, 4:01 PM)


Média das avaliações:  -
Em resposta à Anderson Hsu

Re: adding subtitles to video

por S. kavita -
Imagem de Testers

Hi,

When you insert a video using the editor media icon then in the pop-up of uploading video you will find Subtitles and Caption. Have a look at the attached screenshot. 

If you need more details in how to insert a video then here is the link

Hope this will help you out.

Happy Moodling sorriso

Anexo video.png
Em resposta à S. kavita

Re: adding subtitles to video

por Rick Jerz -
Imagem de Particularly helpful Moodlers Imagem de Testers

The moodle docs seem very sparse about these settings.  What does "default" mean?  And what does "label" mean?  Any examples?

Em resposta à Rick Jerz

Re: adding subtitles to video

por S. kavita -
Imagem de Testers

Hi Rick,

If you set a track label in it will be shown in the selection area. And if you set a track "default" then it will be pre-selected at the start of the video.

If you have any queries about any fields then there is a question mark "?" icon present on each page, click on it and you will get the details of the fields.

Thanks.

Em resposta à S. kavita

Re: adding subtitles to video

por Wahls Shavers -

Hey ! Thanks for Sharing this Helpful Post. I was looking for ans of same que. since long time.

Em resposta à Wahls Shavers

回應: Re: adding subtitles to video

por Anderson Hsu -

But I think the way is not suitable in moodle 2.8, I can not find the setting in moodle 2.8.


Em resposta à Anderson Hsu

Re: 回應: Re: adding subtitles to video

por S. kavita -
Imagem de Testers

Hi Anderson,

It is not because of Moodle 2.8 but it is due to the text editor you have set by default. Go to Plugins>Text editor and place Atto editor at the top in the list.

Em resposta à Anderson Hsu

Re: 回應: Re: adding subtitles to video

por Helen Foster -
Imagem de Core developers Imagem de Documentation writers Imagem de Moodle HQ Imagem de Particularly helpful Moodlers Imagem de Plugin developers Imagem de Testers Imagem de Translators

Hello,

The subtitles and captions options when inserting media via the Atto text editor are only available in Moodle 3.2 onwards.

Em resposta à Helen Foster

Re: 回應: Re: adding subtitles to video

por Rick Jerz -
Imagem de Particularly helpful Moodlers Imagem de Testers

Okay, here is what I have and my problem.

Link to video: http://streaming.iowa.uiowa.edu/business/rjerz/m-org/MoodleMoot2017_Boost.mp 4 (space on purpose to show URL.)

Link to .vtt caption file: http://streaming.iowa.uiowa.edu/business/rjerz/m-org/MoodleMoot2017_Boost.vtt

See if you can get captions to work.

1) I pick the movie icon from atto.

2) I fill in the Videos page as shown below.

3) I cannot get captions to turn on.

What am I doing wrong? I am using Moodle 3.3.1+

 

 


Anexo video settings.jpg
Em resposta à Rick Jerz

Re: : Re: adding subtitles to video

por Floyd Saner -

Rick,

Here are a few things I would start investigating.

  1. Is your .vtt file coded as UTF-8? Some Windows editors create files in a Windows encoding
  2. Take out the sequencing numbers. Those are optional in .vtt and perhaps the Atto editor plugin does not process them properly.

I'm trying a few other things.

Regards,

Floyd

Em resposta à Rick Jerz

Re: 回應: Re: adding subtitles to video

por Floyd Saner -

Rick,

I messed around with this for about 45 minutes. Even created my own video and .vtt file.  I can't get captions to display either. Perhaps someone else can provide information.

Floyd

Em resposta à Floyd Saner

Re: 回應: Re: adding subtitles to video

por Mary Cooch -
Imagem de Documentation writers Imagem de Moodle HQ Imagem de Particularly helpful Moodlers Imagem de Testers Imagem de Translators

What do you understand by captions? There is a video in this Celebrating Cultures course http://school.demo.moodle.net/course/view.php?id=59 with subtitles that works ( in three languages) if that helps. Log in with username to teacher password moodle. Maybe if you choose subtitles instead of captions? ( I haven't made captions myself, only subtitles.)

Em resposta à Mary Cooch

Re: 回應: Re: adding subtitles to video

por Rick Jerz -
Imagem de Particularly helpful Moodlers Imagem de Testers

A couple things, Floyd, Mary, and S. Kavita,

1) This .vtt file is directly from Rev.com, a company that specializes in captioning.  So I assume that it is of proper form, encoded correctly.  But I could be wrong.

2) Mary, yes, I tried the course.  But only French worked, and the video didn't play for me, but the French captions did turn on.

3) While at MoodleMoot US (New Orleans), I attended Gavin's presentation about using captions within Moodle.  I even downloaded his PowerPoints.  At MoodleMoot, I quickly gave this a try.  To my surprise, it worked!  So I thought that I understood. But now that I am trying again, I cannot get it to work.  (It worked on my experimental moodle, which I refresh regularly, so I don't have what worked for me before.)  

So I end up like Floyd, I can't seem to get it to work. (I have probably invested around 2 hours into this.)

Mary, could you provide screen shots of how this video is configured?

Em resposta à Rick Jerz

Re: 回應: Re: adding subtitles to video

por Floyd Saner -

Ah, Rick.  I may have found the problem.  When I link to a .vtt file on an external web server, subtitles/captions do not work.  When I upload a .vtt file instead of linking, subtitles/captions work.

Give that a try.

Floyd

Média das avaliações: Useful (1)
Em resposta à Floyd Saner

Re: 回應: Re: adding subtitles to video

por Mary Cooch -
Imagem de Documentation writers Imagem de Moodle HQ Imagem de Particularly helpful Moodlers Imagem de Testers Imagem de Translators

I have only ever tried with uploaded files not linked files - but your discovery sounds very sensible Floyd - thanks.

Média das avaliações: Useful (1)
Em resposta à Mary Cooch

Re: 回應: Re: adding subtitles to video

por Floyd Saner -

Ah, Mary!  You truly are the Moodle Fairy!  

We could be caught in language differences across the pond.  We use the term captions (closed captioning) for subtitles. Although I did try the subtitles option and that did not work.  I believe 'subtitles' refers to text for spoken words, where 'captions' refers to spoken words and descriptions of sounds (such as 'breaking glass').  I don't know why Moodle provides two different options.

Which file format did you use for your subtitles, .srt or .vtt?  Rick was using .vtt, which I believe is the format used by Atto.  If possible, can you attach a copy of the subtitle file from the Celebrating Cultures course, so we can look at the format?

Thanks!

Floyd


Em resposta à Floyd Saner

Re: 回應: Re: adding subtitles to video

por Rick Jerz -
Imagem de Particularly helpful Moodlers Imagem de Testers

Yes, there seems to be subtle differences between "subtitles" and "captions."  I have tried both ways without success.

When I was at MoodleMoot, my first attempt was to use my SRT (caption) files.  This didn't work. But then I saw that Gavin was using .vtt files, so I downloaded this filetype from Rev.com, and it worked.

I have upgraded my moodle since Moodlemoot, but I doubt that this is the problem.

Let's see what Mary says, and what she might provide.

Em resposta à Floyd Saner

Re: 回應: Re: adding subtitles to video

por Mary Cooch -
Imagem de Documentation writers Imagem de Moodle HQ Imagem de Particularly helpful Moodlers Imagem de Testers Imagem de Translators

I'm attaching a copy of the English subtitle file (typo included) Actually if you log in with the username manager and the pasword moodle you can retrieve the files and the video from the Private files area. 

I didn't know the difference between subtitles and captions until  VideoJS came out - and then I just googled it and found the same as you.

Média das avaliações: Useful (1)
Em resposta à Mary Cooch

Re: 回應: Re: adding subtitles to video

por Floyd Saner -

Thanks, Mary.  That is the format, WEBVTT (.vtt), Rick and I were using. The issue turned out to be linking to a .vtt file on an external web server vs. uploading a .vtt file to Moodle.

I tried the file as subtitles and as captions and did not notice any difference.  The same file worked in both cases.

Floyd

Em resposta à Floyd Saner

Re: 回應: Re: adding subtitles to video

por Mary Cooch -
Imagem de Documentation writers Imagem de Moodle HQ Imagem de Particularly helpful Moodlers Imagem de Testers Imagem de Translators

Well discovered, Floyd. I have made a note in the docs for future reference.

Em resposta à Floyd Saner

Re: 回應: Re: adding subtitles to video

por Rick Jerz -
Imagem de Particularly helpful Moodlers Imagem de Testers

Interesting.  When I try to upload the .vtt file Moodle complains with a "Text file filetype cannot be accepted."  How did you upload, Floyd?

I am even trying this on my MoodleCloud course.  Still no luck.


Em resposta à Rick Jerz

Re: 回應: Re: adding subtitles to video

por Floyd Saner -

Rick,

Here is what I did - also using Moodle Cloud site.



Floyd

Em resposta à Floyd Saner

Re: 回應: Re: adding subtitles to video

por Rick Jerz -
Imagem de Particularly helpful Moodlers Imagem de Testers

Well Floyd, I saw that yours worked, so I did exactly the same thing, and mine worked!

I also confirmed that I had to upload the vtt file.  Linking to it did not work.

I am also wondering what I did wrong this morning, and under what conditions this doesn't work.  But you solved my problem.  Thanks.

(These vtt files are pretty small, so I don't mind uploading them.  It's the video file, the mp4, that I would not want to upload.)

Do you have good luck with Vimeo, Floyd?  If so, what don't you like about Vimeo?

Em resposta à Rick Jerz

Re: 回應: Re: adding subtitles to video

por Floyd Saner -

Rick,

I always told my computer science students that every computer and web server have small gremlins lurking in the background just waiting to create havoc and create situations such as, "It worked a few minutes ago, now it doesn't (or vice versa)."  :-0  It did not take very long for them to accept that as fact!!

It's good to know captioning/subtitling now works for you.

I'll send my comments about Vimeo via Messaging.

Floyd

Em resposta à Floyd Saner

Re: 回應: Re: adding subtitles to video

por Rick Jerz -
Imagem de Particularly helpful Moodlers Imagem de Testers

Floyd, the other thing that I tell students is that "it always works when the instructor does it."

Well, there is still a puzzle.  Why is it that an uploaded vtt file works, which in the URL shows that it is on my server, but a URL to the vtt file outside of moodledata but on the same server does not work?  Might we have gremlins in our Moodles?

Em resposta à Rick Jerz

Re: 回應: Re: adding subtitles to video

por AL Rachels -
Imagem de Core developers Imagem de Particularly helpful Moodlers Imagem de Plugin developers Imagem de Testers

Hi Rick,

I know I've seen you mention details of your server before, but offhand I can´t remember them, but the cause can depend on your operating system. For instance, my main server is running Centos 7 with SELinux in enforcing mode. With that setup my web server cannot doing anything with any file unless it is in my www, moodledata, or red5 webapps folder.

I know back before I retired and before the current Moodle capability of handling video files the way it does now, I used to run videos in Moodle with both the video and vtt files located in my red5/webapps/vod folder.

I also remember also having to fine tune modsecurity at times, to get Moodle to handle some files.

Em resposta à AL Rachels

Re: 回應: Re: adding subtitles to video

por Rick Jerz -
Imagem de Particularly helpful Moodlers Imagem de Testers

Al, thanks for your post and maybe you are on to something.  I have CentOS6 and Linux.

I wonder if it has something to do with the way the video tries to "stream" both the video and the captions.  Maybe I got lucky at MoodleMoot and just had fast connections for my referenced vtt file to kick in.  I wonder if when the vtt file is uploaded, Moodle caches it immediately whereas if it is referenced on what appears to be an external URL, Moodle tries to coordinate the reading of the vtt file with reading and displaying the video.

Regardless, I don't mind uploading the vtt files since they are quite small and do not significantly increase my moodledata size.  If Moodle forced me to always upload videos, this would be a different story.  None of my videos are uploaded into my Moodle.