Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SIPSorceryMedia.Encoders Why not support VP9 #7

Open
tangxiaohui1984 opened this issue Dec 24, 2024 · 1 comment
Open

SIPSorceryMedia.Encoders Why not support VP9 #7

tangxiaohui1984 opened this issue Dec 24, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@tangxiaohui1984
Copy link

        //var setConfigRes = vpx_encoder.VpxCodecEncConfigDefault(vp8cx.VpxCodecVp8Cx(), vp8EncoderCfg, 0);
        var setConfigRes = vpx_encoder.VpxCodecEncConfigDefault(vp8cx.VpxCodecVp9Cx(), vp8EncoderCfg, 0);
        if (setConfigRes != VpxCodecErrT.VPX_CODEC_OK)
        {
            throw new ApplicationException($"Failed to set VP8 encoder configuration to default values, {setConfigRes}.");
        }

        //var initEncoderRes = vpx_encoder.VpxCodecEncInitVer(_vpxEncodeCtx, vp8cx.VpxCodecVp8Cx(), vp8EncoderCfg, 0, VPX_ENCODER_ABI_VERSION);
        var initEncoderRes = vpx_encoder.VpxCodecEncInitVer(_vpxEncodeCtx, vp8cx.VpxCodecVp9Cx(), vp8EncoderCfg, 0, VPX_ENCODER_ABI_VERSION);
        if (initEncoderRes != VpxCodecErrT.VPX_CODEC_OK)
        {
            throw new ApplicationException($"Failed to initialise VP8 encoder, {vpx_codec.VpxCodecErrToString(initEncoderRes)}.");
        }

Get the latest libvpx source code

Building libvpx:
git clone https://github.com/webmproject/libvpx.git

==> 64 bit build
mkdir build-win-x64
cd build-win-64
../configure --disable-static --disable-examples --disable-tools --disable-docs --target=x86_64-win64-vs17
make
Probably fail due to msbuild not in path but should still produce a vpx.sln
open vpx.sln:

  • change "vpx" General->Configuration Type from "Static Library" to "Dynamic Library".
  • set the mdoule definition file, Linker->Input->Module Definition File to vpx.def, the file should have been created by the make step.
    change to Release build
    build

vs2022 ---> x86_64-win64-vs17

But it still doesn't work, please tell me how to support vp9

@sipsorcery sipsorcery added the enhancement New feature or request label Dec 24, 2024
@sipsorcery
Copy link
Member

I've never gotten around to looking into trying VP9 so can't offer any advice.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants