0

My Android Video application takes a media file, extract a frame, decodes it, and then plays at some specified rate. I have two choices for media file storage:

1- MicroSD Card. But I guess this would be slow. The processor will fetch frames from a far place, and the Micro SD is also slower (as compared to phones on-chip and other memories , such as DRAM). Thus many clock cycles will be wasted in getting frames resulting in poor play back of the video.

2- Keep the file in some other fast memory close to processor (as compared to SD). This should be faster and I am expecting better play back.

Questions:

a) Is my understanding correct?

b) If yes, how can I put my media file to other memory instead of SD, and how to get the path of this new location coz I need to pass this path to my application which decodes the frame and plays it back on the screen.

Thanks

gpuguy
  • 4,607
  • 17
  • 67
  • 125

1 Answers1

0

I think the SD card will be larger than the internal memory, so you should keep the media on the SD card to avoid running out of space. If the SD card bandwidth is enough for playing your media files then you can hide latencies by buffering (reading as much of the file as you can in memory). Have you tested it? Have you tried playing a media file to see how the SD card performs?

About access to the internal memory: if you have installed your application in the internal memory, there is going to be a special directory for it, e.g. /data/data/com.my.app. Your application will have access to it and can create files there.

gfour
  • 959
  • 6
  • 9
  • many thanks for your reply. actually my application is size is very small. So I guess it can fit in internal memory. When keeping in SD, my application is running very slow. Can I get a link to install application on android giving some detail for installation on other memories apart from sd? – gpuguy Apr 08 '12 at 14:34
  • This has more information about how to control the app install location: http://developer.android.com/guide/appendix/install-location.html – gfour Apr 08 '12 at 17:30