-
Notifications
You must be signed in to change notification settings - Fork 249
New issue
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
Cannot add audio (.wav) to a video file (.mp4) #204
Comments
FYI, I am able to add audio to the video if I use this command in the CLI: THANKS! |
I also wanna to implement it, but i don't find any method. |
@wxyleo `
// Process pr = rt.exec("/opt/homebrew/bin/ffmpeg"); |
tks |
Hey! Overall I love jave, had tons of luck with splitting .mp4s. Now I need to add audio to my video files.
`attributes = new EncodingAttributes();
attributes.setOutputFormat("mp4");
attributes.setVideoAttributes(video);
attributes.setAudioAttributes(audio);
and I'm getting a
Exception in thread "main" ws.schild.jave.EncoderException: Exit code of ffmpeg encoding run is 1 at ws.schild.jave.Encoder.encode(Encoder.java:638) at ws.schild.jave.Encoder.encode(Encoder.java:481) at ws.schild.jave.Encoder.encode(Encoder.java:324) at dr_slurp.MyceliumFidelity.Video.VideoSplitter.addAudioToVideo(VideoSplitter.java:92) at dr_slurp.MyceliumFidelity.MyFiTester.audioAdder(MyFiTester.java:34) at dr_slurp.MyceliumFidelity.MyFiTester.main(MyFiTester.java:26)
Is there a way to put audio on a video file that has no audio already?
Thanks,
The text was updated successfully, but these errors were encountered: