You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I recently noticed that when running ccextractor with negative -delay arguments, I get no output in the SRT file. This used to work for me without any issues. I ran a git-bisect to figure out which commit changed the behavior, and found it was this one:
It seems the issue is that sub->start_time is always negative. Every time encode_sub is called, sub->start_time is decremented by 1400 (-delay -1400). Nothing else seems to be setting / modifying that value. If I comment out the if check, then I get correct output again.
I am happy to try submitting a PR to fix this, but I would need a little guidance on the intended behavior and what changes (if any?) would be desired.
Thanks!
The text was updated successfully, but these errors were encountered:
CCExtractor version: Latest master branch
In raising this issue, I confirm the following:
Necessary information
./ccextractor -delay -1400 jeopardy-s37e99-srtissue.ts
Video links
Additional information
I recently noticed that when running
ccextractor
with negative-delay
arguments, I get no output in the SRT file. This used to work for me without any issues. I ran a git-bisect to figure out which commit changed the behavior, and found it was this one:#1167
I did a little debugging and found that nothing is being printed because of this if check in
ccx_encoders_common::encode_sub
It seems the issue is that
sub->start_time
is always negative. Every timeencode_sub
is called,sub->start_time
is decremented by 1400 (-delay -1400
). Nothing else seems to be setting / modifying that value. If I comment out the if check, then I get correct output again.I am happy to try submitting a PR to fix this, but I would need a little guidance on the intended behavior and what changes (if any?) would be desired.
Thanks!
The text was updated successfully, but these errors were encountered: