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.
1 parent 4d76b26 commit 5807653Copy full SHA for 5807653
src/FFMpeg/Filters/Video/ExtractMultipleFramesFilter.php
@@ -104,9 +104,14 @@ public function apply(Video $video, VideoInterface $format)
104
}
105
106
// Set the number of digits to use in the exported filenames
107
- $nbDigitsInFileNames = ceil( $duration * $nbFramesPerSecond );
108
- if($nbDigitsInFileNames < 10)
109
- $nbDigitsInFileNames = '0' . (string)$nbDigitsInFileNames;
+ $nbImages = ceil( $duration * $nbFramesPerSecond );
+
+ if($nbImages < 100)
110
+ $nbDigitsInFileNames = "02";
111
+ elseif($nbImages < 1000)
112
+ $nbDigitsInFileNames = "03";
113
+ else
114
+ $nbDigitsInFileNames = "06";
115
116
// Set the parameters
117
$commands[] = '-vf';
0 commit comments