[FIX] Handle row_count decrease
In raising this pull request, I confirm the following (please check boxes):
- [x] I have read and understood the contributors guide.
- [x] I have checked that another pull request for this purpose does not exist.
- [x] I have considered, and confirmed that this submission will be valuable to others.
- [x] I accept that this submission may not be used, and the pull request closed at the will of the maintainer.
- [x] I give this submission freely, and claim no ownership to its content.
- [x] I have mentioned this change in the changelog.
My familiarity with the project is as follows (check one):
- [ ] I have never used CCExtractor.
- [ ] I have used CCExtractor just a couple of times.
- [x] I absolutely love CCExtractor, but have not contributed previously.
- [ ] I am an active contributor to CCExtractor.
We found ccextractor cannot handle row_count decreasing well. When row count decreases, the upper row should be displaced while the bottom row should be kept. Before the fix, the srt is like this:
104
00:04:05,795 --> 00:04:06,295
{\an4}A roll-up caption's depth
105
00:04:07,296 --> 00:04:07,330
{\an4}A roll-up caption's depth
106
00:04:08,264 --> 00:04:08,297
{\an4}A roll-up caption's depth
107% | 04:11
00:04:08,298 --> 00:04:12,034
{\an2}A roll-up caption's depth
displayed, like this.
108% | 04:14
00:04:12,068 --> 00:04:14,770
{\an5}(CC1) Demonstration of
paint-on style captions:
After the fix, the srt is like this:
104
00:04:05,795 --> 00:04:06,295
{\an4}A roll-up caption's depth
105
00:04:07,296 --> 00:04:07,330
{\an4}A roll-up caption's depth
can be decreased after
106
00:04:08,264 --> 00:04:08,297
{\an2}can be decreased after
the caption has been
107% | 04:11
00:04:08,298 --> 00:04:12,034
{\an2}the caption has been
displayed, like this.
108% | 04:14
00:04:12,068 --> 00:04:14,770
{\an5}(CC1) Demonstration of
paint-on style captions:
The cea708 log of the original ccExtractor is included here: 708.log
The cea708 log of the fixed ccExtractor is included here: new_708.log
Expected captions:
LGTM, but be aware that since we are migrating to Rust it's possible this change gets lost if not ported.
Hi, can you please rebase so we could check the regression tests. Thanks
CCExtractor CI platform finished running the test files on linux. Below is a summary of the test results, when compared to test for commit 39e051b...:
| Report Name | Tests Passed |
| Broken | 13/13 |
| CEA-708 | 13/14 |
| DVB | 7/7 |
| DVD | 3/3 |
| DVR-MS | 2/2 |
| General | 27/27 |
| Hauppage | 3/3 |
| MP4 | 3/3 |
| NoCC | 10/10 |
| Options | 85/86 |
| Teletext | 21/21 |
| WTV | 13/13 |
| XDS | 34/34 |
NOTE: The following tests have been failing on the master branch as well as the PR:
- ccextractor --service 1 --out=txt f17524b53f..., Last passed:
Never
- ccextractor --unicode c83f765c66..., Last passed:
Never
All tests passing on the master branch were passed completely.
Check the result page for more info.
CCExtractor CI platform finished running the test files on windows. Below is a summary of the test results, when compared to test for commit a34ba0f...:
| Report Name | Tests Passed |
| Broken | 13/13 |
| CEA-708 | 13/14 |
| DVB | 4/7 |
| DVD | 3/3 |
| DVR-MS | 2/2 |
| General | 27/27 |
| Hauppage | 3/3 |
| MP4 | 3/3 |
| NoCC | 10/10 |
| Options | 86/86 |
| Teletext | 21/21 |
| WTV | 10/13 |
| XDS | 34/34 |
Your PR breaks these cases:
- ccextractor --service 1 --out=txt f17524b53f...
NOTE: The following tests have been failing on the master branch as well as the PR:
- ccextractor --stdout --quiet --no-fontcolor 79a51f3500..., Last passed:
Never
- ccextractor --stdout --quiet --no-fontcolor 767b546f96..., Last passed:
Never
- ccextractor --autoprogram --out=srt --latin1 --quant 0 85271be4d2..., Last passed:
Never
- ccextractor --out=srt --latin1 f23a544ba8..., Last passed:
Never
- ccextractor --out=srt --latin1 10f0f77cf4..., Last passed:
- ccextractor --out=srt --latin1 df3b4d62d3..., Last passed:
Never
It seems that not all tests were passed completely. This is an indication that the output of some files is not as expected (but might be according to you).
Check the result page for more info.