ypresto / android-transcoder

MP4 video transcode using Android MediaCodec API, pure Java (not LGPL nor patent issue!). Supports API >= 18.
Apache License 2.0
832 stars 238 forks source link

Transcoding Webm to MP4 #41

Open dioxmio opened 7 years ago

dioxmio commented 7 years ago

Hi,

I'm trying to transcode from webm to mp4 and I get the following exception:

java.lang.NullPointerException: Attempt to invoke virtual method 'int java.lang.Integer.intValue()' on a null object reference at android.media.MediaFormat.getInteger(MediaFormat.java:524)

is that supported? many thanks

ypresto commented 7 years ago

Please paste following lines of trace after getInteger(MediaFormat.java:524), it is necessary to determine that.

dioxmio commented 7 years ago

Hi, please find the stacktrace attached in this screenshot:

screen shot 2017-02-10 at 12 31 11

I'm using this cordova plugin: https://github.com/jbavari/cordova-plugin-video-editor which is using your lib.

it is using compile 'com.github.ergovia-mobile:android-transcoder:.v01.10R_ergovia'

Any idea what might be causing the problem? let me know if I can help further

cheers

dioxmio commented 7 years ago

@ypresto any ideas there? many thanks!

ypresto commented 7 years ago

@dioxmio Is that video file has audio track inside it?