how to store and search mp3 by its content in android - android

In my app i have to store a no of audio files in database in webserver and then after recording the audio in android mobile i have to send it to server to match with the previous audio files.
How to do this??

This involves a very high understanding of audio data parsing and fingerprinting.
If you are trying to make a clone of shazam, you should read up this post :
http://laplacian.wordpress.com/2009/01/10/how-shazam-works/
Bonus : the article contains a link to an article by the very developper of Shazam.
Good luck on your endeavour.

Related

Video is not playing fetched from azure blob storage

I am creating an application in which I upload any video from mobile through browser
It stores in blob storage but when I try to fetch it and play it in media player of android there is error in logcat saying "can't open the file" and same is happening if I upload a video from laptop which record by mobile
Why this is happening ? Does codec format of mobile video plays vital role in it ? If yes then what should I do
Thank you in advance
There are something we need to check when streaming video in Azure storage:
1. Check your upload tools.
Includes the tools and the settings, such as bit rate. Sometimes the issue comes with half-baked tools or the transmitting settings.
2. Check your Blob Type.
Make sure your videos are BlockBlobs. Check the header x-ms-blob-type. There are BlockBlobs and PageBlobs … but for streaming video you want BlockBlobs.
3. Check your storage version. It is no problem if we use General-purpose v2 accounts by default.
Azure Storage offers several types of storage accounts. Each type supports different features and has its own pricing model. Consider these differences before you create a storage account to determine the type of account that is best for your applications.
4. Check your video codec format and size.
Storage clients default to a 128 MiB maximum single blob upload. You can see the details in block blobs. For Input video codecs supported, you can refer to the docs.
Reference: this blog post by Tom.

Android : Video Download From Server but how to restriction share and out side app acess like Youtube download video .

I am developing a video player where downloaded video tutorials have to be played offline.
I want to secure these video files. What is the best and economical way to encrypt these files per user
once user get video, they can share it with others. I want to restrict that.
Please suggest me some ideas of how I can protect these videos from piracy.
Please help
You could create a key per user and encrypt the file with that before downloading it into the user device. Using the same key you could decrypt the file while playing in you app

In Android, possible to save video directly in Amazon server while recording

While uploading the videos/audio files from my application,mostly i followed the following ways,
Record the file (video/audio)
Save into Internal/External Storage (inside application folder)
Then upload in server.
here my question is, whether its possible to save directly in the server (Amazon s3 or others). Why i'm asking this, while i using Periscope application they streaming the video as well as stored the video in their server.
Checkout LibStreaming : https://github.com/fyhertz/libstreaming or some of the suggestion in : Streaming video from Android camera to server
You can see this github or use ffmpeg
I think that it all depends on the importance of your video. When you use your original approach you guarantee that you have the full video in hand (device) and you can make sure it will be fully uploaded to your server. On the other hand, streaming it directly to the server can make you lose frames (connectivity hiccups and such) and hurt the video. I'm sure that streaming is done using UDP which makes loosing packages a really good option.

Phonegap Android App - Display Store MP3 Media

I've been following this blog to help me make a simple music player function with an Android app (http://simonmacdonald.blogspot.com/2011/05/using-media-class-in-phonegap.html).
All works well - but I would like some way to extract a list of all music media stored on the phone so the user can click a file and play it. Does anyone know if this is possible via phone gap? I'd need to access track name/artist etc and a link to the track.
Cheers
Paul
Prognosis is not good.... PhoneGap does not have an API for accessing the media library. So, you would have to fall back to the File API to locate music files, and then... you would have to read the binary data in the actual files to extract out the track/artist metadata. Ouch. Seems pretty impractical.
[EDIT]
By the way, PhoneGap is not the only game in town. Appcelerator seems to solve the same problem, and apparently has a richer API, which includes
access to media metadata

Android simple way to record sound and stream that to a server?

Is there a simple way to record sound and stream it to a server in real time?
Thanks,
Leslie
No, there is no direct API that would do that..
What people usually do is read the media file as it is being saved, and upload it progressively to server.
See how some open-source projects do it:
http://code.google.com/p/sipdroid/
http://code.google.com/p/ipcamera-for-android/
http://code.google.com/p/camdroiduni/

Categories

Resources