jansenicus / vtt-to-srt.py

python script to convert all vtt files in a directory and all of its subdirectories to srt subtitle format
61 stars 33 forks source link

Como usa no linux... #15

Closed JoseRFJuniorLLMs closed 5 years ago

JoseRFJuniorLLMs commented 5 years ago
python from vtt_to_srt import vtts_to_srt path = '/home/jr/Videos/legendas/ vtts_to_srt(path, rec = True)

python vtt_to_srt.py3 /home/jr/Videos/legendas/ [-r]

Obrigado..

heniotierra commented 5 years ago

Como diz a documentação no README, se for usar como lib:

from vtt_to_srt import vtts_to_srt 

path = '/home/jr/Videos/legendas/' 
vtts_to_srt(path, rec = True)

Claro que para isso vc tem que isntalar a lib primeiro no seu sistema, e para isso seguir as instruções de instalação tbm no README.

Mas vc pode usar direto do terminal tbm.