+ Reply to Thread
Results 121 to 150 of 1581
-
One note - if you're on an M series mac, you want to adjust your devine/core/drm/widevine.py to allow for an arm64 version of shaka-packager.
The quick and dirty way I did it was:
Code:platform = {"win32": "win", "darwin": "osx"}.get(sys.platform, sys.platform) executable = get_binary_path("shaka-packager", "packager", f"packager-{platform}", f"packager-{platform}-arm64") if not executable: raise EnvironmentError("Shaka Packager executable not found but is required.")
-
-
Can anyone shed any light on this issue for me, please?
I get to the decryption stage and it's working away when I then get a message in the Widevine panel saying:
Code:" An exception occurred in the Service's license function: License request failed: The token has already expired (te value)"
Code:ConnectionError: License request failed: The token has already expired (te value)
-
Fab, thank you very much. I've tried that and I get an immediate Token expired error now, with either. It looks like it's caching something, but I can't see an option to clear or ignore the cache. - **Found the cache folder and just emptied it!**
Now getting an android_heights error -Code:UnboundLocalError: cannot access local variable 'android_heights' where it is not associated with a value
Last edited by mkjustuk; 22nd Apr 2024 at 09:30.
-
I had some success by going back to what iamghost posted in the Freevine thread shortly after stabbedbybrick set up Devine Services:
The services seem to be finally accepted from the log and it failing on the WVDs. With his zip of Devine I was able to get the .yaml file that is in the Devine subfolder. I have of course moved it to where it indicated it wanted to be moved to. Here is a log:
Code:Microsoft Windows [Version 10.0.22000.2538] (c) Microsoft Corporation. All rights reserved. C:\devine>poetry config virtualenvs.in-project true C:\devine>poetry install Creating virtualenv devine in C:\devine\.venv Installing dependencies from lock file Package operations: 69 installs, 0 updates, 0 removals - Installing frozenlist (1.4.1) - Installing idna (3.6) - Installing multidict (6.0.5) - Installing aiosignal (1.3.1) - Installing attrs (23.2.0) - Installing certifi (2024.2.2) - Installing charset-normalizer (3.3.2) - Installing colorama (0.4.6) - Installing construct (2.8.8) - Installing distlib (0.3.8) - Installing filelock (3.13.3) - Installing marisa-trie (1.1.0) - Installing mdurl (0.1.2) - Installing platformdirs (4.2.0) - Installing pycparser (2.22) - Installing soupsieve (2.5) - Installing urllib3 (2.2.1) - Installing yarl (1.9.4) - Installing aiohttp (3.9.3) - Installing beautifulsoup4 (4.12.3) - Installing cffi (1.16.0) - Installing cfgv (3.4.0) - Installing click (8.1.7) - Installing cssutils (2.10.2) - Installing identify (2.5.35) - Installing iso8601 (2.1.0) - Installing language-data (1.2.0.dev3) - Installing lxml (5.2.1) - Installing markdown-it-py (3.0.0) - Installing mypy-extensions (1.0.0) - Installing nodeenv (1.8.0) - Installing protobuf (4.25.3) - Installing pycryptodome (3.20.0) - Installing pygments (2.17.2) - Installing pymp4 (1.4.0) - Installing pysocks (1.7.1) - Installing pyyaml (6.0.1) - Installing requests (2.31.0) - Installing ruamel-yaml-clib (0.2.8) - Installing types-protobuf (4.24.0.20240311) - Installing typing-extensions (4.10.0) - Installing unidecode (1.3.8) - Installing virtualenv (20.25.1) - Installing appdirs (1.4.4) - Installing brotli (1.1.0) - Installing chardet (5.2.0) - Installing crccheck (1.3.0) - Installing curl-cffi (0.6.2) - Installing isort (5.13.2) - Installing jsonpickle (3.0.3) - Installing langcodes (3.3.0) - Installing mypy (1.9.0) - Installing mypy-protobuf (3.6.0) - Installing pproxy (2.7.9) - Installing pre-commit (3.7.0) - Installing pycaption (2.2.4) - Installing pycryptodomex (3.20.0) - Installing pyjwt (2.8.0) - Installing pymediainfo (6.1.0) - Installing pymysql (1.1.0) - Installing pywidevine (1.8.0) - Installing rich (13.7.1) - Installing rlaphoenix-m3u8 (3.4.0) - Installing ruamel-yaml (0.18.6) - Installing ruff (0.3.5) - Installing sortedcontainers (2.4.0) - Installing subtitle-filter (1.4.9) - Installing types-pymysql (1.1.0.1) - Installing types-requests (2.31.0.20240403) Installing the current project: devine (3.3.1) C:\devine>poetry shell Spawning shell within C:\devine\.venv (devine-py3.11) C:\devine>devine env info / __ \/ ____/ | / / _/ | / / ____/ / / / / __/ | | / // // |/ / __/ / /_/ / /___ | |/ // // /| / /___ /_____/_____/ |___/___/_/ |_/_____/ ⠀ v3.3.1 Copyright © 2019-2024 rlaphoenix https://github.com/devine-dl/devine [Root Config] : C:\Users\xxxx\AppData\Local\devine\devine.yaml [Cookies] : C:\PATH\devine\cookies [WVDs] : C:\Users\xxxx\AppData\Local\devine\WVDs [Cache] : C:\PATH\devine\cache [Logs] : C:\PATH\devine\Logs [Temp Files] : C:\PATH\devine\temp [Downloads] : C:\PATH\devine\downloads (devine-py3.11) C:\devine>devine dl SERVICE -? / __ \/ ____/ | / / _/ | / / ____/ / / / / __/ | | / // // |/ / __/ / /_/ / /___ | |/ // // /| / /___ /_____/_____/ |___/___/_/ |_/_____/ ⠀ v3.3.1 Copyright © 2019-2024 rlaphoenix https://github.com/devine-dl/devine Error: There are no Services added yet, therefore the 'SERVICE' Service could not be found. (devine-py3.11) C:\devine>git clone https://cdm-project.com/stabbedbybrick/devine-services.git Cloning into 'devine-services'... remote: Enumerating objects: 71, done. remote: Counting objects: 100% (71/71), done. remote: Compressing objects: 100% (71/71), done. remote: Total 71 (delta 29), reused 0 (delta 0), pack-reused 0 Receiving objects: 100% (71/71), 23.06 KiB | 1.44 MiB/s, done. Resolving deltas: 100% (29/29), done. (devine-py3.11) C:\devine>devine env info / __ \/ ____/ | / / _/ | / / ____/ / / / / __/ | | / // // |/ / __/ / /_/ / /___ | |/ // // /| / /___ /_____/_____/ |___/___/_/ |_/_____/ ⠀ v3.3.1 Copyright © 2019-2024 rlaphoenix https://github.com/devine-dl/devine [Root Config] : C:\Users\xxxx\AppData\Local\devine\devine.yaml [Cookies] : C:\PATH\devine\cookies [WVDs] : C:\Users\xxxx\AppData\Local\devine\WVDs [Cache] : C:\PATH\devine\cache [Logs] : C:\PATH\devine\Logs [Temp Files] : C:\PATH\devine\temp [Downloads] : C:\PATH\devine\downloads (devine-py3.11) C:\devine>devine env info / __ \/ ____/ | / / _/ | / / ____/ / / / / __/ | | / // // |/ / __/ / /_/ / /___ | |/ // // /| / /___ /_____/_____/ |___/___/_/ |_/_____/ ⠀ v3.3.1 Copyright © 2019-2024 rlaphoenix https://github.com/devine-dl/devine [Root Config] : C:\Users\xxxx\AppData\Local\devine\devine.yaml [Cookies] : C:\PATH\devine\cookies [WVDs] : C:\Users\xxxx\AppData\Local\devine\WVDs [Cache] : C:\PATH\devine\cache [Logs] : C:\PATH\devine\Logs [Temp Files] : C:\PATH\devine\temp [Downloads] : C:\PATH\devine\downloads (devine-py3.11) C:\devine>poetry install devine No arguments expected for "install" command, got "devine" (devine-py3.11) C:\devine>devine env info / __ \/ ____/ | / / _/ | / / ____/ / / / / __/ | | / // // |/ / __/ / /_/ / /___ | |/ // // /| / /___ /_____/_____/ |___/___/_/ |_/_____/ ⠀ v3.3.1 Copyright © 2019-2024 rlaphoenix https://github.com/devine-dl/devine [Root Config] : C:\Users\xxxx\AppData\Local\devine\devine.yaml [Cookies] : C:\PATH\devine\cookies [WVDs] : C:\Users\xxxx\AppData\Local\devine\WVDs [Cache] : C:\PATH\devine\cache [Logs] : C:\PATH\devine\Logs [Temp Files] : C:\PATH\devine\temp [Downloads] : C:\PATH\devine\downloads (devine-py3.11) C:\devine>upgrade devine 'upgrade' is not recognized as an internal or external command, operable program or batch file. (devine-py3.11) C:\devine>pip install devine Requirement already satisfied: devine in c:\devine\.venv\lib\site-packages (3.3.1) Requirement already satisfied: Brotli<2.0.0,>=1.1.0 in c:\devine\.venv\lib\site-packages (from devine) (1.1.0) Requirement already satisfied: PyYAML<7.0.0,>=6.0.1 in c:\devine\.venv\lib\site-packages (from devine) (6.0.1) Requirement already satisfied: Unidecode<2.0.0,>=1.3.8 in c:\devine\.venv\lib\site-packages (from devine) (1.3.8) Requirement already satisfied: appdirs<2.0.0,>=1.4.4 in c:\devine\.venv\lib\site-packages (from devine) (1.4.4) Requirement already satisfied: chardet<6.0.0,>=5.2.0 in c:\devine\.venv\lib\site-packages (from devine) (5.2.0) Requirement already satisfied: click<9.0.0,>=8.1.7 in c:\devine\.venv\lib\site-packages (from devine) (8.1.7) Requirement already satisfied: construct<3.0.0,>=2.8.8 in c:\devine\.venv\lib\site-packages (from devine) (2.8.8) Requirement already satisfied: crccheck<2.0.0,>=1.3.0 in c:\devine\.venv\lib\site-packages (from devine) (1.3.0) Requirement already satisfied: curl-cffi<0.7.0,>=0.6.2 in c:\devine\.venv\lib\site-packages (from devine) (0.6.2) Requirement already satisfied: jsonpickle<4.0.0,>=3.0.3 in c:\devine\.venv\lib\site-packages (from devine) (3.0.3) Requirement already satisfied: langcodes<4.0.0,>=3.3.0 in c:\devine\.venv\lib\site-packages (from langcodes[data]<4.0.0,>=3.3.0->devine) (3.3.0) Requirement already satisfied: language-data<2.0.0,>=1.2.0.dev3 in c:\devine\.venv\lib\site-packages (from devine) (1.2.0.dev3) Requirement already satisfied: lxml<6.0.0,>=5.2.1 in c:\devine\.venv\lib\site-packages (from devine) (5.2.1) Requirement already satisfied: marisa-trie<2.0.0,>=1.1.0 in c:\devine\.venv\lib\site-packages (from devine) (1.1.0) Requirement already satisfied: pproxy<3.0.0,>=2.7.9 in c:\devine\.venv\lib\site-packages (from devine) (2.7.9) Requirement already satisfied: protobuf<5.0.0,>=4.25.3 in c:\devine\.venv\lib\site-packages (from devine) (4.25.3) Requirement already satisfied: pycaption<3.0.0,>=2.2.4 in c:\devine\.venv\lib\site-packages (from devine) (2.2.4) Requirement already satisfied: pycryptodomex<4.0.0,>=3.20.0 in c:\devine\.venv\lib\site-packages (from devine) (3.20.0) Requirement already satisfied: pyjwt<3.0.0,>=2.8.0 in c:\devine\.venv\lib\site-packages (from devine) (2.8.0) Requirement already satisfied: pymediainfo<7.0.0,>=6.1.0 in c:\devine\.venv\lib\site-packages (from devine) (6.1.0) Requirement already satisfied: pymp4<2.0.0,>=1.4.0 in c:\devine\.venv\lib\site-packages (from devine) (1.4.0) Requirement already satisfied: pymysql<2.0.0,>=1.1.0 in c:\devine\.venv\lib\site-packages (from devine) (1.1.0) Requirement already satisfied: pywidevine<2.0.0,>=1.8.0 in c:\devine\.venv\lib\site-packages (from pywidevine[serve]<2.0.0,>=1.8.0->devine) (1.8.0) Requirement already satisfied: requests<3.0.0,>=2.31.0 in c:\devine\.venv\lib\site-packages (from requests[socks]<3.0.0,>=2.31.0->devine) (2.31.0) Requirement already satisfied: rich<14.0.0,>=13.7.1 in c:\devine\.venv\lib\site-packages (from devine) (13.7.1) Requirement already satisfied: rlaphoenix.m3u8<4.0.0,>=3.4.0 in c:\devine\.venv\lib\site-packages (from devine) (3.4.0) Requirement already satisfied: ruamel.yaml<0.19.0,>=0.18.6 in c:\devine\.venv\lib\site-packages (from devine) (0.18.6) Requirement already satisfied: sortedcontainers<3.0.0,>=2.4.0 in c:\devine\.venv\lib\site-packages (from devine) (2.4.0) Requirement already satisfied: subtitle-filter<2.0.0,>=1.4.9 in c:\devine\.venv\lib\site-packages (from devine) (1.4.9) Requirement already satisfied: urllib3<3.0.0,>=2.2.1 in c:\devine\.venv\lib\site-packages (from devine) (2.2.1) Requirement already satisfied: colorama in c:\devine\.venv\lib\site-packages (from click<9.0.0,>=8.1.7->devine) (0.4.6) Requirement already satisfied: cffi>=1.12.0 in c:\devine\.venv\lib\site-packages (from curl-cffi<0.7.0,>=0.6.2->devine) (1.16.0) Requirement already satisfied: certifi in c:\devine\.venv\lib\site-packages (from curl-cffi<0.7.0,>=0.6.2->devine) (2024.2.2) Requirement already satisfied: setuptools in c:\devine\.venv\lib\site-packages (from marisa-trie<2.0.0,>=1.1.0->devine) (69.2.0) Requirement already satisfied: beautifulsoup4>=4.12.1 in c:\devine\.venv\lib\site-packages (from pycaption<3.0.0,>=2.2.4->devine) (4.12.3) Requirement already satisfied: cssutils>=2.0.0 in c:\devine\.venv\lib\site-packages (from pycaption<3.0.0,>=2.2.4->devine) (2.10.2) Requirement already satisfied: pycryptodome<4.0.0,>=3.19.0 in c:\devine\.venv\lib\site-packages (from pywidevine<2.0.0,>=1.8.0->pywidevine[serve]<2.0.0,>=1.8.0->devine) (3.20.0) Requirement already satisfied: aiohttp<4.0.0,>=3.9.1 in c:\devine\.venv\lib\site-packages (from pywidevine[serve]<2.0.0,>=1.8.0->devine) (3.9.3) Requirement already satisfied: charset-normalizer<4,>=2 in c:\devine\.venv\lib\site-packages (from requests<3.0.0,>=2.31.0->requests[socks]<3.0.0,>=2.31.0->devine) (3.3.2) Requirement already satisfied: idna<4,>=2.5 in c:\devine\.venv\lib\site-packages (from requests<3.0.0,>=2.31.0->requests[socks]<3.0.0,>=2.31.0->devine) (3.6) Requirement already satisfied: PySocks!=1.5.7,>=1.5.6 in c:\devine\.venv\lib\site-packages (from requests[socks]<3.0.0,>=2.31.0->devine) (1.7.1) Requirement already satisfied: markdown-it-py>=2.2.0 in c:\devine\.venv\lib\site-packages (from rich<14.0.0,>=13.7.1->devine) (3.0.0) Requirement already satisfied: pygments<3.0.0,>=2.13.0 in c:\devine\.venv\lib\site-packages (from rich<14.0.0,>=13.7.1->devine) (2.17.2) Requirement already satisfied: iso8601 in c:\devine\.venv\lib\site-packages (from rlaphoenix.m3u8<4.0.0,>=3.4.0->devine) (2.1.0) Requirement already satisfied: ruamel.yaml.clib>=0.2.7 in c:\devine\.venv\lib\site-packages (from ruamel.yaml<0.19.0,>=0.18.6->devine) (0.2.8) Requirement already satisfied: aiosignal>=1.1.2 in c:\devine\.venv\lib\site-packages (from aiohttp<4.0.0,>=3.9.1->pywidevine[serve]<2.0.0,>=1.8.0->devine) (1.3.1) Requirement already satisfied: attrs>=17.3.0 in c:\devine\.venv\lib\site-packages (from aiohttp<4.0.0,>=3.9.1->pywidevine[serve]<2.0.0,>=1.8.0->devine) (23.2.0) Requirement already satisfied: frozenlist>=1.1.1 in c:\devine\.venv\lib\site-packages (from aiohttp<4.0.0,>=3.9.1->pywidevine[serve]<2.0.0,>=1.8.0->devine) (1.4.1) Requirement already satisfied: multidict<7.0,>=4.5 in c:\devine\.venv\lib\site-packages (from aiohttp<4.0.0,>=3.9.1->pywidevine[serve]<2.0.0,>=1.8.0->devine) (6.0.5) Requirement already satisfied: yarl<2.0,>=1.0 in c:\devine\.venv\lib\site-packages (from aiohttp<4.0.0,>=3.9.1->pywidevine[serve]<2.0.0,>=1.8.0->devine) (1.9.4) Requirement already satisfied: soupsieve>1.2 in c:\devine\.venv\lib\site-packages (from beautifulsoup4>=4.12.1->pycaption<3.0.0,>=2.2.4->devine) (2.5) Requirement already satisfied: pycparser in c:\devine\.venv\lib\site-packages (from cffi>=1.12.0->curl-cffi<0.7.0,>=0.6.2->devine) (2.22) Requirement already satisfied: mdurl~=0.1 in c:\devine\.venv\lib\site-packages (from markdown-it-py>=2.2.0->rich<14.0.0,>=13.7.1->devine) (0.1.2) (devine-py3.11) C:\devine>devine env info / __ \/ ____/ | / / _/ | / / ____/ / / / / __/ | | / // // |/ / __/ / /_/ / /___ | |/ // // /| / /___ /_____/_____/ |___/___/_/ |_/_____/ ⠀ v3.3.1 Copyright © 2019-2024 rlaphoenix https://github.com/devine-dl/devine [Root Config] : C:\Users\xxxx\AppData\Local\devine\devine.yaml [Cookies] : C:\PATH\devine\cookies [WVDs] : C:\Users\xxxx\AppData\Local\devine\WVDs [Cache] : C:\PATH\devine\cache [Logs] : C:\PATH\devine\Logs [Temp Files] : C:\PATH\devine\temp [Downloads] : C:\PATH\devine\downloads (devine-py3.11) C:\devine>devine env info / __ \/ ____/ | / / _/ | / / ____/ / / / / __/ | | / // // |/ / __/ / /_/ / /___ | |/ // // /| / /___ /_____/_____/ |___/___/_/ |_/_____/ ⠀ v3.3.1 Copyright © 2019-2024 rlaphoenix https://github.com/devine-dl/devine [Root Config] : C:\Users\xxxx\AppData\Local\devine\devine.yaml [Cookies] : C:\devine\cookies [WVDs] : C:\Users\xxxx\AppData\Local\devine\WVDs [Cache] : C:\devine\cache [Logs] : C:\Users\xxxx\AppData\Local\devine\Logs [Temp Files] : C:\devine\temp [Downloads] : C:\devine\downloads (devine-py3.11) C:\devine>devine dl -w s01e01 CTV cold-squad / __ \/ ____/ | / / _/ | / / ____/ / / / / __/ | | / // // |/ / __/ / /_/ / /___ | |/ // // /| / /___ /_____/_____/ |___/___/_/ |_/_____/ ⠀ v3.3.1 Copyright © 2019-2024 rlaphoenix https://github.com/devine-dl/devine Service Config loaded Failed to load Widevine CDM, ***** does not exist or is not a file (devine-py3.11) C:\devine>
-
-
Once in a while, the cached authorization token for ALL4 becomes invalid before it's set to expire and you'll have to clear the cache:
Code:devine env clear cache ALL4
-
-
Is there a way to set the output format/container for all downloads? I can't see a command listed to force mp4 over mkv?
Last edited by mkjustuk; 23rd Apr 2024 at 09:28. Reason: first question resolved
-
A question for stabbed....
Would it be possible for sometime in the future to possibly have the service of itv ported over please. -
Yeah, probably. I'm focusing on "non-free" services where you can still get 1080p/2160p with L3 right now, but I'll probably add some free ones as well.
In the meantime, I believe Freevine still works, and I think Angela's downloader's got ITV, so there are several options available. -
Nope ... no "official" support for MP4 container.
The only option at the moment is MKV,
been advised to raise on GitHub, (but I have not got and do not want a GitHub account ...)
One way to achieve for the video not to MUX to MKV is forcing wrong type of SUBS,
Devine will throw an ERROR and you can then merge the audio+video+subs with ffmpeg into MP4.
Code:py -3.10 -m poetry run devine dl -v H.265 -w S01E01 --no-folder --sub-format TTML iP m001xxn5
#FFMpeg CMD Command:
Code:ffmpeg -hide_banner ^ -i Video_4c401f64.mp4 ^ -i Audio_ba73abfd.mp4 ^ -i Subtitle_808ecc.srt ^ -strict experimental ^ -map 0 -map 1 -map 2 ^ -c:v copy ^ -c:a copy ^ -c:s mov_text ^ -c:d copy ^ -map_metadata 0 ^ -metadata title="Mammals - Series 1: 1. Dark" ^ -metadata description="The dark, a world of opportunity for mammals. More than two-thirds prefer the cover of the night, with some now returning to the safety of the shadows in order to avoid us." ^ -metadata comment="https://www.bbc.co.uk/iplayer/episode/m001xxn3/mammals-series-1-1-dark" ^ -metadata year="2024" ^ -metadata:s:v:0 language=und -metadata:s:v:0 handler_name=Und -metadata:s:v:0 title="2160p | h265 - HDR HLG | 25FPS" ^ -metadata:s:a:0 language=eng -metadata:s:a:0 handler_name=English -metadata:s:a:0 title="eng | English AAC LC 2.0 (Stereo) fltp, 189 kb/s (default)" ^ -metadata:s:s:0 language=eng -metadata:s:s:0 handler_name=English -metadata:s:s:0 title="eng | English" ^ -f mp4 -movflags use_metadata_tags ^ -ignore_unknown -copy_unknown ^ Mammals.S01E01.Dark.2160p.iPl.WEB-DL.AAC.LC.2.0.HDR.HLG.H.265.mp4 -v verbose
#FFMpeg PS Command:
Code:ffmpeg -hide_banner ` -i Video_4c401f64.mp4 ` -i Audio_ba73abfd.mp4 ` -i Subtitle_808ecc.srt ` -strict experimental ` -map 0 -map 1 -map 2 ` -c:v copy ` -c:a copy ` -c:s mov_text ` -c:d copy ` -map_metadata 0 ` -metadata title="Mammals - Series 1: 1. Dark" ` -metadata description="The dark, a world of opportunity for mammals. More than two-thirds prefer the cover of the night, with some now returning to the safety of the shadows in order to avoid us." ` -metadata comment="https://www.bbc.co.uk/iplayer/episode/m001xxn3/mammals-series-1-1-dark" ` -metadata year="2024" ` -metadata:s:v:0 language=und -metadata:s:v:0 handler_name=Und -metadata:s:v:0 title="2160p | h265 - HDR HLG | 25FPS" ` -metadata:s:a:0 language=eng -metadata:s:a:0 handler_name=English -metadata:s:a:0 title="eng | English AAC LC 2.0 (Stereo) fltp, 189 kb/s (default)" ` -metadata:s:s:0 language=eng -metadata:s:s:0 handler_name=English -metadata:s:s:0 title="eng | English" ` -f mp4 -movflags use_metadata_tags ` -ignore_unknown -copy_unknown ` Mammals.S01E01.Dark.2160p.iPl.WEB-DL.AAC.LC.2.0.HDR.HLG.H.265.mp4 -v verbose
# Update 26/4/2024 (Windows)
# I have found another way to convert TTML (XML) Subs to SRT from the PowerShell (PS) = ttconv
# Library for conversion of common timed text formats
# https://pypi.org/project/ttconv/
#Installing as part of my Devine TPD DIR
Code:(devine-py3.12) PS C:\Users\user\git\devine332TPDpy312poetry\devine> pip install --pre ttconv
Code:(devine-py3.12) PS C:\Users\user\git\devine332TPDpy312poetry\devine> tt convert -h
Code:devine dl -v H.265 -w S01E07 --no-folder --sub-format TTML iP p07dzjwl
Code:ls $home\AppData\Local\Temp\devine\
#Convert TTML to SRT
Code:tt convert -i $home\AppData\Local\Temp\devine\Subtitle_xXxXxX.ttml -o $home\AppData\Local\Temp\devine\Subtitle.srt
Code:ffmpeg -hide_banner ` -i $home\AppData\Local\Temp\devine\Video_xXxXxXxX.mp4 ` -i $home\AppData\Local\Temp\devine\Audio_XxXxXxXx.mp4 ` -i $home\AppData\Local\Temp\devine\Subtitle.srt ` -strict experimental ` -map 0 -map 1 -map 2 ` -c:v copy ` -c:a copy ` -c:s mov_text ` -c:d copy ` -map_metadata 0 ` -metadata title="Seven Worlds, One Planet - Series 1: 7. Africa" ` -metadata description="Africa - home to the greatest wildlife gatherings on earth. But even in this land of plenty, wildlife faces huge challenges." ` -metadata comment="https://www.bbc.co.uk/iplayer/episode/m000c6pn/seven-worlds-one-planet-series-1-7-africa" ` -metadata year="2019" ` -metadata:s:v:0 language=und -metadata:s:v:0 handler_name=Und -metadata:s:v:0 title="2160p | h265 - HDR HLG | 25FPS" ` -metadata:s:a:0 language=eng -metadata:s:a:0 handler_name=English -metadata:s:a:0 title="eng | English AAC LC 2.0 (Stereo) fltp, 189 kb/s (default)" ` -metadata:s:s:0 language=eng -metadata:s:s:0 handler_name=English -metadata:s:s:0 title="eng | English SRT" ` -f mp4 -movflags use_metadata_tags ` -ignore_unknown -copy_unknown ` $home\Videos\Seven.Worlds-One.Planet.S01E07.Africa.2019.2160p.iPl.WEB-DL.AAC.LC.2.0.HDR.HLG.H.265.mp4 -v verbose
#Remove "ALL" the TEMP data:
Code:rm $home\AppData\Local\Temp\devine\*.*
# Update 27/4/2024
Thank you for "requesting" this "enhancement". -
@stabbedbybrick
Would it be possible to include in the "SERVICES" the following as well please:
https://www.rtve.es/play/ [1080p, WV, Free Account registration OFFERED, not enforced YET]
https://www.rtp.pt/play/ [Max 720p, drmtoday]
https://www.raiplay.it/film/ [Max 720p, Clear, Free Account required, +DOB]
https://www.france.tv/films/ [1080p, Clear, Free Account required, +DOB + Post Code - Google Maps can supply]Last edited by pssh; 24th Apr 2024 at 03:48.
-
-
Noob Starter Pack. Just download every Widevine mpd! Not kidding!.
https://files.videohelp.com/u/301890/hellyes6.zip -
It's not an omission. MP4 is outdated. Devine uses mkvmerge see: devine/core/tracks/tracks.py lines 330-33 & 401-407
Code:cl = [ "mkvmerge", "--no-date", # remove dates from the output for security ]
Code:output_path = ( self.videos[0].path.with_suffix(".muxed.mkv") if self.videos else self.audio[0].path.with_suffix(".muxed.mka") if self.audio else self.subtitles[0].path.with_suffix(".muxed.mks") if self.subtitles else chapters_path.with_suffix(".muxed.mkv") if self.chapters else None )
The script does not need to be changed. If you really are desperate for the output file to be mp4, do as A_n_g_e_l_a says and use ffmpeg
Code:ffmpeg -i input.mkv -map 0 -map_metadata 0 -c:v copy -c:a copy -c:s copy output.mp4 && rm input.mkv
-
-
From past experience
MKV can include many formats of SUBtitles,
so wanted to avoid "Devine" muxing it all to MKV
(and having to extract or re-download the SUBs again)
to include them in MP4 container...as MP4 should have subs as SRT (and other apple format)
for compatibility ......Last edited by pssh; 24th Apr 2024 at 08:41.
-
The above command would work if subtitles inside the MKV ware other then SRT|S_TEXT/UTF8 as well?
The question was not about whenever the MKV is better then MP4 or the other way round.
Some people prefer MP4 container and as much of the stuff gets downloaded
as MP4S, want to keep it in the MP4 container ......for compatibility, etc.
In Freevine it took 2 seconds to configure to have all downloaded as MP4
and Devine is a different cup of tea ........
Developer is aware and if "requested" on GitHub he will look into this.
Having the option to "merge" the MP4 files instead of muxing to MKV
will IMHO not make "Devine" any more worse off.Last edited by pssh; 24th Apr 2024 at 08:45.
-
Noob Starter Pack. Just download every Widevine mpd! Not kidding!.
https://files.videohelp.com/u/301890/hellyes6.zip -
-
Not sure, (you may be right
Adding an config "devine cfg dl.sub_format srt" seem to be advise ..
But,
what I know from my past attempts to get MKV to MP4 if subs are not SRT it's pain the the ...... -
mkvextract can be used to extract any track from an mkv and there are a million subtitle converters that can convert to srt. Then mux it into the mp4 with ffmpeg.
I don't really see what the problem is. I doubt devine will ever support mp4, or at least, it would be at the bottom of the priority list. -
I do have one for Prime/AMZN, but I probably won't post it online anytime soon. The code is a huge mess at the moment, and you can't get any decent quality with L3 so it's not really worth the effort to clean it up until I'm cool enough to get access to a higher level CDM.
The audio is great, but the best video you can hope for is SD:
[Attachment 78608 - Click to enlarge]
If you don't mind low quality, I do believe there's an AMZN service on CDM project, though. I haven't tried it so I can't say how well it works, but it might be worth a shot.
As for using your personal credentials, you're safe as long as you're using the official Devine and service code from reputable sources. I'd advise against using sensitive credentials/cookies with some random version of Vinetrimmer or other scripts found lying around. -
Thank you for the reply Stabby...
Last edited by LastResort; 2nd May 2024 at 16:57.
-
Is there any way to download multiple audio tracks with "Devine"?
If not, anyone got any "hacks" how to do so?
I have tried:
Code:devine dl -q 360 -a DD,AAC -w s02e01 --no-folder CTV /shows/227 devine dl -q 360 -a DD+AAC -w s02e01 --no-folder CTV /shows/227 devine dl -q 360 -a DD|AAC -w s02e01 --no-folder CTV /shows/227 devine dl -q 360 -a DD -AAC -w s02e01 --no-folder CTV /shows/227
Looking at the code
https://cdm-project.com/TPD94/devine/src/branch/master/devine/commands/dl.py
video has the option to download multiple resolutions(s), but no such a thing for Audio -
Similar Threads
-
How do I completely remove the music and sound effects from a movie?
By cns00 in forum EditingReplies: 1Last Post: 15th Jan 2024, 12:11 -
Which software can remove music from show but keep character dialogue?
By Mohamed61020 in forum AudioReplies: 6Last Post: 2nd Jul 2023, 21:32 -
Software for simple music videos?
By dewiclements in forum Software PlayingReplies: 3Last Post: 26th Jul 2022, 01:21 -
H.264 for archival and editing - no go?
By malling in forum Capturing and VCRReplies: 8Last Post: 19th Aug 2019, 23:51 -
Movie music too loud but dialogue too quiet fix needed
By hokkom in forum AudioReplies: 121Last Post: 4th May 2019, 08:51