Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Oryx: Support subtitle 608/708 format by FFmpeg #4046

Open
winlinvip opened this issue Mar 24, 2024 · 0 comments
Open

Oryx: Support subtitle 608/708 format by FFmpeg #4046

winlinvip opened this issue Mar 24, 2024 · 0 comments
Assignees
Labels
EnglishNative This issue is conveyed exclusively in English.

Comments

@winlinvip
Copy link
Member

winlinvip commented Mar 24, 2024

Use Scenario

SyncWords AI Media both companies have this feature. AWS also integrates SyncWords tools to their service, see this post.

The common methods to embed closed captions into live streams include embedding captions into EIA-608 and 708 standards. Or using RTMP onCaptionInfo to embed base-64 encoded 608/708 caption data.

The other challenge is that 608/708 embedded captions do not support more than two languages, especially for languages outside of the seven languages supported by 608. This means that if there is a requirement to stream with three or more languages with support for Unicode character sets like Chinese, Japanese, and Korean than the traditional 608/708 method of encoding is a non-starter.

If i want to send live caption to youtube or vimeo i need to use this format. any company who wants to use this for broadcasting will wnat it in that format.

Note that besides 608/708 format, HLS also support Web Video Text Tracks (WebVTT), which is supported by Oryx, please see Transcription.

Goal

Patch FFmpeg to support mux video and subtitle to mpegts file, for example:

ffmpeg -i input.mp4 -i subtitle.srt ...... -f mpegts output.ts

Using this command, FFmepg mux video input.mp4 and subtitle subtitle.srt to output.ts with 608 subtitle.

Research

Use VLC or MPlayer as test palyer for 608/708 captions. to valdidate you can use samples by CCExtrator.

FFmpeg only supports decoding of 608 subtitles and does not implement encoding. If encoding is required, it needs to be implemented independently.

@winlinvip winlinvip added the EnglishNative This issue is conveyed exclusively in English. label Mar 24, 2024
@winlinvip winlinvip transferred this issue from ossrs/oryx Apr 26, 2024
@winlinvip winlinvip changed the title Support subtitle 608/708 format Oryx: Support subtitle 608/708 format Apr 26, 2024
@winlinvip winlinvip self-assigned this Apr 26, 2024
@winlinvip winlinvip changed the title Oryx: Support subtitle 608/708 format FFmpeg: Support subtitle 608/708 format May 7, 2024
@winlinvip winlinvip changed the title FFmpeg: Support subtitle 608/708 format Oryx: FFmpeg: Support subtitle 608/708 format May 7, 2024
@winlinvip winlinvip changed the title Oryx: FFmpeg: Support subtitle 608/708 format Oryx: Support subtitle 608/708 format by FFmpeg May 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
EnglishNative This issue is conveyed exclusively in English.
Projects
Status: 🏗 In progress
Development

No branches or pull requests

1 participant