-
Notifications
You must be signed in to change notification settings - Fork 422
-
Notifications
You must be signed in to change notification settings - Fork 422
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[PROPOSAL] Process closed captions and burned-in subtitles in one pass #726
Comments
A sample video: |
Is this issue still open? |
Yes.
…On Thu, Dec 21, 2017 at 1:31 PM, Saurabh Shah ***@***.***> wrote:
Is this bug still open?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#726 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AFrJ2XIVe6PF-RzKBicoO69Dsnp3Cj1Eks5tCk-kgaJpZM4MlmnX>
.
|
@cfsmp3 I would like to work on this. Can you please give me some tips for the solution? |
@thealphadollar First download the sample file we have for it, extract the subtitles in two passes (one for burned-in and one for closed captions), and then figure out how to do everything in one pass :-) |
@cfsmp3 After running ccextractor once on files like these, and having extracted the closed captions as well as hard subtitles, can you clarify if the result should be a single file with both closed captions and hard subtitles, or two separate files which contain the closed captions and hard subtitles respectively? |
The result needs to be a single file that contains both kind of subtitles.
…On Mon, Feb 26, 2018 at 5:37 AM, Saurabh Shah ***@***.***> wrote:
@cfsmp3 <https://github.com/cfsmp3> After running ccextractor once on
files like these, and having extracted the closed captions as well as hard
subtitles, can you clarify if the result should be a single file with both
closed captions and hard subtitles, or two separate files which contain the
closed captions and hard subtitles respectively?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#726 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AFrJ2dgOZXiH3_KVodUULZUKIeRc7oDmks5tYrOZgaJpZM4MlmnX>
.
|
Thanks for clarifying this @cfsmp3 . :-) |
I think we should add a new option, something like |
Yes, it's a good idea - we need the user to specify that he wants to
process both things, we cannot be looking for hard subs by default.
…On Mon, Feb 26, 2018 at 10:47 PM, Saurabh Shah ***@***.***> wrote:
I think we should add a new option, something like hcc (hard and closed
captions) or whatever name you suggest, which when given would process hard
subs and closed captions in one pass. What do you think?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#726 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AFrJ2fwYoKFpV-DvRRd7XSBz_4V7cAmKks5tY6T1gaJpZM4MlmnX>
.
|
Thanks, just wanted to be sure about it. Just to play the devil's advocate: If a user gives both the switches: |
If -hcc means both then do both :-)
I don't think -hardsubx and -hcc would be mutually exclusive since they're
not incompatible in their meaning.
…On Mon, Feb 26, 2018 at 11:20 PM, Saurabh Shah ***@***.***> wrote:
Thanks, just wanted to be sure about it. Just to play the devil's
advocate: If a user gives both the switches: -hardsubx and -hcc, should
we process both hard subs and closed captions? Basically, does -hcc takes
precedence over anything else(like -hardsubx)?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#726 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AFrJ2VOE7_pJN3wB2ujgSJ47ATheecEOks5tY6yxgaJpZM4MlmnX>
.
|
Yeah okay. That makes sense, thanks! |
@cfsmp3 What should be written to the output file if in a particular interval of time from t1 to t2, the video contains both hard subtitles and closed captions? Although such a scenario would be very rare, as you wouldn't normally have closed captions as well as hard subs having overlapping time intervals, but if it happens, what should be done in case of an overlap between the burned in and closed captions? Should it be like:
or
Or something else? |
Maybe check if they are the same (likely) and then display it just once. |
Those are just harmless warnings.
If you can play the file in VLC then assume the file is correct (which it
is) and that it's us who may have a problem.
…On Wed, Apr 11, 2018 at 9:03 PM, Shivam Kumar Jha ***@***.***> wrote:
@cfsmp3 <https://github.com/cfsmp3> I would request you to provide
another sample for the same since the sample provided gives error, log
report here <https://justpaste.it/1jiab>.
I'll look into the error by myself and, if needed, file an issue for the
same.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#726 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AFrJ2dPhOh45tlPEcj5nLmDicawXIDbCks5tntIkgaJpZM4MlmnX>
.
|
Update: This task gives ENOUGH points to qualify for GSoC. If you're proposal is good and your code to get this done gets merged, you're in. |
Does a approach where in the background two .srt files, for both cc and burned-in, are independently generated and are combined in the end using timestamp, via a single command from terminal, is outputted as a single file qualify? |
No. That's the lazy approach :-) |
Hi, I tried running the compiled source code on the examples with the command (in the build directory)
and I get the following set of failures
It seems to be a segmentation fault. I haven't yet looked at the source code and was just looking at basic input and output. Before I dive deep, is there something I'm doing very obviously wrong in running it on the test file? Any advice is appreciated. |
No, a segfault is never the user's fault :-) |
Hi, I ran a debug build on two different samples and received a segmentation fault in the same place. Given that I can't work on this issue until the segmentation faults are resolved, would it be more appropriate to start a new issue? Edit: interestingly enough, the fault happens at
and when that line is commented
causes the segmentation fault. both of which seem to be debug logs related. is it possible that my build is at fault here? |
Well, you can work on fixing that segfault, which seems trivial :-) I'd recommend to build it with debug info and run with valgrind. It will tell exactly what's going on. |
Hello, I feel that this proposal will require making a struct that is in some way a general form of Does that sound feasible right now? |
Maybe you can just pass both as needed instead of creating a new one?
Sure. Give it a go - there's several approaches, go with the one you feel more comfortable with, we can always iterate once you have something working. |
There's some subs that have both closed captions and burned-in subtitles. This happens typically when part of the audio is in English (which is closed captions so the viewers can enable/disable them) while part of the audio is in a different language, which is subtitled for everyone.
A very good example is the Americans, in which a good portion of the audio is in Russian.
This task gives ENOUGH points to qualify for GSoC. If you're proposal is good and your code to get this done gets merged, you're in.
The text was updated successfully, but these errors were encountered: