📜 ⬆️ ⬇️

A tool to quickly find scenes in video files

Prehistory


image
Once I argued with my friend about a movie. He argued that the main character says one thing, but I thought that he said the exact opposite. As a result, we argued for the N-th number of alcohol-soft drinks and went to a mutual friend who was the happy owner of a VHS video player and who was supposed to have this very film. I lost the argument, but I remember well that we spent a lot of time searching for this particular scene. Years later, nowadays, another friend of mine rewrote the video from the recorder to a flash drive with the words that they said there was a turn left to the lens of the device was supposed to get our mutual friend (an unpleasant type), who was in a wonderful state and offered me to pin up on this issue. To look for someone's physiognomy on a video of a couple of hours is, of course, not really looking a needle in a haystack, but, too, a pleasure for an amateur. It seems that it was then that an idea began to appear in my head and I wondered how to watch a few hours of video recordings in order to find there what you need and at the same time not to limit yourself in a dream much?

main idea


As a result of reflection, I came to the conclusion that the easiest way to search is to use a tabular presentation of the video: each cell has its own time interval.
image

Table video presentation: what kind of animal is it and what does it eat?


Examples of video in tabular format

Candies
Parking
Road

Examples of images in tabular format

Candies
Parking
Road
')

Actually, the tool itself


After some torment, I wrote the program Table View Video Player . image

Main features of the program



And what's under the hood?


The program is written in C ++, MS Visual Studio 2015 was used. FFMPEG could be limited to video libraries, but I used OpenCV (I plan to use other features of this library).

Scope of this tool


I will try to show everything by example. I put a video camera in the kitchen, and I hid candy on the kitchen wall cupboard. The duration of the video is 2 hours. And now look at the picture and tell me who ate them: dad, mom or some of the children? Even if there were no highlighting of the necessary areas, everything would become clear after 2 minutes of viewing, and maybe even earlier. image If someone wants to conduct an experiment, then here is the link to the original video , and here is the link to the video in tabular form . So, the main purpose of the program is to find out who has stolen the candy from visual video analysis .

More practice


On holidays, I shoot videos in kindergarten, as well as family anniversaries, weddings of friends and relatives. Pinnacle Studio - an excellent program for video editing! They even say that housewives can easily figure it out! I don’t understand the truth, where do housewives have so much perseverance and free time to spend hours on repeated attempts to export the edited video to a file or to a DVD ? I myself have been using this program since version 8 (I am using the licensed version 17 now, and the last version released is version 19), but, despite my experience, it rarely happens that the application does not hang during the editing or export process. But even if the export was completed successfully (according to Pinnacle Studio), then when watching a video in a VLC-player or a Windows-Media player, there are sometimes artifacts that look confusing to users of my products. Well! Table View Video Player can be used here! We start the program, open our file and, without concentrating on any fragment, just try to feel where suddenly a frieze or some sort of byaka appears. A type of this. image Five minutes to search for video artifacts is not so much! In this case, re-open the project and try to fix the problem. And a little rejoice that they discovered it themselves, and not “ happy parents ” during family viewing.

Step back


Some time ago I boasted of my program to my friends, and I received a comment that the program was too complex and he would never understand it personally. Mdja, and I thought that ... Having considered the constructive criticism, I realized that, probably, he is right. So it became necessary to create a simpler (Lite) version. image

Main features of the program


Compared with the standard version, many features have been removed, but the program has become as simple as 2 kopecks !

Theory of the search for scenes and objects


Existing automatic solutions for searching through the video archive are resource-intensive, besides it is not always possible to clearly state what you are looking for. In this case, the use of manual search (I mean with the help of the operator), if you speed it up using table playback, can be very effective.

Strengths



Weak sides




Competitors or programs for searching scenes and objects


I cannot name direct competitors, but there are several programs that do something similar.The list is far from complete, some of the links can not find. But I would be grateful for the addition ...

Future plans




findings


Source: https://habr.com/ru/post/281537/


All Articles