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
Related
I'm not good at English, so I'm sorry if there are any mistakes in the expression.
I want to Object detection application on Android.
Here is how the app works:
Take some videos for which you want to perform object detection
Select a video from the taken videos
Detect specify object and get that coodinates
To develop avobe app,I have some videos for vertification.
Here is my question. Which folder should I put the vertification videos?
For now, I put the videos in raw folder.
But,I am creating an app assuming that the videos were taken with a camera. If so, should it be in the same place as if it were taken by the camera? and, which folder should the videos be placed in?
I'm new to android development.
Could anyone give me some advice? Thank you.
As you are new to Android development I am going to explain in detail.
First you have the videos for verification. You should put those videos in raw folder. But what if the size of those videos is too large? That means the size of your APK will also increase which is not a good thing if you want to upload your app on google play store. In this case, you can store those videos on your own server, and when user installs your app download those videos from the server.
Now let's come to the second question: Where should I put the videos taken with the camera?
You can put these videos in any of the following paths.
context.getFilesDir();
or
context.getExternalFilesDir(null);
These paths are on which you can store the camera-shooted videos and do any processing on them. If you want to know the difference between these two paths that's another topic. You can learn about them here.
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. :)
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.
Assume I have the id (The numbers and signs in the video's hyperlink after "http://www.youtube.com/watch?v=") of a Youtube video. How can I download the audio stream of the file to an sd-card as an mp3 with android code? (I wrote an application for 2.x but this part is missing).
Look at how some other YouTube scrapers do it, e.g. youtube-dl. Then recreate their algorithm in Java for Android. Then keep spending time trying to stay up-to-date with the capricious changes YouTube will make to their site every now and then.
Ineed to play a short MP4 video on my android app I'm searching info about how to load mp4 videos but i can't find the way to do it on Android 1.5. My app sould be compatible from Android 1.5 to 4.0
I tryed with a lot of tutorials from google, but none of them works. For example, now i'm trying with the VideoViewDemo from android developers: http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/media/VideoViewDemo.html
I have a video on my ASSETS folder, and i just need to play the video, only this. I can not believe that doesn't exists a simple and quick way to do it.
Please, if someone knows how to do it i will apreciate your help a lot.
Thanks
You could put the video in the raw folder instead and construct a URI like this:
android.resource://[package]/[resource_id]
android.resource://[package]/[res type]/[res name]
For example:
Uri videoUri = Uri.parse("android:resource://com.my.package/"+R.raw.myVideo);
mVideoView.setVideoURI(videoUri);
Have a look at page 314 of Mark's Busy Coder's guide to Android:
http://commonsware.com/Android/Android-1_0-CC.pdf
There is an example there on how to get something from the asset folder.
Also, make sure that the codec is H.264 (not H.264 AVC). I don't think AVC was supported in 1.5. See: http://developer.android.com/guide/appendix/media-formats.html
Happy coding!