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

Fail converting with docker #82

Open
mkoursh opened this issue Jan 31, 2021 · 1 comment
Open

Fail converting with docker #82

mkoursh opened this issue Jan 31, 2021 · 1 comment

Comments

@mkoursh
Copy link

mkoursh commented Jan 31, 2021

Hi, I have a problem with converting by docker. The scenario is that every time I want to convert, I create and start a docker container and after 60 seconds I execute export.js in the container. But most of the time, the resulting mp4 has no video and audio and the screen is black.

I guess, some services in container must be ready before executing export.js, but I'm not sure.
Even when I increase the time between running container and executing export.js, however, the problem remains.

I log the result of converting in a file, there is no difference with the case that converting is ok except that sizes of audio and video frames are small.

The sample output of failure converting:

12

37e54b2bab5710d884a9d8db8c3b039e4b0753cd-1612094255740.txt

@mkoursh
Copy link
Author

mkoursh commented Feb 1, 2021

Very strange. when I put below screenshot code after page.goto everything is working great!!!!
Line 123: await page.screenshot({fullPage: true, path:copyToPath + '/screenshot.png'});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants