Skip to content

Commit

Permalink
update readme to include percentage completed
Browse files Browse the repository at this point in the history
  • Loading branch information
HendrikLouw committed Apr 16, 2012
1 parent c961125 commit b38f83c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Expand Up @@ -34,6 +34,14 @@ This will also work for audio using the same API by simply:

This will convert the sound file into acc and save it in the same directory as the original video

You can call convert with a block, this will return a MediaTime object.

Voyeur::Media.new( filename: path_to_file ).convert( to: :mp4 ) do |time|
puts time.to_seconds
end
This will output how far along the video the conversion process is, it can be used to display percentage completed.
See bin/voyuer.rb for an example.

Alternatively you can convert to all 3 types at once:

Voyeur::Media.new( filename: path_to_file ).convert_to_html5
Expand Down

0 comments on commit b38f83c

Please sign in to comment.