Author: david
Date: Mon Feb 27 15:41:19 2012
New Revision: 10992
Log:
Generate thumbnail at 30 second mark of video
Modified:
trunk/lib/model/QubitDigitalObject.php
Modified: trunk/lib/model/QubitDigitalObject.php
==============================================================================
--- trunk/lib/model/QubitDigitalObject.php Mon Feb 27 15:25:24 2012
(r10991)
+++ trunk/lib/model/QubitDigitalObject.php Mon Feb 27 15:41:19 2012
(r10992)
@@ -1740,7 +1740,7 @@
}
// Do conversion to jpeg
- $command = 'ffmpeg -i '.$originalPath.' -vframes 1 -an -f image2 -s
'.$width.'x'.$height.' '.$newPath;
+ $command = 'ffmpeg -itsoffset -30 -i '.$originalPath.' -vframes 1 -an -f
image2 -s '.$width.'x'.$height.' '.$newPath;
exec($command.' 2>&1', $output, $status);
chmod($newPath, 0644);
--
You received this message because you are subscribed to the Google Groups
"Qubit Toolkit Commits" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/qubit-commits?hl=en.