GPUVideo-android icon indicating copy to clipboard operation
GPUVideo-android copied to clipboard

Call to GPUMp4Composer.start() stuck. When logging GPUMp4Composer then getting java.lang.NumberFormatException:

Open afsaredrisy opened this issue 4 years ago • 0 comments

Hello, I am trying to filter the mp4 video, some video files work perfectly but with some files, I am not getting any callback response from GPUMp4Composer.

I saw the log with the tag GPUMp4Composer so I can see the following log.

2020-12-23 23:47:49.524 15453-17230/co.introtuce.nex2me.android E/AndroidRuntime: FATAL EXCEPTION: pool-9-thread-1
    Process: co.introtuce.nex2me.android, PID: 15453
    java.lang.NumberFormatException: s == null
        at java.lang.Integer.parseInt(Integer.java:577)
        at java.lang.Integer.valueOf(Integer.java:801)
        at com.daasuu.gpuv.composer.GPUMp4Composer.getVideoResolution(GPUMp4Composer.java:287)
        at com.daasuu.gpuv.composer.GPUMp4Composer.access$300(GPUMp4Composer.java:16)
        at com.daasuu.gpuv.composer.GPUMp4Composer$1.run(GPUMp4Composer.java:145)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
        at java.lang.Thread.run(Thread.java:919)

I am suspecting some issue with my video file but I am not getting any callback response from Mp4Composer. I think it must respond to onFailed(Exception exception) of GPUMp4Composer.Listener. Otherwise, how would my system knows that the filtering process has failed?
Anybody knows of any workaround to validate the input mp4 file before calling GPUMp4Composer.start()?

afsaredrisy avatar Dec 23 '20 18:12 afsaredrisy