-
-
Notifications
You must be signed in to change notification settings - Fork 142
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
ASS Sub BUG #506
Comments
Indeed I can confirm I see this issue too. This seems to be a regression. The "random null character in the middle of the extracted subtitle file" problem was reported in multiple places more than a year ago (jellyfin issue, upstream issue), and then apparently fixed, but now re-ocurring. I am currently running:
I suspect this started happening again when upgrading to jellyfin 10.10x / jellyfin-ffmpeg7 |
@nyanmisaka sorry to bother you directly here -- I noticed you looked into the original issue there and followed up with upstream, do you have any clue why this is suddenly re-ocurring on recent versions of jellyfin? |
I think the upstream “optimized out” the fix in FFmpeg/FFmpeg@7bf1b9b It is interesting that the author of the patch is also the maintainer of libass, the de-facto standard standard implementation of the ass spec. Let me see if I can fix this, can you provide an mkv example that can reproduce this issue? |
Ufortunately I'm not quite sure how to create a small file to reproduce this. Many files in my library have the issue but cannot be uploaded here as they're several GBs. I have tried to create smaller sample files using handbrake (my understanding from this is that the issue was first identified on files created with handbrake). However it seems that my version of handbrake (1.6.1) no longer does that and once I re-encode something with it, ass subtitles can be extracted with ffmpeg without the null character in the middle. |
I don't know if this is specific to HandBrake versions or not, but I use version 1.8.2 (2024081000) for Windows. Unfortunately I don't see this NUL position in Notepad++ and I'm not so well versed in whether or how I can reproduce it correctly. What I do know is that if I have a video file with this problem, an “annoying” workaround for me is to extract the subtitles with gMKVExtractGUI and insert them again with MKVToolNix, replacing the “old subtitles” and virtually recreating the file. Then it works as it should in Jellyfin. - But that can't be the solution, because : As I said, I could also help myself, but if you have a large collection of 10,000 files and more like me, it's a lot of work and actually, as I said, this has already been fixed, but with version 10 of Jellyfin it has been reinserted or the former fix has been undone. For copyright reasons I would not like to upload one of my backup copies. |
I literally tried handbrake from the very first version supports ASS subtitle (0.9.6) all the way to 1.3.0, and I cannot reproduce this. It would be extremely hard for me to fix this if I cannot verify my theory if nobody is willing to help me. I just modified one of my sample MKV with hex edit to manually insert a null char after the header and it seems to work with my draft patch where this null char will no longer be carried over. I will make a PR soon and I beg you to test with the action builds to see if it fixed your files as well. |
Hello, Doesn't the original problem and its fix help you to identify, reproduce and fix the problem? I mean, it has been successfully fixed before. You could start there and see what has changed with the version updates. Here is the original problem: The point here is not that nobody “WANTS” to help you, but that I don't want to illegally upload movies or series to the Internet. I hope you understand that. If I had a harmless file, I would make it available to you immediately. |
FF 6.0 (fixed with a custom patch) https://fftrac-bg.ffmpeg.org/ticket/10203
Install the potential fix from https://github.com/jellyfin/jellyfin-ffmpeg/pull/509/checks and see if it works for you. |
@Snipy2k4 @cchristchurch @Andreas-76 @seeseemelk https://github.com/jellyfin/jellyfin-ffmpeg/pull/509/checks |
Sorry I got distracted away from all this and not at home for now, but I will be back and should be able to test this next weekend if no one had a chance yet. |
@nyanmisaka |
This comment has been minimized.
This comment has been minimized.
A bit late to the party, but I can confirm the bug is now fixed when using When extracting ASS subtitles from the same problematic MKVs that caused the issue before, I no longer see the infamous null character in the extracted file, and things work as expected 🎉 Thanks a lot @gnattu @nyanmisaka for looking into this 🙏 |
Originally posted by @Snipy2k4 in #267
The text was updated successfully, but these errors were encountered: