how to set image duration in python-vlc library ?

This forum is about all development around libVLC.
miyou995
New Cone
New Cone
Posts: 4
Joined: 13 Dec 2020 16:19

how to set image duration in python-vlc library ?

Postby miyou995 » 14 Dec 2020 16:22

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

mfkl
Developer
Developer
Posts: 739
Joined: 13 Jun 2017 10:41

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

Postby mfkl » 15 Dec 2020 04:16

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/
https://mfkl.github.io

miyou995
New Cone
New Cone
Posts: 4
Joined: 13 Dec 2020 16:19

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

Postby miyou995 » 18 Dec 2020 17:15

Thank you for your time but it won't work :/, is it possible that you may know how it work ?

Krilya
New Cone
New Cone
Posts: 6
Joined: 02 Aug 2022 10:30

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

Postby Krilya » 02 Aug 2022 11:18

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)


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 19 guests