Saturday, February 22, 2014

SubRip Subtitles Time Adjustment Tool

I have been working on updating my Plex movie database with SubRip Subtitle (.srt) files from OpenSubtitles.org. One of the subtitle files I downloaded had the timing off from the voices. Very distracting.

OpenSubtitles.org - the biggest open subtitles database - http://www.opensubtitles.org/en
So I wrote up a Python script to adjust the timings of the .srt file and posted it to GitHub. You pass the movie .srt file and the time shift, and it outputs the modified subtitle file.
git clone https://github.com/oeey/srtshift

python srtshift/srtshift.py movie.srt 2.5 > movie_fixed.srt

# play movie and check subtitle timing, the commit the change with
mv movie_fixed.srt movie.srt

15 comments:

Jesse Jin said...

electric unicycleUnicycles look difficult to ride. The only people I've ever seen on unicycles was the one kid in high school who went to clown college on his summer break and that talented troupe of local street performers who also breathe fire. I never imagined a unicycle would be for me. I just knew I would end up flat on my face if I even tried. All my life, it was two wheels or bust. Until I met the When you see someone riding a self-balancing unicycle lean forward to go forward, lean back to stop, lean left or right to turn at his willing, whether it is envy to you? In fact, also you can! Here I hope you can be patient to read and follow the steps to practice, and soon you will become an enviable one.

usps tracking said...

Yes, the article I was looking for. Your article gives me another approach on the subject. I hope to read more articles from you.

happy wheels said...

Through your pen I found the problem up interesting! I hope you continue to have such quality articles to share with everyone! I believe a lot of people will be surprised to read this article! Thanks for your post!
io games

Cara menghentikan pendarahan rahim said...

very useful article, thank you very much and pardon me permission to share the article here admin :

Cara mengatasi nyeri dada
Cara mengatasi borok
Obat pertumbuhan gigi anak

Toko Obat sekaligus Suplemen Herbal said...

Thank you very much for sharing this very useful information, I am very happy to have found this information that I have been looking for
Cara Pemesanan QnC
Cara Order Walatra Sehat Mata
Agen Resmi QnC Jelly Gamat Di Kudus
Cara Pemesanan Walatra Jelly Gamat Original
Obat Tumor Parotis

happy wheels said...

I have read through other blogs, but they are cumbersome and confusing more than your post. I hope you continue to have such quality articles to share with everyone! I believe a lot of people will be surprised to read this article!

FauziUzi said...

Thank you very much for sharing this very useful information, I am very happy to have found this information that I have been looking for
cara mengobati muntaber

Ahli Kesehatan said...

Thank you very much for sharing this very useful information, I am very happy to have found this information that I have been looking for
cara menyembuhkan beri beri basah dan kering
cara mengobati polip hidung
manfaat alpukat untuk kesehatan tubuh
Cara Mengatasi Anafilaksis (reaksi alergi akut)
Cara Alami Mengobati Bisul di Dalam Telinga
15 makanan untuk menyembuhkan tenggorokan terasa ada yang mengganjal

jellygamat murah said...

Hopefully, sustenance will be easy and simplified in all matters :-)
OBAT KLIYENGAN ALAMI
daftar produk herbal terbaru
manfaat herbal g-sea
cara mengobati sakit kepala
manfaat herbal g-sea

jellygamat murah said...

Hopefully, sustenance will be easy and simplified in all matters :-)
OBAT KLIYENGAN ALAMI
obat kliyengan alami
cara mengatasi penyakit pes
distributor gamat emas kapsul
cara mengobati sakit kepala

slither io said...

Thank you for sharing this useful information, I will regularly follow your blog

easy your sustenance said...

Hopefully, sustenance will be easy and simplified in all matters :-)
OBAT BATU GINJAL ALAMI
obat payudara bengkak
obat penyakit dompo herpes
cara mengatasi jantung koroner
obat penyakit hisprung

Lutfi Kurniawan said...

This article is very interesting and very understandable to read. sorry beforehand, please let me share this article

Cara Mudah Mengobati Prurigo
Biaya Operasi Benjolan Di Leher Akibat Kelenjar Getah Bening
Cara Mengobati Cacar Air Agar Cepat Kering Dan Sembuh Tanpa Bekas
Cara Mengatasi Nyeri Ulu Hati Dan Perut Kembung Yang Terbukti Ampuh

risa icha said...

I am happy to be here and this wonderful article. I have found here lots of interesting information for my knowledge I need. all the details you provide to us, it was very helpful and useful, thanks for sharing this post.

khasiat obat herbal
Obat penyakit kulit
obat benjolan
toko obat herbal
sehatdancantikalami
risa herbal

easy your sustenance said...

I can only express a word of thanks. Because with the content on this blog I can add knowledge I, thank has been sharing this information. Do not forget to visit our website to share information and knowledge about health.
obat hidrokel di apotik
obat penyakit lichen planus
Hopefully sustenance will be easy and simplified in all matters :-)
PUSAT HERBAL TASIKMALAYA
Cara Mengobati Jampes