mp4parser icon indicating copy to clipboard operation
mp4parser copied to clipboard

MovieCreator.build(videoUri) getTracks empty

Open shoyu666 opened this issue 7 years ago • 1 comments

Movie m = MovieCreator.build(videoUri) m.getTracks() is empty

use AppendTrack throw java.util.NoSuchElementException at java.util.LinkedList$ListItr.next(Unknown Source) at org.mp4parser.muxer.builder.DefaultMp4Builder.getTimescale(DefaultMp4Builder.java:628) at org.mp4parser.muxer.builder.DefaultMp4Builder.createMovieBox(DefaultMp4Builder.java:179) at org.mp4parser.muxer.builder.DefaultMp4Builder.build(DefaultMp4Builder.java:110) at com.googlecode.mp4parser.AppendExample.main(AppendExample.java:59)

shoyu666 avatar Jul 30 '18 09:07 shoyu666

This happens because you are passing a Uri instead of the file path. I know on Android 10> we can no longer access the file path where we could previously access the path from the _data column using ContentResolver. I hope the author will provide an option to pass a FileInputStream instead of a file path since there is currently no way to pass a file path unless you copy the file to your applications directory.

HBiSoft avatar Jan 27 '20 10:01 HBiSoft