H.264 video encoder confiduration

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

 



Fedot-

This is for video encode?  I.e. you're capturing video (from camera I guess) and sending to H.264 encode?  And with
your C code below, you are feeding the encoder at only 5 fps rate?

What is the format of your pre-encode video?  Possibly you can change the format and resolution to achieve a lower
bitrate, rather than ignoring frames.

-Jeff

> 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!
> _______________________________________________
> Visit our blog: http://blog.pjsip.org
>
> pjsip mailing list
> pjsip at lists.pjsip.org
> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
>




[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