Giter Club home page Giter Club logo

Comments (16)

danielballan avatar danielballan commented on June 26, 2024

I am working on this.

The setup script was never intended to work on Windows. (For example, it calls pkgconfig, a Unix utility.)

The key difficulty is linking PyAV to the libraries that it requires: this is simply harder to do on Windows than it is on Unix/OSX. If you can help, please share anything you learn in issue #34.

from pyav.

mikeboers avatar mikeboers commented on June 26, 2024

My experience building Python extensions for Windows is effectively zero, and I personally have no idea where to start. (I'm not a Windows user, if it wasn't obvious.)

I don't think there is anything stopping PyAV from supporting Windows, but I personally will not be able to maintain it, or reliably test it. Unfortunately, I don't think Travis supports Windows. It would be really awesome if there could be some sort of automatic verification that goes along with Windows support, so that we can make sure we don't break it in the future.

from pyav.

danielballan avatar danielballan commented on June 26, 2024

I have heard that ContinuumIO is working on something like this. Meanwhile, I set up 32-bit and 64-bit Windows 7 Virtual Machines on my MacBook. I have no particular expertise, but I have wasted many hours trying to make Python packages work on Windows for my collaborators. I'm ready to learn how to do this right.

from pyav.

danielballan avatar danielballan commented on June 26, 2024

This just in from the conda mailing list: a working example of continuous integration builds on Windows "Appveyor," a .NET-based answer to Travis-CI. As with Travis, open-source builds are free.

https://ci.appveyor.com/project/rmcgibbo/python-appveyor-conda-example

Seems likely that the big projects will adopt this if it's good. Something to watch....

from pyav.

danielballan avatar danielballan commented on June 26, 2024

A link for future ref. when one of us gets back to this: http://zeranoe.com/scripts/mingw_w64_build/mingw-w64-build-3.6.2

from pyav.

MichaelBarz avatar MichaelBarz commented on June 26, 2024

Hi,

unfortunately I still have problems with setting up PyAV for Windows. Here some system specs for clarification

Further I use my own build of ffmpeg that I cross-compiled with Ubuntu 14.04 LTS as mentioned in my previous post.
The PKG_CONFIG_PATH is set to the corresponding folder of my ffmpeg build.

Running make build-mingw32 starts building av\codec. However the process holds when generating the codec.pyd file with some undefined references:
cmd_err

Did someone already experience this issue? Maybe there is a missing dependency for the setup.py?

Best,
Michael

from pyav.

MichaelBarz avatar MichaelBarz commented on June 26, 2024

I finally figured out how to build PyAV for Windows. The problem above was caused by my Python version. I had 2.7.10 installed, which was not compatible. Installing an older version (I chose 2.7.6) solved that problem.

from pyav.

mikeboers avatar mikeboers commented on June 26, 2024

The Python version matters, huh? Interesting...

from pyav.

vidartf avatar vidartf commented on June 26, 2024

Trying to set up PyAV on windows here too. For me, the ideal solution would be a bdist-wheel on PyPI built against the official windows shared ffmeg build.

from pyav.

MichaelBarz avatar MichaelBarz commented on June 26, 2024

like that? https://github.com/MichaelBarz/PyAV/tree/master/dist ;)

from pyav.

vidartf avatar vidartf commented on June 26, 2024

Sure (except I need the 64-bit one). I've modified setup.py to be able to build on windows without ffmpeg source, and using either MSVC python compiler or MinGW. I'll clean it up and PR tomorrow.

from pyav.

jlarsch avatar jlarsch commented on June 26, 2024

Hi,
I would love to use pyAV on my windows 64bit, 2.7.11 |Anaconda 2.3.0 (64-bit) configuration.
I have tried to follow the instructions here and here. I compiled ffmpeg but I can't make sense out of the sparse instructions for pyAV installation.
Can anyone provide a step by step command list that works on a windows machine or perhaps a wheel file?

from pyav.

monicabm avatar monicabm commented on June 26, 2024

I was wondering if you were able to find the step by step command list or a wheel file for a windows 64bit version...

from pyav.

eliziario avatar eliziario commented on June 26, 2024

hey @vidartf did you manage to create this that PR? still have this diff around?

from pyav.

vidartf avatar vidartf commented on June 26, 2024

Hey. My original PRs are here: https://github.com/mikeboers/PyAV/pulls?q=is%3Apr+author%3Avidartf+is%3Aclosed . Some of these are marked as closed instead of merged, because the repo owner rewrote them partly (so not sure if any commits in repo are in my name). I have no memory of this as it is quite a long while ago. Also, I think this was originally merged, so if it is again not working you might have to do something else.

from pyav.

mikeboers avatar mikeboers commented on June 26, 2024

@vidartf I do end end up rewriting history a bit with PRs, but I try very hard to retain original authorship information (often I'll be the "committer" and the author is the author; I'm getting better at it. 😛).

I'm pretty sure everything found in that link was incorporated in some form or another.

from pyav.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.