Opened 6 years ago

Closed 6 years ago

#5677 closed enhancement (fixed)

Videotoolbox encoder does not preserve A53_CC side data

Reported by: Aman Owned by: Rick Kern
Priority: wish Component: avcodec
Version: git-master Keywords: videotoolbox cc
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no


The rest of the h264 encoders explicitly copy side data for closed captioning, but the new videotoolbox encoder does not.

Change History (8)

comment:1 by Aman, 6 years ago

Cc: added
Owner: set to Rick Kern
Status: newopen
Version: unspecifiedgit-master

comment:2 by Aman, 6 years ago

libavcodec/libx264.c and libavcodec/qsvenc_h264.c both support a -a53cc 1 option where the caption data is copied to the encoded output. I'm trying to figure out how to pass extra SEI payloads to videotoolbox in a similar fashion so we can implement the equivalent option.

comment:3 by Aman, 6 years ago

I have an initial patch at which generates an h264 encoded file with SEI NAL units. However when I try to decode the file, I see the following warnings:

[h264 @ 0x7f82ea801a00] SEI type 4 size 568 truncated at 567
Last message repeated 5 times

comment:4 by Aman, 6 years ago

I have submitted a working patch to the devel ML for review:

comment:5 by Carl Eugen Hoyos, 6 years ago

Component: undeterminedavcodec
Keywords: videotoolbox cc added
Priority: normalwish
Type: defectenhancement

comment:6 by Rick Kern, 6 years ago

Can you provide some media samples with closed captions?

comment:8 by Carl Eugen Hoyos, 6 years ago

Resolution: fixed
Status: openclosed

The patches were applied today.

Note: See TracTickets for help on using tickets.