Rabiat Sadiq

PlayStation (SIE) • Applied AI Team • Summer 2025

Gameplay Video Score Extraction Pipeline

Built an end-to-end ML pipeline to extract on-screen gameplay scores from long-form streaming videos and align scores to timestamps for validation and downstream analytics. Reduced video processing time by 60%+.

Performance

60%+ faster processing

Scale

Parallel cloud ingestion

Stack

Ray • Databricks • MLflow

Problem

The Applied AI team needed to extract gameplay scores from streaming videos for Quality of Experience (QoE) analysis. Long-form videos required efficient processing, and manual extraction was not scalable. The challenge was building a pipeline that could handle large video files, process them in parallel, and extract structured data reliably.

Approach

Technical Implementation

# Parallel download with Ray
import ray
@ray.remote
def download_video(s3_path):
    # Multithreaded S3 download
    return download_from_s3(s3_path)

# Process videos in parallel
video_paths = ray.get([download_video.remote(path) for path in s3_paths])

# FFmpeg clip splitting
subprocess.run(['ffmpeg', '-i', video, '-ss', start, '-t', duration, output])

# OpenCV frame processing
cap = cv2.VideoCapture(video_path)
ret, frame = cap.read()
score_region = frame[y1:y2, x1:x2]
score_text = pytesseract.image_to_string(score_region)

# Databricks PySpark processing
df = spark.read.format("video").load(path)
results = df.select(extract_score_udf("frame").alias("score"))

Results

Technologies Used

Python AWS S3 Ray FFmpeg OpenCV OCR Databricks PySpark MLflow SQL Snowflake Jira Confluence

Impact

This pipeline enabled the Applied AI team to enhance game streaming quality through real-time video context understanding and data-driven optimization. The extracted score data supports Quality of Experience (QoE) analysis and helps improve streaming services for millions of PlayStation users.

Back to Projects LinkedIn