compressing uploaded videos to the app - java

I'm building an android app in which users upload videos. I want to compress these videos. Can anybody refer me to a relevant code(or any other ways to do it in android)?
I haven't found java code implementation for MPEG compression.
THANKS!

Related

Android - Play (mp3) from memory while streaming

Sorry about the weird title, I couldn't think of anything better.
In my Android App I want to stream an .mp3 file from an http server, which requires basic authentication. The task is to download the data and save it to the sdcard while playing. (Basicly streaming an mp3 from an http server but also saving the file)
I managed to download the mp3 from the server to the sdcard and to play the downloaded file with the Android MediaPlayer class. But playing only works right when the file is downloaded completely. I want my App to play WHILE downloading.
Can someone point out a good solution to this problem? I thought about using some third-party audio library to stream mp3 audio from memory but I couldn't find anything useful for my problem. Are there any good free librarys for Android that suit my needs?

Compress (reduce size) of audio and video files in Android

I need to reduce size of audio and video files in an Android app.
Can I use FFMPEG library for this, if yes please help with code or some tutorial link.
Or if there exists some other way to achieve this, please suggest.
Yes, you are able to do it using FFMPEG.
Quick Google search:
Here.

the better way to trnascode the audio and video files in java?

i am looking for api's for trans-coding the audio video files in java,
i am currently trying out the xuggler project but can't done much with this need some recommendation which will be suitable for my requirements
audio video trans-coding
bitrate and frame rate management for media files
cut and save the parts of audio and video
burn the files to cd dvd
the above operations i need to do please guide which api's will help
currently i am looking an vlcj and handbreak the open source projects.
help required

Converting audio files(.3gp) to video with Album cover and uploading to YouTube

I have an audio file in .3gp format on my Android device which I wish
to upload to YouTube. I know that YouTube is a video upload site and
that I need to convert this sound file to video.
I just want an image to display all the time the audio is playing.
Google tells me there are number of tools that can help me. But I want
to do this via java code from my Android device.
Please help.
Thanks.
There are tools such as FFMPEG available for free that allow you to, essentially, mix and convert heterogenous streams. That is you can add a bitmap to a video, create video from slide shows and then add sound etc. (See a related question I asked here).
These programs can be executed from within java applications by making Runtime.exec(..) calls.
Sun has an example for stitching multiple JPEGs together into a movie, you can find it here. You should be able to take this example, (its fairly robust), and add what you need to it.
I recommend looking into the Java Media Framework (FAQ)
You can find a vast collection of sample applets/code at the Sun Solutions page. You can find the API on this page. I do hope this is compatible on the Android platform, as I haven't had any personal experience developing for it. But it might be a good place to start.

Video Upload Applet

i am working on a small project that i need the ability to let users upload a video to my website or use a webcam to record a video and then upload it. i have seen this done on several sites (youtube,facebook etc) so i know that there is a java or flash applet that supports this. however i have not been able to find one.
can anyone recommend a good flash or java based video uploader with these features?
Is a video upload control different from a file upload control?
Here's a Flash file upload control.
Here's a link to a Ajax file upload control.
If you search Stack Overflow for "Ajax file uploader" or "Flash file uploader" you'll get more recommendations.
Edit:
Here's a flash recorder and uploader.
http://www.a8dropzone.com have a upload applet with built in media transcoder (based on ffmpeg so you can feed it pretty much anything)

Categories