Skip to content

Bug in calculating width and height in FFMpeg::Movie  #207

@ndendi

Description

@ndendi

Typically rotation is set to null for many videos but sometimes it can be set to 0.
Rotation = 0 shouldn't swap the width and height in my opinion. This has caused problems by returning incorrect resolution for some of the videos we have.

I can send a fix for this if you agree this is an issue.
My fix is to add rotation == 0 check at
https://github.com/streamio/streamio-ffmpeg/blob/master/lib/ffmpeg/movie.rb#L159

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions