4 ms·
Hi HN, author here: I received some great feedback so I have decided to focus on raw video for now and more rigorous testing around noisy videos. I will contin
by rh3939 1y ago
Hi HN, author here:
I received some great feedback so I have decided to focus on raw video for now and more rigorous testing around noisy videos. I will continue to update the repo frequently. Its only very early days but the raw video testing has yielded some decent results(with some caveats).
- Compression ratio of 4.8% (95.2% size reduction)
- Compression speed: 8.29 frames per second
- Decompression speed: 9.16 frames per second
- Only 4% of frames needed as keyframes
- Perceptually lossless output (PSNR: 31.10 dB)
Comparison with standard codecs:
- Rational Bloom Filter: 4.8%
- JPEG2000 (Lossless): 3.7%
- FFV1 (Lossless): 36.5%
- H.265/HEVC: 9.2% (lossy)
- H.264: 0.3% (lossy)
### Current Limitations and Future Work
While the compression results are promising, the system is not yet truly lossless in its handling of color channels. The current implementation faces challenges with the YUV to BGR color space conversion process:
1. *Color Space Conversion Precision*: Small rounding errors occur during conversion between YUV and BGR color spaces, leading to minor differences in pixel values (average difference of ~4.7).
2. *Channel Processing*: The current implementation processes color channels in BGR format after conversion, which introduces additional precision loss.
The plan moving forward is to:
- Implement direct YUV processing without conversion to BGR
- Develop a true bit-exact handling of color data
- Refine the Bloom filter parameters specifically for chroma subsampling patterns
- Create a dedicated verification system for each color channel independently
I want to be able to prove its mathematically lossless but I am quite a ways from this. I plan to pursue this lossless compression idea and I have a few other ideas in different domains around using the rational bloom filter.