Coder Social home page Coder Social logo

hwcodec's People

Contributors

21pages avatar heap-hop avatar kg7x avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar

hwcodec's Issues

Insert IDR Frame failed on AMD Card(WX Pro 4100)

Hi,
I clone the project, and add an api named insert_idr_frame(), to generate an IDR Frame.
The impl is adding av_opt_set(c->priv_data, "forced-idr", "1", 0); before avcodec_open2() , then set the picture type by encoder->frame->pict_type = AV_PICTURE_TYPE_I before avcodec_send_frame.
This worked at Nvidia card, but no use for AMD card, did you have any idea?

Thanks.

License?

What license is this crate published under?

The hardware encoder does not seem to work properly in the rustdesk night version.

Encoding via Intel graphics is not properly supported on Ubuntu 22.04 and Windows 10 Since Linux uses va-api, Windows doesn't seem to support qsv yet, even if it's an extra. Is this intended?

The cpu used in the encoder is Intel N6005. IGPU has been used.

--windows--

[2022-11-07 01:22:04.839961 +09:00] DEBUG [C:\Users\runneradmin.cargo\git\checkouts\hwcodec-8b4454f7f5e13466\1f03d20\src\encode.rs:231] prepare yuv 1.0783ms
[2022-11-07 01:22:04.860588 +09:00] DEBUG [C:\Users\runneradmin.cargo\git\checkouts\hwcodec-8b4454f7f5e13466\1f03d20\src\encode.rs:253] h264_nvenc new failed 1.8321ms
[2022-11-07 01:22:04.861012 +09:00] DEBUG [C:\Users\runneradmin.cargo\git\checkouts\hwcodec-8b4454f7f5e13466\1f03d20\src\encode.rs:253] h264_amf new failed 2.1723ms
[2022-11-07 01:22:04.864178 +09:00] DEBUG [C:\Users\runneradmin.cargo\git\checkouts\hwcodec-8b4454f7f5e13466\1f03d20\src\encode.rs:253] hevc_amf new failed 1.4291ms
[2022-11-07 01:22:04.865334 +09:00] DEBUG [C:\Users\runneradmin.cargo\git\checkouts\hwcodec-8b4454f7f5e13466\1f03d20\src\encode.rs:253] hevc_nvenc new failed 3.7026ms
[2022-11-07 01:22:04.868158 +09:00] DEBUG [libs\hbb_common\src\config.rs:292] Configuration path: C:\Users\tesn\AppData\Roaming\RustDesk\config\RustDesk_hwcodec.toml

--linux--

[2022-11-07 18:53:17.167367 +09:00] DEBUG [/home/runner/.cargo/git/checkouts/hwcodec-8b4454f7f5e13466/1f03d20/src/encode.rs:231] prepare yuv 1.247427ms
[2022-11-07 18:53:17.170574 +09:00] DEBUG [/home/runner/.cargo/git/checkouts/hwcodec-8b4454f7f5e13466/1f03d20/src/encode.rs:253] hevc_amf new failed 538.615µs
[2022-11-07 18:53:17.171005 +09:00] DEBUG [/home/runner/.cargo/git/checkouts/hwcodec-8b4454f7f5e13466/1f03d20/src/encode.rs:253] h264_nvenc new failed 259.478µs
[2022-11-07 18:53:17.171241 +09:00] DEBUG [/home/runner/.cargo/git/checkouts/hwcodec-8b4454f7f5e13466/1f03d20/src/encode.rs:253] h264_amf new failed 143.477µs
[2022-11-07 18:53:17.173073 +09:00] DEBUG [/home/runner/.cargo/git/checkouts/hwcodec-8b4454f7f5e13466/1f03d20/src/encode.rs:253] hevc_nvenc new failed 216.658µs
[2022-11-07 18:53:17.179104 +09:00] DEBUG [libs/hbb_common/src/config.rs:292] Configuration path: /root/.config/rustdesk/RustDesk_hwcodec.toml

Is intel supported or not

Hi @21pages, I raise the issue in #8. But I guess you guy are too busy to cover a "closed" issue, so my additional questions were ignored. I re-open it again to get your attentions :D

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.