Can we remove thumbnail creation for gifs, thus allowing mp4 -> anima…#17
Open
wnm wants to merge 1 commit intoruby-av:masterfrom
wnm:patch-1
Open
Can we remove thumbnail creation for gifs, thus allowing mp4 -> anima…#17wnm wants to merge 1 commit intoruby-av:masterfrom wnm:patch-1
wnm wants to merge 1 commit intoruby-av:masterfrom
wnm:patch-1
Conversation
…ted gif transformation?
Hey there,
I was trying to use ruby-av and paperclip-av-transcoder to transform user uploaded mp4 files to gifs, and vice versa. The gif -> mp4 transformation works beautifully, and I think the only thing stopping me from being able to transform videos into animated gifs, is the default options that get added for gif files, to create a static thumbnail: "-f image2 -vframes 1".
I removed gifs from the output_format method in my project and was able to transform mp4 to gifs with the following options:
```
styles: {
gif: {
format: 'gif',
:processors => [:transcoder],
time: 0,
convert_options: {
output: {
vf: "fps=10,scale=320:-1"
}
}
}
}
```
Can we remove thumbnail creation for gifs?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
…ted gif transformation?
Hey there,
I was trying to use ruby-av and paperclip-av-transcoder to transform user uploaded mp4 files to gifs, and vice versa. The gif -> mp4 transformation works beautifully, and I think the only thing stopping me from being able to transform videos into animated gifs, is the default options that get added for gif files, to create a static thumbnail: "-f image2 -vframes 1".
I removed gifs from the output_format method in my project and was able to transform mp4 to gifs with the following options:
Can we remove thumbnail creation for gifs?