Open maks1mov opened 3 years ago
Looks like this was fixed in #12
I'm having the same error
Cannot create the DataSink: javax.media.NoDataSinkException: Cannot find a DataSink for: com.sun.media.multiplexer.BasicMux$BasicMuxDataSource@22ead351
Failed to create a DataSink for the given output MediaLocator
I'm having the same error
Cannot create the DataSink: javax.media.NoDataSinkException: Cannot find a DataSink for: com.sun.media.multiplexer.BasicMux$BasicMuxDataSource@22ead351 Failed to create a DataSink for the given output MediaLocator
Post code
if (Helper.checkConfigValue("video", "true")){
VideoRecorderConfiguration.setCaptureInterval(50); // 20 frames/sec
VideoRecorderConfiguration.wantToUseFullScreen(true);
VideoRecorderConfiguration.setVideoDirectory(new File(Paths.get(System.getProperty("user.dir")).toUri()));
VideoRecorderConfiguration.setKeepFrames(false);
VideoRecorder.start("test");
}
and then
if (Helper.checkConfigValue("video", "true")){
String videoPath; // video created
try {
videoPath = VideoRecorder.stop();
} catch (MalformedURLException e) {
throw new RuntimeException(e);
}
System.out.println("path:" + videoPath);
}
SO: Win 11
if (Helper.checkConfigValue("video", "true")){ VideoRecorderConfiguration.setCaptureInterval(50); // 20 frames/sec VideoRecorderConfiguration.wantToUseFullScreen(true); VideoRecorderConfiguration.setVideoDirectory(new File(Paths.get(System.getProperty("user.dir")).toUri())); VideoRecorderConfiguration.setKeepFrames(false); VideoRecorder.start("test"); }
and then
if (Helper.checkConfigValue("video", "true")){ String videoPath; // video created try { videoPath = VideoRecorder.stop(); } catch (MalformedURLException e) { throw new RuntimeException(e); } System.out.println("path:" + videoPath); }
SO: Win 11
What is the output of System.getProperty("user.dir")
What is the output of
System.getProperty("user.dir")
It's my project's dir => C:\Silvero\Proyectos\Decathlon\Pedidos
Please, help!
Cannot create the DataSink: javax.media.NoDataSinkException: Cannot find a DataSink for: com.sun.media.multiplexer.BasicMux$BasicMuxDataSource@31b7dea0 Failed to create a DataSink for the given output MediaLocator: C:\Users\Public\Pictures\debug.mov
My code: