Comments (5)
All right -- I dug in and it looks like sendto is limited in scope and I misunderstood its purpose.
I'll document my findings here for the next person who has questions:
- sendto requires a confirmation byte (1) to be returned after each message.
- in the current build (0.67), sendto can only send binary format. You can read more about this format here: https://github.com/CCExtractor/ccextractor/blob/master/docs/BINARY_FILE_FORMAT.TXT
I'm likely going to need to fork ccextractor and modify the sendto functionality to send whatever the -out format is, since I don't want to have to write a binary transcript format parser in nodejs!
I'll leave this issue open for the next day or so in case a core contributor comes around and wants to weigh in. Otherwise I'll be closing this issue since sendto is functioning as coded.
from ccextractor.
This was added as part of last years GSoC by @rkuchumov, where the goal was to be able to capture the raw packets on one instance and decode it on another. I'm not sure what his plans are for this summer, but maybe he can help you out :)
On a sidenote, with a bit of luck it might be added in the near future (@kisselef seems to be working on something similar: okisseloff@bd050f6).
from ccextractor.
Thanks @wforums for the context! That makes complete sense; @kisselef let me know if there is any help I can provide, I don't want to redouble your effort. One thought on the referenced commit is that I wonder if there is a way to make -sendto do it all, rather than having two somewhat similar flags.
The use case I'm looking to support is to be able to specify a host/port pair to receive whatever output is specified (instead of a file or stdout). Maybe this would be something like -netout (or a modification of -o to take in network paths somehow?)
from ccextractor.
-tcp and -sendto use a protocol which goal is to send captions to the repository. This protocol supports a passwords and some additional information. That's why there are confirmation bytes. In the end, it sends data in BIN format which is decoded at the server side to TTXT, SRT, ...
If I understood you correctly, you want to send extracted cc data (in txt, srt) to a server, don't you? why not just: nc -l -p 2048
and ccextractor file -stdout -quiet -out=txt | nc 127.0.0.1 2048
?
from ccextractor.
@rkuchumov That's exactly what I'll do -- I just got sucked down a rabbit hole and didn't think beyond ccextractor. Thank you!
from ccextractor.
Related Issues (20)
- [BUG] CCExtractor 0.94 (Windows 10) crashes HOT 2
- QUESTION: Can't get MCC output to work with known good input HOT 1
- [QUESTION] How to extract a limited number of subs
- [BUG] CCextractor uses bashism in configure script HOT 7
- [QUESTION] Build in Alpine don't work after PR https://github.com/CCExtractor/ccextractor/pull/1535 HOT 1
- 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)
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.