TL;DR
This paper introduces VSS, a novel storage system designed to efficiently manage and retrieve video data for analytics applications. VSS decouples high-level video operations from low-level storage details, enabling significant improvements in read performance (up to 54%) and storage cost reduction (up to 45%) by intelligently caching, organizing, and deduplicating video data.
What Problem Does This Paper Address?
The explosion of video data from sources like YouTube, surveillance cameras, and body-worn devices presents a significant challenge for storage and retrieval systems. Existing video data management systems (VDBMSs) and processing applications often treat video as opaque, monolithic files, leading to inefficiencies. They typically focus on query execution on already decoded data or treat video compression as a black box. This results in high costs for reading and decompressing video, which can constitute over 50% of the total runtime, creating a performance bottleneck. Furthermore, modern applications often require video data in various formats, resolutions, and encodings, and struggle with the substantial redundancy present in data from overlapping camera views.
Methods
VSS tackles these challenges by acting as a specialized storage subsystem for VDBMSs. Its core innovations include:
- Granular Data Organization: Instead of storing videos as opaque files, VSS decomposes them into sequences of contiguous, independently decodable frame sets called Groups of Pictures (GOPs). This allows VSS to transform and manage video data at a finer granularity.
- Intelligent Caching and Materialized Views: VSS maintains a per-video collection of "materialized views" (cached, transformed video regions). When a query arrives, VSS uses a satisfiability modulo theories (SMT) solver to select the most cost-effective subset of these views to construct the answer, optimizing for factors like transcoding cost and quality.
- Redundancy Elimination (Joint Compression): VSS identifies and exploits redundancies between videos captured from proximate cameras with overlapping fields of view. It employs a joint compression technique that estimates homographies between frames, partitions them into overlapping and non-overlapping regions, and then re-encodes these pieces together, significantly reducing storage.
- Optimized Eviction Policy (LRUvss): To manage cache space, VSS uses a modified Least Recently Used (LRU) policy that considers not only recency but also fragment position within a video and redundancy with other cached fragments, aiming to retain more useful data.
- Deferred Compression: For uncompressed video data, VSS activates a deferred compression mode when the cache budget is approached. It losslessly compresses less recently used entries to save space, with the compression level dynamically adjusted based on available storage.
Datasets
The paper evaluates VSS using a combination of real and synthetic datasets:
- Robotcar: A dataset consisting of two highly-overlapping videos from vehicle-mounted stereo cameras, provided as PNG-compressed frames.
- Waymo: An autonomous driving dataset, with a selected segment from vehicle-mounted cameras, estimated to have ~15% overlap.
- VisualRoad: A suite of synthetic video datasets generated using a benchmark designed for video data management systems. These datasets vary in resolution (1K, 2K, 4K) and horizontal overlap (30%, 50%, 75%).
No new benchmarks were introduced; existing datasets were used for evaluation.
Key Insights and Ideas
- Decoupling is Key: The core idea of separating high-level video operations from low-level storage management is crucial for unlocking performance gains. VSS's success hinges on this abstraction.
- Materialized Views for Video: Applying the concept of materialized views from relational databases to video data, with intelligent selection using SMT solvers, is a powerful approach for efficient query answering.
- Exploiting Overlap is a Storage Saver: The significant redundancy in video data from multiple cameras is a major opportunity for storage cost reduction, and VSS's joint compression technique effectively addresses this.
- Granularity Matters: Breaking videos down into GOPs allows for much more flexible and efficient manipulation and caching compared to treating entire video files as atomic units.
- Quality vs. Cost Trade-offs: VSS explicitly models and manages the trade-off between video quality and storage/computation costs, allowing applications to specify quality requirements.
Key Results
- Read Performance: VSS can improve video read performance by up to 54% compared to reading directly from the original video.
- Storage Cost Reduction: VSS can reduce storage costs by up to 45% through its joint compression and caching mechanisms.
- Application Performance: An end-to-end application monitoring an intersection showed significant improvements with VSS, particularly in search and streaming retrieval steps, and scaled better with multiple clients.
- Joint Compression Quality: The mean merge function in joint compression achieves balanced, near-lossless quality for both frames while significantly reducing storage.
- Write Throughput: VSS's deferred compression allows it to store datasets that other systems cannot handle due to storage limitations, albeit with decreased throughput.
Limitations and Future Work
- No-Overwrite Policy: The current prototype has a no-overwrite policy and disallows updates, which is a limitation for certain dynamic scenarios.
- Writes Not Visible Until Closed: VSS does not guarantee that writes are visible until the file being written is closed.
- Future Work: The authors plan to extend VSS's joint compression to support more intelligent merging techniques for overlapping pixels, particularly to handle occlusions and preserve original video form for legal reasons. They also suggest incorporating more advanced compression codecs like MV-HEVC.
Summary updated