Opened 10 years ago

Closed 10 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: ffmpeg@tmm1.net Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

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, 10 years ago

Cc: ffmpeg@tmm1.net added
Owner: set to Rick Kern
Status: new → open
Version: unspecified → git-master

comment:2 by Aman, 10 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, 10 years ago

I have an initial patch at ​http://paste.ubuntu.com/23149072/ 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, 10 years ago

I have submitted a working patch to the devel ML for review: ​http://ffmpeg.org/pipermail/ffmpeg-devel/2016-September/199107.html

comment:5 by Carl Eugen Hoyos, 10 years ago

Component: undetermined → avcodec
Keywords: videotoolbox cc added
Priority: normal → wish
Type: defect → enhancement

comment:6 by Rick Kern, 10 years ago

Can you provide some media samples with closed captions?

comment:8 by Carl Eugen Hoyos, 10 years ago

Resolution: → fixed
Status: open → closed

The patches were applied today.

Note: See TracTickets for help on using tickets.