testcontainers-java
testcontainers-java copied to clipboard
VncRecordingContainer creates an unnecessary delay during video export.
Hey @nachg, can you please add a bit more context to the PR?
Hey @nachg, can you please add a bit more context to the PR? I put context here: https://github.com/testcontainers/testcontainers-java/issues/5268
Can you please elaborate on how copying the file before reencoding fixes the issue at hand?
Can you please elaborate on how copying the file before reencoding fixes the issue at hand?
VNC recorder working with the output file as with a stream. If we will start the encoding process on that file, it length will be increased during the process. That's why I create a copy - to "stop" extanding the file length by the VNC. Another possible solution is to stop the VNC process and run encoding after it. But I was not able to find the way how it can be done.
Another possible solution is to stop the VNC process and run encoding after it. But I was not able to find the way how it can be done.
Here is how I've hacked it up: https://github.com/testcontainers/testcontainers-java/discussions/6229
I plan to submit a PR to stop the recording after the test is done.