Skip to content

Conversation

@paruparu
Copy link

Summary

Fixes video upload error caused by missing side_data attribute in newer PyAV versions (resolves #497).

Problem

Users cannot upload videos due to AttributeError: 'VideoCodecContext' object has no attribute 'side_data'. Current workaround requires downgrading PyAV to 13.1.0.

Solution

Added error handling for side_data access in video metadata retrieval, providing fallback value when attribute is not available.

Changes

  • Added try-catch block in get_video_metadata() function
  • Graceful fallback to rotation_deg = 0 when side_data is unavailable
  • Maintains compatibility with both old and new PyAV versions

Fixes #497

… stream metadata retrieval. This change ensures compatibility with older PyAV versions or different video stream types by providing a fallback value of 0 for rotation degrees.
@meta-cla meta-cla bot added the cla signed label Oct 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Unable to Upload Video via Frontend in Docker - "Uh oh, we cannot process this video" Error

1 participant