Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ffmpeg( filepath )
- .toFormat( 'mp4' )
- .videoCodec( 'libx264' )
- .audioCodec( 'aac' );
- .videoFilters('crop=1080:1080:399:0' ) //HOW DO I MAKE THIS WORK?
- .output( destination )
- .fps( 30 )
- .size( target_width + 'x' + target_height )
- .on( 'error', (error, stdout, stderr) => reject(error) )
- .on( 'end', resolve )
- .run();
Add Comment
Please, Sign In to add comment