GPU和视频编解码

2,044 views

Published on

Published in: Technology, Business
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
2,044
On SlideShare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
10
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

GPU和视频编解码

  1. 1. GPU和视频编解码<br />sohu视频 - 陈钢<br />2011.07.07<br />
  2. 2. 应用程序和显卡沟通的一个例子<br />
  3. 3. 使用GPU加速的前提<br />1、显卡支持<br />2、操作系统安装了驱动<br />3、显卡开放API / SDK <br />4、解编码器使用这个API / SDK编写<br />5、视频格式被支持<br />
  4. 4. 解码<br />
  5. 5. 支持解码加速的格式<br />H.264<br />VC-1<br />MPEG-2<br />WMV<br />
  6. 6. 不支持解码加速的格式<br />Xvid<br />Divx<br />RMVB<br />
  7. 7. API / SDK<br />DirectX Video Acceleration (DxVA) windows only<br />Open Video Decode (OVD) form AMD <br />Video Acceleration (VA)<br />Video Decode Acceleration Framework (VDAF) Mac os x only<br />Video Decode and Presentation API for Unix (VDPAU)<br />Video ToolBox . Mac os x and Apple TV only<br />X-Video Bitstream Acceleration (XvBA) X11`s DxVA<br />X-Video Motion Compensation X11`s MPEG-2 codec<br />
  8. 8. API / SDK Useable<br />Video Acceleration (VA)<br />Video Decode and Presentation API for Unix (VDPAU)<br />
  9. 9. VDPAU <br />Nvidia出品<br />libavcodec支持<br />mplayer -vc ffh264vdpau -vovdpau<br />
  10. 10. VA API<br />Intel出品<br />libavcodec支持<br />
  11. 11. 硬件解码加速小结<br />大多数硬件解码加速基于windows平台上DxVA接口的解码器<br />Linux平台的VDPAU和VA API的解码器种类不全<br />稳定性和兼容性弱于软件解码<br />目前硬件解码最高100 fps ~ 120 fps<br />
  12. 12. 编码<br />
  13. 13. API / SDK Useable<br />Nvidia CUDA<br />Intel sandy bridge<br />AMD Avivo<br />
  14. 14. Avivo<br />NOT support encode<br />
  15. 15. sandy bridge<br />NOT support by x264<br />NO Found document<br />pure hardware implement<br />
  16. 16. CUDA<br />CUDA GPU H.264 - 23.5s 114.4 FPSx264 preset ultrafast - 30s 90.8 FPS<br />x264 do generate better quality<br />encoder “nvcuenc” NOT in SDK<br /> NO document<br />NOT support 2pass yet<br />
  17. 17. 硬件编码加速小结<br />不被x264支持<br />闭源<br />质量被评论弱于x264<br />
  18. 18. 解码<br />本来消耗就不大,不值得<br />编码<br /><ul><li>x264是用不了了
  19. 19. 质量下降是一定的</li></li></ul><li>完<br />

×