[BUG] Output Type webvtt prints styling #486

Open
opened 2026-01-29 16:45:10 +00:00 by claunia · 0 comments
Owner

Originally created by @ggnull35 on GitHub (Feb 22, 2019).

Please prefix your issue with one of the following: [BUG], [PROPOSAL], [QUESTION].

CCExtractor version (using the --version parameter preferably) : git master

In raising this issue, I confirm the following (please check boxes, eg [X] - and delete unchecked ones):

  • I have read and understood the contributors guide.
  • I have checked that the bug-fix I am reporting can be replicated, or that the feature I am suggesting isn't already present.
  • I have checked that the issue I'm posting isn't already reported.
  • I have checked that the issue I'm porting isn't already solved and no duplicates exist in closed issues and in opened issues
  • I have checked the pull requests tab for existing solutions/implementations to my issue/suggestion.
  • I have used the latest available version of CCExtractor to verify this issue exists.

My familiarity with the project is as follows (check one, eg [X] - and delete unchecked ones):

  • I have never used CCExtractor.
  • I have used CCExtractor just a couple of times.
  • I absolutely love CCExtractor, but have not contributed previously.
  • I am an active contributor to CCExtractor.

Necessary information

  • Is this a regression (did it work before)? [ ] NO | [ ] YES - please specify the last known working version
  • What platform did you use? [x] Windows - [ ] Linux - [ ] Mac
  • What were the used arguments? -autoprogram

**Video links (replace text below with your links) **

Please make the affected input file available for us (no screenshots, those don't help!). Public links to Dropbox, Google Drive, etc, are all fine. If it is not possible to make it available publicly, send us a private invitation (both Dropbox and Google Drive allow that). In this case we will download the file and upload it to the private developer repository.

Do not upload your file to any location that will require us to sign up or endure a wait list, slow downloads, etc. If your upload expires make sure you keep it active somehow (replace links if needed). Keep in mind that while we go over all tickets some may take a few days, and it's important we have the file available when we actually need it.

Additional information

{issue content here, replace this line with your issue content}

PS: Make sure you set an alert in GitHub so you get notifications about your ticket. We may need to ask questions and we do everything inside GitHub's system.


This command prints styling:
ccextractorwinfull.exe -stdout -ff -webvtt -quant 0 -noru -trim -lf -nots -nobom -nofc -quiet c:\Users\ASUS\Desktop\ScreenHD60sec_ENG.ts

Normally webvtt-full should be printing styling, not webvtt. They have both same output.

C:\Tools\ccextractor\windows\Debug-Full>ccextractorwinfull.exe -stdout -ff -webvtt -quant 0 -noru -trim -lf -nots -nobom -nofc -quiet c:\Users\ASUS\Desktop\ScreenHD60sec_ENG.ts
WEBVTT

STYLE

/* default values /
::cue {
line-height: 5.33vh;
font-size: 4.1vh;
font-family: monospace;
font-style: normal;
font-weight: normal;
background-color: black;
color: white;
}
/
special cue parts /
::cue(c.transparent) {
color: transparent;
}
/
need to set this before changing color, otherwise the color is lost /
::cue(c.semi-transparent) {
color: rgba(0, 0, 0, 0.5);
}
/
need to set this before changing color, otherwise the color is lost /
::cue(c.opaque) {
color: rgba(0, 0, 0, 1);
}
::cue(c.blink) {
text-decoration: blink;
}
::cue(c.white) {
color: white;
}
::cue(c.red) {
color: red;
}
::cue(c.green) {
color: lime;
}
::cue(c.blue) {
color: blue;
}
::cue(c.cyan) {
color: cyan;
}
::cue(c.yellow) {
color: yellow;
}
::cue(c.magenta) {
color: magenta;
}
::cue(c.bg_transparent) {
background-color: transparent;
}
/
need to set this before changing color, otherwise the color is lost /
::cue(c.bg_semi-transparent) {
background-color: rgba(0, 0, 0, 0.5);
}
/
need to set this before changing color, otherwise the color is lost /
::cue(c.bg_opaque) {
background-color: rgba(0, 0, 0, 1);
}
::cue(c.bg_white) {
background-color: white;
}
::cue(c.bg_green) {
background-color: lime;
}
::cue(c.bg_blue) {
background-color: blue;
}
::cue(c.bg_cyan) {
background-color: cyan;
}
::cue(c.bg_red) {
background-color: red;
}
::cue(c.bg_yellow) {
background-color: yellow;
}
::cue(c.bg_magenta) {
background-color: magenta;
}
::cue(c.bg_black) {
background-color: black;
}
/
Examples of combined colors */
::cue(c.bg_white.bg_semi-transparent) {
background-color: rgba(255, 255, 255, 0.5);
}
::cue(c.bg_green.bg_semi-transparent) {
background-color: rgba(0, 256, 0, 0.5);
}
::cue(c.bg_blue.bg_semi-transparent) {
background-color: rgba(0, 0, 255, 0.5);
}
::cue(c.bg_cyan.bg_semi-transparent) {
background-color: rgba(0, 255, 255, 0.5);
}
::cue(c.bg_red.bg_semi-transparent) {
background-color: rgba(255, 0, 0, 0.5);
}
::cue(c.bg_yellow.bg_semi-transparent) {
background-color: rgba(255, 255, 0, 0.5);
}
::cue(c.bg_magenta.bg_semi-transparent) {
background-color: rgba(255, 0, 255, 0.5);
}
::cue(c.bg_black.bg_semi-transparent) {
background-color: rgba(0, 0, 0, 0.5);
}

X-TIMESTAMP-MAP=MPEGTS:65442, LOCAL 00:00:00.000

00:00:10.000 --> 00:00:14.479
You are watching high-quality subtitles
from Screen Subtitling Systems.

00:00:14.600 --> 00:00:19.079
Screen products cover everything from
off-line subtitle preparation systems

00:00:19.200 --> 00:00:22.679
to mu|ti-|anguage, multi-channel,
fully automated transmission solutions.

00:00:22.800 --> 00:00:26.279
Our highly innovative product range
evolves constantly,

00:00:26.400 --> 00:00:30.399
giving our clients
the commercial advantage they need

00:00:30.520 --> 00:00:32.999
in today's highly competitive marketplace.

00:00:33.120 --> 00:00:38.599
Screen is committed to providing
the very best customer service -

00:00:38.720 --> 00:00:44.719
all our products are supported by a
dedicated 24-hour customer support team.

Originally created by @ggnull35 on GitHub (Feb 22, 2019). Please prefix your issue with one of the following: [BUG], [PROPOSAL], [QUESTION]. CCExtractor version (using the --version parameter preferably) : git master **In raising this issue, I confirm the following (please check boxes, eg [X] - and delete unchecked ones):** - [x] I have read and understood the [contributors guide](https://github.com/CCExtractor/ccextractor/blob/master/.github/CONTRIBUTING.md). - [x] I have checked that the bug-fix I am reporting can be replicated, or that the feature I am suggesting isn't already present. - [x] I have checked that the issue I'm posting isn't already reported. - [x] I have checked that the issue I'm porting isn't already solved and no duplicates exist in [closed issues](https://github.com/CCExtractor/ccextractor/issues?q=is%3Aissue+is%3Aclosed) and in [opened issues](https://github.com/CCExtractor/ccextractor/issues) - [ ] I have checked the pull requests tab for existing solutions/implementations to my issue/suggestion. - [x] I have used the latest available version of CCExtractor to verify this issue exists. **My familiarity with the project is as follows (check one, eg [X] - and delete unchecked ones):** - [ ] I have never used CCExtractor. - [x] I have used CCExtractor just a couple of times. - [ ] I absolutely love CCExtractor, but have not contributed previously. - [ ] I am an active contributor to CCExtractor. **Necessary information** - Is this a regression (did it work before)? [ ] NO | [ ] YES - *please specify the last known working version* - What platform did you use? [x] Windows - [ ] Linux - [ ] Mac - What were the used arguments? `-autoprogram` **Video links (replace text below with your links) ** Please make the affected input file available for us (no screenshots, those don't help!). Public links to Dropbox, Google Drive, etc, are all fine. If it is not possible to make it available publicly, send us a private invitation (both Dropbox and Google Drive allow that). In this case we will download the file and upload it to the private developer repository. Do *not* upload your file to any location that will require us to sign up or endure a wait list, slow downloads, etc. If your upload expires make sure you keep it active somehow (replace links if needed). Keep in mind that while we go over all tickets some may take a few days, and it's important we have the file available when we actually need it. **Additional information** {issue content here, replace this line with your issue content} PS: Make sure you set an alert in GitHub so you get notifications about your ticket. We may need to ask questions and we do everything inside GitHub's system. ------------- This command prints styling: ccextractorwinfull.exe -stdout -ff -webvtt -quant 0 -noru -trim -lf -nots -nobom -nofc -quiet c:\Users\ASUS\Desktop\ScreenHD60sec_ENG.ts Normally webvtt-full should be printing styling, not webvtt. They have both same output. C:\Tools\ccextractor\windows\Debug-Full>ccextractorwinfull.exe -stdout -ff -webvtt -quant 0 -noru -trim -lf -nots -nobom -nofc -quiet c:\Users\ASUS\Desktop\ScreenHD60sec_ENG.ts WEBVTT STYLE /* default values */ ::cue { line-height: 5.33vh; font-size: 4.1vh; font-family: monospace; font-style: normal; font-weight: normal; background-color: black; color: white; } /* special cue parts */ ::cue(c.transparent) { color: transparent; } /* need to set this before changing color, otherwise the color is lost */ ::cue(c.semi-transparent) { color: rgba(0, 0, 0, 0.5); } /* need to set this before changing color, otherwise the color is lost */ ::cue(c.opaque) { color: rgba(0, 0, 0, 1); } ::cue(c.blink) { text-decoration: blink; } ::cue(c.white) { color: white; } ::cue(c.red) { color: red; } ::cue(c.green) { color: lime; } ::cue(c.blue) { color: blue; } ::cue(c.cyan) { color: cyan; } ::cue(c.yellow) { color: yellow; } ::cue(c.magenta) { color: magenta; } ::cue(c.bg_transparent) { background-color: transparent; } /* need to set this before changing color, otherwise the color is lost */ ::cue(c.bg_semi-transparent) { background-color: rgba(0, 0, 0, 0.5); } /* need to set this before changing color, otherwise the color is lost */ ::cue(c.bg_opaque) { background-color: rgba(0, 0, 0, 1); } ::cue(c.bg_white) { background-color: white; } ::cue(c.bg_green) { background-color: lime; } ::cue(c.bg_blue) { background-color: blue; } ::cue(c.bg_cyan) { background-color: cyan; } ::cue(c.bg_red) { background-color: red; } ::cue(c.bg_yellow) { background-color: yellow; } ::cue(c.bg_magenta) { background-color: magenta; } ::cue(c.bg_black) { background-color: black; } /* Examples of combined colors */ ::cue(c.bg_white.bg_semi-transparent) { background-color: rgba(255, 255, 255, 0.5); } ::cue(c.bg_green.bg_semi-transparent) { background-color: rgba(0, 256, 0, 0.5); } ::cue(c.bg_blue.bg_semi-transparent) { background-color: rgba(0, 0, 255, 0.5); } ::cue(c.bg_cyan.bg_semi-transparent) { background-color: rgba(0, 255, 255, 0.5); } ::cue(c.bg_red.bg_semi-transparent) { background-color: rgba(255, 0, 0, 0.5); } ::cue(c.bg_yellow.bg_semi-transparent) { background-color: rgba(255, 255, 0, 0.5); } ::cue(c.bg_magenta.bg_semi-transparent) { background-color: rgba(255, 0, 255, 0.5); } ::cue(c.bg_black.bg_semi-transparent) { background-color: rgba(0, 0, 0, 0.5); } ## X-TIMESTAMP-MAP=MPEGTS:65442, LOCAL 00:00:00.000 00:00:10.000 --> 00:00:14.479 You are watching high-quality subtitles from Screen Subtitling Systems. 00:00:14.600 --> 00:00:19.079 Screen products cover everything from off-line subtitle preparation systems 00:00:19.200 --> 00:00:22.679 to mu|ti-|anguage, multi-channel, fully automated transmission solutions. 00:00:22.800 --> 00:00:26.279 Our highly innovative product range evolves constantly, 00:00:26.400 --> 00:00:30.399 giving our clients the commercial advantage they need 00:00:30.520 --> 00:00:32.999 in today's highly competitive marketplace. 00:00:33.120 --> 00:00:38.599 Screen is committed to providing the very best customer service - 00:00:38.720 --> 00:00:44.719 all our products are supported by a dedicated 24-hour customer support team.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/ccextractor#486