-
Notifications
You must be signed in to change notification settings - Fork 174
Compiling for Windows
This page is primarily being used as a note to myself so i can more efficiently compile these on major updates without having to re-discover all those little issues ;)
If you want to compile your own windows .exe's from current dev branch, in order to roll out onto other computers, do the following:
-
compile using pyinstaller with
C:\Python27\python.exe C:\pyinstaller-2.0\pyinstaller.py -F -w C:\nzbToMedia\TorrentToMedia.py -F = single file, -w = suppresses console
-
In order to get full functioning you need to include the following folders/packages in the same directory as TorrentToMedia.exe
autoProcessMedia.cfg.sample (from this repo) extractor (folder from this repo) ffmpeg\bin\ffmpeg.exe (required if you want to transcode only)
-
compile using pyinstaller with
C:\Python27\python.exe C:\pyinstaller-2.0\pyinstaller.py -F -w C:\nzbToMedia\nzbToMedia.py -F = single file, -w = suppresses console
-
In order to get full functioning you need to include the following folders/packages in the same directory as nzbToMedia.exe
autoProcessMedia.cfg.sample (from this repo) ffmpeg\bin\ffmpeg.exe (required if you want to transcode only)
-
For NZBGet, you will need a .bat wrapper that will allow you to call this exe, but also allow the parameters to be set in the NZBGet Web UI. (you will note that the first 2 lines actually call the script and return the exit status, while the remainder is just the comments from the start of the nzbToMedia.py script.
nzbToMedia.exe exit /b %errorlevel%
##############################################################################
##############################################################################
#cpsCategory=movie
#cpsapikey=
#cpshost=localhost
#cpsport=5050
#cpsusername=
#cpspassword=
#cpsssl=0
#cpsweb_root=
#cpsdelay=65
#cpsmethod=renamer
#cpsdelete_failed=0
#remoteCPS = 0
#sbCategory=tv
#sbhost=localhost
#sbport=8081
#sbusername=
#sbpassword=
#sbssl=0
#sbweb_root=
#sbwatch_dir=
#sbfailed_fork=0
#sbdelete_failed=0
#hpCategory=music
#hpapikey=
#hphost=localhost
#hpport=8181
#hpusername=
#hppassword=
#hpssl=0
#hpweb_root=
#hpdelay=65
#myCategory=comics
#myhost=localhost
#myport=8090
#myusername=
#mypassword=
#myssl=0
#myweb_root=
#gzCategory=games
#gzapikey=
#gzhost=localhost
#gzport=8085
#gzusername=
#gzpassword=
#gzssl=0
#gzweb_root=
#mediaExtensions=.mkv,.avi,.divx,.xvid,.mov,.wmv,.mp4,.mpg,.mpeg,.vob,.iso
#transcode=0
#duplicate=1
#ignoreExtensions=.avi,.mkv
#outputVideoExtension=.mp4 #outputVideoCodec=libx264 #outputVideoPreset=medium #outputVideoFramerate=24 #outputVideoBitrate=800k #outputAudioCodec=libmp3lame #outputAudioBitrate=128k #outputSubtitleCodec=
set to 1 to send WOL broadcast to the mac and test the server (e.g. xbmc) on the host and port specified.
#wolwake=0
#wolmac=00:01:2e:2D:64:e1
#wolhost=192.168.1.37 #wolport=80
##############################################################################
The extraction (7zip.exe) and the create hidden process (chp.exe) binaries are included in the "extractor" folder of this repo as they are relatively small.
the following binaries can downloaded from the links below:
chp.exe is flagged by some virus scans as "potentially harmful" due to the fact that by design it is intended to run processes that are hidden to the user. I believe this is safe, but you can choose to remove this file and the extraction will still work but 7zip will always pop-up a window while it is extracting.