Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

on end not triggred on aws lamda #990

Open
JogiPrasadPakki opened this issue Mar 8, 2020 · 0 comments
Open

on end not triggred on aws lamda #990

JogiPrasadPakki opened this issue Mar 8, 2020 · 0 comments

Comments

@JogiPrasadPakki
Copy link

I am want take video thumbnail on lamda but "end" event not triggered on lamda but working on my windows local machine i set all ffmpeg environment variable on lamda this is my code

 new ffmpeg({ source: target',nolog: true })
 	.on('error', function(err) {
	    console.log('An error occurred: ' + err.message);
	  })
 	.on('filenames', function(filenames) {
	    //console.log('Will generate ' + filenames.join(', '))

	    console.log(filenames[0])

	  })
	  .on('end', function() {
	  	console.log('Screen shots taken')
	  })
    .takeScreenshots({ 
    	count: 1, 
    	timemarks: [ '00:00:02.000' ], 
    	size: '1280x720'}, 
    	'/tmp/')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant