Giter VIP home page Giter VIP logo

Comments (5)

anshul1912 avatar anshul1912 commented on May 14, 2024

Which version are you using I am getting correct output.

I am using git version from here.

from ccextractor.

MikaYuoadas avatar MikaYuoadas commented on May 14, 2024

Same here, I'm on latest commit (b95e06c).

I've started looking a bit at the code and it looks like it should only affect dvb_teletext subtitles.
It looks like it's around line 632 in file src/lib_ccx/telxcc.c: the switch only has a a CCX_OF_TRANSCRIPT and a default to srt.

I'm getting a more correct output by adding another case for smptett like this:

case CCX_OF_SMPTETT:
    timestamp_to_smptetttime(page->show_timestamp, timecode_show);
    timestamp_to_smptetttime(page->hide_timestamp, timecode_hide);
    if (ctx->wbout1.fh!=-1)
        fdprintf(ctx->wbout1.fh, "      <p region=\"speaker\" begin=\"%s\" end=\"%s\">%s</p>\n", timecode_show, timecode_hide, page_buffer_cur);

But this quick & dirty fix duplicate existing code to generate smptett and doesn't handle line ending correctly (the -lf param is completly ignored).

from ccextractor.

anshul1912 avatar anshul1912 commented on May 14, 2024

can you share your video file, I will look at it.

It seems teletext code is untouched from decades.
Actually correct solution would be not to write anything in the output file, We should pass decoder subtitle and things should be written there. If you look for dvb_subtitle and 608 things are like that.
and that decode sub context must be passed to encoder.

Now at time of initialization encoder writes the header and footer correctly, but it never gets the decode packet so that it can handle it.

and last question are you willing to contribute this in ccextractor.

from ccextractor.

MikaYuoadas avatar MikaYuoadas commented on May 14, 2024

I'd like to, but unfortunately I don't have the time right now to do it correctly.

from ccextractor.

MikaYuoadas avatar MikaYuoadas commented on May 14, 2024

Forgot to close this ticket when PR #123 was merged.

from ccextractor.

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.