Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Video Compression not working #1

Closed
akashqss opened this issue Aug 6, 2015 · 9 comments
Closed

Video Compression not working #1

akashqss opened this issue Aug 6, 2015 · 9 comments

Comments

@akashqss
Copy link

akashqss commented Aug 6, 2015

I am using your code .when click on compress button it forcefully closed.

Caused by: java.lang.UnsatisfiedLinkError: Native method not found: com.lalongooo.videocompressor.video.MediaController.convertVideoFrame:(Ljava/nio/ByteBuffer;Ljava/nio/ByteBuffer;IIIII)I

@lalongooo
Copy link
Owner

What's the output of this command?

image

@akashqss
Copy link
Author

akashqss commented Aug 7, 2015

I am not getting any output in logcat when rebuild your project and when try to compress got above error.

its come on MediaController class line 583 ( convertVideoFrame(rgbBuf, yuvBuf, colorFormat, resultWidth, resultHeight, padding, swapUV))

@lalongooo
Copy link
Owner

Please, paste here your Gradle Console output:

image

@akashqss
Copy link
Author

Executing tasks: [:app:assembleDebug]

Configuration on demand is an incubating feature.
WARNING [Project: :app] Current NDK support is deprecated. Alternative will be provided in the future.
:app:preBuild UP-TO-DATE
:app:preDebugBuild UP-TO-DATE
:app:checkDebugManifest
:app:preReleaseBuild UP-TO-DATE
:app:prepareComAndroidSupportSupportV42220Library UP-TO-DATE
:app:prepareDebugDependencies
:app:compileDebugAidl UP-TO-DATE
:app:compileDebugRenderscript UP-TO-DATE
:app:generateDebugBuildConfig UP-TO-DATE
:app:generateDebugAssets UP-TO-DATE
:app:mergeDebugAssets UP-TO-DATE
:app:generateDebugResValues UP-TO-DATE
:app:generateDebugResources UP-TO-DATE
:app:mergeDebugResources UP-TO-DATE
:app:processDebugManifest UP-TO-DATE
:app:processDebugResources UP-TO-DATE
:app:generateDebugSources UP-TO-DATE
:app:processDebugJavaRes UP-TO-DATE
:app:compileDebugJava
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.

:app:compileDebugNdk UP-TO-DATE
:app:compileDebugSources
:app:preDexDebug UP-TO-DATE
:app:dexDebug
:app:validateDebugSigning
:app:packageDebug
:app:zipalignDebug
:app:assembleDebug

BUILD SUCCESSFUL

Total time: 30.751 secs

its my Gradle Console Output

@lalongooo
Copy link
Owner

I've spent last day trying to find what's wrong with the project without any success.. 😢

I cloned the repo from a clean Android Studio installation and all worked fine.

I'll ask Babul Patel for any issues he could have.

@lalongooo
Copy link
Owner

@akashqss, everything seems to be ok as per the response from Babul. I will close this issue, please re-open if you think I can help you.

http://stackoverflow.com/questions/31796711/fast-video-compression-like-whatsapp/31823187?noredirect=1#comment51985448_31823187

@lalongooo lalongooo changed the title Video Comression not working Video Compression not working Nov 18, 2015
@kalyani30
Copy link

getting this exception on clicking on compress video button....
This is happening only <=sdk version 4.2 devices....

Caused by: java.lang.UnsatisfiedLinkError: Native method not found: com.lalongooo.videocompressor.video.MediaController.convertVideoFrame:(Ljava/nio/ByteBuffer;Ljava/nio/ByteBuffer;IIIII)I

please help me in this...

@kalyani30
Copy link

After compression some of the video's size got increasing...

I have compressed .mp4 file with size 66mb after compression size got increased to 83.1mb..
why it will happen??

@lalongooo
Copy link
Owner

Hi @kalyani30 , please take a look to this comment #2 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants