B
B
bezvozni2020-05-22 01:41:26
C++ / C#
bezvozni, 2020-05-22 01:41:26

How to modify the vlc source code to add timestamps of the motiondetect filter to the log?

https://github.com/videolan/vlc-3.0/blob/master/mo...

At the end I see the line

msg_Dbg( p_filter, "Counted %d moving shapes.", j );

it looks like (resulting log):
motiondetect debug: Counted 3 moving shapes.
motiondetect debug: Counted 5 moving shapes.
motiondetect debug: Counted 2 moving shapes.


Ideally the log should look like this:
motiondetect debug: Counted 3 moving shapes (timestamp 00:01:23.342).
motiondetect debug: Counted 5 moving shapes (timestamp 00:01:23.425).
motiondetect debug: Counted 2 moving shapes (timestamp 00:01:23.508).


Instead of a timestamp, the sequence number of the frame will also be different.

Is it possible to do this by looking at this file or do I need to dig deeper?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
J
jcmvbkbc, 2020-05-22
@jcmvbkbc

There is a field in the structure picture_tthat is passed to Prepare* and to Filter date, maybe it will help you.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question