Question regarding subsdec-encoding option

This forum is about all development around libVLC.
masterwok
New Cone
New Cone
Posts: 9
Joined: 07 Jun 2018 03:01

Question regarding subsdec-encoding option

Postby masterwok » 25 Aug 2018 07:36

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)

masterwok
New Cone
New Cone
Posts: 9
Joined: 07 Jun 2018 03:01

Re: Question regarding subsdec-encoding option

Postby masterwok » 26 Aug 2018 22:36

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


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 6 guests