image - avconv generating frames in php -


i'm trying generate frames (at moment) on localhost server code:

$cmd = 'avconv -i "../videos/medium.mp4" -vsync 1 -r 10 -f image2 -an -y -qscale 20 -s 120*90 -ss 00:00:05 -t 00:00:10 "out_%05d.jpg" 2>&1';  passthru($cmd, $out); 

i following message:

[image2 @ 0x646120]could not open file : out_00001.jpg av_interleaved_write_frame(): input/output error failed1 

the problem if run command in terminal works. know whats problem? due permisson or else?

before executing $cmd need change directory first, , execute command.

chdir('path_to_your_location/videos/'); $cmd = 'avconv -i "../videos/medium.mp4" -vsync 1 -r 10 -f image2 -an -y -qscale 20 -s 120*90 -ss 00:00:05 -t 00:00:10 "out_%05d.jpg" 2>&1';  passthru($cmd, $out); 

Comments

Popular posts from this blog

c# - How to get the current UAC mode -

postgresql - Lazarus + Postgres: incomplete startup packet -

angularjs - ng-repeat duplicating items after page reload -