libvlc_media_player_get_position() resolution

This forum is about all development around libVLC.
MikOfClassX
Blank Cone
Blank Cone
Posts: 48
Joined: 29 Dec 2018 10:23

libvlc_media_player_get_position() resolution

Postby MikOfClassX » 30 Mar 2019 08:31

Hello,

I am trying to implement some logic around the media position of videos.

It seems that the resolution of libvlc_MediaPlayerPositionChanged callback or libvlc_media_player_get_position() is about 250ms. This value is very high.

For confirmation, I checked the static void *vlc_demux_chained_Thread(void *data) in demux_chained.c:
next_update = vlc_tick_now() + VLC_TICK_FROM_MS(250);

It there any way (when applicable, i.e. file-based media) to get the frame-accurate current media position (or video PTS) ?

Cheers,

Mik

unidan
Developer
Developer
Posts: 1493
Joined: 25 Mar 2018 01:00

Re: libvlc_media_player_get_position() resolution

Postby unidan » 01 Apr 2019 15:24

Hi, you have to wait for VLC 4.0 and the new clock for this.

MikOfClassX
Blank Cone
Blank Cone
Posts: 48
Joined: 29 Dec 2018 10:23

Re: libvlc_media_player_get_position() resolution

Postby MikOfClassX » 01 Apr 2019 15:46

Thanks! Being the first of April, I'll double check your reply ;)
I did not see any estimated release date BTW.

unidan
Developer
Developer
Posts: 1493
Joined: 25 Mar 2018 01:00

Re: libvlc_media_player_get_position() resolution

Postby unidan » 01 Apr 2019 15:59

> I did not see any estimated release date BTW.
That would be the April joke if I knew it. :)
But check there: https://www.youtube.com/watch?v=OUt9QxmomjM

MikOfClassX
Blank Cone
Blank Cone
Posts: 48
Joined: 29 Dec 2018 10:23

Re: libvlc_media_player_get_position() resolution

Postby MikOfClassX » 01 Apr 2019 16:04

Cool link! Thanks


Return to “Development around libVLC”

Who is online

Users browsing this forum: Bing [Bot] and 4 guests