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

How to improve the compression speed? #17

Open
AganCN opened this issue Jul 10, 2017 · 6 comments
Open

How to improve the compression speed? #17

AganCN opened this issue Jul 10, 2017 · 6 comments

Comments

@AganCN
Copy link

AganCN commented Jul 10, 2017

No description provided.

@Tourenathan-G5organisation
Copy link
Owner

@AganCN video or the image?

@AmanSharma1988
Copy link

I tried video it is of 224MB it decreased to 7.87MB which is Great! But, it took 2 to 3 minutes.

@DEV-NEP
Copy link

DEV-NEP commented Aug 3, 2017

@AmanSharma1988 I am also trying to compress a video stored in phone memory. Can you suggest on how to accomplish that. I tried but video is not being compressed. How to obtain sourceUri and destUri? How did u do it?

@yogarajsubramanian
Copy link

Hi there video compression speed is very low I tried to compress 3 min video of size 8 mb It almost took 20 mins to compress...It would to help ful if you respond to this issue.. Thanks buddy

@AmanSharma1988
Copy link

@DEV-NEP
This method is little confusing. As source is URI as string and destination is absolute pathSo do as follows

  1. For source path when you select video from gallery or phone memory, in "onActivityResult" you get object of intent class. From this intent object
    Intent data; //this you got in "onActivityResult"
    Uri selectedUri = data.getData();
    //Just pass this URI as string as source. Note don't try to get path from
    //URI and convert to string, as directly it gives this above gives URI from content resolver which is //needed here.

  2. For destination just pass some destination directory absolute path.
    Try it if still getting problem let me know i will share code with you.

@wuxiaoqiang625
Copy link

@AganCN Do you solve the slow compression speed, please?

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

6 participants