dthpham / sminterpolate

Make motion interpolated and fluid slow motion videos from the command line.
MIT License
1.38k stars 91 forks source link

illegal hardware instruction on OSX #92

Open nathan-teoh opened 6 years ago

nathan-teoh commented 6 years ago

I'm running High Sierra hackintosh. I seem to get a "illegal hardware instruction" whenever I try to use my GPU. Here's the output when I run butterflow -d

OpenCL devices: Platform : Apple Platform Vendor : Apple Platform Version : OpenCL 1.2 (Mar 15 2018 15:35:11) Device 0 : Intel(R) Core(TM) i7-4770K CPU @ 3.50GHz Version : OpenCL 1.2 Version : 1.1 Work Sizes : 1024, 1024x1x1 Compatible : No Device 1 : GeForce GTX 1060 6GB Version : OpenCL 1.2 Version : 10.31.33 387.10.10.10.35.106 Work Sizes : 1024, 1024x1024x64 Compatible : Yes

and here is what happens when I run butterflow -r120 input.mov -o testslowmo.mp4 -v -p

(butterflow) [rendered] butterflow -r120 input.mov -o testslowmo.mp4 -v butterflow:INFO: Version 0.2.3 butterflow:INFO: Cache directory: /var/folders/gz/w24h8wl51wx144bz60r8807h0000gn/T/butterflow-0.2.3 butterflow:INFO: At least one compatible OpenCL device was detected butterflow:INFO: Using device: GeForce GTX 1060 6GB (autoselected) butterflow:INFO: Hardware acceleration is enabled

butterflow:INFO: Sequence: Duration=0:00:09.510000 (9.51s), Frames=228, Rate=23.9760246277 butterflow:INFO: Subregion (0): Time=0:00:00-0:00:09.510000 Frames=0-227 Speed=1.0,Duration=?,Fps=? butterflow:INFO: Rendering to: input.29042.mp4 butterflow:INFO: Final destination: testslowmo.mp4 butterflow:INFO: [Subprocess] Opening a pipe to the video writer butterflow:INFO: Rendering progress: 0.00% butterflow:INFO: Start working on Subregion (0): Time=0:00:00-0:00:09.510000 Frames=0-227 Speed=1.0,Duration=?,Fps=? butterflow:INFO: Frames in region: 0-227 butterflow:INFO: Region length: 228 butterflow:INFO: Region duration: 9.510000s butterflow:INFO: Number of frame pairs: 227 butterflow:INFO: Interpolation rate: 5 butterflow:INFO: Time stepping: 0.167,0.333,0.500,0.667,0.833 butterflow:INFO: Frames to write: 1141 butterflow:INFO: Will interpolate: 1362 butterflow:INFO: Extra frames (to discard): 221 butterflow:INFO: Drop every: 6 butterflow:INFO: Dupe every: 0 butterflow:INFO: Ready to run: 228 times butterflow:INFO: Showing a sample of the first and last 15 runs: [1] 29042 illegal hardware instruction butterflow -r120 input.mov -o testslowmo.mp4 -v

However, forcing software rendering with -sw seems to work, albeit really slowly (a python window pops up with frames of my video, whereas not running -sw will have the python window pop in then close immediately). Even when I force --device 1 to choose my GPU, same thing happens.

Any idea what's going on? I could probably run this on my windows partition, but i'd really rather just run it on my hackintosh.

jasalt commented 6 years ago

Same error happening here on High Sierra Hackintosh.

butterflow -d
OpenCL devices:
  Platform              : Apple
  Platform Vendor       : Apple
  Platform Version      : OpenCL 1.2 (May 24 2018 20:07:03)
   Device 0         : Intel(R) Core(TM) i7-8700K CPU @ 3.70GHz
      Version       : OpenCL 1.2
      Version       : 1.1
      Work Sizes    : 1024, 1024x1x1
      Compatible    : No
*  Device 1         : GeForce GTX 1050
      Version       : OpenCL 1.2
      Version       : 10.33.0 387.10.10.10.40.105
      Work Sizes    : 1024, 1024x1024x64
      Compatible    : Yes
wagesj45 commented 6 years ago

What is the GPU/CUDA support like on a hackintosh install? I would imagine that since this is not an officially supported install of the MacOS, it would be expected that low level things like CUDA would not always function.

xtrul commented 6 years ago

how u installed it?

i get this error

nongratas-iMac:~ nongrata$ butterflow -h Traceback (most recent call last): File "/usr/local/Cellar/butterflow/0.2.3_1/libexec/bin/butterflow", line 9, in load_entry_point('butterflow==0.2.3', 'console_scripts', 'butterflow')() File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources/init.py", line 565, in load_entry_point return get_distribution(dist).load_entry_point(group, name) File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources/init.py", line 2697, in load_entry_point return ep.load() File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources/init.py", line 2370, in load return self.resolve() File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources/init.py", line 2376, in resolve module = import(self.module_name, fromlist=['name'], level=0) File "/usr/local/Cellar/butterflow/0.2.3_1/libexec/lib/python2.7/site-packages/butterflow/cli.py", line 11, in from butterflow import ocl, avinfo, motion, ocl ImportError: dlopen(/usr/local/Cellar/butterflow/0.2.3_1/libexec/lib/python2.7/site-packages/butterflow/avinfo.so, 2): Library not loaded: /usr/local/opt/ffmpeg/lib/libavcodec.57.dylib Referenced from: /usr/local/Cellar/butterflow/0.2.3_1/libexec/lib/python2.7/site-packages/butterflow/avinfo.so Reason: image not found