sannies / mp4parser

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

Cant Trim Videos #454

Open STICKnoLOGIC opened 1 year ago

STICKnoLOGIC commented 1 year ago

Hi! want to share my experience and error that I encounter, I migrate from version1.2.x to 1.9.x, Screenshot_20221001_085650 as you can see, The error is in the MovieCreator.build, I checked first if the src file is null (but its not): here is the code: private static void generateVideo(@NonNull File src, @NonNull File dst, long startMs, long endMs, @NonNull OnVideoTrimListener callback) throws Exception { Movie movie = MovieCreator.build(src.getAbsolutePath()); //the error T_T /*other code to trim videos*/ }

Anyone can guide on why and how?

Thanks!