error "picture is too late to be displayed" (motiondetect filter)

Microsoft Windows specific usage questions
Forum rules
Please post only Windows specific questions in this forum category. If you don't know where to post, please read the different forums' rules. Thanks.
vrsevertech
New Cone
New Cone
Posts: 4
Joined: 04 Apr 2019 13:14

error "picture is too late to be displayed" (motiondetect filter)

Postby vrsevertech » 04 Apr 2019 13:36

Command

Code: Select all

vlc.exe --video-filter=motiondetect "видеофайл" --verbose=2 --file-logging --logfile=log.txt
on some videos it gives something like:

Code: Select all

motiondetect debug: Counted 4 moving shapes. motiondetect debug: Counted 9 moving shapes. motiondetect debug: Counted 7 moving shapes. motiondetect debug: Counted 8 moving shapes. motiondetect debug: Counted 10 moving shapes. motiondetect debug: Counted 12 moving shapes.
The number of records almost coincides with the number of frames in the video => everything seems to be clear.
But on some videos such messages are popping out:

Code: Select all

main warning: picture is too late to be displayed (missing 24 ms) main debug: picture might be displayed late (missing 8 ms)
and the number of entries is clearly different from the number of frames.
What could be the cause of the error?
or how to parse which logline to which timecode it refers?

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

Re: error "picture is too late to be displayed" (motiondetect filter)

Postby unidan » 04 Apr 2019 14:48

Hi, it is certainly because motiondetect is a CPU filter, so if you're decoding on the GPU it would probably copy to the CPU memory, do the motion detection, and maybe (I'm not sure) copy back to the GPU memory.
You have to patch VLC at the line of the log to know the corresponding timestamp.

vrsevertech
New Cone
New Cone
Posts: 4
Joined: 04 Apr 2019 13:14

Re: error "picture is too late to be displayed" (motiondetect filter)

Postby vrsevertech » 12 Apr 2019 08:28

You have to patch VLC at the line of the log to know the corresponding timestamp.
I did not understand. How to do it?

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

Re: error "picture is too late to be displayed" (motiondetect filter)

Postby unidan » 15 Apr 2019 10:20

I did not understand. How to do it?
I meant modify the code itself to get the timestamp, which would be the picture date for this.

vrsevertech
New Cone
New Cone
Posts: 4
Joined: 04 Apr 2019 13:14

Re: error "picture is too late to be displayed" (motiondetect filter)

Postby vrsevertech » 17 May 2020 17:00

I did not understand. How to do it?
I meant modify the code itself to get the timestamp, which would be the picture date for this.
please hint how to do this? edit libmotiondetect_plugin.dll? how? downloaded .NET Reflector ( https://www.red-gate.com/products/dotnet-development/reflector/ ) but "libmotiondetect_plugin.dll it's not a .NET modul".

And how to do it in ubuntu?


Return to “VLC media player for Windows Troubleshooting”

Who is online

Users browsing this forum: No registered users and 21 guests