0Logo FFmpegThe Ultimate Guide Codec

Managing the codec system in Windows

64bit siste-mas exigem o dobro do trabalho

Tra­di­tion­ally Win­dows was a 32bit oper­at­ing sys­tem. How­ever, since Vista many com­puters have been sup­plied with a 64bit edi­tion of Win­dows. When oper­at­ing on a 64bit sys­tem, 64bit codecs are required. How­ever, this is not the end of the story. 64bit Win­dows still includes full sup­port for 32bit via emu­la­tion, and many parts of Win­dows are still 32bit. In Win­dows 7 por exemplo, Win-dows Mídia Cen-ter é 64bit (and uses the Media Play­er 64bit engine behind the scenes).  If you load Win­dows Media Play­er itself how­ever, it oper­ates as 32bit. This fre­quently causes con­fu­sion as some­thing that works in Media Play­er may not work in Media Cen­ter or vice versa. On 64bit sys­tems it is strongly recom­men­ded to install and con­fig­ure both 64bit and 32bit codecs where pos­sible. On 64bit sys­tems, 64apli-a-ções bit instalar noProgram Files dobrador, e 32bit apli-a-ções de instalação para o Program Files (x86) Folder. Some codecs also install applic­a­tion exten­sions into the Win­dows sys­tem folders. 64bit ones will be found in the system32 dobrador, e os de 32 bits serão encontrados na SysWOW64 folder. In addi­tion to file loc­a­tions there are also extra sec­tions of the registry. Entries related to 64bit soft­ware will be found in the nor­mal loc­a­tions (por exemplo. [HKEY_CURRENT_USER\Software], [HKEY_LOCAL_MACHINE\Software] e [HKEY_CLASSES_ROOT]).  Seus 32bit Equi-val-tes serão encontrados em [HKEY_CURRENT_USER\Software\Wow6432Node], [HKEY_LOCAL_MACHINE\Software\Wow6432Node] e [HKEY_CLASSES_ROOT\Wow6432Node].

Asso-ci-a-ção arquivos e fluxos com codecs

Win-dows usa um GUID to identi­fy fil­ters, rather than their names or file­names. Each fil­ter has its own GUID and these are stored in the registry. Streams are also iden­ti­fied by GUIDs (mas arquivo exten-sões não são!) Registro Vari-ous definições possam (e usualmente fazer) especificar quais divisor de usar para cada extensão de arquivo, e, em alguns casos (mas não comumente) which fil­ter to use for each type of stream. When installed, each fil­ter provides a list of the GUIDs of stream types it can decode. A fil­ter is selec­ted from the avail­able (e-com-pat vel) ones avail­able. This selec­tion is car­ried out based on the fil­ter­’s “mer­it” (a value they are giv­en by Win­dows).  These “mer­it” val­ues can be changed to make Win­dows pick the fil­ters you want. Sim­il­arly, the asso­ci­ation between file exten­sion and split­ter can be changed to make Win­dows pick the split­ter you want to use for each file exten­sion. Finally, os méritos de "prestadores" também pode ser alterado, to ensure Win­dows uses the ren­der­er you want. This mer­it sys­tem applies to Dir­ect­Show codecs. If there are com­pat­ible Media Found­a­tion codecs avail­able Win­dows will always prefer them. If this is the case you may need to dis­able some or all of the Media Found­a­tion codecs.

Chan­ging Mer­its

Os mer-its de codecs pode ser alterado, ou através do registro (que é UNNE-ces-sar-mente di-fi-cult) or with vari­ous free util­it­ies. A com­pany called mono­gram have help­fully pro­duced an improved ver­sion of a Microsoft util­ity called graphed­it. Mono­gram Graph­Stu­dio is avail­able as both 32bit and 64bit. When run as admin­is­trat­or, these util­it­ies can be used to change the mer­its of codecs as shown below. How­ever, alguns codecs da Microsoft pode-não, por padrão, have their mer­it changed, as the admin­is­trat­or user does not have per­mis­sions to the appro­pri­ate val­ues in the registry. This can be over­come by chan­ging the per­mis­sions to these registry paths. If you run into prob­lems chan­ging the mer­its of any codecs, refer to the sec­tion below on tak­ing own­er­ship and chan­ging per­mis­sions.

Over-rid­ing mer­its for spe­cif­ic stream types

The mer­it sys­tem can be bypassed with spe­cif­ic asso­ci­ations between stream types and decoders. If for example you want the ffd­show codec to decode most streams, and so set it with the highest mer­it, mas quero usar o decodificador MPEG2 mpc-hc, you can spe­cify in the registry an asso­ci­ation between the GUID for mpeg2 video streams and the GUID for the mpc-hc decoder. This is done by cre­at­ing a String (REG_SZ) em [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\DirectShow\Preferred] (para codecs de 32 bits em 64 bits do Windows o caminho do registro é [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\DirectShow\Preferred]).  The name of each string should be the GUID of the stream type you want to spe­cify a codec for. The value of the string should be the GUID of the codec you wish to use. Make sure you include curly brack­ets { } no início e no final de cada GUID.

Split­ter pref­er­ences

Split­ter pref­er­ences are best edited in the registry. This is a fairly simple oper­a­tion to com­plete. Each file exten­sion has a key under [HKEY_CLASSES_ROOT\Media Type\Extensions] (32bit dividir ters-on 64bit siste-mas estará sob [HKEY_CLASSES_ROOT\Wow6432Node\Media Type\Extensions]).  Em cada chave deve haver um valor de seqüência (REG_SZ) chamado Source FilterThis will be set to the GUID of the rel­ev­ant fil­ter. You can change the GUID val­ues to change the split­ters. You can also add new keys for oth­er file types. The GUID val­ues for split­ters can be found in Graph­Stu­dio. The GUIDs for the most com­mon split­ters are loc­ated in the table at the bot­tom of this art­icle.

Média Cen-ter pré-ferred decoders & Viver TV

There is anoth­er registry set­ting that tweak­ers must be aware of. Win­dows Media Cen­ter has 2 chaves que se aplicam somente a ela, which over-ride mer­its and all oth­er pref­er­ences. These keys are found in [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Media Center\Decoder]In my exper­i­ence if these are set to any oth­er codecs, Mídia Cen-ter não pode decodificar-vivo TV.  Se eles são deixados como eles são, Media Cen­ter will use these codecs to decode a lot of video files that you may not want to decode with these fil­ters. To bypass this prob­lem, o 2 keys should be removed and the mer­its of Microsoft DTV- DVD Video Decoder and Microsoft DTV- DVD Decodificador de áudio deve ser aumentado para pelo menos 00800000 (por padrão, eles são demasiado baixo para o Windows para sempre usá-los).  Se você quiser usar um codec diferente para MPEG2, simply set its mer­it high­er than 00800000 e Win-dows vai usar o seu codec pré-ferida, exceto ao vivo TV, where it will recog­nise that your chosen codec is incom­pat­ible and will instead use the DTV- DVD decoders that work with liv­eTV. Before the mer­its for the DTV- DVD decoders can be changed the per­mis­sions of the registry path that stores their set­tings must be changed. The paths in ques­tion are [HKEY_CLASSES_ROOT\CLSID\{083863F1-70DE-11D0-BD40-00A0C911CE86}\Instance\{212690FB-83E5-4526-8FD7-74478B7939CD}] e [HKEY_CLASSES_ROOT\CLSID\{083863F1-70DE-11D0-BD40-00A0C911CE86}\Instance\{E1F1A0B8-BEEE-490D-BA7C-066C40B5E2B9}]To change the per­mis­sions of these paths see the sec­tion below on tak­ing own­er­ship and chan­ging per­mis­sions.

Tak-mento próprio-er-navio & chan­ging per­mis­sions

To com­plete some changes it is neces­sary to change the per­mis­sions of some files and some registry entries. Before chan­ging per­mis­sions it is often also neces­sary to “take own­er­ship”. To take own­er­ship of files right click on a file and select prop­er­ties. Select the secur­ity tab and click on advanced. Next, click on the own­er tab and click on edit. Select admin­is­trat­ors in the list which appears and click ok. Click ok twice to close the file prop­er­ties. Then right click and re-select prop­er­ties. And click on the secur­ity tab again. Click the edit but­ton and select Admin­is­trat­ors and tick full-con­trol. Click ok and ok again.

The pro­ced­ure for chan­ging per­mis­sions in the registry is sim­il­ar. Open reged­it and browse to the key you wish to change. Right click and select per­mis­sions and then click on Advanced. Select the own­er tab, and click on Admin­is­trat­ors to high­light it. If it is present, tick the box which says “Replace own­er on sub­con­tain­ers and objects” and click ok. In the secur­ity win­dow that you have been returned to, high-luz-Trat-ORS admin-se, e marque "Permitir" para a plena con-trole, e, finalmente, clique ok.

Desativando Media Foundation parcial ou totalmente

To use Dir­ect­Show codecs to decode formats sup­por­ted by Media Found­a­tion it is neces­sary to dis­able part or all of Media Found­a­tion. The easi­est way to do this is to use the Win7DSFilterTweaker util­ity. You can also dis­able Media Found­a­tion manu­ally – to do this requires sev­er­al Win­dows files to be renamed or moved. Before they can be renamed or removed you will have to take own­er­ship and change their per­mis­sions. These files are found in the System32 dobrador (32bits em arquivos de 64 bits siste-mas são encontrados na SysWOW64 dobrador).  To dis­able Media Found­a­tion gen­er­ally rename or move the file mfds.dll. It is also pos­sible to dis­able spe­cif­ic Media Found­a­tion codecs. mp3dmod.dll is the Media Found­a­tion MP3 decoder, mp4sdecd.dll e mp43decd.dll são decodificadores Microsoft Mpeg4, msmpeg2adec.dll is the DTV- DVD Audio Decoder and msmpeg2vdec.dll is the DTV- DVD Video Decoder. Do not dis­able these last 2 se você quiser ver ao vivo TV in Media Cen­ter.

Acho que perdi alguma coisa? Deixe-nos saber por comentar abaixo. Se você gostaria de assinar por favor use o link no menu inscrever no canto superior direito. Você também pode compartilhar isso com seus amigos usando os links abaixo sociais. Felicidades.

Você pode gostar também...

Deixe uma resposta