I am begining programing in C(noy C++) and want to learn the way codecs install and work in computers.
Like how can you register your codec so that apps will find it listed as a possibility when you work with an app that encodes video. Also how does the system know what codec to use to decode your codec and how does this work?
Finally I want to know how to serve frames both visual and audio one at a time as an app requests them(both encode and playback).
Sorry if this has been posted before, I tried searching but came up with all kinds of stuff that didn't pertain to the subject that I need.
I have tried looking at some source code but it was in C++ which I hate because of OOP and I don't think that way.
Does anyone know of some good source code in C?
Thank you.
+ Reply to Thread
Results 1 to 5 of 5
-
-
Hold, I say, Hold on thar' boy! You need to learn to walk before you can run.
Start out with Directshow and its SDK and read up on TRANSFORMS, FILTERS and FILTERGRAPHS. Get graphedit/graphstudio to play around with.
And you should probably get over your beef with C++/OOP. Even if you are able to get around it, you really ought to be taking advantage of it. Both kinds of programming strategies have their place.
Registering codecs happens with regsrv32, etc. This will of course only work if you have properly programmed & compiled code that conforms to Directshow API requirements - having Source and/or Sink nodes, and a certain type of functionality that falls into one of the prescribed categories (transform, renderer, etc). Learn about MERIT, also.
That'll keep you busy for a while.
Scott -
Youy have to tailor your programming for specifoc operaating systems. They all use C++, OOP, etc., and umpteen different programming language. development apps and platforms.
Last edited by sanlyn; 25th Mar 2014 at 06:16.
-
Also, there's a difference between codecs that fit into a platform and those that are "self-contained" as part of a particular player.
Mac's MM platform is Quicktime: follow their rules on a mac (or when using QT on a PC)
Linux uses (mostly) opensource libraries. So you can easily get the source code for just about ALL their stuff.
PCs use Vfw & Directshow (incl. VCM & ACM), as well as QT and opensource libraries like ffmpeg and those self-contained systems (like VLC).
Scott
Similar Threads
-
Can't find converter for mkv files that works...
By Syyner in forum Video ConversionReplies: 1Last Post: 16th Sep 2011, 15:21 -
looking to find out the standard in video codecs that are used by default
By rickywh in forum Newbie / General discussionsReplies: 4Last Post: 12th Apr 2011, 10:58 -
Windows Media Center on Xbox 360 - how it works and codecs help!
By prankstare in forum Media Center PC / MediaCentersReplies: 6Last Post: 5th Feb 2011, 09:29 -
Window Media Encoder Can't find codecs
By Ensign in forum Video ConversionReplies: 2Last Post: 18th Jul 2008, 11:33 -
CODECS-Too Many? Find and Clean-A/V sync Errors
By mrlewp in forum Software PlayingReplies: 9Last Post: 17th Apr 2008, 05:33