dmytrodanylyk / video-crop Goto Github PK
View Code? Open in Web Editor NEWAndroid Video Crop
Android Video Crop
sometimes the textureview doesn't render the video and produce only the audio..
I encountered this many times.
Hey there, I am having trouble using TextureVideoView to scale down the video itself while keeping the aspect ratio, any idea on how to do it? ScaleType only includes TOP, DOWN and CROP_CENTER
I've looked at your code to solve this :
https://stackoverflow.com/q/54216273/878126
Meaning not "top" or "center", but let's say "10% from the top (but centered horizontally) ...
Thing is, I've noticed that it doesn't work well for ImageView that I've set on top, as a preview before playing the video. I got a Github repo here:
Please help me out in achieving multiple Timelines, where to display the frames of selected videos
Here, in the screenshot have used three Timelines and with a horizontal scroll to view the frames of all three timelines at a time.
Plus icon is used to select Video/Image from Phone gallery. Selected media will appear in respective timelines
i tested on my moto maxx and video is extremely catching. tested cropping videos with full background and no compoments in the front of the video. sorry my bad english.
the scaleType "CENTER_CROP" is not totally same with the CENTER_CROP of ImageView
You seem to leak a lot of resources.
09-16 16:10:35.809 10955-10967/com.justyoyo.staging.debug E/StrictMode﹕ A resource was acquired at attached stack trace but never released. See java.io.Closeable for information on avoiding resource leaks.
java.lang.Throwable: Explicit termination method 'release' not called
at dalvik.system.CloseGuard.open(CloseGuard.java:184)
at android.view.Surface.setNativeObjectLocked(Surface.java:397)
at android.view.Surface.<init>(Surface.java:128)
at com.justyoyo.ui.views.video.TextureVideoView.onSurfaceTextureAvailable(TextureVideoView.java:359)
at android.view.TextureView.getHardwareLayer(TextureView.java:385)
at android.view.View.getDisplayList(View.java:13353)
at android.view.View.getDisplayList(View.java:13429)
at android.view.View.draw(View.java:14207)
at android.view.ViewGroup.drawChild(ViewGroup.java:3103)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2940)
at android.view.View.getDisplayList(View.java:13382)
at android.view.View.getDisplayList(View.java:13429)
at android.view.View.draw(View.java:14207)
at android.view.ViewGroup.drawChild(ViewGroup.java:3103)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2940)
at android.view.View.getDisplayList(View.java:13382)
at android.view.View.getDisplayList(View.java:13429)
at android.view.View.draw(View.java:14207)
at android.view.ViewGroup.drawChild(ViewGroup.java:3103)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2940)
at android.view.View.getDisplayList(View.java:13382)
at android.view.View.getDisplayList(View.java:13429)
at android.view.View.draw(View.java:14207)
at android.view.ViewGroup.drawChild(ViewGroup.java:3103)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2940)
at android.view.View.draw(View.java:14493)
at android.widget.FrameLayout.draw(FrameLayout.java:472)
at com.android.internal.policy.impl.PhoneWindow$DecorView.draw(PhoneWindow.java)
at android.view.View.getDisplayList(View.java:13387)
at android.view.View.getDisplayList(View.java:13429)
at android.view.HardwareRenderer$GlRenderer.buildDisplayList(HardwareRenderer.java:1570)
at android.view.HardwareRenderer$GlRenderer.draw(HardwareRenderer.java:1449)
at android.view.ViewRootImpl.draw(ViewRootImpl.java:2488)
at android.view.ViewRootImpl.performDraw(ViewRootImpl.java:2343)
at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1935)
at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1025)
at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:5808)
at android.view.Choreographer$CallbackRecord.run(Choreographer.java:791)
at android.view.Choreographer.doCallbacks(Choreographer.java:595)
at android.view.Choreographer.doFrame(Choreographer.java:555)
at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:777)
at android.os.Handler.handleCallback(Handler.java:733)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5171)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:837)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:653)
I've tried to scroll down a list of MP4s and .gifs with this implementation but it ends up freezing the UI. Any ideas on what the issue could be?
Would be nice if this were available via gradle so we don't have to suck the library in...
Dear Dmytro Danylyk,
I'm very sorry to contact you here, because I'm confused about how to send messages to you via github. I think you have the ability and experience in the field of cutting videos based on Android.
I would like to invite you to contribute to the development of open source projects because I am confused as to who I should ask for help.
I have an issue regarding cutting videos here, if you are willing to see and try to solve the issue, of course we are very happy and this will have an impact on android developers in Cordova.
Here I attach the issue link below
monkeyDledger/cordova-plugin-screenrecord#4
and this link source code below
https://github.com/monkeyDledger/cordova-plugin-screenrecord/tree/master/src/android
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.