dthpham / sminterpolate

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

ffmpeg 4.1 and weird behaviour #99

Open gabrielstuff opened 5 years ago

gabrielstuff commented 5 years ago

Hello, When running: butterflow -prb video-1538675243.mp4

The output is

Video information:
  Streams available     : video,audio
  Resolution            : 1x0, SAR 1:1 DAR 1:0
  Rate                  : nan fps
  Duration              : 00:00:00 (0.00s)
  Num of frames         : 9223372036854775808

This is the same output with any video. I've unfortunately tried to symlink the missing lib as mentionned here: https://github.com/dthpham/butterflow/issues/83 and done:

cd /usr/local/opt/ffmpeg/lib
ln -s libavutil.56.dylib libavutil.55.dylib
ln -s libavformat.58.dylib libavformat.57.dylib
ln -s libavcodec.58.dylib libavcodec.57.dylib

But it failed miserably. Any help would be nice!

Thanks

faloupy commented 5 years ago

+1

Instead of symlinking (which would have been the better approach) I edited the offending hex

hexedit /usr/local/Cellar/butterflow/0.2.3_1/libexec/lib/python2.7/site-packages/butterflow/avinfo.so

sadly I get the same output you do for all videos:

$ butterflow -prb 20180206-fixup2.mp4 Video information: Streams available : video Resolution : 1x0, SAR 1:1 DAR 1:0 Rate : nan fps Duration : 00:00:00 (0.00s) Num of frames : 9223372036854775808

Tsubashi commented 5 years ago

As you probably guessed, it looks like something changed in ffmpeg between version 3 and 4, which causes the crash. It looks like version 3.4.5 is the last version that has those libraries, and indeed it appears to work on my 3.4.2 install, but you will also need to use an older version of opencv or you will get Illegal instruction: 4

locksoft commented 5 years ago

So there's no way to make butterflow run on Mac? I tried the windows version and gave me a opencl error The Mac version one gives the error above. I've searched for previous versions of ffmpeg but can't find the 3.4.5 I tried the 3.4.2 but it misses the libavcodec.57.dylib. If I manually download and put in the correct folder I still get the same error. How to uninstall butterflow via brew now? :(

Stemanz commented 5 years ago

What OpenCL error did you get with Windows?

I also got into troubles with Windows, but as a workaround I could get butterflow to run inside the linux subsystem for Windows. Try looking at the error I got.

locksoft commented 5 years ago

Sorry Stemanz, cannot remember. I've already uninstalled it. At the end I used a motion blur filter in Final Cut Pro and solved the issue.