Comments (5)
Which version are you using I am getting correct output.
I am using git version from here.
from ccextractor.
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.
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.
I'd like to, but unfortunately I don't have the time right now to do it correctly.
from ccextractor.
Forgot to close this ticket when PR #123 was merged.
from ccextractor.
Related Issues (20)
- Error compile ,got an error canot find png.h
- Need instructions to build ccx_rust.lib
- /../lib_ccx/hardsubx.h:9:10: fatal error: 'libavcodec/avcodec.h' file not found, err: true
- [BUG] Processing ends prematurely at 9:43:00
- How to even build the whole software from the repo HOT 1
- read AVPacket instate of file media
- [BUG] Regression bug causing ccextractor 0.94 to crash HOT 6
- [BUG] Issue 1077 Still lives
- [QUESTION] Need help with dependencies for Windows 11 to extract hard subtitles
- BUG: ccextractor 0.94 cannot find dvb subtitles, vlc works fine... HOT 1
- [BUG] brew.sh formula no longer available HOT 3
- [BUG] Error: Broken AVC stream on Twitch.tv stream file HOT 4
- [PROPOSAL]: Snap package for `ccextractor` HOT 2
- [QUESTION] make_error: gpac/isomedia.h: No such file or directory HOT 3
- [BUG] ccextractor skips many captions (CEA-708)
- require a nix.flake file
- [DOCS] Dependencies not installed for fedora HOT 3
- [BUG] Subtitles not extracted from Twitch stream HOT 1
- Message#error HOT 1
- [QUESTION] Unexpected behavior of `get_write_interval` HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ccextractor.