You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I try to record a video with custom dimension 720x1280 or 1280x720.
I expected the output to have the same dimension with the original video but the recorded video add some black space on top and bottom and (width, height) are different then original dimension.
Tell us about your environment:
Puppeteer version: 2.1.1
Platform: docker ubuntu
Landscape example: Dimension used in export.js and background.js (width: 1280, height: 720) Original video:
You could try setting the screen size during initialization of xvfb and play the video in full screen mode to make sure that entire viewport is recorded.
I try to record a video with custom dimension 720x1280 or 1280x720.
I expected the output to have the same dimension with the original video but the recorded video add some black space on top and bottom and (width, height) are different then original dimension.
Tell us about your environment:
Puppeteer version: 2.1.1
Platform: docker ubuntu
Landscape example:
Dimension used in export.js and background.js (width: 1280, height: 720)
Original video:
Exported record video:
If you see the last frame from exported video are the real size from original video size.
Portrait example
Dimension used in export.js and background.js (width: 720, height: 1280)
Original video:
Exported record video:
Used code for bunny example, in second example just dimension are different.
export.js
background.js:
Dockerfile:
The text was updated successfully, but these errors were encountered: