Make built-in subtitles to be fixed into video size #140
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: Creepso/NuvioStreaming_backup_24-10-25#140
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This is the bug that i found with built-in subs, when scaled into cover & fill mode they end up inside the scaled video & get cropped -
+1
VLClib limitations. Can’t do much about it.
damn that sucks :(
i tried asking claude about this, it gave me these options -
This is a common issue when using VLC library for Android with built-in subtitles in scaled video modes. Here are several solutions you can implement:
Solution 1: Custom Subtitle Rendering (Recommended)
Instead of relying on VLC's built-in subtitle rendering, extract and render subtitles separately:
Solution 2: Adjust VLC Subtitle Position
Try modifying VLC's subtitle rendering parameters:
Solution 3: Use TextureView with Custom Layout
Switch from SurfaceView to TextureView for better control:
Solution 4: Calculate Video Bounds and Position Subtitles
Dynamically calculate the actual video rendering area:
Solution 5: External Subtitle Library
Consider using a dedicated subtitle library alongside VLC:
Recommendation
I'd suggest implementing Solution 1 (Custom Subtitle Rendering) as it gives you complete control over subtitle positioning and styling, avoiding VLC's limitations entirely. You can extract subtitle timing and text data, then render them in a separate overlay that stays outside the video bounds regardless of scaling mode.
This approach also allows for better subtitle customization (fonts, colors, positioning) and works consistently across different devices and VLC versions