tenderlove / av_capture Goto Github PK
View Code? Open in Web Editor NEWA wrapper around av_capture on OS X
A wrapper around av_capture on OS X
When i tried to push my application to Heroku it cant install the av_capture gem.
I tried installing the 2 gem needed in the Rakefile and ran rake.
But seems like I need to compile something? What steps am I missing?
gem install hoe rake-compiler
rake
Defaulting gemspec to MIT license.
Call license in hoe spec to change.
/Users/Emmanuel/.rubies/ruby-2.1.0-preview2/bin/ruby -w -Ilib:bin:test:. -e 'require "rubygems"; require "minitest/autorun"; require "test/test_maccam.rb"' --
/Users/Emmanuel/.rubies/ruby-2.1.0-preview2/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- av_capture.so (LoadError)
from /Users/Emmanuel/.rubies/ruby-2.1.0-preview2/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /Users/Emmanuel/Projects/av_capture/lib/av_capture.rb:1:in `<top (required)>'
from /Users/Emmanuel/.rubies/ruby-2.1.0-preview2/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /Users/Emmanuel/.rubies/ruby-2.1.0-preview2/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /Users/Emmanuel/Projects/av_capture/test/test_maccam.rb:2:in `<top (required)>'
from /Users/Emmanuel/.rubies/ruby-2.1.0-preview2/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /Users/Emmanuel/.rubies/ruby-2.1.0-preview2/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from -e:1:in `<main>'
rake aborted!
Command failed with status (1): [/Users/Emmanu
I know it's just a pet project but it may be worthwhile to toss minitest into development.
Know that my rake failed because of minitest missing. Granted everyone who can read would be able to figure out they need to gem install minitest
ruby: 2.3.0
av_capture: 1.0.0
Hey TL-dawg, I'm using this gem in my frame-capture-over-time gem gorthaur and we're trying to make the thing as accessible as possible.
One hiccup (as you might imagine) is the Ruby version. Right now av_capture
is the gem that sets the lowest bar (2.0.0) and we're wondering if that's as low as it can go. Is there anything I should know before I dive in and try to make it compatible with lower versions of Ruby? Is this even desirable for this project?
When calling simple script which save an image it crash during capturing in this code
image_binary = AVCapture::Session.new.run_with(d) do |connection|
connection.capture
end
with this call stack
"devices [#<AVCapture::Device:0x007fc56a8f8900>]"
"device FaceTime HD Camera (Built-in)"
...
2014-06-18 15:08:20.455 ruby[62496:d1b] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** An AVCaptureInput instance may not be added to more than one session'
*** First throw call stack:
(
0 CoreFoundation 0x00007fff8cfe025c __exceptionPreprocess + 172
1 libobjc.A.dylib 0x00007fff94088e75 objc_exception_throw + 43
2 AVFoundation 0x00007fff89102cb1 -[AVCaptureSession _addInputWithNoConnections:] + 592
3 AVFoundation 0x00007fff89102830 -[AVCaptureSession addInput:] + 96
4 av_capture.bundle 0x00000001052c5fe9 add_input + 73
5 ruby 0x000000010501b949 vm_call_cfunc_with_frame + 1065
6 ruby 0x00000001050341bf vm_call_method + 415
7 ruby 0x000000010501ff60 vm_exec_core + 9872
8 ruby 0x0000000105025d4a vm_exec + 122
9 ruby 0x00000001050376c4 rb_yield_values + 1156
10 ruby 0x000000010503630f rb_yield + 1119
11 ruby 0x0000000104e7bd8e rb_ary_each + 78
12 ruby 0x0000000105028d7c vm_call0_body + 1804
13 ruby 0x000000010502ab9e rb_call0 + 494
14 ruby 0x0000000105019e47 rb_iterate + 279
15 ruby 0x000000010501a36d rb_block_call + 45
16 ruby 0x0000000104eb6c3d enum_each_with_index + 141
17 ruby 0x000000010501b949 vm_call_cfunc_with_frame + 1065
18 ruby 0x00000001050341bf vm_call_method + 415
19 ruby 0x00000001050203af vm_exec_core + 10975
20 ruby 0x0000000105025d4a vm_exec + 122
21 ruby 0x0000000105026c31 rb_iseq_eval_main + 321
22 ruby 0x0000000104ec78bd ruby_exec_internal + 221
23 ruby 0x0000000104ec9aec ruby_run_node + 60
24 ruby 0x0000000104e7ae6f main + 79
25 libdyld.dylib 0x00007fff8a2c35fd start + 1
26 ??? 0x0000000000000002 0x0 + 2
)
libc++abi.dylib: terminating with uncaught exception of type NSException
Abort trap: 6
But it is probably issue of Yosemite because other utils does not work too. On Mavericks it worked OK.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.