Video format usage in videoview - android

I am building an application that deals with thousands of videos and am wanting to know what the fastest video format is for Android eclipse. I currently use .3gp. Also I put my code up, so if anybody has any suggestions about it, fell free to comment.
Thank you so much

From the Document
As an application developer, you are free to make use of any media codec that is available on any Android-powered device, including those provided by the Android platform and those that are device-specific. However, it is a best practice to use media encoding profiles that are device-agnostic.
Video Encoding Recommendations

Related

Is there a way to get raw PCM from Deezer Android SDK?

In Android application, we're considering implement Deezer SDK with some post-processing of audio sources to boost up audio quality for end-users. To make it possible, we need to get raw PCM samples directly from the SDK but sadly there seems no such API. (I just looked through the API document. It has their native/android player providing play controls only?)
Is there a way to get this work? Or does Deezer has plan for providing such feature?
Thanks :)
Unfortunately, no, there's no way to get the raw PCM of Deezer's tracks using the SDK.
As stated in the comment, Deezer needs to make sure that the music is not pirated in any way.
Giving away the raw PCM data would be an easy way to allow piracy.
About giving a feature allowing developers to apply post-processing on the PCM data, IMHO it would be tricky to make sure that the PCM is still not leaked, but it's a good idea for a new feature.

Live streaming video from mobile devices (iOS & Android) to server

I'm currently working on a project which requires video from Android and iOS devices to be streamed live to our server.
I've been researching this for a while, and come across libraries that are dead, expensive, or dead expensive.
The only viable solution I've found so far is using Adobe FlashBuilder, but it is quite frankly not very nice for multiple reasons.
I would love to be able to do this natively for both platforms, but this is not a very juicy project for my employers, so they are reluctant to spend any cash on expensive libraries.
Are there any free/cheap libraries that fit the bill? Is there some other way for me to do this natively? The technology itself is negotiable, we are currently focused on RTMP since we are using FlashBuilder, but as long as the video is streamed up to a server then they don't particularly care what protocol is used.
Thanks for your help in advance, let me know if the way I've asked this question is not up to scratch.
I can say about Android. I'm in my application using openCV library specifically FFmpegFrameRecorder can work with RTMP protocol. My application works with RED5 server. Of the drawbacks I would mention a large number of native libraries.
See my answer, I described there that I used
Android Studio with javaCv and FFMPEG

Streaming MIDI API in Android

I am a MIDI based musical application author. In my application I am generating a .midi file with a small lib that I wrote and play it on MediaPlayer and that's enough for that app. However in the future app I plan to have more interactivity and that's where I would probably need a streaming API.
As far as I know Android leaks APIs for realtime midi synth (at least official). But still I can see some apps that do use midi in quite advanced way. Question is how? Do they use NDK to access Sonivox directly or are there an unofficial apis for that after all? Any ideas?
Also I'm very interested if Google is planning to improve MIDI support in future versions of Android (in case anybody of Google sees this :))
Thanks.
You should check out libpd, which is a native port of PureData for both Android and iOS. It will provide you with access to the MIDI drivers of the system while still being able to prototype your software with very high-level tools.
Java has a very important latency, so i think this should be done with the NDK. Check this question, it has a couple of hints. This was reported as an Android issue (NDK support for low-latency audio), there might be some tips or info there too.
This is a simple but great sample application that successfully streams MIDI on Android https://github.com/billthefarmer/mididriver
You will have to put your MIDI messages together manually though ( the example creates two MIDI messages for play note and stop note). One can refer to the MIDI specification to further control the MIDI channels. The problem is that the default sound fonts on Android sound so bad.

Advice for mobile website video embedding for Android devices

For my question, time is more important than perfection. I need any advice you can quickly give me about embedding a video in a mobile website which is targeted for Android devices. Since I have only very little time for research (for the first research, only today, but of course the implementation will follow later), I need any advice you can give to me, no matter how vague or imperfect it may be.
Here is the scenario:
A video must be embedded in a mobile website, using HTML.
Only Android clients are relevant, because iPhones and non-Android devices will be directed to another URL.
Preferably, the video should be integrated into the rest of the web page. In case an external player needs to be opened, it would be preferable if that player has a "return to web page" button of some kind that will return the user to the web page.
The customer is aware that this will not work perfectly on all devices, but we want to find a solution that works well at least on the more modern devices.
If you have any experience regarding this field, please let me know of it. Here are some areas that might be helpful:
HTML code that you have found to be working
Encoding specifics regarding the video (e.g. which codecs to use or not to use)
Other StackOverflow questions regarding this topic which I have overseen in my haste (sorry about that, time is sparse for me right now)
Since I can only choose one of the replies to be the answer, my choice for that has to be very arbitrary.
So far, I have found these two other StackOverflow questions, which cover parts of this topic:
What video format will play on all Android devices?
Embed video and play on android
What about embedding flash? Not all android devices have it but the ones have it should be able to play properly encoded mp4 video
For video encoding check http://developer.android.com/guide/appendix/media-formats.html

Android: Developing Plugins for media sharing

We are developing plugins which convert media file as the source and convert in to other format that can be used by DLNA compatible device in android.
Any help on how to deal with media and its file format and convert into DLNA file format..
Any idea will be appreciable...
Thank you
There are several containers and codecs supported by DLNA, most of which can be created with FFmpeg.
Specs: http://www.dlna.org/industry/why_dlna/key_components/media_format/
Now do you plan to do the conversion on the device or will a server be involved? There are several servers on this approved / supported list: http://www.rbgrn.net/content/21-how-to-choose-dlna-media-server-windows-mac-os-x-or-linux
If you plan to do conversion on the device, there are ports of FFmpeg that run on Android but your mileage will vary of course.
You may also be interested in using Kik API for sharing rich content and media with other mobile app users. You can build your app on top of Kik Messenger and use Kik's own transport, infrastructure and userbase to share content from your mobile app. This API is available for Android and iPhone, and in simpler scenarios it takes only about 5 lines of code to integrate. There is more info on Kik API website: http://www.kik.com/dev and http://apiblog.kik.com
Disclaimer: I'm one of the developers behind Kik API :)

Categories

Resources