Commit eef29bb
authored
fix: duration should be parsed as float (#3869)
* Fix duration should be float
Updated video frame extraction logic and supported formats.
* Fix frame extraction logic in Video.php
Updated the logic to extract video frames by clamping the seconds to the video duration and using the correct variable for frame extraction.
* Remove unsupported video formats and mime types
Removed unsupported video formats from the list.
* Remove 'mp4v-es' from video format lists
Removed 'mp4v-es' from supported video formats.
* Add support for 'video/mpeg' format1 parent 04abdaa commit eef29bb
1 file changed
+10
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| 16 | + | |
15 | 17 | | |
16 | 18 | | |
17 | 19 | | |
| |||
25 | 27 | | |
26 | 28 | | |
27 | 29 | | |
28 | | - | |
| 30 | + | |
| 31 | + | |
29 | 32 | | |
| 33 | + | |
30 | 34 | | |
31 | | - | |
32 | 35 | | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
33 | 40 | | |
34 | 41 | | |
| 42 | + | |
35 | 43 | | |
36 | 44 | | |
37 | 45 | | |
| |||
0 commit comments