tmd20 / pt-muxer Goto Github PK
View Code? Open in Web Editor NEWRemuxing script for private trackers
Remuxing script for private trackers
update to latest wine version
Find the matching msi for wine version
https://dl.winehq.org/wine/wine-mono/
Install with wine
Example: wine64 /src/wine-mono-7.4.0-x86.msi
During Remux this error or similar appears
Error: The file x could not be opened for reading: open file error.
This is most likely because of outdated mkvmerge
Please update or use the include one
Look into chapterdb or other sources for chapter names
raise IMDbDataAccessError(
imdb._exceptions.IMDbDataAccessError: {'errcode': None, 'errmsg': 'None', 'url':
'https://www.imdb.com/find?q=The+Christmas+Candle&s=tt', 'proxy': '', 'exception type': 'IOError', 'original exception': <HTTPError
308: 'Permanent Redirect'>}
{'errcode': None, 'errmsg': 'None', 'url': 'https://www.imdb.com/find?q=The+Christmas+Candle&s=tt', 'proxy': '', 'exception type':
'IOError', 'original exception': <HTTPError 308: 'Permanent Redirect'>}
The command which mono
returns an empty string whicj is passed to os.path.exists
which raises an exception. So the script won't install mono.
See this issue if your getting
#include "Python.h"
sirfz/tesserocr#215
in short you need the python-dev package on ubuntu
Not sure about over linux systems
I couldn't demux movies on my seedbox, it requires wine to run eac3to, but I only can access it through SSH and wine seems to try to open a window display.
I've been looking for a solution to this problem, but not with eac3to, instead I've found DGDemux for linux, and it works perfectly.
Would it be possible to turn PTMuxer a seedbox friendly by replacing eac3to with wine for dgdemux for linux?
You can find it here.
Thank you very much.
add some support for dvds
Motivation is to have an easier method of working though the script
Some quick features
Kino Lorber BD; Not sure how this would be done
Get a full bdinfo log, look at the Files section, run mediainfo on the first M2TS file. If the file has a video track, but no audio, then other audio, subtitles, and chapters need to be delayed by length of the file.
Use the length property from mediainfo and add delay to eac3to demux command
from datetime import datetime
# for example, first_file["length"] = '0:00:11.010'
length = datetime.strptime(first_file["length"], "%H:%M:%S.%f")
delay = int(length.second * 1000 + (length.microsecond / 1000))
# track_delay = "+11010ms"
track_delay = "+{}ms".format(delay)
Then demux, assume audio track is track 2, and needs a delay of 11010ms.
eac3to 1) 2:audio.dtsma +11010ms
ERROR: Command errored out with exit status 1:
command: 'C:\PT-Muxer\env\Scripts\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Administator\\AppData\\Local\\Temp\\pip-install-q0wzclsb\\hunspell_45122889f86c4c3db671a46137b41c84\\setup.py'"'"'; __file__='"'"'C:\\Users\\Administator\\AppData\\Local\\Temp\\pip-install-q0wzclsb\\hunspell_45122889f86c4c3db671a46137b41c84\\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\Administator\AppData\Local\Temp\pip-record-713b3uia\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\PT-Muxer\env\include\site\python3.8\hunspell'
cwd: C:\Users\Administator\AppData\Local\Temp\pip-install-q0wzclsb\hunspell_45122889f86c4c3db671a46137b41c84\
Complete output (7 lines):
running install
C:\PT-Muxer\env\lib\site-packages\setuptools\command\install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
running build
running build_ext
building 'hunspell' extension
error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
----------------------------------------
ERROR: Command errored out with exit status 1: 'C:\PT-Muxer\env\Scripts\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Administator\\AppData\\Local\\Temp\\pip-install-q0wzclsb\\hunspell_45122889f86c4c3db671a46137b41c84\\setup.py'"'"'; __file__='"'"'C:\\Users\\Administator\\AppData\\Local\\Temp\\pip-install-q0wzclsb\\hunspell_45122889f86c4c3db671a46137b41c84\\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\Administator\AppData\Local\Temp\pip-record-713b3uia\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\PT-Muxer\env\include\site\python3.8\hunspell' Check the logs for full command output.
WARNING: You are using pip version 21.1.1; however, version 22.3.1 is available.
You should consider upgrading via the 'C:\PT-Muxer\env\Scripts\python.exe -m pip install --upgrade pip' command.
Endless mode is disable because rich module only outputs correctly on first run
(env) USERNAME@PC:/mnt/c/Users/USERNAME/Documents/GitHub/PT-Muxer$ pip3 install -r requirements.txt
ERROR: Exception:
Traceback (most recent call last):
File "/mnt/c/Users/USERNAME/Documents/GitHub/PT-Muxer/env/lib/python3.10/site-packages/pip/_vendor/packaging/markers.py", line 278, in __init__
self._markers = _coerce_parse_result(MARKER.parseString(marker))
File "/mnt/c/Users/USERNAME/Documents/GitHub/PT-Muxer/env/lib/python3.10/site-packages/pip/_vendor/pyparsing/core.py", line 1134, in parse_string
raise exc.with_traceback(None)
pip._vendor.pyparsing.exceptions.ParseException: Expected {Group:({'implementation_version' | 'platform_python_implementation' | 'implementation_name' | 'python_full_version' | 'platform_release' | 'platform_version' | 'platform_machine' | 'platform_system' | 'python_version' | 'sys_platform' | 'os_name' | 'os.name' | 'sys.platform' | 'platform.version' | 'platform.machine' | 'platform.python_implementation' | 'python_implementation' | 'extra'} | {string enclosed in "'" | string enclosed in '"'}} {'===' | '==' | '>=' | '<=' | '!=' | '~=' | '>' | '<' | 'not in' | 'in'} {{'implementation_version' | 'platform_python_implementation' | 'implementation_name' | 'python_full_version' | 'platform_release' | 'platform_version' | 'platform_machine' | 'platform_system' | 'python_version' | 'sys_platform' | 'os_name' | 'os.name' | 'sys.platform' | 'platform.version' | 'platform.machine' | 'platform.python_implementation' | 'python_implementation' | 'extra'} | {string enclosed in "'" | string enclosed in '"'}) | Group:({{Suppress:('(') : ...} Suppress:(')')})}, found 'pytho' (at char 0), (line:1, col:1)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/mnt/c/Users/USERNAME/Documents/GitHub/PT-Muxer/env/lib/python3.10/site-packages/pip/_internal/cli/base_command.py", line 165, in exc_logging_wrapper
status = run_func(*args)
File "/mnt/c/Users/USERNAME/Documents/GitHub/PT-Muxer/env/lib/python3.10/site-packages/pip/_internal/cli/req_command.py", line 205, in wrapper
return func(self, options, args)
File "/mnt/c/Users/USERNAME/Documents/GitHub/PT-Muxer/env/lib/python3.10/site-packages/pip/_internal/commands/install.py", line 305, in run
reqs = self.get_requirements(args, options, finder, session)
File "/mnt/c/Users/USERNAME/Documents/GitHub/PT-Muxer/env/lib/python3.10/site-packages/pip/_internal/cli/req_command.py", line 439, in get_requirements
req_to_add = install_req_from_parsed_requirement(
File "/mnt/c/Users/USERNAME/Documents/GitHub/PT-Muxer/env/lib/python3.10/site-packages/pip/_internal/req/constructors.py", line 463, in install_req_from_parsed_requirement
req = install_req_from_line(
File "/mnt/c/Users/USERNAME/Documents/GitHub/PT-Muxer/env/lib/python3.10/site-packages/pip/_internal/req/constructors.py", line 390, in install_req_from_line
parts = parse_req_from_line(name, line_source)
File "/mnt/c/Users/USERNAME/Documents/GitHub/PT-Muxer/env/lib/python3.10/site-packages/pip/_internal/req/constructors.py", line 295, in parse_req_from_line
markers = Marker(markers_as_string)
File "/mnt/c/Users/USERNAME/Documents/GitHub/PT-Muxer/env/lib/python3.10/site-packages/pip/_vendor/packaging/markers.py", line 280, in __init__
raise InvalidMarker(
pip._vendor.packaging.markers.InvalidMarker: Invalid marker: 'pytho', parse error at 'pytho'
Update all function and class with docstrings
When bdinfo returns an error (mono installation is missing some required dependencies for examples), the scripts do not handle them. It fails after that because no playlist were detected.
Depending on your OS and permission you may not be able to use the default temp folder
Or it may not have enough space
This setting can be change in config.py
tempFolder=tempfile.gettempdir()
Just change tempfile.gettempdir() to the directory you want to use
This is very important on seedboxes since you probably don't have access to the system temp folder.
or in some causes your partitions may be setup with very limited space for the temp folder
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.