Voting starts in March for the Drupal Association Board election.
When I creating thumbnails via ffmpeg in video module, it took a long time ( 20minutes for 4 thumbnails in 1 hour video ).
The process of creating in background looks like -
/usr/local/bin/ffmpeg -i '/var/www/vddev/sites/default/rfiles/videos/original/test.flv' -ss '768' -t '768' -an -r '25' -vframes '1' -y /tmp/1339694710-4fda1e7690bd2-%12d.png 2>&1
The thumbnails are creating for example in this time of creation:
sites/default/rfiles/videos/thumbnails/254$ ls -l total 1716 -rw-r--r-- 1 www-data www-data 402935 Jun 14 18:39 thumbnail-254_0001.png -rw-r--r-- 1 www-data www-data 389126 Jun 14 18:44 thumbnail-254_0002.png -rw-r--r-- 1 www-data www-data 355466 Jun 14 18:51 thumbnail-254_0003.png -rw-r--r-- 1 www-data www-data 598806 Jun 14 18:56 thumbnail-254_0004.png
If i try to execute this comand in comand line it also took a long time, but if i try to execute same command with relocation of "-ss" parameter in the beginning of comand like this :
/usr/local/bin/ffmpeg -ss '768' -i '/var/www/vddev/sites/default/rfiles/videos/original/test.flv' -t '768' -an -r '25' -vframes '1' -y /tmp/1339694710-4fda1e7690bd2-%12d.png 2>&1
It took only 1 or 2 seconds for creating thumbnail.
It is possible to change order of "-ss" as the first parameter in command in module i guess in function extractFrames in file phpvideotoolkit.php5.php located in modules/video/libraries/phpvideotoolkit/ or in file TranscoderAbstractionFactoryFfmpeg.inc located in /modules/video/transcoders
I tried to rewrite this functions but i didn't success in changing order of this parameter, i havent deep experience with drupal modules, can anyone help with this ?