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.

 

Go Back   Doom9's Forum > Programming and Hacking > Development

Reply
 
Thread Tools Display Modes
Old 25th July 2002, 11:42   #1  |  Link
Chu
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
Chu is offline   Reply With Quote
Old 26th July 2002, 04:59   #2  |  Link
Richard Berg
developer wannabe
 
Richard Berg's Avatar
 
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.
Richard Berg is offline   Reply With Quote
Old 26th July 2002, 09:46   #3  |  Link
avih
Capture, Deinterlace
 
avih's Avatar
 
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.
avih is offline   Reply With Quote
Old 26th July 2002, 19:40   #4  |  Link
Chu
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.
Chu is offline   Reply With Quote
Old 26th July 2002, 20:09   #5  |  Link
Richard Berg
developer wannabe
 
Richard Berg's Avatar
 
Join Date: Nov 2001
Location: Jersey City, NJ
Posts: 1,211
Here's a paper you may want to look at.
Richard Berg is offline   Reply With Quote
Old 30th July 2002, 19:10   #6  |  Link
spyder
Matroska Developer
 
spyder's Avatar
 
Join Date: Nov 2001
Posts: 315
Ah, finally some work on an Anime codec perhaps. There has to be a good method for this yet to be discovered.
spyder is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 01:32.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.