[FFmpeg-devel] Adding Rollup support in Closed caption

Anshul anshul.ffmpeg at gmail.com
Fri Feb 6 15:52:40 CET 2015


On 01/30/2015 08:49 AM, Anshul wrote:
> On January 30, 2015 4:23:08 AM IST, Michael Niedermayer <michaelni at gmx.at> wrote:
>> @@ -426,10 +466,13 @@ static int process_cc608(CCaptionSubContext
>> *ctx, int64_t pts, uint8_t hi, uint8
>>>           handle_delete_end_of_row(ctx, hi, lo);
>>>       } else if ( COR3(hi, 0x14, 0x15, 0x1C) && lo == 0x25 ) {
>>>           ctx->rollup = 2;
>>> +        ctx->mode = CCMODE_ROLLUP_2;
>>>       } else if ( COR3(hi, 0x14, 0x15, 0x1C) && lo == 0x26 ) {
>>>           ctx->rollup = 3;
>>> +        ctx->mode = CCMODE_ROLLUP_3;
>>>       } else if ( COR3(hi, 0x14, 0x15, 0x1C) && lo == 0x27 ) {
>>>           ctx->rollup = 4;
>>> +        ctx->mode = CCMODE_ROLLUP_3;
>> is this intended to be CCMODE_ROLLUP_3 instead of CCMODE_ROLLUP_4 ?
>>
>> also do you have a file to test this and the other patches ?
>>
>> thanks
>>
>> [...]
> I tested this on bmd live video, all the rollup values were not tested, I implemented this feature when roll up 2 was coming.
>
> I will check the database of ccextractor, if I get some video with different rollup.
>
>
> -Anshul
>
I have attached the patch which were not commited, In the rollup 
functionality there was one more
bug other then typo, the first line was lost while converting the cc.
I have corrected that.

Here 
<http://gsocdev.ccextractor.org/%7Eanshul/test_video/Closedcaption_rollup.ts> 
is video with rollup in closed caption.

-Anshul


-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Added-Roll-up-functionality.patch
Type: text/x-patch
Size: 5619 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20150206/ee6531b0/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-handle-error-from-ass_sub-api.patch
Type: text/x-patch
Size: 853 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20150206/ee6531b0/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0003-Added-Debug-logs.patch
Type: text/x-patch
Size: 1687 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20150206/ee6531b0/attachment-0002.bin>


More information about the ffmpeg-devel mailing list