--- !ruby/object:Gem::Specification name: vtools version: !ruby/object:Gem::Version version: 0.0.1 prerelease: platform: ruby authors: - tofir autorequire: bindir: bin cert_chain: [] date: 2011-11-23 00:00:00.000000000Z dependencies: - !ruby/object:Gem::Dependency name: daemons requirement: &79101960 !ruby/object:Gem::Requirement none: false requirements: - - ! '>=' - !ruby/object:Gem::Version version: 1.1.4 type: :runtime prerelease: false version_requirements: *79101960 - !ruby/object:Gem::Dependency name: json requirement: &79101770 !ruby/object:Gem::Requirement none: false requirements: - - ! '>=' - !ruby/object:Gem::Version version: '0' type: :runtime prerelease: false version_requirements: *79101770 - !ruby/object:Gem::Dependency name: rspec requirement: &79101540 !ruby/object:Gem::Requirement none: false requirements: - - ! '>=' - !ruby/object:Gem::Version version: '0' type: :development prerelease: false version_requirements: *79101540 description: ! "# VTools\n\nDaemon video processor tools to operate the video (get info, encode & generate thumbnails).\nUnder the hood ffmpeg & ffmpegthumbnailer are used.\nSome ideas has been taken at the streamio-ffmpeg gem (parse output methods).\n\nProject was developed for the [WebTV](http://web.tv)\n\n## Installation\n\n (sudo) gem install vtools\n\nPlease read changelog to check ffmpeg versions compatibility.\n\n## Usage\n\n### Getting started\n\nBefore start, daemon should be correctly configured, to have valid access to the storage.\nMandatory methods are: **connect**, **recv** and **send**.\n\n``` ruby\n#--file library.rb--#\n# encoding: binary\n\n#to setup storage:\nVTools::Storage.setup do\n\n # connection setup\n connect_action do\n \ # ... connect to the storage (persistent)\n end\n\n # message reciever\n # should return JSON encoded string\n # see complete storage setup reference for details\n recv_action do\n # ... job data recieve algorithm\n end\n\n # message sender\n # recieves hash: { :data => execution_result, :action => executed_action }\n # execution_result can be video object or array with thumbnails\n send_action do |result|\n # ... send action here\n end\nend\n\n# storage can be setup separate\nVTools::Storage.connect_action do\n # ... connect to the storage\nend\n```\n\n### Setup message (JSON)\n\n```\n{ \"action\" : \"convert|thumbs|info\", \"file\" : \"path/to/file\", \"setup\" : < setup > }\n# setup can be:\n# -- \"predefined_set_id\"\n# -- { ffmpeg_options_hash }\n# -- { \"set\": \"predefined_set_str\", ffmpeg_options_hash }\n```\n\n### User friendly option names\n\n```\nconverter (ffmpeg)\n preserve_aspect (true or false)\n \ extension (result file extension)\n width, height\n resolution\n duration\n\nthumbnailer (ffmpegthumbnailer)\n thumb_count\n thumb_start_point (in percents)\n time (time offset, alias for -t)\n quality (0 - 10)\n width\n```\n\n## Start\n\nTo launch daemon is enough to require library with storage setup:\n (sudo) vtools start -- -r library\n\n## Options\n\n### Daemon options are\n start\n stop\n restart\n\n### Application options are:\n -c or --config-file - load config from file\n -r or --require - load ruby library file (can be used more than once)\n\n### To see complete options list use\n vtools --help\n\n### Using logger\n\nBy default the `logger` gem is used. But there is possibility to set custom logger, that is compatible with the default logger.\n\n``` ruby\nVTools.logger = CustomLoger.new($stdout)\n```\n\n### Additioinal methods\n\nPath generator is used by the thumnailer, converter or both to generate necessary dir tree logic for the media.\nIt accepts file name and should return relative path (excluding file name itself)\n\n``` ruby\n# path generator (used to )\nVTools.path_generator do |file_name|\n # ..\nend\n\n```\n\n**Network calls** (TCP GET request, that will return message body content, ignoring response headers)\n\n``` ruby\n\n# http calls\nVTools.network_call \"site.com/some/uri\"\nVTools.network_call \"www.site.com\"\nVTools.network_call \"http://www.site.com\"\n```\n" email: v.tofir@gmail.com executables: - vtools extensions: - extconf.rb extra_rdoc_files: [] files: - bin/vtools - README.md - Rakefile - lib/vtools.rb - lib/vtools/video.rb - lib/vtools/harvester.rb - lib/vtools/storage.rb - lib/vtools/converter.rb - lib/vtools/version.rb - lib/vtools/errors.rb - lib/vtools/job.rb - lib/vtools/convert_options.rb - lib/vtools/version.rb~ - lib/vtools/thumbnailer.rb - lib/vtools/shared_methods.rb - lib/vtools/handler.rb - lib/vtools/config.rb - lib/vtools/options.rb - lib/vtools/thumbs_options.rb - INSTALL - spec/job_spec.rb - spec/convert_options_spec.rb - spec/fixtures/outputs/file_with_start_value.txt - spec/fixtures/outputs/file_with_surround_sound.txt - spec/fixtures/outputs/file_with_iso-8859-1.txt - spec/fixtures/outputs/file_with_no_audio.txt - spec/fixtures/outputs/file_with_non_supported_audio.txt - spec/config_spec.rb - spec/harvester_spec.rb - spec/storage_spec.rb - spec/errors_spec.rb - spec/handler_spec.rb - spec/converter_spec.rb - spec/video_spec.rb - spec/spec_helper.rb - spec/thumbnailer_spec.rb - spec/options_spec.rb - spec/shared_methods_spec.rb - spec/thumbs_options_spec.rb - doc/HOOKS.md - doc/LIB_EXAMPLE.md - doc/CONFIG.md - LICENSE - setup.rb - vtools.gemspec - extconf.rb homepage: http://tofir.comuv.com licenses: [] post_install_message: rdoc_options: [] require_paths: - lib required_ruby_version: !ruby/object:Gem::Requirement none: false requirements: - - ! '>=' - !ruby/object:Gem::Version version: '1.9' required_rubygems_version: !ruby/object:Gem::Requirement none: false requirements: - - ! '>=' - !ruby/object:Gem::Version version: '0' requirements: - ffmpeg v >= 1.8 - ffmpegthumbnailer v >= 2 - gem Daemons v >= 1.1.4 rubyforge_project: rubygems_version: 1.8.10 signing_key: specification_version: 3 summary: Daemon tools to operate the video (get info, encode & generate thumbnails). test_files: - spec/job_spec.rb - spec/convert_options_spec.rb - spec/config_spec.rb - spec/harvester_spec.rb - spec/storage_spec.rb - spec/errors_spec.rb - spec/handler_spec.rb - spec/converter_spec.rb - spec/video_spec.rb - spec/thumbnailer_spec.rb - spec/options_spec.rb - spec/shared_methods_spec.rb - spec/thumbs_options_spec.rb