🎞 Hardware-accelerated video transcoding using Android MediaCodec APIs. Supports cropping, concatenation, clipping, audio processing, video speed and much more.
Fix NullPointerException with ClipDataSource(FilePathDataSource())
Exception:
java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.media.MediaMetadataRetriever.extractMetadata(int)' on a null object reference
at com.otaliastudios.transcoder.source.DefaultDataSource.getDurationUs(DefaultDataSource.java:276)
at com.otaliastudios.transcoder.source.ClipDataSource.getSourceDurationUs(ClipDataSource.java:23)
at com.otaliastudios.transcoder.source.ClipDataSource.(ClipDataSource.java:18)
https://github.com/natario1/Transcoder/issues/133
Fix NullPointerException with ClipDataSource(FilePathDataSource()) Exception: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.media.MediaMetadataRetriever.extractMetadata(int)' on a null object reference at com.otaliastudios.transcoder.source.DefaultDataSource.getDurationUs(DefaultDataSource.java:276) at com.otaliastudios.transcoder.source.ClipDataSource.getSourceDurationUs(ClipDataSource.java:23) at com.otaliastudios.transcoder.source.ClipDataSource.(ClipDataSource.java:18)