Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows support via Mingw64 PyGObject #105

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

horiac7
Copy link
Contributor

@horiac7 horiac7 commented Nov 16, 2019

Hello!
I closed my previous PR #80 for Windows support and added another one, since the previous one was quite old and outdated in relation to the master branch.

In the mean-time I have found another way of runing GTK and PyGObject on Windows and that is through MSYS2. I wrote an extensive guide on that in README.md under "Running on Windows"

I can still see some issues in that for the videos I tested with, there are some left-over temporary files - two are created instead of one, when transcoding occurs. I don't know whether this is a general issue or it occurs only because of my changes - maybe you can check and confirm.

By the way, if you don't have a Windows machine available, check out the following link for getting a Win 10 dev VM available in different formats, which would allow testing my code:
https://developer.microsoft.com/en-us/windows/downloads/virtual-machines

@horiac7
Copy link
Contributor Author

horiac7 commented Dec 14, 2020

Rebased the source on the target upstream master.
I excluded the delete_old_transcodes() from running on Windows because the proposed implementation uses NamedTemporaryFile which writes to the Windows %TEMP% path and should clean-up automatically.
Tested and still seems to work okay with the instructions from the README.

…n Windows.

 * Add support for Windows-specific utilities for detecting if ffmpeg is installed etc.
 * Adapted bottle file serving to support windows paths by providing a folderpath and filename.
 * Removed filtering of FileChooserDialog - this does not seem to work on Windows
 * Better handling of temporary files: use tempfile.NamedTemporaryFile instead of tempfile.mkstemp
 * Update README.md with instructions on setting up MSYS2 and PyGObject to run on Windows - along with other environment setup needed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant