View Full Version : Settings window
REIGN_
27th January 2003, 19:34
How can i open the settings window for the codecs. I mean the window where you set the bitrate the compression method etc, etc. I use VB6.
jonny
29th January 2003, 18:03
Try to take a look at avs2avi sources in this forum.
Sources are in c, but i think it's not difficult to traslate it to VB.
Cheers
jonny
REIGN_
29th January 2003, 19:39
Thank you very much but avs2avi just pops up the window with all the codecs. I just need the codec properties at once. This was very helpful though. Thanks
jonny
29th January 2003, 20:24
- ICOpen
- ICConfigure
But you must know the fccHandler of the codec to pass it to the ICOpen function.
So i think looking at the avs2avi source is the best way to learn how those things works ;)
Cheers
jonny
stax76
29th January 2003, 20:26
you can dl vb src here http://www.planetdvb.net/dvx/
stax76
2nd February 2003, 23:12
I wonder why the code works with FourCC
divx and xvid but crashes with fvfw,
anybody a idea?
Thanks
Dolemite
Public Shared Sub ShowDialog(ByVal handle As Integer, ByVal fourCC As String)
Const DRV_USER As Integer = &H4000
Const ICM_RESERVED As Integer = DRV_USER + &H1000
Const ICM_CONFIGURE As Integer = (ICM_RESERVED + 10)
Const ICM_GETSTATE As Integer = (ICM_RESERVED + 0)
Const ICM_SETSTATE As Integer = (ICM_RESERVED + 1)
Dim fccType, fccHandler, hic As Integer
fccType = mmioStringToFOURCC("vidc", &H10)
fccHandler = mmioStringToFOURCC(fourCC, &H10)
hic = ICOpen(fccType, fccHandler, 0)
ICSendMessage(hic, ICM_CONFIGURE, handle, 0)
ICClose(hic)
End Sub
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.