Search found 6 matches

Go to advanced search

by Krilya
02 Aug 2022 11:18
Forum: Development around libVLC
Topic: how to set image duration in python-vlc library ?
Replies: 3
Views: 956

Re: how to set image duration in python-vlc library ?

there's a function to set time for a media but it won't always work. libvlc_media_player_set_time(p_mi, i_time)
by Krilya
02 Aug 2022 11:11
Forum: Development around libVLC
Topic: How to make videos output in one window when trying to play multiple videos with python-vlc?
Replies: 1
Views: 2723

Re: How to make videos output in one window when trying to play multiple videos with python-vlc?

because you haven't set a window for the player. you can use the tkinter module to create a window and then assign it to the player.
by Krilya
02 Aug 2022 11:07
Forum: Development around libVLC
Topic: Code randomly hangs on libvlc_media_player_set_media
Replies: 7
Views: 8123

Re: Code randomly hangs on libvlc_media_player_set_media

After messing around with python-vlc for quite a while, I personally found that the set_mrl() method is more reliable than set_media()
by Krilya
02 Aug 2022 11:04
Forum: Development around libVLC
Topic: vlc-python, Ubuntu 18.04: Detect if the video window was closed
Replies: 6
Views: 7112

Re: vlc-python, Ubuntu 18.04: Detect if the video window was closed

You need to set the delete window protocol to a function that includes player.stop()
by Krilya
02 Aug 2022 10:55
Forum: Web and scripting
Topic: Perform action when certain timestamp is reached
Replies: 4
Views: 4745

Re: Perform action when certain timestamp is reached

Hey mips12,
If I understood you well;

def function():
current_time = media_player.get_time()
time_stamp = str(dt.timedelta(0, 0, 0, current_time))
if time_stamp == "0:05:02": # or whatever time
# Function

create a thread for this function.
by Krilya
02 Aug 2022 10:44
Forum: Development around libVLC
Topic: Show a complete VLC player with libvlc
Replies: 5
Views: 670

Re: Show a complete VLC player with libvlc

Hey Stefan__o, It is possible to start a complete VLC user interface with python-vlc. PS : I code for fun not a savvy. import vlc from tkinter import Tk root = Tk() root.withdraw() vlc_instance = vlc.Instance() media_player = vlc.MediaPlayer() vlc.libvlc_add_intf(vlc_instance, name=None) root.mainlo...

Go to advanced search