Skip to main content
gamedev.net
🔒 Locked

video compression

Started by einstein2 Apr 11, 2002 at 4:05 AM 11 replies 1.3k views
Original Post
einstein2
einstein2
[........gone.........] [Edited by - einstein2 on May 14, 2010 3:34:58 PM]
S1CA
S1CA
DirectShow...?

free,
easy to use,
main codecs are already licensed for you,
supported
...etc...

or are you on a non-Windows platform or anti-MS ?



--
Simon O''Connor
Creative Asylum Ltd
www.creative-asylum.com
Simon O'Connor | Technical Director (Newcastle) Lockwood Publishing | LinkedIn | Personal site
einstein2
einstein2
[........gone.........]

[Edited by - einstein2 on May 14, 2010 3:01:52 PM]
pieman
pieman
How about DivX? The Project Mayo implementation is open source (that anti-MS enough?) so it''s free to use. All you''d need to do is decompress to a dynamic texture and then render a quad (or set of quads from a set of dynamic textures if your video is large). You''d also need to pipe the sound into whatever audio system you''re using.


Iain Hutchison
Programmer, Silicon Dreams
The views expressed here are my own, not those of my employer.
Iain HutchisonProgrammer, Silicon DreamsThe views expressed here are my own, not those of my employer.
einstein2
einstein2
[........gone.........]

[Edited by - einstein2 on May 14, 2010 3:40:57 PM]
Siebharinn
Siebharinn
quote:

Anti ms,but still using it since it''s the only platform that can handle my kind of game



So you''re anti-ms as long as it''s convientent?


Take care,
Bill
Sorrow
Sorrow
quote:

So you''re anti-ms as long as it''s convientent?
I think that''s the state of mind for a lot of people
a person
a person
actually i think the whole anti-ms thing is the "look at me i am cool. i warez ms products cause i hate them so much. in fact this hatred is so deep i will use ONLY warezed ms products instead of alternatives that i get legally (freeware or pay for). i make software for ms OSes cause then i can just complain its windows that is crashing and not my crappy programming."

its really quite sad, enstein2 you probably should reconsider your silliness.
Javelin
Javelin
Back to topic....

I think you can forget to write a video compressor on your own. It''s quite advanced and a whole project alone.

But if you really want to do it you should check out some things:

* The MPEG and H.263 standards
* Chrominace reduction (Color reduction)
* DCT (Discrete Cosine Transform)
* Maybe you can find things on "macroblock" or "dctblock"
* Predictive coding

But, as I said, I think you should consider some other solution...

// Javelin
-- Why do something today when you can do it tomorrow... --
// Javelin// Assumption is the mother of all fuckups...
S1CA
S1CA
quote:
Original post by Javelin
Back to topic....

I think you can forget to write a video compressor on your own. It''s quite advanced and a whole project alone.

But if you really want to do it you should check out some things:

* The MPEG and H.263 standards
* Chrominace reduction (Color reduction)
* DCT (Discrete Cosine Transform)
* Maybe you can find things on "macroblock" or "dctblock"
* Predictive coding

But, as I said, I think you should consider some other solution...

// Javelin
-- Why do something today when you can do it tomorrow... --


I''d say first things first, learn about YUV (YCbCr) colour spaces and 4:2:2 storage etc.


And then remember to look on a patents server for each of the techniques you''ve used to find out who you owe money to... - if you are writing your own and want to scare yourself out of it, take a list of the patents:
http://www.mpegla.com/slideshow/index_files/slide0065.html
http://www.mpegla.com/slideshow/index_files/slide0066.html
http://www.mpegla.com/slideshow/index_files/slide0067.html
http://www.mpegla.com/slideshow/index_files/slide0068.html
http://www.mpegla.com/slideshow/index_files/slide0069.html
http://www.mpegla.com/slideshow/index_files/slide0070.html
http://www.mpegla.com/slideshow/index_files/slide0071.html
http://www.mpegla.com/slideshow/index_files/slide0072.html
http://www.mpegla.com/slideshow/index_files/slide0073.html



--
Simon O''Connor
Creative Asylum Ltd
www.creative-asylum.com
Simon O'Connor | Technical Director (Newcastle) Lockwood Publishing | LinkedIn | Personal site
TerranFury
TerranFury
quote:
Original post by S1CA
And then remember to look on a patents server for each of the techniques you''ve used to find out who you owe money to... - if you are writing your own and want to scare yourself out of it, take a list of the patents:
http://www.mpegla.com/slideshow/index_files/slide0065.html
http://www.mpegla.com/slideshow/index_files/slide0066.html
http://www.mpegla.com/slideshow/index_files/slide0067.html
http://www.mpegla.com/slideshow/index_files/slide0068.html
http://www.mpegla.com/slideshow/index_files/slide0069.html
http://www.mpegla.com/slideshow/index_files/slide0070.html
http://www.mpegla.com/slideshow/index_files/slide0071.html
http://www.mpegla.com/slideshow/index_files/slide0072.html
http://www.mpegla.com/slideshow/index_files/slide0073.html



This whole patent thing has gotten really out of hand. You can''t code just about any compression algorithm without someone breathing down your neck for cash. It''s ridiculous. I came up with a simnple compression scheme on my own and then realized nope, I can''t use it, because it''s already patented (LZW-Rsome number, I think)! Damn it, patenting algorithms is like patenting a specific route to get to the grocery store. Not only that, it slows progress by making advances based on old (patented) algorithms illegal. It reminds me of the guy who managed to get a patent for "the electronic exchange of funds for goods or services" (luckily people are just ignoring him).

I have to go now. I''m going to go patent the heapsort, insertion sort, selection sort, and bubble sort. And then I have to get patents for zeroes and ones. Cheers!
a person
a person
umm, while patents on software algorithms is silly, trying to patent things that have been in use for awhile like you suggest is also silly (yes i know sarcasm, but it was poor use). many patents are actually requested before widespread use of the algorithm happens. the problem is that the patent office is very slow (taking years to process patents), and the fact that they are oblivous to the software industry and what would constitute an obvious algorithm. i am sure the simple xompression scheme you came up with on your own used some research about general compression, and probably contained some information on the lzw algo (since its one of the standard compression algos discussed along with huffman and rle).

believe it or not, excerising your cat using a laser pointer is patented as well.
einstein2
einstein2
[........gone.........]

[Edited by - einstein2 on May 14, 2010 3:47:03 PM]

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.