libmagic on windows
See original GitHub issueSince 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:
- Created 7 years ago
- Comments:14 (7 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I did that actually, just still takes a while. But looks like it worked and didnt’ crash anything in Windows!
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.