the best way for subtitles on a video?

Mar 23, 2011 at 6:00pm

the best way for subtitles on a video?

hello,
I know well that my question isn’t a real question without other elements.

I need to subtitle dynamically a video.
The parsing system of .srt inside a coll works very fine.
I’m using a jit.lcd in order to display subtitles, process the result through an alpha blend like in the picture

I’m doing the stuff like that:
[qmetro 20]
|
|
[jit.qt.movie]
|
|
[jit.lcd]—[qmetro 20]
|
|
[jit.pwindow]

Basically, I have the whole system working.

BUT
the main problem is the quality when I update subtitles.
sometimes, it flickrs a bit…
Of course, I fire messages for EACH frame to re-display the subtitle because the system is done like that :-(

the whole system:
[attachment=157375,1968]

the part where the main movie is linked to jit.lcd and where the whole subtitle system is.
[attachment=157375,1969]
the 2 connections coming from the left just bang each on each frame change!

I guess the logic is ok but the lcd/alphablend/qmovie objects are not well architectured/organized.
The thing should be done on another way.

any help would be very appreciate!

Attachments:
  1. abstractSubtitler.png
#55769
Mar 24, 2011 at 11:15am

another way to better ask what I’d need:

can I use jit.alphablend & jit.lcd more like in the tutorial 29 BUT with a solid color ? (and not like in the tutorial, where the letters are not in solid color, but kind of “added” or “multiply” or whatever with the color of the background)

any help would be VERY appreciate!

#200509
Mar 24, 2011 at 3:21pm

hello,
it seems I just solved that by… being a little smarter than before :-/

[jit.op @op +] is very enough to make a “+” operation on the two matrices:
- the initial movie
- the LCD text generated with jit.lcd

Now, another problem: the character encoding (I guess)
The right word is : Subtìtulo

check that:

Any ideas ???

[attachment=157449,1972]

Attachments:
  1. testAbstractionDisplaySubtitles.png
#200510
Mar 24, 2011 at 11:32pm

i think is something about the ascii character encoding of your system… im getting correctly displayed “subtìtulo”
from a normal message box to a lcd..
good luck!

#200511
Mar 25, 2011 at 8:54am

hi carsol,
thanks for your feedback
my system is just windows 7
photoshop,indesign and all the other display very well ì & other characters.

how can I trouble shoot that?

#200512
Mar 25, 2011 at 11:34am

Ok I found the trick.
It was (just) the method to fire messages to jit.lcd (& jit.gl.text2d) which wasn’t good!
I had some from/to symbols mismatch!

now, I’ll ask another question in another thread about jit.lcd vs jit.gl.text2d differencies around:
- quality
- cpu consumption

thanks again!

#200513

You must be logged in to reply to this topic.