On Mon 30 Jan 2012 06:42:00 AM PST, pablo platt wrote:
> In the webrtc examples I saw 4:3 aspect ration like 320X240 and 640X480.
> What is the recommended aspect-ratio for the local and remote video
> elements when using webrtc?
These are just standard (square pixel) video sizes. You can use (or at
least offer) any resolution the video codec supports. In particular,
16:9 webcams will work fine.
> Does it have to be 4:3?
No. If you look at
http://tools.ietf.org/html/draft-cbran-rtcweb-codec-01, suggested
resolutions for interoperability include 640x360 and 1280x720.
> Does it have to be multiples of 80?
Most video codecs prefer that the frames be a multiple of 8 or 16
pixels.
> Can I use for example 324X243?
Depends on the codec. Most will implement this by encoding a slightly
larger frame and cropping. There's no particular reason that resolution
would be forbidden though.
> Are there implications on quality or cpu?
Hardware implementations sometimes have a limited number of resolutions
they support. Otherwise, the the main thing which affects cpu and
bitrate is the overall number of pixels, not the particular aspect
ratio.
Hope that helps,
-r
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iQEcBAEBAgAGBQJPJuFWAAoJEEcAD3uxRB3v55YIAJacmIyZpgP0dEhL0uU+8DmG
8zpEdJHpbOG8bBeUfKCrNDZnjWvhr/ca3GAHeTSZIZ0BULFexCMW53ByP6ojkZTV
6AEINFUXybWOgFFND/tfWptnipGItdy6eilyndSzPwe1QbVcJAEYjUxo3quVikmq
fv8JmBq2FhUBW1UEVtoeVPKpWzK62I81M+3/SYWgV/86k9593fl941/T1QGntTsb
SzCSgZ99+CyMnvz2Qw0lvii5Q6idD8oQkMuTG8u3R4fRR/V8rbICHhVyr4K8UMLD
xwDMe3n0yxMFMQLtJOH4y06fO66cKPPgV0Ej6zACVy+lM+JyhxihjUffkq1rXyA=
=W2mV
-----END PGP SIGNATURE-----