ratwithacompiler / OBS-captions-plugin

Closed Captioning OBS plugin using Google Speech Recognition
GNU General Public License v2.0
1.04k stars 69 forks source link

Open Captions typeface size is highly variable #59

Open dopeghoti opened 3 years ago

dopeghoti commented 3 years ago

I am looking into this plugin and it looks quite potentially useful, but I am leaning toward open, rather than closed captions. However, there is something of a distracting effect on the GDI Text source the caption plugin feeds, whereby the first few words spoken will appear quite large in the text source in the scene, thus: image and only eventually look more normally-sized as more words are transcribed: image

Is this a shortcoming of the plugin that can be worked around, or am I missing something that I should have already seen in the settings of the Text Source in the Scene I am using to test Open Captions?

willlllllio commented 3 years ago

I can't really reproduce that on my side, the text is always the same size for me regardless of the amount of words for a default GDI Text source. Do you have some bounds scaling set in the transform settings or something like that, that's the only way I can get that behavior?

dopeghoti commented 3 years ago

Nothing too outlandish that I can think of on the Text Capture source: image No special Filters on the Source either.

basketdog commented 1 year ago

Hi, just wanted to state that I was having the same issue with text scaling, but think I know what was happening. I'm on OBS version 29.1.2.

What I did to solve: -Add video source to be captioned (just a recording of a past livestream, something with text) -Setup closed captions as usual. Formatted how I prefer them. -Created GDI Text source. For whatever reason, the default seems to be 1px wide and I have no idea how many pixels tall. I tried manually rescaling the width and dragging up the text source, but I gave up before reaching the bottom. This is what led me to transform the source with 'fit to screen' in the first place, and the scaling/transforming of this source is what is causing these issues. -Right clicked Text source -> transform -> fit to screen -Set Open Captions destination as my text source. At this point, I was seeing the font alteration issue. -Right clicked text source -> transform -> reset transformation -At this point, the size of the source should be dictated by the font size. It was overly large for my surface (1920x1080), but was actually manageable to rescale by dragging a corner point, but best practice is still probably choosing a proper font size for your line length and output resolution. -No more text rescaling!

Once you see that the source itself is dynamically scaling, it becomes super obvious why constraining the text box in any way was causing the issue.

seascape commented 3 months ago

Thanks @basketdog! Beautifully explained and completely solved that same issue for me.

I, too, was like "why is the text source the size of a quantum dot?" when I first created it, and tried to reset the transform to be something more sensible. The correct procedure was counterintuitive.