Important:
--
You received this message because you are subscribed to the Google Groups "selenide" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenide+u...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/selenide/dc4ed34f-3bdd-446c-be17-063833bc19abn%40googlegroups.com.
Hi,I see in the Java Classe :
https://github.com/bramp/ffmpeg-cli-wrapper/blob/master/src/main/java/net/bramp/ffmpeg/FFmpeg.java
You could declare a system variable FFMPEG to set the path to the ffmpeg binary.public class FFmpeg extends FFcommon {
public static final String FFMPEG = "ffmpeg";
public static final String DEFAULT_PATH = firstNonNull(System.getenv("FFMPEG"), FFMPEG);I put the ffmpeg.exe binary in the maven directory in src/test/resources => the binary will be copied in the target/test-classes directoryIn my pom.xml i add this System variable with
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.5.3</version>
<configuration>
<systemPropertyVariables>
<org.slf4j.simpleLogger.showDateTime>true</org.slf4j.simpleLogger.showDateTime>
<org.slf4j.simpleLogger.dateTimeFormat>yyyy-MM-dd'T'HH:mm:ss:SSS</org.slf4j.simpleLogger.dateTimeFormat>
<org.slf4j.simpleLogger.showShortLogName>true</org.slf4j.simpleLogger.showShortLogName>
<selenide.headless>false</selenide.headless>
<selenide.downloadsFolder>target/downloads</selenide.downloadsFolder>
<selenide.timeout>20000</selenide.timeout>
<selenide.browser>${browser}</selenide.browser>
<selenide.video.enabled>${video.enabled}</selenide.video.enabled>
....
<FFMPEG>${project.build.directory}/test-classes/ffmpeg.exe</FFMPEG>
</systemPropertyVariables>I see the the value in log
2025-08-27T10:22:11:477 [main] INFO PrTest - selenide.headless=false
2025-08-27T10:22:11:477 [main] INFO PrTest - selenide.browserBinary=C:\Program Files\Google\Chrome\Application\chrome.exe
2025-08-27T10:22:11:478 [main] INFO PrTest - selenide.reportsFolder=target/reports
2025-08-27T10:22:11:478 [main] INFO PrTest - selenide.video.enabled=true
2025-08-27T10:22:11:478 [main] INFO PrTest - selenide.video.save.mode=ALL
2025-08-27T10:22:11:478 [main] INFO PrTest - FFMPEG=C:\dev\intellij_idea\tests_non_regression_auto\target/test-classes/ffmpeg.exeBut when i launch the test, i have an error :Caused by: java.io.IOException: Cannot run program "ffmpeg": CreateProcess error=2, Le fichier spécifié est introuvable
at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1143)1) Why my System variable FFMPEG is not used ?2) How set the PATH to ffmpeg binary without change the Windows PATH ?3) How can i add the ffmpeg.exe directly in my maven project ?The main problem will be how to launch ffmpeg in a GitLab Runner in docker with java maven and chrome without ffmpeg?
Regards.Vincent DAB.On Tuesday, August 26, 2025 at 5:20:02 PM UTC+2 andrei....@gmail.com wrote: