@Test
        public void recordingTestThatShouldHaveCorrectDuration() throws IOException, InterruptedException {
            MountableFile mountableFile;
            try (
                BrowserWebDriverContainer<?> chrome = new BrowserWebDriverContainer<>()
                    .withCapabilities(new ChromeOptions())
                    .withRecordingMode(VncRecordingMode.RECORD_ALL, vncRecordingDirectory.getRoot())
                    .withRecordingFileFactory(new DefaultRecordingFileFactory())
                    .withNetwork(NETWORK)
            ) {
                File[] recordedFiles = runSimpleExploreInContainer(chrome, "PASSED-.*\\.flv");
                mountableFile = MountableFile.forHostPath(recordedFiles[0].getCanonicalPath());
            }

            try (
                GenericContainer<?> container = new GenericContainer<>(
                    DockerImageName.parse("testcontainers/vnc-recorder:1.3.0")
                )
            ) {
                String recordFileContainerPath = "/tmp/chromeTestRecord.flv";
                container
                    .withCopyFileToContainer(mountableFile, recordFileContainerPath)
                    .withCreateContainerCmdModifier(createContainerCmd -> createContainerCmd.withEntrypoint("ffmpeg"))
                    .withCommand("-i", recordFileContainerPath, "-f", "null", "-")
                    .waitingFor(
                        new LogMessageWaitStrategy()
                            .withRegEx(".*Duration.*")
                            .withStartupTimeout(Duration.of(60, ChronoUnit.SECONDS))
                    )
                    .start();
                String ffmpegOutput = container.getLogs();

                assertThat(ffmpegOutput)
                    .as("Duration starts with 00:")
                    .contains("Duration: 00:")
                    .doesNotContain("Duration: 00:00:00.00");
            }
        }
Guaranty a minimum video length for FFmpeg re-encoding.
@see VncRecordingFormat#reencodeRecording(VncRecordingContainer, String)
modules/selenium/src/test/java/org/testcontainers/junit/ChromeRecordingWebDriverContainerTest.java