RTSP lag

by drg_c » Tue, 12 Apr 2011 07:23:46 GMT


Sponsored Links
 Hi all devs,

I'm currently working on a project which involves the rtsp streaming
from an ip camera to an android device.
The problem is that the stream has a very big delay, ~ 5 seconds, if
you watch a stream from the internet I assume that is ok for the
buffer,  but for my kind of application is just unacceptable, is not
that real time anymore, it's useless... Of course, just to be sure
that the camera is not the one to blame, I tested my ip cam stream to
my pc in VLC with cache set to 0 and it's perfectly working.
I didn't find any property for the videoview class regarding my
problem, so I started looking in the opencore sources hoping to find
something in which I can modify and reduce the cache/buffer for the
rtsp, I tried to understand how those work, but since those are very
complicated I didn't manage to resolve my problem.
Now I'm stuck at this point in my project and can't see to find a way
out... and the applications deadline is coming very fast. :|
Everyone who has any idea in getting this thing resolved please help
me, because I'm kind of desperate right now.

-- 



Other Threads

1. Bitmap from Camera Preview using BitmapFactory.decodeByteArray

check out the Camera SDK docs. camera previews are in raw YUV/YCbCr 
format. BitmapFactory won't decode that format.

in the days before 1.5 brought back video recording, various intrepid 
'droiders including me were doing video capture by saving preview 
frames, and the adventures did not always end well. some of us wrote 
raw decoders for the camera format, but mostly concluded that it just 
takes too long on the phone to be viable.

camera previews are really only usable as such IMHO. trying to save 
or encode them seemingly was not anticipated by the SDK implementers.

IIRC, frames can be obtained from recordings made with MediaRecorder. 
i've not used that feature yet, but it can't be more awkward and 
problematic than dealing with the Camera preview format.

hth
j





-- 
jason.software.particle

--~--~---------~--~----~------------~-------~--~----~

2. How to install my application on a device with NFS mount?

I was able to boot a device through NFS mount. I thought I could run
my application if I copied it to /data/app. Even though I saw my
application in shell, I couldn't find it in the application window.

What steps did I miss?

Thanks in advance.
--~--~---------~--~----~------------~-------~--~----~

3. Speed: Divide by two or multiply by .5? - I wrote a little FPS performance tester to find out.

4. Display Cropped Camera Preview

5. webkit

6. Does Android have OMA DM, DLOTA client?

7. SoundPool.play() audio channels swapped on 1.1 emulator ?