Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix aspect ratio problems #3

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ Or install it yourself as:
## Usage

### Use in Command Line

See usage with: `videosprites help process`

Try it out with the defaults on one of the test videos in this repository under test/videos:
Expand All @@ -42,7 +41,6 @@ Or create sprites that better match your use case:
You can also make an animated GIF from all the selected frames using the same size as the thumbnails by adding the `--gif` option.

### Use as Gem

To use the project as a module in your own video processing workflow you can use it like this:

```ruby
Expand Down
2 changes: 1 addition & 1 deletion lib/video_sprites/processor.rb
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def create_gif
end

def ffmpeg_cmd
%Q|ffmpeg -i "#{@input_file}" -vf fps=1/#{@options[:seconds]} #{thumbnail_image_path} |
%Q|ffmpeg -i "#{@input_file}" -vf "fps=1/#{@options[:seconds]},scale=640x360,pad=640:480:0:60:black" #{thumbnail_image_path} |
end

def montage_cmd(sprite_slice, index)
Expand Down
2 changes: 1 addition & 1 deletion video_sprites.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Gem::Specification.new do |spec|

spec.add_dependency "thor"

spec.add_development_dependency "bundler", "~> 1.13"
spec.add_development_dependency "bundler", "~> 2.0"
spec.add_development_dependency "rake", "~> 10.0"
spec.add_development_dependency "minitest", "~> 5.0"
spec.add_development_dependency "colorize"
Expand Down