We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Code:
public static boolean audioVideoMerge(@NotNull String audio, @NotNull String video, @NotNull String output) { boolean success = false; try (FileOutputStream fos = new FileOutputStream(output); DataSource videoDataSource = new FileDataSourceImpl(video); DataSource audioDataSource = new FileDataSourceImpl(audio)) { Movie countVideo = MovieCreator.build(videoDataSource); MovieCreator.build(audioDataSource).getTracks().forEach(countVideo::addTrack); Container out = new FragmentedMp4Builder().build(countVideo); out.writeContainer(fos.getChannel()); success = true; } catch (Exception e) { e.printStackTrace(); } new File(audio).delete(); new File(video).delete(); return success; }
Result: audio file exists video file exists
Is this a bug? Must use System.gc() and wait time to delete.
The text was updated successfully, but these errors were encountered:
I had the same problem
Sorry, something went wrong.
No branches or pull requests
Code:
Result:
audio file exists
video file exists
Is this a bug?
Must use System.gc() and wait time to delete.
The text was updated successfully, but these errors were encountered: