H.264 video encoder confiduration

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Good day to All!

I solved issue with latency!
In fact, PJSIP streams to iPad SIP client video with FPS = 30 frames.
And iPad CPU cannot process all the frames.
I modified method enc_clock_cb:

 //////////////////////////////////////////////////////////////////////////
 g_counter++;
 if (g_counter % 6 == 0)  //default FPS is 30 frames -> we make 30/6 = 5 FPS
 {
  vidstream_cap_cb(vp->strm, vp, vp->frm_buf);
 }
 //////////////////////////////////////////////////////////////////////////
//    vidstream_cap_cb(vp->strm, vp, vp->frm_buf);

I achaived FPS, supported by iPad.
I used iPad2. On
-FPS 30 frames iPad CPU usage was 60%;
-FPS 10 frames iPad CPU usage was 40%;
-FPS 5 frames iPad CPU usage was 30%.

iPad was 2 cores by 1GHz each of them.
FPS 10 and 5 frames satisfied iPad and me :-)
in normal state iPad is consuming up to 5 % of CPU.

Now I have ONLY ONE ISSUE: I have bad quality of video.
How can it might be fixed?

I made 3 types of screen shots from iPad:
bad quality
http://www.freeimagehosting.net/bw5z4
half good quality
http://www.freeimagehosting.net/q7smo
good quality
http://www.freeimagehosting.net/duz1n

How can I fix bad blocks on the frames?

Thank you!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20120228/108c7568/attachment.html>


[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux