I want to get 8 frames from every video file which have variable duration. I am not going to get 8 frames from start i want to get from whole video starting to end of video. Is anyone know php-library for accomplished that ?
Asked
Active
Viewed 899 times
1
-
ffmpeg -i input.mkv -vf select='not(mod(n\,300))',setpts=N/TB -r 1 -s 720*720 -vframes 8 output/frames%03d.png – Shahzad Nasir Nov 25 '16 at 07:20
-
after lots of struggle i create a command but its only valid of short videos it gets only 8 frames in the begging of long video. – Shahzad Nasir Nov 25 '16 at 07:22
-
See [this ](http://stackoverflow.com/questions/8679390/ffmpeg-extracting-20-images-from-a-video-of-variable-length ) or [this][2] questions. Doing a search yields some more. [2]: http://stackoverflow.com/questions/35912335/how-to-extract-a-fixed-number-of-frames-with-ffmpeg – npit Apr 10 '17 at 06:40