timecodestamper: add support for closedcaption input
authorMathieu Duponchelle <mathieu@centricular.com>
Thu, 26 Aug 2021 02:12:07 +0000 (04:12 +0200)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Thu, 26 Aug 2021 16:03:23 +0000 (16:03 +0000)
commit5bd31b8cce4706b6e9754b6118cf5f941607218a
tree23a6386ced5cc425b41ab5f83859c73ff8c868a1
parent5cf4dc2b82f10cbe2dc603fd49ab080ff8d32e56
timecodestamper: add support for closedcaption input

Some closedcaption elements like sccenc except input buffers
to have timecode metas. The original use case is to serialize
closed captions extracted from a video stream, in that case
ccextractor copies the video time code metas to the closed
caption buffers, but no such mechanism exists when creating
a CC stream ex nihilo.

Remedy that by having timecodestamper accept closedcaption
input caps, as long as they have a framerate.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2490>
docs/plugins/gst_plugins_cache.json
gst/timecode/gsttimecodestamper.c
gst/timecode/gsttimecodestamper.h