Skip to content

CC608/708 closed captioning embedding #1799

Open

Description

@leeerickson2050

Describe the change or feature you'd like to see added to HandBrake:

Would love to see the ability to import CEA-608 or CEA-708 (.mcc , .scc) files into Handbrake and then embed them into an h.264.

(I can provide examples if needed)

What version of HandBrake are you currently using? (e.g., 1.0.0)

1.2.0

What operating system and version are you running? (e.g., Ubuntu 16.04 LTS, macOS 10.3 High Sierra, Windows 10 Creators Update)

Windows 7 / 10

HandBrake Activity Log (see https://handbrake.fr/docs/en/latest/help/activity-log.html)

If the request is off the back of failure or unsupported file format, please post a log as it can help us track down what is missing. 
Either post it in full here, or drag/drop the file onto GitHub to upload it.

Activity

  1. jstebbins commented on Jan 14, 2019

    @jstebbins
    Contributor

    HandBrake doesn't currently handle CC 708 at all. It's something I'd like to have, but low priority. This would fall into the same category although it's probably much easier since you don't really have to parse the full CC data.

    You just need to parse enough to know what frame to attach it to (timestamps). Then it's just a matter of inserting it into x264 SEI data for the right frame. There's already an example of how to do this in ffmpeg.

    Normally subtitles go from a reader to sync then to either a renderer or the muxer through a series of fifos. I think the right way to do it would be to attach the CC to HandBrake's video frame buffers in sync (where timestamps are inspected for synchronization purposes). There would need to be a flag in settings somewhere to tell sync to do this instead of passing it to the next fifo as it would normally do. And of coarse new CLI option and GUI widgets to support the new setting.

    If you can supply some samples, that would be great. It'll help anyone who decides to take on this work. Hopefully my comments will also help (or be a reminder for me if nobody else does this and it hits my radar in the future).

  2. tvadi commented on Nov 16, 2021

    @tvadi

    Hi, any update by chance on this? Thanks!

  3. aleczdr commented on Aug 8, 2022

    @aleczdr

    Hi, has there been any progress on this? It would be a very useful feature, as I wouldn't have to convert everything to flv to use libcaption/ffmpeg.

    Also, I noticed that libcaption is foss. Maybe the developers of handbrake could integrate that.
    https://github.com/szatmary/libcaption

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions