Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Subtitle Access
#1
I have been searching for quite a while to find the correct attribute to toggle thru the subtitles in my Pyhton VLC script.
When I use VLC directly the "v" works as described.
I can find the "play", "pause", "stop" etc., but nothing to toggle the subtitles.
I apologize if this is not the correct forum to ask for help with this.
Reply
#2
I googled "python vlc subtittles" and found this:

https://www.geeksforgeeks.org/python-vlc...-subtitle/
Reply
#3
Thanx for your quick response. I saw that one earlier, but as I understand it you need to know the number of the subtitle first, and then you can select it.
I was hoping for a way to toggle thru them, as you can when you use VLC directly.
Reply
#4
This returns the current subtitle. With the previous link that shows how to set the current subtitle and get the number of available subtitles you should have a good starting point for investigating if there is a way an identifier for each subtitle.

https://www.geeksforgeeks.org/python-vlc...-subtitle/

I would download the VLC media player source and use information from geeksforgeeks links to quickly zero in on the media player/spu interface parts that relate to subtitles.
Reply


Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020