Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
Something like this
system('ffmpeg -i in.avi -f segment -segment_time 1 -vcodec copy -acodec copy out%03d.avi',$return);
You don't need to break it into pieces - php.net/manual/ru/function.hash-file.php
If you implement the algorithm yourself, then php calculates SHA256 very, very slowly.
The best thing in terms of speed is to find a system utility that can hash the entire file and call it via exec, system, etc
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question