Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extract subtitles and print them #95

Closed
dankamongmen opened this issue Dec 2, 2019 · 5 comments
Closed

Extract subtitles and print them #95

dankamongmen opened this issue Dec 2, 2019 · 5 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@dankamongmen
Copy link
Owner

Once we have video done, we ought grab subtitles and write them directly for a bit of extra pop. :D

@dankamongmen dankamongmen self-assigned this Dec 2, 2019
@dankamongmen dankamongmen added the enhancement New feature or request label Dec 2, 2019
@dankamongmen dankamongmen added this to the 1.0.0 milestone Dec 2, 2019
@dankamongmen
Copy link
Owner Author

There are much more important things to target for 1.0.0, methinks. Descheduling.

@dankamongmen dankamongmen removed this from the v1.0.0 milestone Dec 23, 2019
@dankamongmen dankamongmen added this to the 1.2.0 milestone Jan 30, 2020
@dankamongmen
Copy link
Owner Author

Term: 80x74 xterm-256color (xterm with 256 colors)
ASS Dialogue: 0,0:00:00.00,0:00:00.00,Default,,0,0,0,,>> mac: Just use 'em, dude.
ASS Dialogue: 0,0:00:00.00,0:00:00.00,Default,,0,0,0,,>> charlie: I'm not going to
ASS Dialogue: 0,0:00:00.00,0:00:00.00,Default,,0,0,0,,Wear gloves while I work!
ASS Dialogue: 0,0:00:00.00,0:00:00.00,Default,,0,0,0,,I'm sorry, it makes no sense.
ASS Dialogue: 0,0:00:00.00,0:00:00.00,Default,,0,0,0,,>> dennis: It absolutely makes
ASS Dialogue: 0,0:00:00.00,0:00:00.00,Default,,0,0,0,,Sense-- you're a janitor who
ASS Dialogue: 0,0:00:00.00,0:00:00.00,Default,,0,0,0,,Snakes toilets with his bare
ASS Dialogue: 0,0:00:00.00,0:00:00.00,Default,,0,0,0,,Hands.
ASS Dialogue: 0,0:00:00.00,0:00:00.00,Default,,0,0,0,,>> so my hands get a little
ASS Dialogue: 0,0:00:00.00,0:00:00.00,Default,,0,0,0,,Dirty from time to time.
ASS Dialogue: 0,0:00:00.00,0:00:00.00,Default,,0,0,0,,I appreciate the concern, but
ASS Dialogue: 0,0:00:00.00,0:00:00.00,Default,,0,0,0,,I'm fine.
ASS Dialogue: 0,0:00:00.00,0:00:00.00,Default,,0,0,0,,>> it's not for you!
ASS Dialogue: 0,0:00:00.00,0:00:00.00,Default,,0,0,0,,It's for us!
ASS Dialogue: 0,0:00:00.00,0:00:00.00,Default,,0,0,0,,>> dee: Use gloves!
ASS Dialogue: 0,0:00:00.00,0:00:00.00,Default,,0,0,0,,>> use gloves.
ASS Dialogue: 0,0:00:00.00,0:00:00.00,Default,,0,0,0,,>> frank: Oh, look at this.
ASS Dialogue: 0,0:00:00.00,0:00:00.00,Default,,0,0,0,,Check it out.
ASS Dialogue: 0,0:00:00.00,0:00:00.00,Default,,0,0,0,,The restaurant and bar
ASS Dialogue: 0,0:00:00.00,0:00:00.00,Default,,0,0,0,,Association's best bar award is
ASS Dialogue: 0,0:00:00.00,0:00:00.00,Default,,0,0,0,,Coming up.

sweet!

@dankamongmen
Copy link
Owner Author

So we're decoding these now. How exactly do we want to display them? Do we pass them back to the streamer callback function?

@dankamongmen
Copy link
Owner Author

Ooooh this really calls for CELL_ALPHA_HIGHCONTRAST.

dankamongmen added a commit that referenced this issue Jan 30, 2020
@dankamongmen
Copy link
Owner Author

notcurses-view now displays them atop the image, on the bottom. the default streamer does the same.

2020-01-30-082821_722x1417_scrot

dankamongmen added a commit that referenced this issue Jan 30, 2020
Get rid of annoying empty line in notcurses-view (and ncvisuals at offsets in general)
Implement most of the Selector widget. Need to add styling and scrolling still. #166
Reenable ubuntu focal build
Subtitles! We decode them, and display them in notcurses-view. If ncvisual_simple_streamer() is provided an extra ncplane, it will use it to display subtitles. #95
We now build Python by default, as things are working much better.
ncplane_set_base() now takes channel, attrword, and EGC, so you can usually avoid having to set up and release a cell. ncplane_set_base_cell() takes over duty from ncplane_set_base() for ease of conversion.
notcurses-demo and notcurses-view now both accept a 0 for delay multiplier, meaning 'go as fast as you possibly can'. Very small multipliers (e.g. 0.00001) no longer cause floating point exceptions.
fading routines no longer cause floating point exceptions on very small timescales.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant