This document discusses scaling up video analytics inside a database engine. It proposes using relation-valued functions (RVFs) as a way to model complex video analysis applications, increase execution efficiency by caching models, and enable data-parallel computation. RVFs allow video analytics logic to be expressed as relational operators that can be naturally composed with SQL queries. An RVF container handles invocation patterns and system interactions to improve performance. The approach was prototyped using PostgreSQL.