【討論】【教學】製作自己的 影音解碼codec包 --4--inf檔的撰寫(二)



贊助商連結


purk
2005-06-25, 12:40 AM
http://ksphere.free.fr/site/ 的 wmp10lite ---->只提取WMP10解碼部分

atbscodec版本為2004/7月推出http://ftp.isu.edu.tw/pub/CPatch/msupdate/win98se-nsrc/atbscodecl.exe整合大多的codec 不過有點舊了

以下使用 wmp10liet的setup.ini 跟 atbcodec.inf 的內容 搭配ms的文件 (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/install/hh/install/inf-format_70c9fc6c-3577-44fb-95e8-c44fa0429fd2.xml.asp)分析inf撰寫

inf檔內容撰寫時

每一行開頭如果加上 ; 則該行無作用 僅作為 註解用 ---->應該是吧

----INF Version Section------MS範例----此為必須存在的---

[Version]

Signature="signature-name"
[Class=class-name]
[ClassGuid={nnnnnnnn-nnnn-nnnn-nnnn-nnnnnnnnnnnn}]
[Provider=%INF-creator%]
[LayoutFile=filename.inf [,filename.inf]... ]
[CatalogFile=filename.cat]
[CatalogFile.nt=unique-filename.cat]
[CatalogFile.ntx86=unique-filename.cat]
[CatalogFile.ntia64=unique-filename.cat] (Windows XP and later)
[CatalogFile.ntamd64=unique-filename.cat] (Windows XP and later)
DriverVer=mm/dd/yyyy[,x.y.v.z]

[Version]
signature = "$Windows NT$"
Provider = %Msft%


[Version]
Signature="$Chicago$"
Class=SCSIAdapter
ClassGUID={4D36E97B-E325-11CE-BFC1-08002BE10318}
Provider=%INF_Provider%
CatalogFile=aha154_win98.cat
CatalogFile.ntx86=aha154_ntx86.cat
DriverVer=08/20/1999




---wmp10lite------setup.ini-------

[Version]
Signature="$Windows NT$"
ClassGUID={00000000-0000-0000-0000-000000000000}
LayoutFile=layout.inf
SetupClass=BASE

------------------------------------

----ATBSCODEC.inf---

; ATB's CodecS Pack Install
; Version 2.2.0 Lite
; 2004/07/18 By ATB(NSRC) from Republic of Taiwan

[Version]
Signature = "$CHICAGO$"
AdvancedINF = 2.5,"您需要新版的Advpack.dll"
DriverVer = 07/12/2004,2.2.0

-------------------------


Signature="signature-name" ---->Signature=""這個名稱 有3個可以用 分別是$Windows NT$, $Windows 95$, $Chicago$
$Windows NT$----->NT系列專用

$Windows 95$---->9x系列專用

$Chicago$------>除了WIN3X以下系統 其他WIN系統都可以用


------------

Class=class-name ----作整合codec包時可以不用 這是用來設定硬體或虛擬硬體 是屬於哪一項物品用的 例如有 顯示卡 網路介面卡..etc 你在裝置管理員看到的的 那個 title就是
If an INF adds a new setup class of devices to the system, it should supply a unique, case-insensitive class-name value that is different from any of the system-supplied classes in devguid.h. The length of the class-name string must be 32 characters or less. The INF must specify a newly generated GUID value for the ClassGUID entry. Also see INF ClassInstall32 Section.

This entry is irrelevant to an INF that installs neither a new device driver under a predefined device setup class nor a new device setup class.


---------------------------------------------------------------

; *****************************************
; **** PCZONE的Video解碼編碼Codec整合包 ****
; *****************************************
; INF created with the help of WillyPad. & INF-Editor
; Freeware from Snoopy 81

[version]
;用於確認 .inf 檔的基本版本資訊By convention, the Version section
;appears first in INFfiles. Every INF file must have this section

Signature=$CHICAGO$
;用來宣告適用的OS的變數,有$Windows NT$, $Windows 95$, or
;$Chicago$這3種

Class=MEDIA
;用來宣告安裝的物品類型屬性的變數For any standard type of device,
;this specifies the class name, which is usually one of the system-;defined class names like Net or Display

ClassGUID={00000000-0000-0000-0000-000000000000}
;大多伴隨Class出現Specifies the device-class GUID, formatted as
;shown here, where each n is a hexadecimal digit.

LayoutFile=layout.inf

SetupClass=BASE

Provider=%INF-creator%
;宣告inf檔撰寫者的變數,Identifies the provider of the INF file. Typically,
;this is specified as an %OrganizationName% token that is expanded
;later in the INF's Strings section.

Compatible=1

Generator=WillyPad &INF-Editor
;宣告編輯inf檔案所用程式的變數

;CatalogFile.nt=unique-filename.cat
;CatalogFile.ntx86=unique-filename.cat
;上面2個是用來宣告通過WHQL後,由MS提供驗證用的cat檔的變數

DriverVer=09/23/2005
;用來宣告通過WHQL的日期的變數


____________________________________________________

贊助商連結


purk
2005-06-26, 02:42 AM
; *****************************************
; **** PCZONE的Video解碼編碼Codec整合包 ****
; *****************************************
; INF created with the help of WillyPad. & INF-Editor
; Freeware from Snoopy 81

[version]
;用於確認 .inf 檔的基本版本資訊By convention, the Version section
;appears first in INFfiles. Every INF file must have this section

Signature=$CHICAGO$
;用來宣告適用的OS的變數,有$Windows NT$, $Windows 95$, or
;$Chicago$這3種

Class=MEDIA
;用來宣告安裝的物品類型屬性的變數For any standard type of device,
;this specifies the class name, which is usually one of the system-;defined class names like Net or Display

ClassGUID={00000000-0000-0000-0000-000000000000}
;大多伴隨Class出現Specifies the device-class GUID, formatted as
;shown here, where each n is a hexadecimal digit.

LayoutFile=layout.inf

SetupClass=BASE

Provider=%INF-creator%
;宣告inf檔撰寫者的變數,Identifies the provider of the INF file. Typically,
;this is specified as an %OrganizationName% token that is expanded
;later in the INF's Strings section.

Compatible=1

Generator=WillyPad &INF-Editor
;宣告編輯inf檔案所用程式的變數

;CatalogFile.nt=unique-filename.cat
;CatalogFile.ntx86=unique-filename.cat
;上面2個是用來宣告通過WHQL後,由MS提供驗證用的cat檔的變數

DriverVer=09/23/2005
;用來宣告通過WHQL的日期的變數

purk
2005-06-26, 06:05 AM
[SourceDisksNames]
;宣告列出之後要複製的檔案的磁片或位置的區段,數字代表變數
1 = "pczone's CodecS Pack Part I","",
2 = "pczone's CodecS Pack Part II","",\Tools
[SourceDisksFiles]
;宣告每個檔案所在位置的變數 "=" 後面跟隨的數字是由上面的變數所規定
;------------------Xvid部分----------------------------------
xvid.ax=1
xvidcore.dll=1
xvidvfw.dll=1
;-----------------Divx部分----------------------------------
divxdec.ax=1
DivX.dll=1
DivXc32f.dll=1
DivXc32.dll=1
DivX_c32.ax=1
;------------------3ivx部分---------------------------------
3ivxVfWCodec.dll=1
3ivxD4_451.qtx=1
3ivxDSAudioDecoder.ax=1
3ivxDSAudioEncoder.ax=1
3ivxDSDecoder.ax=1
3ivxDSEncoder.ax=1
3ivxDSMediaMux.ax=1
3ivxDSMediaSplitter.ax=1
3ivx.dll=1
;------------------BeSweet部分---------------------------------
hip.dll=1
BeSweet.exe=1
azid.dll=1
mp2enc.dll=1
Shibatch.dll=1
DD-Profiles.ini=1
BeSweetGUI0.6b61.exe=1
lame_enc.dll=1
;-------------------設定用Tools--------------------------------
GSpot25.dat=1
GSpot25.exe=1
GSpot221.dat=1
GSpot.exe=1
msdmo.dll=1
3ivxConfig.exe=1
AC3DTSCFG.exe=1
DivFix.exe=1
DivFix.ini=1
DivXCNFG.exe=1
MP3CNFG.exe=1
MPEG4DEF.exe=1
SubMux.lang=1
SubMux9x.exe=1
SubMuxNT.exe=1
SubResync.lang=1
SubResync9x.exe=1
SubResyncNT.exe=1
VFAPICon.exe=1
Control.inf=1
VSF9x.dll=1
VSFNT.dll=1
VSFilter.lang=1
VFCodec.dll=1
VobSub.lang=1
VobSub9x.dll=1
VobSubNT.dll=1

;------------------InterVideo DVD部分------------------------------
Ivfsrc.ax=1
iviaudio.ax=1
IVIVIDEO.ax=1
Ivinav.ax=1

;-------------------mp3壓縮部分----------------------------
lameACM.acm=1
;-------------------WinLAME部分------------------------

winLAME.exe=1
libsndfile.dll=1
libvorbis.dll=1
nLAME.dll=1
libmad.dll=1
;--------------------WMP10部分-----------------------------------
wmvdmod.dll=1
dxmasf.dll=1
l3codecp.acm=1
msaud32.acm=1
msdxm.ocx=1
qasf.dll=1
sl_anet.acm=1
strmdll.dll=1
wmadmod.dll=1
wmasf.dll=1
wmnetmgr.dll=1
wmp.dll=1
wmpasf.dll=1
wmpdxm.dll=1
wmploc.dll=1
wmpsrcwp.dll=1
wmsdmod.dll=1
wmspdmod.dll=1
wmvadvd.dll=1
wmvcore.dll=1
drmclien.dll=1
mlcom.ax=1
WMV9VCM.dll=1
Wmv8ds32.ax=1
Wmvds32.ax=1
L3codeca.acm=1
Mpg4c32.dll=1
Mpg4ds32.ax=1
Msadds32.ax=1
Msaud32.acm=1

;-----------------------------------------------------------

unicows.dll=1
Msvcr70.dll=1
CoreAAC.ax=1
OpenQuicktimeLib.dll=1
msdmo.dll=1
;-----------------------------------------------------------
DEAC3DTS.ax=1
;-----------------------------------------------------------
Iac25_32.ax=1
Ir32_32.dll=1
Ir41_32.ax=1
Ir41_qc.dll=1
Ir41_qcx.dll=1
Ir50_32.dll=1
Ir50_qc.dll=1
Ir50_qcx.dll=1
Ivfsrc.ax=1
;--------------OGG部分---------------------------------------------
OGG.dll=1
OggDS.dll=1
Vorbis.dll=1
VorbisEnc.dll=1
;--------------Real Alternative部分---------------------------------------------
;--------------QuickTime Alternative部分---------------------------------------------
;--------------ffdshow部分---------------------------------------------
;--------------x264 h.264/AVC Video (Encoder) Codec部分---------------------------------------------
;--------------On2 Technologies VP6 Video Codec部分---------------------------------------------
;--------------Huffyuv Lossless Video Codec部分---------------------------------------------
;--------------Sony ATRAC3 0.98 ACM Codec部分---------------------------------------------
;--------------DSP-Worx MP3 Source Filter部分---------------------------------------------
;--------------RadLight PVA Splitter部分---------------------------------------------
;--------------Matroska Splitter部分---------------------------------------------
;--------------XCD Filter部分---------------------------------------------
;--------------MatrixMixer部分---------------------------------------------
;--------------DeDynamic Filter部分---------------------------------------------
;--------------AC3ACM部分---------------------------------------------
;--------------AVI <->AC3/DTS Converter + DTS/AC3 Source Filter部分-------