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

Video file has 0 Bytes when screen resolution has odd numbers #675

Open
martingrossmann opened this issue Mar 15, 2024 · 4 comments
Open

Comments

@martingrossmann
Copy link

martingrossmann commented Mar 15, 2024

There seems to be an issue with the used MPEG encoder when the screen resolution of the browser container is set to a dimension with odd numbers like "1000x801" or "1001x800".

The browser container and VNC are not affected, just the generated video file has a size of 0 Bytes.

I know the workaround is simple and the normal desktop resolutions contains even numbers. But we found that using portrait resolutions to test responsive design. For example Chrome has some predefined resolutions in it's DevTools to simulate other (mobile) devices which contains odd numbers.

@vania-pooh
Copy link
Member

@martingrossmann Having even resolution is a requirement of h264 codec we are using for encoding videos. So this is not a Selenoid limitation, but a ffmpeg codec limitation. This should have been fixed here: #351

@martingrossmann
Copy link
Author

martingrossmann commented Mar 15, 2024

Thank you for your answer. My image it too old...

@martingrossmann
Copy link
Author

Ok, I doublechecked that... The latest Docker Hub image is sha256:b855ce71aeda6df96c8895cc9cabdb7e70275b2951e56b6b460439db0354ef18 and this was created 2020-12-06, some weeks before your fix.
It seems Docker Hub needs an update?

@vania-pooh
Copy link
Member

Yeah, probably need to rebuild from source.

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

2 participants