Any app which can transform .vtt to .srt?
Asked Answered
I

2

7

Are there any apps which can transform from .vtt to .srt format? I tried subtitleeditor which doesn't have support for .vtt. If anybody does know of any specific app which can be used to do the same, please share.

Inhospitality answered 26/12, 2019 at 15:38 Comment(0)
C
4

You can use FFmpeg for this:

ffmpeg -i file.vtt file.srt
Crummy answered 8/3, 2022 at 18:56 Comment(1)
Doesn't work for me. I checked my VTT file against a validator and it's valid -- this command just spits out an empty SRT file. "Output file is empty, nothing was encoded (check -ss / -t / -frames parameters if used)". ffmpeg version n6.0.Humidor
P
1

With subconv you can do it. To install it, execute the following commands in a command prompt or terminal window:

git clone https://github.com/Smile4ever/subconv
cd subconv
npm update
npm install

To use:

node index.js -f srt file.vtt > file.srt

You will need to install Node.js. The installation steps for Node.js are different for every platform, but the general rule is:

Disclaimer: I'm the author of this software.

Pharmaceutics answered 6/1, 2020 at 12:7 Comment(2)
I will have to check it, currently having issues with nodejs (there is a transition thing happening in Debian to make it current with nodejs upstream), unless that is not done, wouldn't be able to use nodejs. I have ancient nodejs 10 :(Inhospitality
I suppose that Nodejs 10 should be fine to use subconv.Pharmaceutics

© 2022 - 2024 — McMap. All rights reserved.