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

OEM elevates vision solutions for heavy machinery with Videology cameras

OEM elevates vision solutions for heavy machinery with Videology cameras

A global supplier of camera and monitor systems for commercial and industrial vehicles is driving enhanced safety and operational efficiency with...

Anatronic joins Videology as official distributor for Spain and Portugal

Anatronic joins Videology as official distributor for Spain and Portugal

In line with our commitment to global expansion, we are pleased to welcome Anatronic S.A. as an official camera distributor of Videology...

Impact Components Joins the Videology Community Partner Program

Impact Components Joins the Videology Community Partner Program

Videology is pleased to announce that Impact Components has joined the Videology Community Partner Program, further strengthening our ecosystem of...

Four Ways to Contact Videology

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

EUROPE LOCATION

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