Skip to content
This repository has been archived by the owner on Dec 17, 2024. It is now read-only.

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

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

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.

@aandryashin aandryashin closed this as not planned Won't fix, can't repro, duplicate, stale Dec 17, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants