Skip to content

SRT Files Encoding Issue (UTF-8 vs. UTF-8 BOM) #83

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

Open
mistersalem opened this issue Mar 11, 2025 · 0 comments
Open

SRT Files Encoding Issue (UTF-8 vs. UTF-8 BOM) #83

mistersalem opened this issue Mar 11, 2025 · 0 comments

Comments

@mistersalem
Copy link

I encountered an issue with SRT subtitles generated by WhisperS2T. While the subtitles appear correctly in some media players (e.g., VLC, MPV), they do not display properly in Adobe Premiere Pro. Instead, Premiere Pro shows only a single segment with a small portion of the first word.

After investigating, I found that the issue is related to character encoding. The generated SRT file appears to be encoded in UTF-8 with BOM, which causes problems in some software. When I manually re-save the file in UTF-8 without BOM using Notepad++, everything works correctly.

Would it be possible to add an option in whisper_s2t.write_outputs() to ensure that SRT files are saved as UTF-8 without BOM by default? This would prevent issues in software like Adobe Premiere Pro.

Thanks for your great work on WhisperS2T! 🚀

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