jave2
jave2 copied to clipboard
how can jave merge two mp3 file into one mp3 file
Please have a look at this test case
https://github.com/a-schild/jave2/blob/master/jave-core-test/src/test/java/ws/schild/jave/ConcatEncoderTest.java
Should also work with audio files
Please have a look at this test case
https://github.com/a-schild/jave2/blob/master/jave-core-test/src/test/java/ws/schild/jave/ConcatEncoderTest.java
Should also work with audio files
i run testContactAudio01,but the result is "concat"(1+2=12) not “merge”(1+2=3)
What do you mean by merge?
What do you mean by merge?
Merge two mono files into a stereo stream
This is currently not supported, but we would accept a merge request ;)
From https://trac.ffmpeg.org/wiki/AudioChannelManipulation
ffmpeg -i left.mp3 -i right.mp3 -filter_complex "[0:a][1:a]join=inputs=2:channel_layout=stereo[a]" -map "[a]" output.mp3
or
ffmpeg -i left.mp3 -i right.mp3 -filter_complex "[0:a][1:a]amerge=inputs=2[a]" -map "[a]" output.mka
There are plenty of examples of adding Filters in JAVE 3.0 versions: https://github.com/a-schild/jave2/blob/dev-3.0-changes/jave-core-test/src/test/java/ws/schild/jave/filters/VideoFilterTest.java#L163