Coder Social home page Coder Social logo

Comments (35)

jcdr428 avatar jcdr428 commented on June 30, 2024 1

@darekpro yes this is the same for Windows. We might look at this in the future, in the meantime you can convert your srt to BD sup with easySUP which works very well.

from tsmuxer.

jcdr428 avatar jcdr428 commented on June 30, 2024 1

@darekpro Just to be sure... this is the build https://github.com/jcdr428/tsMuxer/suites/406472859/artifacts/1185098

from tsmuxer.

jcdr428 avatar jcdr428 commented on June 30, 2024 1

@darekpro new try... https://github.com/jcdr428/tsMuxer/suites/417185880/artifacts/1305874

from tsmuxer.

jcdr428 avatar jcdr428 commented on June 30, 2024 1

@darekpro what's the name of these fonts giving bad results ?

from tsmuxer.

jcdr428 avatar jcdr428 commented on June 30, 2024 1

@darekpro so it is not perfect but definitely looking better ;)

from tsmuxer.

jcdr428 avatar jcdr428 commented on June 30, 2024 1

@darekpro hopefully with this one, it will look even better https://github.com/jcdr428/tsMuxer/suites/417290642/artifacts/1307079

from tsmuxer.

justdan96 avatar justdan96 commented on June 30, 2024 1

Nice to see some progress!

from tsmuxer.

justdan96 avatar justdan96 commented on June 30, 2024

Is this an issue with the kerning or something? Can we try it out with a few different fonts to check it is an issue with the renderer?

from tsmuxer.

jcdr428 avatar jcdr428 commented on June 30, 2024

@justdan96 Windows version doesn't use freetype, but seems to me that in textSubtitlesRenderFT.cpp :
line 588 pen.x += face->glyph->advance.x >> 6;
line 593 mSize->cx = pen.x + face->glyph->bitmap_left;

the glyph left side bearing bitmap_left is already included in advance.x so is added twice.
Try change to mSize->cx = pen.x;
Same for line 540.

Edit: same for the underline thickness m_line_thickness, I can't see why it would need to be added to the horizontal advance.

from tsmuxer.

jcdr428 avatar jcdr428 commented on June 30, 2024

@darekpro please try my latest build https://github.com/jcdr428/tsMuxer/actions and report.
I haven't tried it as I am on Windows.

from tsmuxer.

darekpro avatar darekpro commented on June 30, 2024

Hmm I don't see any difference still problem with space between letters, no shadow and bad looking edges
1_00:01:05 142

from tsmuxer.

darekpro avatar darekpro commented on June 30, 2024

Helvetica font
1_00:01:04 979

from tsmuxer.

justdan96 avatar justdan96 commented on June 30, 2024

I wonder what happens if you use a fixed width font like GNU Freefont Mono?

from tsmuxer.

jcdr428 avatar jcdr428 commented on June 30, 2024

@darekpro thanks. Could you please try latest build (88b9561) https://github.com/jcdr428/tsMuxer/actions

from tsmuxer.

darekpro avatar darekpro commented on June 30, 2024

@jcdr428 one sec
Zrzut ekranu z 2020-01-17 15-50-30
Zrzut ekranu z 2020-01-17 15-52-00

from tsmuxer.

jcdr428 avatar jcdr428 commented on June 30, 2024

@darekpro this is the latest build 88b9561 ? It was created only 7 min. ago.

from tsmuxer.

darekpro avatar darekpro commented on June 30, 2024

No no this is screen with mono fonts :)

from tsmuxer.

darekpro avatar darekpro commented on June 30, 2024

@jcdr428 you know what.. I use pamac to rebuild tsmuxer and you change not main repo right? I dont know how to manual build .. ;/

from tsmuxer.

justdan96 avatar justdan96 commented on June 30, 2024

You could edit the PKGBUILD yourself and then run makepkg - or try the binary made in output of the GitHub Actions on @jcdr428's repo.

from tsmuxer.

darekpro avatar darekpro commented on June 30, 2024

How :) ?
Zrzut ekranu z 2020-01-17 16-19-10

from tsmuxer.

jcdr428 avatar jcdr428 commented on June 30, 2024

So all these pictures were not my build ?
Just go to https://github.com/jcdr428/tsMuxer/actions , click on the top "Build for linux", click on "Artifacts" at the top right, download "tsMuxer"

from tsmuxer.

darekpro avatar darekpro commented on June 30, 2024

Yes sorry... I downloaded pack from here https://bintray.com/justdan96/tsMuxer/tsMuxerGUI-Nightly/2020-01-17--01-10-08#files and replaced file from https://github.com/jcdr428/tsMuxer/actions
I hope I use now latest version :)

1_00:01:04 940

from tsmuxer.

darekpro avatar darekpro commented on June 30, 2024

Yes :)

from tsmuxer.

darekpro avatar darekpro commented on June 30, 2024

progress :)
1_00:01:05 023

1_00:01:06 984

from tsmuxer.

darekpro avatar darekpro commented on June 30, 2024

I use Helvetica looks good
1_00:01:08 354

from tsmuxer.

darekpro avatar darekpro commented on June 30, 2024

Now much better!
1_00:01:04 986

So one problem less but still no shadows and I noticed also problem with color change:
Zrzut ekranu z 2020-01-23 22-30-57
1_00:01:05 607
transparent wtf :)

from tsmuxer.

jcdr428 avatar jcdr428 commented on June 30, 2024

@darekpro what "Color" number have you entered in your example ? If you have entered e.g. #b1b2b3b4, the first three digits b1 b2 b3 are the Red Green Blue values, and the last one b4 is the transparency -which should remain ff if you want 100% opacity.

from tsmuxer.

darekpro avatar darekpro commented on June 30, 2024

I don't enter numbers i just use slide bar like on screen
I used this color:
73025516-07e4aa00-3e30-11ea-87d1-48165a59e89e

from tsmuxer.

darekpro avatar darekpro commented on June 30, 2024

Zrzut ekranu z 2020-01-24 10-32-24
check this one
Zrzut ekranu z 2020-01-24 10-32-32
1_00:01:11 320

from tsmuxer.

justdan96 avatar justdan96 commented on June 30, 2024

It looks like to enable transparency for QColorDialog we need to use QColorDialog::ShowAlphaChannel.

So for that I believe we could change this line:

color = QColorDialog::getColor(color, this);

To:

color = QColorDialog::getColor(color, this, QString("Select Color"), QColorDialog::ShowAlphaChannel);

from tsmuxer.

jcdr428 avatar jcdr428 commented on June 30, 2024

@justdan96 actually there is already transparency on the subtitles. But the transparency is applied on the whole subtitle instead of being applied on the outer border only.

from tsmuxer.

justdan96 avatar justdan96 commented on June 30, 2024

Oh I thought the alpha slider was missing from the dialog.

from tsmuxer.

justdan96 avatar justdan96 commented on June 30, 2024

Should we leave this one open to track remaining issues with subtitles or is this a "good enough" fix?

from tsmuxer.

jcdr428 avatar jcdr428 commented on June 30, 2024

@justdan96 The fix has solved the irregular spacing between letters. It hasn't solved the lack of border or transparency problem raised by darekpro.
Maybe we can close this issue and open a specific one for border/transparency.

from tsmuxer.

justdan96 avatar justdan96 commented on June 30, 2024

Will close this one, if anyone is still concerned they can create a new issue for the border and transparency visual.

from tsmuxer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.