[MEncoder-users] Re: library for -of ogg

RC rcooley at spamcop.net
Sat Oct 14 18:31:59 CEST 2006


On Sat, 14 Oct 2006 11:25:27 +0200
Reimar Döffinger <Reimar.Doeffinger at stud.uni-karlsruhe.de> wrote:

> I forgot to say, according to rumors -ovc vfw does work with the
> windows encoder dll, but I think there is no way to set bitrate or
> something like that.

Yes.
http://www.mplayerhq.hu/DOCS/HTML/en/menc-feat-video-for-windows.html

However, there was an experimental patch to loader.c which sets the
registry key that the VP6 DLL reads for it's bitrate.  May have been
off-list, so here's a copy:


From: Frederic Van Quickenborne
<frederic.vanquickenborne at intec.ugent.be>

> This is the code I added to the registry.c file:
> 
> // line 337/616
>   open_registry();
>   insert_handle(HKEY_LOCAL_MACHINE, "HKLM");
>   insert_handle(HKEY_CURRENT_USER, "HKCU");
> 
>    int* hkey;
>    char* buffer;
>    buffer = (char*)malloc(128);
>    strcpy(buffer, "00000000f401000000000000");  /* first bytes of 
> registry value, setting the bitrate */
>    TRACE("buffer: %s\n", buffer);
>    if (!RegOpenKeyExA(HKEY_LOCAL_MACHINE, "SOFTWARE\\On2 
> Technologies\\VFW Encoder/Decoder Settings\\VP62", 0, 0, &hkey))
>    {
>        int type, count = sizeof(buffer);
>        TRACE("type, count: %d, %d\n", type, count);
>        insert_reg_value(hkey, "bSettings", type, (LPBYTE)buffer,
>        count);
>    }
>    free(buffer);
> 
> With this code added, mencoder creates VP6 files at a bitrate of 1-2.5
>  Mbit/s, dependent on the source file.




More information about the MEncoder-users mailing list