Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion. Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules. |
|
|
#1 | Link |
|
Registered User
Join Date: Oct 2001
Posts: 62
|
Question about writing a codec
Hello all. I have a quick question about actuially writing a codec. I have a lot of expirence with c++ in un*x environments, but absolutly 0 expirence with developing windows apps. Anyways, I wanted to try writing a codec. I know what algorithm I want to use (progressive huffman encoding /w some "tricks"), and while I doubt I can do any better then huffyuv, who knows. Anyways, I was looking through the source of huffyuv, and, well, I'm having trouble figuring out exactly how windows handles these things :\
So far, the only thing I've really figured out on my own is exactly how avi wrappers work, and how to call codecs with fourcc codes using vfw.h, but am completly lost as to how to actuially write an interface between the codec and windows. I guess I need a big primer on how windows handles events in general, and how exactly windows deals with these codecs. Anyways, can someone point me to the right place to start reading up on this stuff? -Chu |
|
|
|
|
|
#2 | Link |
|
developer wannabe
![]() Join Date: Nov 2001
Location: Jersey City, NJ
Posts: 1,211
|
Unfortunately there's really no good resources; everything on MSDN deals with DirectShow. If you don't need VfW compatibility then that's fine (have fun writing the billion little methods it requires...), but if you do the only suggestion I have is to email someone who knows the ins & outs of VfW (e.g. Avery Lee) and ask for a reference.
|
|
|
|
|
|
#3 | Link |
|
Capture, Deinterlace
![]() Join Date: Feb 2002
Location: Right there
Posts: 1,768
|
you can use xvid, which is open source. the code should be quite clean, and you can ask specific questions on the xvid.org forum. it uses the vfw framework, but it's already there.. so u'll just have to modify the encodeing/decoding algorithms.
cheers and good luck avi
__________________
E8400/P43, 4G, GTX260+, FastCom TV+FM (BT878, Philips tuner, PAL), XP32/SP3. Get Firefox. Get SmoothWheel Firefox extension. |
|
|
|
|
|
#4 | Link |
|
Registered User
Join Date: Oct 2001
Posts: 62
|
Allright, thanks for the info!
BTW, for the purposes of video, most of the encoding I do myself is anime. I've been wondering, do you think the entropy between frames is 'polar' enough (i.e. bunch of pixels ~0, and the rest all over the map) to justify arithematic coding instead of huffman? The obvious tradeoff being speed, unless there is a progressive arithematic algorithm I am not aware of. -Chu P.S., the last time I was graded in spelling I got an F. |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|