Try to detect if a video has been upscaled. This tool uses a custom neural network to detect by how much a video might have been upscaled, then tries to match the result with a list of common video resolutions.
As video frames are often blurry for other reasons, the tool will sample a number of frames and take the 10-th percentile of the upscaling factor to make the result more robust.
pip install detect-resolutionThen, install pytorch and torchvision as needed for your system. Please see the PyTorch installation guide for more details.
detect-resolution --help
detect-resolution path/to/some_video.mp4
detect-resolution path/to/some_video.mp4 --n-samples 100
detect-resolution path/to/some_video.mp4 --debug --debug-imagesdetect-resolution is distributed under the terms of the MIT license.