我有多个同样帧率和分辨率的视频录像。我想将这两个视频合并成一个较大的视频。我正在使用MP4解析器API,并使用以下代码:
Movie countVideo = new MovieCreator().build(Channels.newChannel(MuxExample.class.getResourceAsStream("/count-video.mp4")));
Movie countAudioDeutsch = new MovieCreator().build(Channels.newChannel(MuxExample.class.getResourceAsStream("/count-deutsch-audio.mp4")));
Movie countAudioEnglish = new MovieCreator().build(Channels.newChannel(MuxExample.class.getResourceAsStream("/count-english-audio.mp4")));
使用jar包isoviewer-1.0-RC-35.jar。但是在该行出现错误-
Movie countVideo = new MovieCreator().build(Channels.newChannel(MuxExample.class.getResourceAsStream("/count-video.mp4")));
在build方法中,它说:“MovieCreator类中的build(String)方法不适用于参数(FileChannel)。”这是否与jar包有关?我需要使用哪个jar包?还是有其他方法可以解决这个问题?请帮助我解决这个问题。