Hello,
I want to use .srt (subRipTile) or SSA (SubStation Alpha) to add subtitles on video.
I know that Quicktime pro let see a movie with srt subtitle. The srt subtitle must have the same name with the movie in the same folder.
Jit.qt.movie uses Quicktime so we can use srt .
But i only have the free version of Quicktime which don't work with subtitles.
Is there an other solution to do it?
Best regards
Use .srt (subRipTile) or SSA (SubStation Alpha)
→7 posts by 2 people-
1 month ago
-
Hello,
I have try with quicktime pro but it don't work.
I suppose that i should use Perian but it only work on Mac and i'm on Windows.
Is there an other way to use .srt (subRipTile) or SSA (SubStation Alpha) to add subtitles on video.
Is my question right or not?
Because nobody answer to me.
Have a nice day.1 month ago -
I'm pretty sure I'm correct in saying that jit.qt.movie doesn't provide any particular help to you in dealing with .srt files, but you can write a program that synchronizes a .mov with a .srt. The .srt format is just plain text and very simple to parse. I think you could build your own in roughly the following way.
Use the text object or the js object to read in the .srt file. The js object would be my choice because you could also use it to parse the file, translate the timecode into QT timescale units, etc. Load the .mov into jit.qt.movie and query its timescale units with the 'gettimescale' message. You'll need to use that value in order to convert the .srt timings into timescale units. As you play a .mov file in jit.qt.movie, you would need to continually poll its current time (in its native timescale units) by sending it the 'time' message. When the movie time equals or surpasses the start time of a subtitle, trigger the display of that subtitle, and when the time equals or surpasses the stop time of the subtitle trigger the end of the display of that subtitle and start looking to display the next one. By "trigger the display" I mean write the text of the subtitle into a jit.lcd object then composite that on top of the movie (using jit.op @op + or jit.alphablend), or another way would be to write the text into jit.gl.text2d and render that on top of a jit.gl.videoplane that is showing the movie.
I guess that's a verbose and complicated explanation. I don't have time to write an example program, so I hope it's clear. I don't think it's hard to do, but you do pretty much need to build it from scratch, I fear.
1 month ago -
Thank you Christopher, now i see a way to do it.
Best regards.1 month ago -
Hello,
I have made a patcher but i'm lost to convert the srt file and to synchronise it with the video.
Am i on the right way?
Can someone help me?
Here is my patcher and my srt file:----------begin_max5_patcher----------
2978.3oc0cs0aaiiE94L.y+Ahf9zhTWdmTC1cA1+CK1WVLnPwVIUcrsbkjSa
mA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R
dZlrboMUPBpznQaCBabdblS0g.bOWUybRbCqDIRAEFNwQVpDmLNwcgCR+KIJ
SqAoiSGmXGXgHqR3wYRMHOfcD276MBIHOfIww7.IH+3d9PXYQb3HkWtfhWMN
JRngELMMdogfNHwEmjFRBB4XwYZkETpuH53MsNr2bwYZkFVZHhStf4gwyEoj
FJBKhUYrxoYXNzITQxDVRXw6GGEJtc9oPHO7fBFqK1VT1r7Vr0qCuhwTTgv9
JIIQZ2thHOsk6ex3gPvtVfRHwqDDga6MhP8+Tl060X5UJNEKEtecdnqj1cbr
tWGH9KZ3HTLX+EPwe0YBDuBqoLAyN2wY1en.buhPTNz9RyhXpaVT17i0Kqyo
.MfCyFnJR91X2VqFtFKuXTLL4QnRCOdylUEWQ5ButSABdCL+jhkM6tblY28+
zBehc2dJPCXcXCX0x19gdxse.DbmD93IVZWBf7hjuXZRXwmfiH5MbNrzjHRd
zvHuHjiM69CWHn2nM7RHIDmULpdESK0bxMmTr930.ZPvCaPDojOnCy7llGIq
ugkDXgLRjGOrHUiU9QBKclJ937cgiUZtyiElz9R6qvN2XFv2kFmUTL+B303x
7oSmuxh9BV9YK8shv55SYjRfaXoWFGo9gBqVtkimhwKYhirjIN8Rl3RVxDmb
ISb7kLww9oG4nQp5stewyWxjGIbxKB8oRXsMvK3AlsfABxcwHEpeRXPWb36T
yDxYuf4v+Gf2zNiC
-----------end_max5_patcher-----------Have a nice day.
1 month ago -
Hello,
Is my question poorly worded?
Have a nice day.4 weeks ago -
Christopher,
A little help for the JS Object?
Best regards3 weeks ago
Reply
You must log in to post.