youtube subtitles in interactive video
Submitted by lepsid on Wed, 01/25/2017 - 14:01
Forums:
Hello!
Is there any option to activate subtitles in youtube video using interactive video?
Thanks
Hello!
Is there any option to activate subtitles in youtube video using interactive video?
Thanks
Navigation
Connect with H5P
About
H5P is a registered trademark of H5P Group
Privacy policy |
Copyright ©
2024
otacke
Thu, 01/26/2017 - 00:50
Permalink
Not yet, but a solution can
Not yet, but a solution can be seen on the horizon.
asexauer
Mon, 07/10/2017 - 11:01
Permalink
how far ist the horizon
Hello Oliver,
great to hear. Can you tell anything about when this will be propably available?
Thx
Andreas
otacke
Mon, 07/10/2017 - 11:06
Permalink
It has already been around
It has already been around for quite some time now :-) Just get the latest updates and enjoy.
dirkcgrunwald
Sun, 07/01/2018 - 01:41
Permalink
How to use captions on youtube?
Can you explain how to enable captions on youtube videos? I am using InteractiveVideo version 1.17.5 and I don't see a way to display captions on YouTube videos.
otacke
Sun, 07/01/2018 - 13:04
Permalink
Hi Dirk!You'll have to add
Hi Dirk!
You'll have to add the captions on YouTube.
Best,
Oliver
Glenn Jones
Tue, 03/31/2020 - 15:07
Permalink
Subtitles
Hi all,
Is there any evolution in this? It would be great to use the subtitles of vimeo or youtube video's with in the player for multiple languages.
Thanks for your feedback!
Glenn
otacke
Tue, 03/31/2020 - 17:45
Permalink
Hi Glenn!You digged up a post
Hi Glenn!
You digged up a post from years ago. You have been able to use subtitles from YouTube for quite some while now.
Best,
Oliver
dirkcgrunwald
Tue, 07/03/2018 - 18:03
Permalink
How to use captions on youtube?
The youtube video does have captions - here's a screencast showing the H5P interactive video widget (note lack of caption option), followed by viewing the video directly in YouTube, which then does have the CC closed caption option. I don't see a method to enable captions via H5P.
https://youtu.be/gp79qSBdwTE
otacke
Tue, 07/03/2018 - 18:08
Permalink
Hi Dirk!Unfortunately,
Hi Dirk!
Unfortunately, YouTube does not serve the automatically created captions to external players. You'll have to manually create the captions for the specific language on YouTube -- which will be filled with the automatic transcript by default AFAIR. Done in 2 minutes.
Best,
Oliver
dirkcgrunwald
Tue, 07/03/2018 - 18:43
Permalink
That works - thanks!
Thank you, that works. Is this documented some place? I would like to update our production notes to include this.
I'm assuming that there isn't a way to automate the generation of the "manually created" captions.
BV52
Wed, 07/04/2018 - 04:33
Permalink
Hi Dirk,I'm afraid there isn
Hi Dirk,
I'm afraid there isn't a documentation for this. We try to create as much documentation as we can although there is a challenge in keeping them up to date.
You are correct it is not possible to automate the creation of the captions.
-BV52
dirkcgrunwald
Thu, 07/05/2018 - 18:12
Permalink
script
I wrote a small python program that downloads all the SRT captions from videos in a specified playlist and captures them to files with a directory structure reflecting the video names (see attached). It also generates a script that uses the "captions.py" program from the sample youtube API scripts ( https://github.com/youtube/api-samples ) to upload modified SRT captions. Just doing the download and then uploading provides a caption file other than the automatically generated version and that version will appear in H5P. This might be useful for others in a similar boat.
However, working on this begs the question - the auto-generated version does appear in the caption API. Their "isCC" property is False (indicating not closed caption) which is why I suspect they don't appear in the captions list. However, their "trackKind" property is ASR (automatic speach recoginition). It may be a useful addition to use the ASR track if there are no others
I looked at the h5p-interactive-video plugin code but am not that familar with js or h5p source, so didn't see if this was an obvious/easy change or not.
daniel.antoniuk
Wed, 03/04/2020 - 23:13
Permalink
Some captioning services can install the captions for YouTube
Actually, we use 3play captioning service and as part of the process, they apply the captions to our YouTube videos for us. So yes it can be automated but it may be an expensive option if your not paying for a captioning service
profbird
Wed, 05/01/2019 - 23:16
Permalink
Elaborate please
I'm trying to solve the same problem. I have YouTube videos with captions and I can download a transcript file, but when I create an H5P interactive video, I am not able to upload the transcript (.vtt) file since the upload dialog for Text Tracks says "unsupported for YouTube videos". Could you explain in a little more detail what you mean by "manually create the captions" and how they will be "filled with the automatic transcript"?
Thanks
BV52
Thu, 05/02/2019 - 06:33
Permalink
Hi profbird,Please check my
Hi profbird,
Please check my answer here.
-BV52
otacke
Thu, 07/05/2018 - 19:37
Permalink
Hi Dirk!Thanks for your hints
Hi Dirk!
Thanks for your hints, but the YouTube Data API is not the same as the YouTube (Player) IFrame API. The latter does not offer a way to retrieve the auto generated subtitles.
Best,
Oliver
profbird
Thu, 05/02/2019 - 18:52
Permalink
Thanks BV52, but I still have a problem...
Yes, I am able to add captions to my YouTube video, but when I embed my YouTube video in the H5P Interactive Viedo activity, the captions are disabled.
I've attached two screen-shots. The first one shows my video on the YouTube page with the cc button visible and the captions being displayed. The second one shows my video embedded in H5P in a Moodle activity and as you can see there are no captions and the cc button is not visible. Is there a way to change the behavior of H5P so that the YouTube captions are enabled?
BV52
Mon, 05/06/2019 - 04:38
Permalink
Hi profbird,I tried checking
Hi profbird,
I tried checking this in my Moodle as well and the CC is working. Would you mind checking if you have any errors in the browser console?
-BV52
profbird
Tue, 05/07/2019 - 00:00
Permalink
Problem with YouTube captions solved
Our Moodle system administrator found a solution: The H5P video player can currently only detect if subtitles exist if YouTube subtitles are turned on by default. In other words, h5p can’t trigger youtube to display the captions if youtube doesn’t first indicate that captions are available (chicken and egg problem).
Thankfully, there is an easy solution. You need to add a special tag to each one of your YouTube videos you plan on using with H5P. Go to YouTube and edit your video. In the “Tags” area, add the following:"yt:cc=on” (entered with no quotes). <— This now makes ‘CC turned on by default. It can always be turned off by the user.BV52
Tue, 05/07/2019 - 05:24
Permalink
Hi profbird,I'm glad this is
Hi profbird,
I'm glad this is now working and thank you for getting back to us with your solution.
-BV52
meltonml
Tue, 05/05/2020 - 17:42
Permalink
Still no captions on YouTube videos?
Hi all,
I'm checking on the status of captions added to a YouTube video still not displaying on H5P interactive video? I saw a post that said this was to be completed in 2017, but it still does not appear to be working. Please advise.
Thanks!
otacke
Tue, 05/05/2020 - 19:13
Permalink
Hi meltonml!The feature is in
Hi meltonml!
The feature is in fact working since 2017. Maybe you could elaborate on what you are trying to achieve how? Otherwise I can just advise you to add captions to a YouTube video (in addition to automated transcription) and check them out inside H5P.
Best,
Oliver
meltonml
Tue, 05/05/2020 - 19:20
Permalink
Hi Oliver!Thank you for the
Hi Oliver!
Thank you for the quick reply! I have a YouTube video that has automated captions used for an Interacive Video activity. I tried adding the SRT file for captions in addition to the automated ones in YouTube, as well as adding the tag for defaulting captions to on in YouTube, and captions still do not appear in the video in the Interactive Video. An example is here: https://h5p.org/node/853385.
Can you please let me know exactly what needs to be configured for the captions to display? Thank you!
meltonml
Tue, 05/05/2020 - 19:24
Permalink
Hi again Oliver,Please
Hi again Oliver,
Please disregard, it must have just taken a moment for the SRT file to load. The captions are displaying now. Thank you!
seratsuki
Fri, 08/25/2023 - 15:16
Permalink
still not possible for automated captions?
Hi. Yes. It has been 3 years since the last post.
I am guessing this will not work for YouTube videos that you cannot edit / you have not uploaded yourself. I would like to use a video that only has auto-generated captions but I am not the creator of that video, so I can't go in and upload correct captions. Does that just mean I can't use the video?
BV52
Fri, 08/25/2023 - 18:44
Permalink
Hi seratsuki,You are correct.
Hi seratsuki,
You are correct. I'm afraid Youtube has not made any changes to the API that we use for Interactive Video.
-BV
edev27
Mon, 01/15/2024 - 23:22
Permalink
enable YouTube auto-generated captions for Interactive Video H5P
Hi there,
Reading all the comments, looks like if you own the video (in your YT account) you can do this by enabling the captions.
However if you are simply using another YT video (not your own), then you cannot enable the auto-generated captions or manually add the captions within H5P settings. Is that right?
BV52
Tue, 01/16/2024 - 17:19
Permalink
Hi edev27,You are partly
Hi edev27,
You are partly correct. Youtube does not send the auto-generated captions so even if this is enabled it will not work. This will only work for manually added captions.
-BV
otacke
Tue, 01/16/2024 - 21:16
Permalink
Small workaround if you own
Small workaround if you own the video on YouTube: You can create captions based on the auto-generated captions and those newly created will then be available via YouTube's API.