Dreddlox
5th May 2005, 07:24
For a while I have been meaning to start a codec to test my frequent ideas for compression algorithms, but have always encountered obstacles. So instead, to get these ideas off my mind, I'll ask: Has anyone experimented with these techniques in video encoding?
Macro-DCT: After an image has been DCT'd, MPEG style, grouping all of frequencies and performing a second DCT on them(ie. The first macro-DCT block would be the DCT of the first elements of each of the DCT'd blocks)
Per-pixel motion: I noticed in XviD, motion is only expressed in warp-points, which dont get quantized and have a resolution of an eighth of the image. I think instead of having macroblock warppoints, it would be better to have quantized, DCT'd, per-pixel motion. This would greatly decrease the overhead of large resolutions, make larger macroblocks viable and create less of a problem when multiple moving objects inhabit the same macroblock.
Quantized RLE: Anime isn't compressed very well with DCT, RLE would be far more suitable, and 1st or 2nd derivative images quantize without requiring dithering :-D
Anyone who can say they've tried one of these, how did it turn out? did you test it on both cartoons and real video? are there any lessons I should learn if I ever manage to implement these?
Regarding quantized RLE, I did a test to see just how bad DCT was with anything with edges, I got a BMP full of text and saved it as a PNG, and a JPG. Im sure you know paint is terrible at saving both, however, the PNG, which is lossless, took up half as much space as the JPG.
Im considering just shelling out the Xvid codec to try some of these in, but time is always against me.
Macro-DCT: After an image has been DCT'd, MPEG style, grouping all of frequencies and performing a second DCT on them(ie. The first macro-DCT block would be the DCT of the first elements of each of the DCT'd blocks)
Per-pixel motion: I noticed in XviD, motion is only expressed in warp-points, which dont get quantized and have a resolution of an eighth of the image. I think instead of having macroblock warppoints, it would be better to have quantized, DCT'd, per-pixel motion. This would greatly decrease the overhead of large resolutions, make larger macroblocks viable and create less of a problem when multiple moving objects inhabit the same macroblock.
Quantized RLE: Anime isn't compressed very well with DCT, RLE would be far more suitable, and 1st or 2nd derivative images quantize without requiring dithering :-D
Anyone who can say they've tried one of these, how did it turn out? did you test it on both cartoons and real video? are there any lessons I should learn if I ever manage to implement these?
Regarding quantized RLE, I did a test to see just how bad DCT was with anything with edges, I got a BMP full of text and saved it as a PNG, and a JPG. Im sure you know paint is terrible at saving both, however, the PNG, which is lossless, took up half as much space as the JPG.
Im considering just shelling out the Xvid codec to try some of these in, but time is always against me.