We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a413a2a + 5973ae4 commit a64d57cCopy full SHA for a64d57c
src/PHPVideoToolkit/VideoFormat.php
@@ -664,7 +664,7 @@ public function setVideoQuality($quality)
664
}
665
666
// interpret quality into ffmpeg value
667
- $quality = 31 - round(($quality / 100) * 31);
+ $quality = 32 - round(($quality * 30/99) + 1);
668
if($quality > 31 || $quality < 1)
669
{
670
throw new Exception('Unrecognised quality "'.$quality.'" set in \\PHPVideoToolkit\\'.get_class($this).'::setQuality');
0 commit comments