Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with Extracting frames #76

Open
cmandesign opened this issue Jan 4, 2016 · 0 comments
Open

Problem with Extracting frames #76

cmandesign opened this issue Jan 4, 2016 · 0 comments

Comments

@cmandesign
Copy link

Hello @buggedcom , thank you for making these awesome things . i am trying to use phpvideotoolkit for extracting some screenshoots with an interval ( from zero to 1/5 of video , i want to take 5 screenshoots ) and here is my code :

$parser = new MediaParser();
$data = $parser->getFileInformation($videoURL);

$process = $video->extractFrames(null, new TimeCode($data['duration']->total_seconds/5), '15/'.$data['duration']->total_seconds)
->save(BASE.'/output/'.$videoName.'.%timecode.jpg', null, Media::OVERWRITE_EXISTING);

$output = $process->getOutput();
$output = array_values($output);

$paths = array();
foreach ($output as $obj)
{
array_push($paths, str_replace("/usr/share/nginx/html/","http://10.143.67.216/",$obj->getMediaPath()));
}

then when i execute the code , it works on some files and there are many files that wont work . !

here is the error :
https://notepad.cc/qedoma8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant