question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

libmagic on windows

See original GitHub issue

Since ffmpeg does not run on Windows Ubuntu (due to subprocesses failing), I tried to run it on bare Windows.

libmagic on windows is difficult to install, and it’s absence causes video conversion to fail. e.g.:

 FrameSamplingConverter().transform(video)

I found a project to compile libmagic dll’s from scratch: https://github.com/nscaife/file-windows Carefully running the build script line by line (to catch errors that require installing further dependencies, such as autoconf) resulted in the desired dlls.

@tyarkoni to test that these dlls work I need you to copy them from C:/Users/aid338/file_windows64 to C:/Windows/System32

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:14 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
adelavegacommented, Jan 10, 2017

I did that actually, just still takes a while. But looks like it worked and didnt’ crash anything in Windows!

0reactions
adelavegacommented, Jan 11, 2017

Update: tried various codecs (mpeg1, mpeg2, h264 w/o b-frames), and all resulted in similar, if worse performance. I think without dropping the resolution this will stay about the same.

Read more comments on GitHub >

github_iconTop Results From Across the Web

python-magic installation challenges for 64-bit Windows 10 ...
If you are using a 64-bit build of python, you'll need 64-bit libmagic binaries which can be found here: https://github.com/pidydx/libmagicwin64 ...
Read more >
why use libmagic on windows to get mimetype. Is there an ...
libmagic identifies file types by checking their headers according to a predefined list of file types. This functionality is exposed to the ...
Read more >
nscaife/file-windows: File and libmagic for Windows - GitHub
This repository provides a process for building file and libmagic for Windows. Currently, it only builds 64-bit versions. Please feel free to ...
Read more >
python-magic - PyPI
python-magic is a Python interface to the libmagic file type identification library. libmagic identifies file types by checking their headers according to a ......
Read more >
magic-sys - crates.io: Rust Package Registry
brew install libmagic. Feedback for Windows (issue #2) support is appreciated! You can use Microsoft's vcpkg via vcpkg-rs and cargo-vcpkg .
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found