sannies / mp4parser

A Java API to read, write and create MP4 files
Apache License 2.0
2.74k stars 563 forks source link

MovieCreator.build(file) NullPointerException #449

Open StormLion opened 2 years ago

StormLion commented 2 years ago

I got a while i call the build method, just like below, can anybody help public static void startTrim(File src, File dst, int startMs, int endMs) throws IOException { FileDataSourceImpl file = new FileDataSourceImpl(src); Movie movie = MovieCreator.build(file); // here i got the NullPointerException // remove all tracks we will create new tracks from the old List<Track> tracks = movie.getTracks(); movie.setTracks(new LinkedList<Track>());