-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathexample.php
More file actions
27 lines (24 loc) · 752 Bytes
/
example.php
File metadata and controls
27 lines (24 loc) · 752 Bytes
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
<?php
include 'generator.php';
$opts = [
'library' => 'avconv',
'videotypes' => array('video/mp4', 'video/x-flv'),
// 'input' => 'http://www.medien-tube.de/images/media/34958SD.mp4', //long
// 'input' => 'http://www.medien-tube.de/images/media/34955.mp4', //short
// 'input' => 'http://www.medien-tube.de/images/media/34658.mp4', //shorter
'input' => 'http://www.medien-tube.de/images/media/5601.flv', //flv
'name' => 'video',
'output' => '.',
'timespan' => '10',
'width' => 120,
'verbose' => FALSE,
'poster' => TRUE,
'delete' => TRUE
];
try {
$var = createthumbnail($opts);
} catch(ThumbnailWebVttException $e) {
$var = false;
echo $e->getMessage();
}
var_dump($var);