Page 1 of 1

Question regarding subsdec-encoding option

Posted: 25 Aug 2018 07:36
by masterwok
I'm having a trouble getting subtitle encoding working with libVLC on Android.

I set the --subsdec-encoding option in the options passed to libVLC, and it appears libVLC recognizes that I set the option as I'm seeing the encoding logged out. However, the subtitles are still appearing as diamonds with question marks in them. I've tested the same subtitle file in VLC for Android with the same encoding and it works properly.

Is there something else I need to do on my end to get subtitle encoding working?

Here are the logs from starting a video and setting the subtitle: https://pastebin.com/tTKQEUgP (was over character limit to post here)

Re: Question regarding subsdec-encoding option

Posted: 26 Aug 2018 22:36
by masterwok
I figured out what I was doing wrong. Although I was downloading the same subtitle file, my encoding was being set to UTF-8 in my library. It took me awhile to realize this because I had referenced the same library in my build.gradle AND settings.gradle. Android studio was hitting the break points within the file but it was still using the original build.gradle reference. So frustrating haha