I'm looking to resize videos captured using the MediaStore Intent after they have been saved to the SD card. I've done similar things with c# and ffmpeg and thought about using that with android but I've yet to be able to find a way to incorporate that into my eclipse running on my windows 7 machine.
I'm a total *nix noob so all of the solutions that I've found for building ffmpeg into an android app are completely greek to me.
Is there an alternative solution to ffmpeg that perhaps is already built into the android sdk for resizing videos?
I'm just looking for the path of least resistance here...
No, there is no api in android, to resize the video you have in sdcard. Because resizing video means you are manipulating the video, which is a complex task and no android api is currently available to do that task.
So you just have to make use of external lib. like ffmpeg and make *.so of it for using it in android. You can have a look at link to have a help for making *.so files.
Hope this helps. Cheers. :)
Related
I previously developed a unity game many years ago.
Now I have lost my project and I only have an apk.
To say in short, in my new game I need some audio files from that game. I have extracted the apk but strangely I haven't found any audio formatted file in the asset!
So what are the formats of unity audio assets?!
and how can I extract and change them to common formats like .ogg or .mp3?
Thanks for your attention.
You can try Unity Assets Explorer.
http://forum.xentax.com/viewtopic.php?f=10&t=10085
I didn't find any solution(stop searching more although, you maybe find something on more googling)
But for those who have same requirement, I did it by an android application that work only on rooted devices, which can record sounds internally.
Hope to help:)
I want Trim Video Functionality in an android App. I have gone through different post and references but did not found any suitable solution. Can you please tell me any open source repository link? I would prefer FFMPEG Lib for trim video.
The only source I found is: https://github.com/uday-rayala/video-trimmer, However it doesn't show video thumbnails like Vine/Instagram/vivavideo etc.
I want to show video thumbnails while trimming video, as shown in below screen shot.
Any help would be greatly appreciated. Thanks
Take a look over here: https://software.intel.com/en-us/articles/intel-inde-media-pack-for-android-tutorials-running-samples
It has a sample of cutting a video which you can use in your application by downloading and including their Starter Edition pack. It's completely free but you'd have to register through and can be used in Android Studio, Eclipse and many other IDEs.
Open source example codes that includes the java files to trim/cut your video into segments. You can even compress the videos which can be done by standard Android SDK as well.
https://github.com/INDExOS/media-for-mobile/tree/master/Android/samples/apps/src/com/intel/inde/mp/samples
I'm creating an Android app that will handle collections of image files.
I'm looking for an archive format (and library) similar to .zip or .tar that meets these requirements:
Open source
Allows extraction of a single file without extracting
all files
Capable of containing image and text (probably json) files
I'm looking for something that is well supported on Android. Something that works for Android and IOS would be a plus.
What about Gzip? Open source and it has native support on Android.
For iPhone, you could use the ZipArchive library, though it may also have native support. (Search the SDK, I don't know how!)
I'm working on the UI for an Android and iOS app. It will likely be built with PhoneGap (or the like) meaning the UI will be an HTML5 implementation.
For most of the images, we've decided to go with SVG files as they scale well across the various Android screens and are great for Retina on iOS.
So far, using .svg files is working fine for us and thanks to Safari and Chrome support, easy to test locally in a standard browser.
The catch is that these .svg files are going to get rather large as we turn them into sprites. As such, I'm looking into using GZIPped svg files (.svgz).
A quick test shows that a 50k SVG we are using compresses down to 8k via Gzip.
The catch, however, is that it appears that there needs to be a client/server relationship going on to decompress the SVGZ file. I can't get Safari to render the linked .svgz file when run locally (as I assume it will be when via a webview in a PhoneGap compiled app). Chrome appears to be able to render the svgz, though.
So, my questions:
Is there any way to use .svgz files locally on iOS via a PhoneGap app (I haven't gotten to the point where we're compiling via PhoneGap yet so can't test that part at this time)?
Any known issues with .svgz on Android (given it seems OK on desktop Chrome)?
Should I even be bothering with .svgz in this situation where there aren't actual download speed concerns (outside the initial app download)?
I don't know much about issues with svgz on either iOS or Android, but you definetely shoudln't worry about the size of the .svg files compared to .svgz, not even for the initial download. All the files in an Android and iOS packages are compressed anyway, so zipping those files yourself won't bring you any gain. It might actually be better for your app performance-wise to keep them un-compressed.
I'm developing an Android application which involves reading pdf files.
Initially on syncing with the server a set of pdf files will be saved into the device's SD card.
Now, I have a requirement to convert this pdf file into images. Because on doing that the speed of loading the pages are faster..
can anyone help me with this and if possible give me links to some sample code..
I got this idea from here https://stackoverflow.com/a/4779852/1105585 ....
but i don't know how this works... help plz..
I'm currently working on an app that loads files and adds effects to the images. One of the formats suppose to support is PDF. I used leadtools libs for the rasterrizing pdfs (converting pdf into raster images) and some image effects.
Hope this helps.
PDF isn't made up of images, they're vectors,.
couple open-source java PDF to Image converters
http://www.jpedal.org/
http://code.google.com/p/pdfonejava/
On desktop I've used iText java library for that kind of task. Not sure if its Android compatible but worth of giving a shot as its easy to implement.