Capture youtube subtitles of clips

Talk about anything at all....

Capture youtube subtitles of clips

Postby sayhello » Sun Apr 21, 2019 3:26 am

hello dear Community,


i have seen that many youtube clips have got subtitles



eg this one: https://www.youtube.com/watch?v=BJ-VvGyQxho&t=133s

how can i capture the subtitle-text of this youtube video!?

heard about this procedure:

Go to your Video Manager by clicking your account in the top right
> Creator Studio > Video Manager > Videos.

Next to the video you want to add captions or subtitles to,
click the drop-down menu next to the Edit button.

Select Subtitles and CC.


well i am not sure how to do this!? Can you help here?
https://wiki.openstreetmap.org/wiki/User:Tagtheworld :: super toolkits a. http://wpgear.org/ :: and b. github.com/miziomon/awesome-wordpress
User avatar
sayhello
 
Posts: 95
Joined: Sat Nov 10, 2012 1:48 pm

Re: how to capture youtube subtitles of clips that have got

Postby Zizi64 » Sun Apr 21, 2019 6:59 am

How this task is related to the AOO or LO?
Tibor Kovacs, Hungary; LO6.1.6, 6.4.7 /Win7-10 x64Prof.
PortableApps/winPenPack: LO3.3.0-7.1.1;AOO4.1.9
Please, edit the initial post in the topic: add the word [Solved] at the beginning of the subject line - if your problem has been solved.
User avatar
Zizi64
Volunteer
 
Posts: 9810
Joined: Wed May 26, 2010 7:55 am
Location: Budapest, Hungary

Re: how to capture youtube subtitles of clips that have got

Postby erbsenzahl » Sun Apr 21, 2019 9:07 am

@sayhello

Google2srt is your adequate program for that. For further editing the srt file you may use OpenOffice/LibreOffice Writer, often a simple editor is first choice.

Cheers
OpenOffice 4.1.8 on LinuxMint 19 or 20 Mate, rarely W7-64 pro and W10-64 pro; LibreOffice current versions 6 or 7
(author is no native speaker)
erbsenzahl
Volunteer
 
Posts: 170
Joined: Tue Apr 18, 2017 8:23 am
Location: Germany

Re: Capture youtube subtitles of clips

Postby Robert Tucker » Fri Oct 23, 2020 9:05 am

There is youtube-dl https://ytdl-org.github.io/youtube-dl/index.html. However, it usually provides overlapping subtitles, and you'll probably find it easier to use one of the online sites that does the job.

If you just want the script, you can click on the three dots under the video and select "Open transcript".

Either way, if you want sensibly broken up subtitles, you'll probably want to just work with the text and go through it manually. You could use Writer to do this, though any text editor should do. When you've got them broken up sensibly, you'll want to use Aeneas (https://aeneasweb.org/login) to align them again with the spoken dialogue.

Writer is indispensable if you want to translate the subtitles using Deepl (ww.deepl.com/en/translator), since Deepl requires them in .xml format. (Office Open XML is just under the text options under "File type" when you go to Save.)
LibreOffice 7.x.x on Fedora 34 and Ubuntu 21.04 (Dual Boot)
User avatar
Robert Tucker
Volunteer
 
Posts: 1250
Joined: Mon Oct 08, 2007 1:34 am
Location: Manchester UK

Re: Capture youtube subtitles of clips

Postby CooloKelley » Sun Apr 04, 2021 6:53 pm

subtitles on YouTube are put on automatically, or I misunderstood your problem. https://www.youtube.com/watch?v=rq8cL2XMM5M&ab_channel=CoreySchafer for example this video is subtitled in english
OpenOffice 4.1.9
CooloKelley
 
Posts: 2
Joined: Sun Apr 04, 2021 6:47 pm

Re: Capture youtube subtitles of clips

Postby Robert Tucker » Mon Apr 05, 2021 11:06 am

If the video has a soundtrack suitable for voice recognition (rarely the case for songs), YouTube will generate AutoCaptions. The trouble is, if you download them, they look like this:

Code: Select all   Expand viewCollapse view
00:00:00.060 --> 00:00:02.000 align:start position:0%

hey<00:00:00.359><c> everybody</c><00:00:00.690><c> how's</c><00:00:00.780><c> it</c><00:00:00.930><c> going</c><00:00:01.260><c> in</c><00:00:01.530><c> our</c><00:00:01.860><c> last</c>

00:00:02.000 --> 00:00:02.010 align:start position:0%
hey everybody how's it going in our last


00:00:02.010 --> 00:00:03.110 align:start position:0%
hey everybody how's it going in our last
video<00:00:02.190><c> we</c><00:00:02.460><c> looked</c><00:00:02.639><c> at</c><00:00:02.700><c> the</c><00:00:02.760><c> difference</c>

00:00:03.110 --> 00:00:03.120 align:start position:0%
video we looked at the difference

00:00:03.120 --> 00:00:04.849 align:start position:0%
video we looked at the difference
between<00:00:03.270><c> instance</c><00:00:03.840><c> variables</c><00:00:04.259><c> and</c><00:00:04.380><c> class</c>

00:00:04.849 --> 00:00:04.859 align:start position:0%
between instance variables and class


00:00:04.859 --> 00:00:06.499 align:start position:0%
between instance variables and class
variables<00:00:05.310><c> and</c><00:00:05.490><c> in</c><00:00:05.879><c> this</c><00:00:05.970><c> video</c><00:00:06.180><c> we'll</c><00:00:06.450><c> be</c>

So the easiest way to get subtitles to work with is to download the transcript as I described before.

YouTube also allows the video owner to upload subtitles and translations of the subtitles and these can usually be downloaded in a useful format.
LibreOffice 7.x.x on Fedora 34 and Ubuntu 21.04 (Dual Boot)
User avatar
Robert Tucker
Volunteer
 
Posts: 1250
Joined: Mon Oct 08, 2007 1:34 am
Location: Manchester UK

Re: Capture youtube subtitles of clips

Postby PippaScott » Sat Apr 10, 2021 10:16 pm

If you are familiar with the python programming language, then you can easily do this with BeautifulSoup. Moreover, this process can be automated for any video video. Also, you can use python to automate the process of saving the information found in a special excel file or upload them to Google documents for online access from anywhere in the world. This method is called parsing, there are plenty of video tutorials on how to implement it, so I will not go into details. For example, I use parsing to search for my favorite music on YouTube, then use a special converter to save it to cloud storage. The whole process is automated, I just need to write the name of the song. Very convenient!
OpenOffice 3.1 on Windows Vista
PippaScott
 
Posts: 1
Joined: Sat Apr 10, 2021 10:12 pm


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 3 guests