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

Unable to generate non-English subtitles #850

Open
LongMingWei opened this issue Aug 17, 2024 · 0 comments
Open

Unable to generate non-English subtitles #850

LongMingWei opened this issue Aug 17, 2024 · 0 comments

Comments

@LongMingWei
Copy link

LongMingWei commented Aug 17, 2024

When I try to generate non-English subtitles in a video with this code

ffmpeg.input(final_video_path).output(final_video_with_subs_path, vf=f"subtitles={srt_path}").run(overwrite_output=True)

This error shows up for every subtitle character

[Parsed_subtitles_0 @ 0x56515f8ab6c0] fontselect: failed to find any fallback with glyph 0xC774 for font: (Arial, 400, 0)
[Parsed_subtitles_0 @ 0x56515f8ab6c0] Glyph 0xCEE4 not found, selecting one more font for (Arial, 400, 0)

The requirements.txt file and app.py file are as linked.

The resulting subtitles (they become rectangles as unknown characters) and video screenshot is as follows

image

Appreciate the help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant