Skip to content

Conversation

@joaoffcosta
Copy link
Contributor

Thumbnails are being generated with the wrong orientation even when using the auto_rotate option.

Digging through the source, I found out that auto_rotation option is not doing anything.
I also found out that the paperclip-ffmpeg gem did support this before: owahab/paperclip-ffmpeg@3e36704

So I basically applied the same to the paperclip-av-transcoder gem.
I'm not sure why this was removed but it seems to be working fine...

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Were you able to test vf parameter for both libav and ffmpeg?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No! I don't think I have the proper setup but let me give it a try.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You don't have to. If the parameters are different, I guess it's better to move this filter to av gem instead of handling it in paperclip-av-transcoder.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

av gem supports rotation using filter_rotate. And the interface is the same for avconv and ffmpeg. So maybe we should keep this auto_rotate option in this gem but call filter_rotate instead.

In the meantime I tested this and it's not working properly because arguments are not being passed correctly. I'm opening another PR in av gem to fix this: ruby-av/av#15

@joaoffcosta
Copy link
Contributor Author

Hey @owahab, any news on this? We've been using this in production for a couple of months now and it's working perfectly.

owahab added a commit that referenced this pull request Feb 4, 2016
@owahab owahab merged commit a07e210 into ruby-av:master Feb 4, 2016
@owahab
Copy link
Member

owahab commented Feb 4, 2016

Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants