Code Monkey home page Code Monkey logo

capturetoh264's Introduction

CaptureToH264

Capture the screen using GDI/DXGI and then convert it to H264 format video using x264.

使用 GDI/DXGI 截取屏幕,再使用 x264 转为 H264 格式视频。

2022/8/17:

醉了。

本来想将 h264 数据再使用 x264 解码,再渲染。

在网上查资料,发现几乎没有使用 x264 解码的,都是用 FFmpeg,然后看了下 x264 的头文件,好像没有解码的接口。

然后在维基百科X264上的看到这句话:x264的主要功能在于进行H.264/MPEG-4 AVC的视频编码,而不是作为解码器(decoder)之用。

嗯..好吧,我去用 FFmpeg。

capturetoh264's People

Contributors

lampsasarum avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

capturetoh264's Issues

为什么截图的第一张始终是黑色呢

我尝试将rgba数据保存到unsigned char* ,并且让函数返回这个值。在python调用这个函数。但是每次的return都为空。
如果我只需要一张图片,但不是黑色图。DXGI的captureRGB32()是否需要循环运行两次来过滤掉无效的黑色图。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.