When choosing any of those files, it crashes:
MOV
WEBM
AVI
MPG
MKV
MP4
3GP
...
All of those it crashes.
Here's the log:
java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=18, result=-1, data=Intent { dat=content://com.android.providers.downloads.documents/document/raw:/storage/emulated/0/Download/sample videos/SampleVideo_176x144_1mb.3gp flg=0x1 }} to activity {com.deep.videotrimmerexample/com.deep.videotrimmerexample.MainActivity}: java.lang.NumberFormatException: For input string: "raw:/storage/emulated/0/Download/sample videos/SampleVideo_176x144_1mb.3gp"
at android.app.ActivityThread.deliverResults(ActivityThread.java:4398)
at android.app.ActivityThread.handleSendResult(ActivityThread.java:4440)
at android.app.servertransaction.ActivityResultItem.execute(ActivityResultItem.java:49)
at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:108)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:68)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1816)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:193)
at android.app.ActivityThread.main(ActivityThread.java:6718)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)
Caused by: java.lang.NumberFormatException: For input string: "raw:/storage/emulated/0/Download/sample videos/SampleVideo_176x144_1mb.3gp"
at java.lang.Long.parseLong(Long.java:594)
at java.lang.Long.valueOf(Long.java:808)
at com.deep.videotrimmer.utils.FileUtils.getPath(FileUtils.java:75)
at com.deep.videotrimmerexample.MainActivity.startTrimActivity(MainActivity.java:114)
at com.deep.videotrimmerexample.MainActivity.onActivityResult(MainActivity.java:150)
at android.app.Activity.dispatchActivityResult(Activity.java:7462)
at android.app.ActivityThread.deliverResults(ActivityThread.java:4391)
at android.app.ActivityThread.handleSendResult(ActivityThread.java:4440)
at android.app.servertransaction.ActivityResultItem.execute(ActivityResultItem.java:49)
at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:108)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:68)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1816)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:193)
at android.app.ActivityThread.main(ActivityThread.java:6718)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)
2019-01-31 14:48:13.260 1924-1924/? E/QtiImsExtUtils: getConfigForPhoneId phoneId is invalid
2019-01-31 14:48:13.261 1924-1924/? E/QtiImsExtUtils: isCarrierConfigEnabled bundle is null

When choosing any of those files, it crashes:
MOV
WEBM
AVI
MPG
MKV
MP4
3GP
...
All of those it crashes.
Here's the log:
java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=18, result=-1, data=Intent { dat=content://com.android.providers.downloads.documents/document/raw:/storage/emulated/0/Download/sample videos/SampleVideo_176x144_1mb.3gp flg=0x1 }} to activity {com.deep.videotrimmerexample/com.deep.videotrimmerexample.MainActivity}: java.lang.NumberFormatException: For input string: "raw:/storage/emulated/0/Download/sample videos/SampleVideo_176x144_1mb.3gp"
at android.app.ActivityThread.deliverResults(ActivityThread.java:4398)
at android.app.ActivityThread.handleSendResult(ActivityThread.java:4440)
at android.app.servertransaction.ActivityResultItem.execute(ActivityResultItem.java:49)
at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:108)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:68)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1816)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:193)
at android.app.ActivityThread.main(ActivityThread.java:6718)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)
Caused by: java.lang.NumberFormatException: For input string: "raw:/storage/emulated/0/Download/sample videos/SampleVideo_176x144_1mb.3gp"
at java.lang.Long.parseLong(Long.java:594)
at java.lang.Long.valueOf(Long.java:808)
at com.deep.videotrimmer.utils.FileUtils.getPath(FileUtils.java:75)
at com.deep.videotrimmerexample.MainActivity.startTrimActivity(MainActivity.java:114)
at com.deep.videotrimmerexample.MainActivity.onActivityResult(MainActivity.java:150)
at android.app.Activity.dispatchActivityResult(Activity.java:7462)
at android.app.ActivityThread.deliverResults(ActivityThread.java:4391)
at android.app.ActivityThread.handleSendResult(ActivityThread.java:4440)
at android.app.servertransaction.ActivityResultItem.execute(ActivityResultItem.java:49)
at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:108)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:68)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1816)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:193)
at android.app.ActivityThread.main(ActivityThread.java:6718)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)
2019-01-31 14:48:13.260 1924-1924/? E/QtiImsExtUtils: getConfigForPhoneId phoneId is invalid
2019-01-31 14:48:13.261 1924-1924/? E/QtiImsExtUtils: isCarrierConfigEnabled bundle is null