prasanaworld / puppeteer-screen-recorder

A powerful plugin for recording with Puppeteer.
https://prasanaworld.github.io/puppeteer-screen-recorder/classes/puppeteerscreenrecorder.html
MIT License
379 stars 63 forks source link

Video is not captured when using Chromium for AWS Lambda #55

Open IlliaHryshkevych opened 2 years ago

IlliaHryshkevych commented 2 years ago

The following error received:

Error unable to capture video stream: ffmpeg exited with code 1: Output #0, mp4, to '/tmp/d6c6f277-015b-4271-9d0b-b3b5aaa1be9f/output.mp4':
Output file #0 does not contain any stream

Versions used: puppeteer-screen-recorder: 2.1.2 @sparticuz/chromium: 107.0.0 puppeteer-core: 18.1.0 ffmpeg: 5.1.1 (downloaded manually from https://johnvansickle.com/ffmpeg/releases/ffmpeg-release-amd64-static.tar.xz)

IlliaHryshkevych commented 2 years ago

It works fine with puppeteer-screen-recorder: 2.0.2

prasanaworld commented 1 year ago

Please make sure to use custom lambda image to run the ffmpeg run properly in AWS lambda.

I hope this Stackoverflow threads answer this https://stackoverflow.com/questions/47044448/how-to-install-ffmpeg-on-aws-lambda-machine