mirror of
https://github.com/CCExtractor/ccextractor.git
synced 2026-02-14 13:35:43 +00:00
[BUG] No output for mpegts to srt with negative -delay settings #651
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 @mass on GitHub (Jul 28, 2021).
CCExtractor version: Latest master branch
In raising this issue, I confirm the following:
Necessary information
./ccextractor -delay -1400 jeopardy-s37e99-srtissue.tsVideo links
Additional information
I recently noticed that when running
ccextractorwith negative-delayarguments, 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:https://github.com/CCExtractor/ccextractor/pull/1167
I did a little debugging and found that nothing is being printed because of this if check in
ccx_encoders_common::encode_subIt seems the issue is that
sub->start_timeis always negative. Every timeencode_subis called,sub->start_timeis 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!
@PunitLodha commented on GitHub (Nov 19, 2021):
This was fixed recently. You can try compiling the code from the master branch
@mass commented on GitHub (Nov 20, 2021):
I can confirm this is fixed for me now when running the latest master branch version. Thanks!