1 min read

Dynamic video orientation correction on SCAiLX using GStreamer and OpenGL

AI-powered real-time video orientation correction
2:26
Dynamic video orientation correction on SCAiLX using GStreamer and OpenGL

A recent request from one of our customers, a provider of pipeline and sewer inspection systems, challenged us to maintain a level camera feed while navigating in the pipes. Our engineering team accepted the challenge. The result is a practical demonstration of dynamic live video rotation using the SCAiLX Edge AI camera platform.

Why Live Rotation Matters

In environments like pipes, borescopes, and confined industrial systems, cameras move in unpredictable orientations. Operators need a level, intuitive view to perform accurate inspections, reduce fatigue, and ensure safety. If the image tilts with every turn of the camera, productivity suffers.

To solve this, we combined:

  • Real-time video processing to rotate the feed dynamically
  • GPU acceleration for smooth performance on embedded platforms like SCAiLX

The result? A seamless viewing experience, no matter how your camera twists or turns.

 

From CPU Rotation to GPU Acceleration

Our initial proof of concept used GStreamer’s rotate element in a Python script. While functional, CPU-based rotation only achieved around 2 frames per second on the SCAiLX. This was not fast enough for real-world pipe inspection or other demanding applications.

The next step was to leverage GPU acceleration. By using GStreamer’s glshader element, we achieved smooth, real-time rotation at near-60 FPS. The solution streams directly to a web interface (scailxwebsink), allowing operators to view a stabilized feed on any browser-enabled device.

Practical Applications

Dynamic live video rotation benefits multiple industries:

  • Pipe and sewer inspection: Ensures inspectors always have a consistent view while maneuvering cameras through the pipes and sewer lines. 

  • Industrial robotics: Keeps operators oriented when cameras are mounted at varying angles.

  • Drones and UAVs: Stabilizes onboard camera feeds during flight.

  • Medical and technical endoscopes: Provides surgeons and engineers with a clear, level perspective.

A Peek Under the Hood

The demonstration uses a custom OpenGL shader embedded in the GStreamer pipeline. This shader dynamically adjusts the video orientation based on input from sensors, allowing precise rotation beyond simple 90° increments.

Ready to see the full technical details? Please complete the form below to connect with our team and discuss your imaging requirements.

 

 

Related Articles

Real ID Act and Videology Photo ID Cameras

Real ID Act and Videology Photo ID Cameras

With REAL ID enforcement just over a year away, Videology Photo ID cameras ensure that the photos used on government-issued identification documents,...

Secure and flexible. IP Board Cameras and versatile applications

Secure and flexible. IP Board Cameras and versatile applications

In today's fast-paced and ever-evolving technological landscape, IP cameras have emerged as a cornerstone for Original Equipment Manufacturers (OEMs)...

Photo ID cameras for credentialing

Photo ID cameras for credentialing

A brief history of Photo ID cameras starts with a trip on our way back machine. Going back to the year 1803 shows us that Napoleon Bonaparte was the...

Four Ways to Contact Videology

HEADQUARTERS LOCATION

Videology Industrial-Grade Cameras
35 Hampden Road
Mansfield, MA 02048
United States
Directions
+1 401 949 5332
sales@videologyinc.com

EUROPE LOCATION

Videology Industrial-Grade Cameras
High Tech Campus 5
5656 AE Eindhoven
The Netherlands
Directions
+31 40 7200159
sales-eu@videologyinc.com