Closed vaporbolt closed 4 years ago
Something else important to note is when I don't set the video codec at all, I concatenate all the videos but it only plays audio
Hey guys so I guess I solved it for anyone else wondering. Unless I am mistaken, concatenating more than one video through mp4 parser really messes with the video codec. I couldn't get it to work but I solved this issue by using an ffmpeg wrapper, which ended up working quite nicely. See here https://github.com/bramp/ffmpeg-cli-wrapper/issues/147
Hi! I have a list of mp4 videos which by using the FFmpegbuilder api, changes the resolution and encryption to be uniform. Here's a list of these commands .setFormat("mp4") // Format is inferred from filename, or can be set //.setTargetSize(250_000) // Aim for a 250KB file
and then I execute the following code to attempt to append all 3 mp4 files together
public static void mergenew(File file, File newFile) throws IOException {
I keep getting the following error:java.io.IOException: Cannot merge VisualSampleEntry[com.googlecode.mp4parser.boxes.mp4.ESDescriptorBox@a52110d1] and VisualSampleEntry[com.googlecode.mp4parser.boxes.mp4.ESDescriptorBox@a8c2d873] at com.googlecode.mp4parser.authoring.tracks.AppendTrack.mergeStsds(AppendTrack.java:116) at com.googlecode.mp4parser.authoring.tracks.AppendTrack.(AppendTrack.java:59)
any ideas?