mirror of
https://github.com/CCExtractor/ccextractor.git
synced 2026-02-03 21:23:48 +00:00
[PROPOSAL] Add WebVTT output from Matroska #298
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Izaron on GitHub (Mar 20, 2017).
Please prefix your issue with one of the following: [BUG], [PROPOSAL], [QUESTION].
CCExtractor version (using the --version parameter preferably) : 0.85
In raising this issue, I confirm the following (please check boxes, eg [X]):
My familiarity with the project is as follows (check one, eg [X]):
Necessary information
ccextractor test_t.mkvVideo links
test_t.mkv
Additional information
Given a video (test_t.mkv) that contains one WebVTT subtitle file with name "Some subs lol" and language "nob", and many SRT files.
The task is to add WebVTT extraction. You can also use this argument
ccextractor test_t.mkv -mkvlang nobfor simple debugging.Sourse WebVTT subs - link
We already have printing of header - in
test_t_nob.vttthere are subtitle file header.Step-by-step:
BlockAddition's content(read in specs https://www.matroska.org/technical/specs/subtitles/webvtt.html) - rewrite this code https://github.com/CCExtractor/ccextractor/blob/master/src/lib_ccx/matroska.c#L309 (this content is skipped in current master) and save in track's structure. For rewriting this part of code read https://www.matroska.org/technical/specs/index.html (searchBlockAdditions- you should readBlockAdditional)BlockAddition's contentfor getting source WebVTT file.Tips: use program
mkvinfofor reading structures positions in bytes, and useget_current_byte(FILE* file)in debugging for reading current byte position.@Izaron commented on GitHub (Mar 20, 2017):
GSoC: This issue gives 5 qualification points. (For good PR. Because it's really hard for a newcomers)
@LucasYoung commented on GitHub (Mar 28, 2017):
Hi, I've started working on this proposal. It appears that the link to the source of the WebVTT subs for the test is broken.