Forums > Jitter

the best way for subtitles on a video?

March 23, 2011 | 6:00 pm

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

March 24, 2011 | 11:15 am

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!


March 24, 2011 | 3:21 pm

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

March 24, 2011 | 11:32 pm

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!


March 25, 2011 | 8:54 am

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?


March 25, 2011 | 11:34 am

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!


Viewing 6 posts - 1 through 6 (of 6 total)