Comments (4)
Currently it's not possible to crop video at all. You can pad video with #, but not crop.
I have the same problem 2 years ago, so forked paperclip-ffmpeg and made a crop instead of pad. You can try https://github.com/attenzione/paperclip-ffmpeg for now.
But i think this behaviour should be implemented in this gem, too.
from paperclip-av-transcoder.
Thank you! And agreed. But even # doesn't pad the video for me. And it returns the exact same video as 500x500 (without the hashtag).
Any ideas?
has_attached_file :video, path: "/posts/videos/:id/:style.:extension",
:styles => {
:square => {:geometry => "500x500#", :format => 'mp4', :streaming => true }
},
:processors => [:transcoder]
from paperclip-av-transcoder.
possibly this gem is not finished yet, for padding.
from paperclip-av-transcoder.
The geometry options are actually totally ignored in this version of the gem. You can see here that the various options are extracted but they are never passed to the output. The only thing the output sees is a sanitized geometry setting which causes the backend to resize to the requested height/width.
from paperclip-av-transcoder.
Related Issues (20)
- Getting just a black image HOT 1
- please delete
- Generated thumbnail files empty when using the "#" padding option
- Error on player when I upload
- Accessing file metadata using '<attachment>_meta' HOT 3
- using this gem on Windows is not working Av::CommandError HOT 2
- video conversion
- thumbnail geometry ignores "!#<>" HOT 3
- CPU limit ffmpeg HOT 1
- Can't transcode flv-x files HOT 1
- -ss and 'Unable to find a suitable output format for '00:00:00'
- FFMPEG hangs/stalls when converting large files HOT 4
- convert_options causes NoMethodError when only :input is defined
- Thumbnail bad quality HOT 2
- Thumbs depending on the video duration HOT 3
- URL issue: paperclip-av-transcoder HOT 1
- Too many packets buffered for output stream 0:1.
- Delayed job or job queue HOT 2
- auto rotate not working
- Riails 6 and https://github.com/kreeti/kt-paperclip HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from paperclip-av-transcoder.