You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

ffmpeg_progress

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ffmpeg_progress

1.1.0
bundlerRubygems
Version published
Maintainers
1
Created
Source

=FFmpegProgress

{Inline docs}[http://inch-ci.org/github/Winterbraid/ffmpeg_progress] {}[https://codeclimate.com/github/Winterbraid/ffmpeg_progress]

Source code:: https://github.com/Winterbraid/ffmpeg_progress Gem:: https://rubygems.org/gems/ffmpeg_progress Documentation:: www.rubydoc.info/gems/ffmpeg_progress/frames

Execute +ffmpeg+ commands while displaying a pretty progress bar instead of the usual garbage.

Convert from the shell with default options:

Will save to ./converted/test.mp4

ruby -rffmpeg_progress -e "FFmpegProgress::FFmpeg.new('test.avi').run"

==Example Use require 'ffmpeg_progress'

include FFmpegProgress

f = FFmpeg.new 'input.avi'

Occurrences of 'INPUT' will be replaced with the input file name.

f.options = '-y -threads 0 -c:v libx264 -crf 22 -preset medium -c:a copy'

Directories will be created if necessary.

f.output = 'output.mkv'

f.command

=> "ffmpeg -i input.avi -y -threads 0 -c:v libx264 -crf 22 " \

"-preset medium -c:a copy output.mkv &> ffmpeg.log"

The optional block is passed self as a parameter and appended to

the progress bar.

f.run { |ffmpeg| ffmpeg.output }

FAQs

Package last updated on 02 Nov 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts