Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 801913
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T23:31:01+00:00 2026-05-14T23:31:01+00:00

Does anyone know about any (prototype) c# API’s for converting video to google’s new

  • 0

Does anyone know about any (prototype) c# API’s for converting video to google’s new WebM video format?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T23:31:01+00:00Added an answer on May 14, 2026 at 11:31 pm

    A quick google search says: no. But the example encoder looks like it should be easily translatable to C# using P/Invoke. The Encoder Algorithm Interface looks quite manageable. And there’s always C++/CLI if everything else fails. Who starts the codeplex project? 🙂

    Update: As of now, there is a hackish, rudimentary working prototype .NET API. Here you go:

    #include "vpx_codec.h"
    
    #define VPX_CODEC_DISABLE_COMPAT 1
    #include "vpx_encoder.h"
    #include "vp8cx.h"
    
    #define vp8iface (&vpx_codec_vp8_cx_algo)
    
    using namespace System;
    
    namespace WebM
    {
        namespace VP8 
        {
            namespace Native
            {
                public ref class VP8Codec
                {
                private:
                    vpx_codec_ctx_t* ctx;
    
                    VP8Codec(vpx_codec_ctx_t* ctx)
                    {
                        this->ctx = ctx;
                    }
    
                public:
                    ~VP8Codec()
                    {
                        vpx_codec_destroy(ctx);
                        delete ctx;
                    }
    
                    property String^ LastError
                    {
                        String^ get()
                        {
                            return gcnew String(vpx_codec_error(ctx));
                        }
                    }
    
                    property String^ LastErrorDetail
                    {
                        String^ get()
                        {
                            return gcnew String(vpx_codec_error_detail(ctx));
                        }
                    }
    
                    int Encode()
                    {
                        // TODO: do actual encoding
                        return
                            vpx_codec_encode(ctx, NULL, 0, 1, 0, VPX_DL_REALTIME); 
                    }
    
                    static VP8Codec^ CreateEncoder() // TODO: add 'config' argument
                    {
                        vpx_codec_ctx_t* ctx;
                        vpx_codec_enc_cfg_t cfg;
    
                        if(vpx_codec_enc_config_default(vp8iface, &cfg, 0))
                        {
                            return nullptr; // TODO: throw exception
                        }
    
                        ctx = new vpx_codec_ctx_t;
    
                        if (vpx_codec_enc_init(ctx, vp8iface, &cfg, 0))
                        {
                            delete ctx;
                            return nullptr; // TODO: throw exception
                        }
    
                        return gcnew VP8Codec(ctx);
                    }
    
                    static property int Version
                    {
                        int get()
                        {
                            return vpx_codec_version();
                        }
                    }
    
                    static property String^ VersionString
                    {
                        String^ get()
                        {
                            return gcnew String(vpx_codec_version_str());
                        }
                    }
    
                    static property String^ BuildConfig
                    {
                        String^ get()
                        {
                            return gcnew String(vpx_codec_build_config());
                        }
                    }
    
                    static String^ GetErrorDescription(int errorCode)
                    {
                        return gcnew String(
                            vpx_codec_err_to_string((vpx_codec_err_t)errorCode));
                    }
    
                    static property String^ IfaceName
                    {
                        String^ get()
                        {
                            return gcnew String(vpx_codec_iface_name(vp8iface));
                        }
                    }
                };
            }
        }
    }
    

    You should be able to link this against vpxmtd.lib from the libvpx Windows build. I wasn’t able to get rid of one warning, but so far it seems to work. My C++/CLI is a bit rusty, though, so there may be some memory leaks in the code.

    Test program:

    namespace WebM.VP8
    {
        using System;
    
        using WebM.VP8.Native;
    
        public class Program
        {
            public static void Main()
            {
                using (var encoder = VP8Codec.CreateEncoder())
                {
                    Console.WriteLine(encoder.Encode());
                }
            }
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Does anyone know any good tutorial about using NAnt for native code build process
Does anyone know about any competitions or tasks that are similar to the Netflix
Does anyone know about any articles/examples of using System.AddIn with ASP.NET and/or ASP.NET MVC
Does anyone know about an ORM or something similar for Delphi Win32.
Does anyone know much about the Asp.Net webconfig element ? I'm looking at it
Does anyone know a good online resource about using SQL Server 2005 dependency cache
I'm just curious about this really, does anyone know why they broke convention on
Does anyone know of any existing packages or libraries that can be used to
Does anyone know how to get IntelliSense to work reliably when working in C/C++
Does anyone know how to transform a enum value to a human readable value?

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.