What Is A Faster Way Of Uploading Video To Server Using Android App?
Solution 1:
The most obvious way to reduce the upload time is to compress the video, assuming you can live with any reduction in quality this may bring (its hard to quantify quality so its probably worth you experimenting offline with a video with various compression rates to see first).
Unfortunately, in Android there is no handy 'compress()' method but there are a number of different approaches:
- use ffmpeg to compress the video
- use videoresampler library (see: https://stackoverflow.com/a/33313421/334402)
I have personally used the ffmpeg approach - when I did it I could not find an Android ffmpeg library I was happy with so I created a wrapper myself, but if I was doing ti again I would probably use the following ffmpeg wrapper:
This seems well documented and used and it includes well thought out features like the ability to load different binaries depending on the processor architecture.
Once you have an ffmpeg wrapper you can simply use a standard ffmpeg command line like syntax to compress the video.
Post a Comment for "What Is A Faster Way Of Uploading Video To Server Using Android App?"