lalongooo / video-compressor

Video compressor based in the Telegram for Android app source code.
GNU General Public License v2.0
262 stars 88 forks source link

Video Compression not working #1

Closed akashqss closed 8 years ago

akashqss commented 8 years ago

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 commented 8 years ago

What's the output of this command?

image

akashqss commented 8 years ago

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 commented 8 years ago

Please, paste here your Gradle Console output:

image

akashqss commented 8 years ago

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 commented 8 years ago

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

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 commented 8 years ago

@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

kalyani30 commented 8 years ago

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 commented 8 years ago

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 commented 8 years ago

Hi @kalyani30 , please take a look to this comment https://github.com/lalongooo/VideoCompressor/issues/2#issuecomment-155831075