-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathffmpeg.stub.php
68 lines (56 loc) · 2.23 KB
/
ffmpeg.stub.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
<?php
/** @generate-function-entries */
/*
usage example
$ffmpegInstance = new ffmpeg_movie($filename);
$movie_width = $ffmpegInstance->getFrameWidth();
$movie_height = $ffmpegInstance->getFrameHeight();
$ffmpegFrame = $ffmpegInstance->getFrame(10);
$frame_width = $ffmpegFrame->getWidth();
$frame_height = $ffmpegFrame->getWidth();
$ffmpegImage = $ffmpegFrame->toGDImage();
*/
class ffmpeg_movie {
public function __construct(string $filename) {}
public function getduration(): double {}
public function getframecount(): int {}
public function getframerate(): double {}
public function getfilename(): string {}
public function getcomment(): string {}
public function gettitle(): string {}
public function getauthor(): string {}
public function getartist(): string {}
public function getcopyright(): string {}
public function getalbum(): string {}
public function getgenre(): string {}
public function getyear(): int {}
public function gettracknumber(): int {}
public function getframewidth(): int {}
public function getframeheight(): int {}
public function getframenumber(): int {}
public function getpixelformat(): string {}
public function getbitrate(): int {}
public function hasaudio(): bool {}
public function hasvideo(): bool {}
public function getnextkeyframe(): ffmpeg_frame {}
public function getframe($int): ffmpeg_frame {}
public function getvideocodec(): string {}
public function getaudiocodec(): string {}
public function getvideostreamid(): int {}
public function getaudiostreamid(): int {}
public function getaudiochannels(): int {}
public function getaudiosamplerate(): int {}
public function getaudiobitrate(): int {}
public function getvideobitrate(): int {}
public function getpixelaspectratio(): double {}
}
class ffmpeg_frame {
// togdimage is only active when HAVE_LIBGD20
public function togdimage(): GdImage|false {}
public function getwidth(): int {}
public function getheight(): int {}
public function resize(int $wanted_width, ?int $wanted_height = null, ?int $crop_top = null, ?int $crop_bottom = null, ?int $crop_left = null, ?int $crop_right = null): bool {}
public function iskeyframe(): bool {}
public function getpresentationtimestamp(): double {}
public function getpts(): double {}
}