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
- Parallel Cloud Ingestion: Implemented multithreaded downloads from AWS S3 with Ray-based task parallelism for distributed computing
- Video Preprocessing: Automated clip splitting with FFmpeg, frame processing with OpenCV
- Scalable Processing: Ran jobs in Databricks using PySpark for distributed data processing
- Experiment Tracking: Used MLflow to track experiments, model versions, and artifacts
- Score Extraction: Applied computer vision techniques (OCR) to extract on-screen scores
- Timestamp Alignment: Aligned extracted scores to video timestamps for validation and analytics
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
- Performance: Reduced download and processing time by 60%+ for large videos through parallel processing
- Scalability: Pipeline handles multiple videos concurrently using Ray and Databricks
- Reliability: Structured output with timestamp alignment enables downstream analytics
- Knowledge Transfer: Delivered documentation and knowledge transfer to new team members
- Collaboration: Worked cross-functionally with Data Engineering and Analytics teams using Jira and Confluence
Technologies Used
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.