Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

VineTrimmer with PlayReady support, WIP. A DRM Removal Framework for Streaming Services.

License

NotificationsYou must be signed in to change notification settings

chu23465/VT-PR

Repository files navigation

A tool to download and remove DRM from streaming services. A version of an old fork ofdevine.Modified to remove Playready DRM instead of Widevine.

Features

  • Progress Bars for decryption (mp4decrypt, Shaka)
  • Refresh Token fixed for Amazon service
  • Reprovision .prd after a week
  • ISM manifest support (Microsoft Smooth Streaming) (Few features to be added)
  • N_m3u8DL-RE downloader support

Usage

  1. Runinstall.bat

  2. Activate venv usingvenv.cmd.

Config

vinetrimmer.yml located within the/vinetrimmer/ folder.

decryptor: eithermp4decrypt orpackager

(shaka-packager fails to decrypt files downloaded from MSS manifests)

tag: tag for your release group

CDM can be configured per service or per profile.

cdm:    default: {text}    Amazon: {text}

All other option can be left to defaults, unless you know what you are doing.

General Options

Usage: vt.cmd [OPTIONS] COMMAND [ARGS]...

Options:

Command line argumentDescriptionDefault Value
-d, --debugFlag to enable debug loggingFalse
-p, --profileProfile to use when multiple profiles are defined for a service."default"
-q, --qualityDownload Resolution1080
-v, --vcodecVideo CodecH264
-a, --acodecAudio CodecNone
-vb, --vbitrateVideo BitrateMax
-ab, --abitrateAudio BitrateMax
-aa, --atmosPrefer Atmos AudioFalse
-r, --rangeVideo Color RangeHDR,HDR10,DV,SDRSDR
-w, --wantedWanted episodes, e.g.S01-S05,S07,S01E01-S02E03,S02-S02E03Default to all
-al, --alangLanguage wanted for audio.Defaults to original language
-sl, --slangLanguage wanted for subtitles.Defaults to original language
--proxyProxy URI to use. If a 2-letter country is provided, it will try get a proxy from the config.None
-A, --audio-onlyOnly download audio tracks.False
-S, --subs-onlyOnly download subtitle tracks.False
-C, --chapters-onlyOnly download chapters.False
-ns, --no-subsDo not download subtitle tracks.False
-na, --no-audioDo not download audio tracks.False
-nv, --no-videoDo not download video tracks.False
-nc, --no-chaptersDo not download chapters tracks.False
-ad, --audio-descriptionDownload audio description tracks.False
--listSkip downloading and list available tracks and what tracks would have been downloaded.False
--selectedList selected tracks and what tracks are downloaded.False
--cdmOverride the CDM that will be used for decryption.None
--keysSkip downloading, retrieve the decryption keys (via CDM or Key Vaults) and print them.False
--cacheDisable the use of the CDM and only retrieve decryption keys from Key Vaults. If a needed key is unable to be retrieved from any Key Vaults, the title is skipped.False
--no-cacheDisable the use of Key Vaults and only retrieve decryption keys from the CDM.False
--no-proxyForce disable all proxy use.False
-nm, --no-muxDo not mux the downloaded and decrypted tracks.False
--muxForce muxing when using --audio-only/--subs-only/--chapters-only.False
-?, -h, --helpShow this message and exit.

COMMAND :-

AlaiasCommandService Link
AMZNAmazonhttps://amazon.com,https://primevideo.com
ATVPAppleTVPlushttps://tv.apple.com
MAXMaxhttps://max.com
NFNetflixhttps://netflix.com

Amazon Specific Options

Usage: vt.cmd AMZN [OPTIONS] [TITLE]

Service code for Amazon VOD (https://amazon.com) and Amazon Prime Video (https://primevideo.com).

Authorization: Cookies

Security:

UHD@L1/SL3000FHD@L3(ChromeCDM)/SL2000SD@L3Certain SL2000 can do UHD

Maintains their own license server like Netflix, be cautious.

Region is chosen automatically based on domain extension found in cookies.Prime Video specific code will be run if the ASIN is detected to be a prime video variant.Use 'Amazon Video ASIN Display' for Tampermonkey addon for ASINhttps://greasyfork.org/en/scripts/381997-amazon-video-asin-display

vt dl --list -z uk -q 1080 Amazon B09SLGYLK8

Below flags to be passed after theAMZN orAmazon keyword in command.

Command Line SwitchDescription
-b, --bitrateVideo Bitrate Mode to download in. CVBR=Constrained Variable Bitrate, CBR=Constant Bitrate. (CVBR or CBR or CVBR+CBR)
-c, --cdnCDN to download from, defaults to the CDN with the highest weight set by Amazon.
-vq, --vqualityManifest quality to request. (SD or HD or UHD)
-s, --singleForce single episode/season instead of getting series ASIN.
-am, --amanifestManifest to use for audio. Defaults to H265 if the video manifest is missing 640k audio. (CVBR or CBR or H265)
-aq, --aqualityManifest quality to request for audio. Defaults to the same as --quality. (SD or HD or UHD)
-ism, --ismSet manifest override to SmoothStreaming. Defaults to DASH w/o this flag.
-?, -h, --helpShow this message and exit.

To get UHD/4k with Amazon, navigate to -

https://www.primevideo.com/region/eu/ontv/code?ref_=atv_auth_red_aft

Login and get to the code pair page. Extract cookies from that page usingOpen Cookies.txt.

Save it to the pathvinetrimmer/Cookies/Amazon/default.txt.

When caching cookies, use a profile without PIN. Otherwise it causes errors.

Peacock

  • PCOK bans leaked certs quickly (for 4k), be cautious.

Example Command

Amazon Example:

poetry run vt dl -al en -sl en --selected -q 2160 -r HDR -w S01E18-S01E25 AMZN -b CBR --ism 0IQZZIJ6W6TT2CXPT6ZOZYX396

Above command:

  • gets english subtitles + audio,
  • selects the HDR + 4K track,
  • gets episodes from S01E18 to S01E25 from Amazon
  • with CBR bitrate,
  • tries to force ISM
  • and the title-ID is 0IQZZIJ6W6TT2CXPT6ZOZYX396

AppleTV Example:

poetry run vt dl -al en -sl en --list -q 720 --proxy http://192.168.0.99:9766 -w S01E01 ATVP umc.cmc.1nfdfd5zlk05fo1bwwetzldy3

Above command:

  • gets english subtitles + audio,
  • lists all possible qualities,
  • selects 720p video track,
  • uses the proxy for licensing,
  • gets the first episode of first season (i.e S01E01)
  • of the title umc.cmc.1nfdfd5zlk05fo1bwwetzldy3

Proxy

I recommendWindscribe. You can sign up, getting 10 GB of traffic credit every month for free. We use the VPN for everything except downloading video/audio.Tested so far on Amazon, AppleTVPlus, Max.

Steps:

  1. For each service, within get_tracks() function we do this below.

    fortrackintracks:track.needs_proxy=False

    This flag signals that this track does not need a proxy and a proxy will not be passed to downloader even if proxy given in CLI options.

  2. Download Windscribe app and install it.

  3. Go toOptions ->Connection ->Split Tunneling. Enable it.

    SetMode asInclusive.

  4. Go toOptions ->Connection ->Proxy Gateway. Enable it. SelectProxy Type asHTTP.

    Copy theIP field (will look something like192.168.0.141:9766)

    Pass above copied to Vinetrimmer with the proxy flag like below.

    ...(other flags)... --proxy http://192.168.0.141:9766 .......

Other

  • For--keys to work with ATVP you need to pass the--no-subs flag also
  • Nuikta compile is an option to run on various linux distributions.
  • Errors arise when running VT within Docker or Conda like python distributions. Make sure to use proper python3.
  • To use programs inscripts folder, first activate venv then, then -
    poetry run python scripts/ParseKeybox.py

About

VineTrimmer with PlayReady support, WIP. A DRM Removal Framework for Streaming Services.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp