How to use sbv2txt - Youtube captions file convert to transcript
Hi everyone on YouTube! This is Geoff from geoffmobile.com Today I'm going to show you how you can use a little bit of code I wrote called "sbv2txt" which converts YouTube caption files to plain text transcripts. The idea is that YouTube does a good job of creating automatic transcriptions of videos but what you can do is using this tool you can download those transcriptions and edit them and re-upload them as your own transcriptions to automatically sync them with the video. This is a great way to create easy transcriptions for your videos. So let's first of all, download transcriptions for a video. So if I have this video here, the Yummy Chicken and Rice video, I'll click on that in the YouTube studio and I'll go to Transcriptions. You can see "English automatic" - it has published some automatic transcriptions, so I'll click on this little icon here and under actions I'll see download as SBV and I'll save that on my drive. I'll call it chicken.sbv There you go. So how to use this tool: so it's just a Python script.
So you need to have installed Python
I'll quickly show you how to do that. Search for Python and click "Welcome to Python". You'll want to go to downloads and choose your platform, which is in my case Windows and latest release. You want to go down to the file, so Windows executable installer and just save this on your computer. That file downloads. Let's open up this file. In this case I would just install it and make sure to add it to your path.
So the next step is: you've downloaded the transcriptions, but you also want to download the Python script so click the Python script here and i believe there's an option to download
Oh, you have to go back, so go here click "download zip". Save that there as well, and then click show in folder, and right click and choose "Extract All". Go in there, you grab this Python file, and copy it and paste it into your folder. So I've pasted it here called "sbv2txt.py". So if you're on the Mac you want to be able to go to this folder you've downloaded to, in your command line. So open up your terminal, which is similar to command line on Windows, and you want to go into the folder Type "cd" and then the path.
So in my case with Windows I can select the path and paste it in here
It's much the same on Mac. Type "python" and then a space and then "sbv2txt.py" and a space and the name of the captions SBV file so "chicken.sbv" and a space and then the name of the output file, which I will call "chicken.txt" and press enter. It says it is complete and now you can see chicken.txt was created. Now this is just the text that is automatically generated from your video. So what I'll do is I'll go through this file, make corrections and add formatting and capitals and punctuation and once I'm ready I'll take that file go back into transcriptions and go back to YouTube studio for the Chicken and Rice video. So you click the Add button under subtitles, and choose upload a file. Choose transcript, choose file and this is where I choose chicken.txt that I edited, and once I do that I'll click upload and then it will take a few minutes for it to process the transcriptions. Then I'll just click publish. So that is basically the process. I hope you find it useful and if you have any questions please leave your questions below.
ope you have a great day and bye for now!
Tags: how to get a transcript of a youtube video
Download YouTube subtitles and read quietly. Ssh! © 2020