Page 1 of 1

how to set image duration in python-vlc library ?

Posted: 14 Dec 2020 16:22
by miyou995
Currently i'm developping a multimedia application using pyhton-vlc and i try to display in the same playlist images and videos. The problem is that the default duration of an image is 10 secondes, i want to edit it. How can i set the time i want, knowing that it's possible to do it in VLC.exe

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

Posted: 15 Dec 2020 04:16
by mfkl
maybe this

Code: Select all

--image-duration=<float [-340282346638528859811704183484516925440.000000 .. 340282346638528859811704183484516925440.000000]> Duration in seconds Duration in seconds before simulating an end of file. A negative value means an unlimited play time.
https://wiki.videolan.org/VLC_command-line_help/

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

Posted: 18 Dec 2020 17:15
by miyou995
Thank you for your time but it won't work :/, is it possible that you may know how it work ?

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

Posted: 02 Aug 2022 11:18
by Krilya
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)