Permalink
Browse files

added example for image to video conversion (closes #82)

  • Loading branch information...
1 parent 6b2e4fd commit 32272d358fee1c5a47ed0173054079ccb9eb7678 @schaermu schaermu committed Nov 28, 2012
Showing with 12 additions and 0 deletions.
  1. +12 −0 examples/image2video.js
View
@@ -0,0 +1,12 @@
+var ffmpeg = require('../index');
+
+// make sure you set the correct path to your video file
+var proc = new ffmpeg({ source: '/path/to/your_image.jpg', nolog: true })
+ // loop for 5 seconds
+ .loop(5)
+ // using 25 fps
+ .withFps(25)
+ // save to file
+ .saveToFile('/path/to/your_target.m4v', function(retcode, error){
+ console.log('file has been converted succesfully');
+ });

0 comments on commit 32272d3

Please sign in to comment.