crust87 / android-videocropper Goto Github PK
View Code? Open in Web Editor NEWAndroid Video Cropper: Example of FFmpegExecutor, VideoCropView, VideoTrackView
Android Video Cropper: Example of FFmpegExecutor, VideoCropView, VideoTrackView
Hi. Thanks for such wonderful library. I am facing 1 issue, Let's say I have VideoCropView in half of the screen with weight. Landscape videos play perfectly with no issues. But with portrait video its not showing entirely in height. Can you please help me with that?
Thanks in advance.
I tried it in as, but it outputed a 261B result.mp4 in root directory of sd card, anyone help?
I open app and go to gallery and select a video.
return to app, it is finished.
device
Nexus 6p : android nougat
Nexus 5 : android mashmellow
08-29 12:18:08.129 9896-9896/com.crust87.videocropper E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.crust87.videocropper, PID: 9896
java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=1000, result=-1, data=Intent { dat=content://com.google.android.apps.photos.contentprovider/0/2/content://media/external/video/media/228/ORIGINAL/NONE/869829627 flg=0x1 clip={text/uri-list U:content://com.google.android.apps.photos.contentprovider/0/2/content%3A%2F%2Fmedia%2Fexternal%2Fvideo%2Fmedia%2F228/ORIGINAL/NONE/869829627} }} to activity {com.crust87.videocropper/com.crust87.videocropper.MainActivity}: java.lang.IllegalArgumentException
at android.app.ActivityThread.deliverResults(ActivityThread.java:3699)
at android.app.ActivityThread.handleSendResult(ActivityThread.java:3742)
at android.app.ActivityThread.-wrap16(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1393)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:5417)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
Caused by: java.lang.IllegalArgumentException
at android.media.MediaMetadataRetriever.setDataSource(MediaMetadataRetriever.java:73)
at com.crust87.videotrackview.VideoTrackView.setVideo(VideoTrackView.java:149)
at com.crust87.videocropper.MainActivity.setOriginalVideo(MainActivity.java:336)
at com.crust87.videocropper.MainActivity.onActivityResult(MainActivity.java:208)
at android.app.Activity.dispatchActivityResult(Activity.java:6456)
at android.app.ActivityThread.deliverResults(ActivityThread.java:3695)
at android.app.ActivityThread.handleSendResult(ActivityThread.java:3742)
at android.app.ActivityThread.-wrap16(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1393)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:5417)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.