Page 1 of 1

Seems to be a bug from 2.1.6 and newer

Posted: 27 Jul 2015 18:03
by leonp
Hello, gurus.

Let's consider the MP4 file which has frames with some long durations - tens of seconds.
When played with the libvlc/VLC lower than 2.1.6, events libvlc_MediaPlayerTimeChanged and libvlc_MediaPlayerPositionChanged appears regularly during this "hole", which allows the system to indicate the time passed.
Contrary, after the version 2.1.6 everything hangs when VLC hits this long duration - we do not receive events, normal VLC (both in Linux and Windows) freezes till the duration ends.

It will be really great if the old behavior will be possible to return back.

Thanks and best regards

Leon.

Re: Seems to be a bug from 2.1.6 and newer

Posted: 30 Jul 2015 01:02
by Jean-Baptiste Kempf
I'm sorry, but I understand nothing.

Re: Seems to be a bug from 2.1.6 and newer

Posted: 30 Jul 2015 23:28
by leonp
I am not sure what may be unclear...:-)
But I will try to explain in more details.
I have an application which generates MP4 file using the mp4v2 lib, if it is relevant.
The video frames in MP4 have the property called duration, which indicates how much time must the frame be displayed.
Now, let's say, I generate an MP4 file with the first frame duration equal to 20 seconds.
If I run this file in VLC version 2.1.5 and older, the slide bar and time start to move immediately and move for 20 seconds, while the screen is black. Then, the normal playing starts (actually continues).
If the same file is played in my player, based on the libvlc, events libvlc_MediaPlayerTimeChanged and libvlc_MediaPlayerPositionChanged are delivered from the very beginning and keep coming during the first 20 seconds, as well as afterwards.

But when the newer versions are taken, the behavior has changed. VLC freezes for the first 20 seconds and only afterwards starts to indicate time, slide bar and video. As for the vlclib - events are not arriving during the first 20s period.

I will be glad to provide more details, just, please, ask questions...:-)