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

VncRecordingContainer creates an unnecessary delay during video export #5268

Open
nachg opened this issue Apr 14, 2022 · 3 comments
Open

VncRecordingContainer creates an unnecessary delay during video export #5268

nachg opened this issue Apr 14, 2022 · 3 comments

Comments

@nachg
Copy link

nachg commented Apr 14, 2022

Steps to reproduce:

  1. Run UI test with Selenium WebBrowser and video recording enabled, save the system time (t0)
  2. In demo purposes It should be working 10sec or above
  3. After test will be completed, save the system time (t1)
  4. Start exporting the video into mp4 or flv
  5. Save the system time after video export (t2)

Expected result:
Video should have length: t1-t0

Actual result:
Video length is (t2-t0)

nachg pushed a commit to nachg/testcontainers-java that referenced this issue Apr 14, 2022
@kiview
Copy link
Member

kiview commented Apr 18, 2022

Hey @nachg, thanks for your report. You say the video has a delay (delay in starting?), but from your description it sounds, like the video contains superfluous context after the test. Which is the case?

@nachg
Copy link
Author

nachg commented Apr 18, 2022

"after the test" is correct.
Here is an example:
https://stackoverflow.com/questions/71855139/video-recording-of-webdriver-session-with-testcontainers
My first commit to the: https://github.com/nachg/DockerDemo will show the problem and the second commit is fixing it.

deejgregor added a commit to deejgregor/testcontainers-java that referenced this issue Dec 15, 2022
deejgregor added a commit to deejgregor/testcontainers-java that referenced this issue Dec 15, 2022
@vmassol
Copy link
Contributor

vmassol commented Oct 17, 2023

Hello, we're also seeing this on XWiki. We have a TC/Webdriver test that takes 30s to execute and the save of the video takes 11mn. When we check the resulting FLV file, its length is 11mn and not 30s.

It seems that the reencoding which takes 11mn doesn't stop the recording and thus it's still recording then the reencoding executes. BTW any idea why there's a need to reencode?

thanks

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

3 participants