You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The original command mentioned in the code was damn slow in each and every device. For example, in LG Nexus 5, for an input video of approx 50 MB and duration 2 min 30 sec. It took around 5 mins to compress it with resulting compressed video to be around 5 MB, and quality degradation.
Though, I tried changing the command in order to make it faster, and changed it to something like this -
It made the same input video compression a lot faster in the LG Nexus 5, i.e, it took just 50 sec to compress it with resultant 20 MB video.
But, unluckily, when I tried the same in Samsung Galaxy Grand i9082, it was slow, and took around 5 mins in compression with the resultant video of 30 MB.
It was probably due to the reason that the code failed to create Movies directory.
So, afterwards, I tried hardcoding the output path, so this time it didn't fail but stuck with progressDialog with a message progress: handler_name : isoMedia File Produced by Google, 5-11-2011 for about infinite time.
My target is to minimize video compression time consumption, to be as low as possible, for around 50 MB video, 1 min time consumption is okay for me.
Please guide me the way to get rid of the slow video compression.
The text was updated successfully, but these errors were encountered:
The original command mentioned in the code was damn slow in each and every device. For example, in LG Nexus 5, for an input video of approx 50 MB and duration 2 min 30 sec. It took around 5 mins to compress it with resulting compressed video to be around 5 MB, and quality degradation.
Though, I tried changing the command in order to make it faster, and changed it to something like this -
String[] complexCommand = {"-i", yourRealPath, "-r", "20", "-vcodec", "mpeg4", "-preset", "ultrafast", "-c:a", "copy", "-me_method", "zero", "-tune", "fastdecode", "-tune", "zerolatency", "-strict", "-2", "-b:v", "1000k", "-pix_fmt", "yuv420p", filePath};
It made the same input video compression a lot faster in the LG Nexus 5, i.e, it took just 50 sec to compress it with resultant 20 MB video.
But, unluckily, when I tried the same in Samsung Galaxy Grand i9082, it was slow, and took around 5 mins in compression with the resultant video of 30 MB.
In Lava X1 Selfie (version 5.1),
It initially failed with this error -
It was probably due to the reason that the code failed to create Movies directory.
So, afterwards, I tried hardcoding the output path, so this time it didn't fail but stuck with progressDialog with a message progress: handler_name : isoMedia File Produced by Google, 5-11-2011 for about infinite time.
My target is to minimize video compression time consumption, to be as low as possible, for around 50 MB video, 1 min time consumption is okay for me.
Please guide me the way to get rid of the slow video compression.
The text was updated successfully, but these errors were encountered: