brawl-template-matcher is a program that can extract desired frames from a video. I mainly used this to extract matchmaking frames from Brawlhalla Ranked VODs. By collecting matchmaking frames automatically, I was able to see which players I played against in a certain VOD.
When you run the application you are asked to fill in 4 variables. Here is an explanation for each one of them
- Choosing a Template Image
- Choosing a Brawl VOD
- Entering the Minimum Accuracy
- Entering the Frame Skip Value
- Select Template Image
- Select .mp4 File
- Enter 0.85
- Enter 250
This is the most tricky part but don't worry.
A template image is an image the application will try to fit in each frame of the video. The application will output an accuracy of how well the template image fits into the video frame, and then goes onto the next frame. By providing the template image, you are telling the application: "Look for this image in the video",
the application will take a screenshot of every frame it sees with this image inside of it. If you have a bad image, the application will not work properly and output low accuracies. Below is an example of the output of the application. The application looks for the template image, and made 4 screenshots of the video where the template image appeared.
The best and easiest way to get a good template image is to make the application extract the video frames for you. After the application has extracted the frame that includes your desired template image, you can simply crop out the template image. Below is an example of how to put this to practise.
- Choose a random template image (doesn't matter we will put minimum accuracy at 0)
- Choose the .mp4 file which of you want to render frames.
- Put Minimum Accuracy at 0 (This means the application will try to match the template image and render the frame if the accuracy is at least better than 0.0. But this is always the case since the accuracy can never be lower than 0.0, so it will render all the frames).
- You can put the frame skip at any value. Safest move is to put it at 1, which will result in all the frames getting rendered. You can also put it at 2 or 3 it it isnt frame perfect or even values like 250.
- The application will render frames into the results folder. if you see your desired frame you can stop the application and open the image in paint, crop it so you have the template image, and save as .png.
Just choose any .mp4 file with gameplay. Based of the template image you can decide which frames you want to extract.
The accuracy means how well the template image fits in the video frame. If you have a good template image you can put this at 0.95. If you don't have a good image you can try 0.85. If you don't seem to get any values above 0.6 accuracy, your template image is most likely bad. Read How to get a (good) Template Image? to generate a good template image.
When this is set to 1, the application will check each frame of the video and try to match the template image in the video, outputting an accuracy based of how well the template image fits in the video frame. Usually (If you are extracting matchmaking frames from ranked gameplay) you want to put this value around 250. Having a value of 250 makes sure you won't get duplicate frames of the same matchmaking frame / same opponent.

