parnexcodes / widevine-L3-WEB-DL-Script

This is a batch script created to WEB-DL.
GNU General Public License v3.0
343 stars 155 forks source link

So I was wondering how can i get the best video and audio quality and multiple languages for the video? #45

Open Nickthedog22 opened 3 years ago

JudgeUAu commented 3 years ago

you need to adjust the script as its pulling AC3 from HBO Max and Not EAC3

[18]. Audio => [a7] [ 386 Kbps] [48000 Hz] [en-US] [ac-3]

still same

you need to right click the script file and select edit

then replace everything that says encrypted(Audio).eac3 and decrypted(Audio).eac3 to encrypted(Audio).ac3 and decrypted(Audio).ac3

NiKoCZ89 commented 3 years ago

you need to adjust the script as its pulling AC3 from HBO Max and Not EAC3

[18]. Audio => [a7] [ 386 Kbps] [48000 Hz] [en-US] [ac-3] still same

you need to right click the script file and select edit

then replace everything that says encrypted(Audio).eac3 and decrypted(Audio).eac3 to encrypted(Audio).ac3 and decrypted(Audio).ac3

audio is ok now but video i get this

Merging ..... mkvmerge v57.0.0 ('Till The End') 64-bit Error: The file 'decrypted.mp4' could not be opened for reading: open file error.

JudgeUAu commented 3 years ago

what video option are you selecting because i know hbo max also has HEVC video?

NiKoCZ89 commented 3 years ago

i tried avc and hevc same error

NiKoCZ89 commented 3 years ago

https://github.com/parnexcodes/widevine-L3-WEB-DL-Script i use this all the time and it's working , but not yours

JudgeUAu commented 3 years ago

give me 10min ill check HBO Max now

JudgeUAu commented 3 years ago

@NiKoCZ89 try this script for HBO Max https://github.com/JudgeUAu/widevine-L3-WEB-DL-Script/blob/main/hbo.py

NiKoCZ89 commented 3 years ago

@NiKoCZ89 try this script for HBO Max https://github.com/JudgeUAu/widevine-L3-WEB-DL-Script/blob/main/hbo.py

ok thx, i will check is there any script that download more than 1 audio ?

JudgeUAu commented 3 years ago

I will look into it no promises though.

Nickthedog22 commented 3 years ago

@JudgeUAu did you end up fixing the scrip with the issue from yesterday i told you about

JudgeUAu commented 3 years ago

@JudgeUAu did you end up fixing the scrip with the issue from yesterday i told you about

@Nickthedog22 yeah should be fixed...just pull the script again from GitHub and try again

Nickthedog22 commented 3 years ago

@JudgeUAu thanks you man

memopando commented 3 years ago

You don't need to know much about the language, just with a little modification, you can download more than 1 audio image

Nickthedog22 commented 3 years ago

can you explain @memopando

Nickthedog22 commented 3 years ago

@JudgeUAu it gives me this error Decrypting ..... ERROR: cannot open input file (encrypted(Audio).eac3) -4 ERROR: cannot open input file (encrypted.mp4) -4 Merging ..... mkvmerge v57.0.0 ('Till The End') 64-bit Error: The file 'decrypted.mp4' could not be opened for reading: open file error.

Nickthedog22 commented 3 years ago

@Essam3152 trying to download Spanish audio from hbo max I'm in Mexico if that helps

Essam23 commented 3 years ago

@Nickthedog22 Which copy of the script did you used so I can test it?

Did you used webdl2.py in this modified script?

https://github.com/JudgeUAu/widevine-L3-WEB-DL-Script

Nickthedog22 commented 3 years ago

@Essam3152 the copy of script i used was the one @JudgeUAu made

Essam23 commented 3 years ago

@Nickthedog22 @KiaN2020 Did you tried hbo.py here?

https://github.com/JudgeUAu/widevine-L3-WEB-DL-Script

oribe522 commented 3 years ago

t the language, just with a little modification, you can download more than 1 audio

Can u share it please?!

oribe522 commented 3 years ago

I will look into it no promises though.

Would you be so gentle to modify the script so we can add another audio language (eg. spanish/english) ? Really thanks

memopando commented 3 years ago

can you explain @memopando

image

simple, just add 1 more line of code for the audio you want, as well as to download, decrypt and mix.

rohitgusinge19 commented 3 years ago

@KiaN2020 no it's for webdl.py script. extra comments

oribe522 commented 3 years ago

Its not working... it´s incomplete. You need to modify mkvmerge syntaxis too.

Essam23 commented 3 years ago

@oribe522 Use this modified version of the script, I modified it to download the audio in Spanish and English, the Spanish language is the default audio language, just run Download.bat then enter the IDs of the video, Spanish audio and English audio, the script has keys.json you could test the script with it.

widevine-L3-WEB-DL-Script-Spanish-English.zip

11

For more details about how to modify the script to download the audio in two languages see this branch.

https://github.com/Essam3152/widevine-L3-WEB-DL-Script/tree/Spanish-English

https://github.com/Essam3152/widevine-L3-WEB-DL-Script/commit/2ca0460df2ed7c4f9293c40409cd2f33b0b51e1d

https://github.com/Essam3152/widevine-L3-WEB-DL-Script/commit/b45380e3dffe13c3d4c8af36034bee985445f17d

oribe522 commented 3 years ago

Thanks really thanks, If its not a problem to you I would like to know how to add spanish subtitle (es.srt) it now merge all included english subtitle (en.srt), it´s possible? Thanks in advance for your help!

Essam23 commented 3 years ago

@oribe522 Sorry, I'm not sure that I could help much with the subtitles, I think it differs for each site, I only tested it now with primevideo.com, you could try the files here.

webdl.es.subs.amazon.zip

From which site you are trying to download and merge the Spanish subtitles? Upload the keys.json for a video in this site with Spanish and English subtitles.

oribe522 commented 3 years ago

@oribe522 Sorry, I'm not sure that I could help much with the subtitles, I think it differs for each site, I only tested it now with primevideo.com, you could try the files here.

webdl.es.subs.amazon.zip

From which site you are trying to download and merge the Spanish subtitles? Upload the keys.json for a video in this site with Spanish and English subtitles.

Im trying to download from HBO MAX. Here´s the .json (https://uptobox.com/q5d21og9s30y) Thanks.

Essam23 commented 3 years ago

@oribe522 I do not know yet how to download the subtitle in the Spanish of Latin America from the mpd file using the script, you could use yt-dlp.exe for downloading the subtitles, use:

yt-dlp --write-subs --sub-langs es-419 --allow-unplayable-formats --skip-download --external-downloader aria2c.exe "https://cmaf.akm.latam.hbomaxcdn.com/videos/GYDbevA790ZvCwgEAAAAO/10/db268c/10_single_IsYD5Q_ad_1080hi.mpd"

run download.bat for downloading the subtitle.

yt-dlp.hbomax.es-419.subs.zip

oribe522 commented 3 years ago

@oribe522 I do not know yet how to download the subtitle in the Spanish of Latin America from the mpd file using the script, you could use yt-dlp.exe for downloading the subtitles, use:

yt-dlp --write-subs --sub-langs es-419 --allow-unplayable-formats --skip-download --external-downloader aria2c.exe "https://cmaf.akm.latam.hbomaxcdn.com/videos/GYDbevA790ZvCwgEAAAAO/10/db268c/10_single_IsYD5Q_ad_1080hi.mpd"

run download.bat for downloading the subtitle.

yt-dlp.hbomax.es-419.subs.zip

OK, Ill try, thanks for your time!

oribe522 commented 3 years ago

@oribe522 I do not know yet how to download the subtitle in the Spanish of Latin America from the mpd file using the script, you could use yt-dlp.exe for downloading the subtitles, use:

yt-dlp --write-subs --sub-langs es-419 --allow-unplayable-formats --skip-download --external-downloader aria2c.exe "https://cmaf.akm.latam.hbomaxcdn.com/videos/GYDbevA790ZvCwgEAAAAO/10/db268c/10_single_IsYD5Q_ad_1080hi.mpd"

run download.bat for downloading the subtitle.

yt-dlp.hbomax.es-419.subs.zip

WORKED! U r Genius!

Essam23 commented 3 years ago

@oribe522 This is a method for using a modified version of the script for downloading and merging only the Spanish subtitle (es-419) in the video from HBOMAX of Latin America (this method is tested only on HBOMAX of Latin America), open keys.json with Notepad++ and copy the mpd file

https://cmaf.akm.latam.hbomaxcdn.com/videos/GYDbevA790ZvCwgEAAAAO/10/db268c/10_single_IsYD5Q_ad_1080hi.mpd

replace 10_single_IsYD5Q_ad_1080hi.mpd with t/sub/es-419_sub.xml

and you will get the link of the subtitle

https://cmaf.akm.latam.hbomaxcdn.com/videos/GYDbevA790ZvCwgEAAAAO/10/db268c/t/sub/es-419_sub.xml

then add the link of the subtitle in download.bat like this

@echo off
webdl.py -id -o movie -s https://cmaf.akm.latam.hbomaxcdn.com/videos/GYDbevA790ZvCwgEAAAAO/10/db268c/t/sub/es-419_sub.xml
pause

save the file and run download.bat (the subtitle link is already in the file).

If I found an easier method I will post it here.

widevine-L3-WEB-DL-Script-HBOMAX-es-419.subs.zip

oribe522 commented 3 years ago

OK, I´ll try my very gratefull with your help! Thanks a lot! Thanks for your time!

oribe522 commented 3 years ago

Now Im having an issue, its not downloading the movie file anymore, downloads only a trailer or the presentation at the begining. Sorry.

Essam23 commented 3 years ago

@oribe522 Upload a keys.json file with this problem, and post the link of the movie on HBOMAX, what is the country of your HBOMAX account?

oribe522 commented 3 years ago

Here are the keys.json they are from HBO MAX USA. From "Romancing the Stone" My account is from LATAM (Uruguay). THanks

Essam23 commented 3 years ago

@oribe522 Use this modified keys.json, I kept only the mpd URL of the movie, I tested it and it worked.

keys.zip

oribe522 commented 3 years ago

It keeps downlaoding a little promo video. Here´s te snap of it. Sin título-1

I tried downloading from UY and from USA, and same result

Essam23 commented 3 years ago

The problem is

https://github.com/parnexcodes/widevine-l3-guesser-modified

adds the mpd of the trailer to keys.json, you need to remove it.

Here is the link of the mpd from HBO MAX US

https://cmaf.lln.us.hbomaxcdn.com/videos/GYRrnPQN6ODdFwwEAAAKz/0/416df0/0_KjoFFg_1080hi.mpd

And here is the link of the video in 1080p AVC1 format

https://cmaf.lln.us.hbomaxcdn.com/videos/GYRrnPQN6ODdFwwEAAAKz/0/416df0/v/v17.mp4

Kid and key for the video in 1080p

    "kid": "0105bb0efd4af72b6e593deed55df013",
    "hex_key": "c13434903aa9f8d698a58c036897aea0"

Kid and Key for the audio

    "kid": "0100a443137827e290769206d9f6938f",
    "hex_key": "98e46e548205f7973daae31aa45606aa"

For more information read here.

https://github.com/parnexcodes/widevine-L3-WEB-DL-Script/issues/51#issuecomment-917537206

https://github.com/parnexcodes/widevine-L3-WEB-DL-Script/issues/24#issuecomment-911298420

https://github.com/parnexcodes/widevine-L3-WEB-DL-Script/issues/24#issuecomment-911900509

https://github.com/parnexcodes/widevine-L3-WEB-DL-Script/issues/24#issuecomment-911952094

https://github.com/parnexcodes/widevine-L3-WEB-DL-Script/issues/24#issuecomment-912016775

oribe522 commented 3 years ago

Thanks really thanks!!!

huliad2022 commented 3 years ago

The problem is

https://github.com/parnexcodes/widevine-l3-guesser-modified

adds the mpd of the trailer to keys.json, you need to remove it.

Here is the link of the mpd from HBO MAX US

https://cmaf.lln.us.hbomaxcdn.com/videos/GYRrnPQN6ODdFwwEAAAKz/0/416df0/0_KjoFFg_1080hi.mpd

And here is the link of the video in 1080p AVC1 format

https://cmaf.lln.us.hbomaxcdn.com/videos/GYRrnPQN6ODdFwwEAAAKz/0/416df0/v/v17.mp4

Kid and key for the video in 1080p

    "kid": "0105bb0efd4af72b6e593deed55df013",
    "hex_key": "c13434903aa9f8d698a58c036897aea0"

Kid and Key for the audio

    "kid": "0100a443137827e290769206d9f6938f",
    "hex_key": "98e46e548205f7973daae31aa45606aa"

For more information read here.

#51 (comment)

#24 (comment)

#24 (comment)

#24 (comment)

#24 (comment)

Hello i want to ask a question,I often use this streaming media to watch movies and TV shows,

FRIDAY:https://video.friday.tw/drama/detail/1568 (VPN:TAIWAN)

I want to try to download now, but the obtained MPD and KEY does not seem to work

搜狗截图20211003092918

Can you help me?

Essam23 commented 3 years ago

@ali617768987 Do you use Chrome or Firefox with this site?

If you are using Chrome try this modified version of the script with keys.json of the video, it will extract the cookies from the browser.

widevine-L3-WEB-DL-Script-main-cookies.zip

oribe522 commented 3 years ago

@ali617768987 Do you use Chrome or Firefox with this site?

If you are using Chrome try this modified version of the script with keys.json of the video, it will extract the cookies from the browser.

widevine-L3-WEB-DL-Script-main-cookies.zip

I´ll try, THANKS!

huliad2022 commented 3 years ago

@ali617768987 Do you use Chrome or Firefox with this site?

Yes ,I use Chrome

huliad2022 commented 3 years ago

@ali617768987 Do you use Chrome or Firefox with this site?

If you are using Chrome try this modified version of the script with keys.json of the video, it will extract the cookies from the browser.

widevine-L3-WEB-DL-Script-main-cookies.zip

I try to use this modified version of the script with keys.json of the video,it dose not work too,I don't know if I made a mistake, or if this streaming media is difficult to download videos.

微信截图_20211003101747

Essam23 commented 3 years ago

Upload keys.json here.

huliad2022 commented 3 years ago

Upload keys.json here.

[ { "mpd_url": "https://cdn-dl01p.video.friday.tw/drm/61917.smil/manifest.mpd?token=b728754669eacc8d40b580dacc104530&contentVodId=61917&type=1&tokenId=8BCQJSC49MVP3JVkExLIro24VrtKDsG3&contentId=57468&DL=N&memberId=3584100" }, { "kid": "0ea1f3668226479981eeda2f89b591b5", "hex_key": "e07bc61eecae56cd7bb5436df7d2288f" } ]

Essam23 commented 3 years ago

@ali617768987 Use this modified version of the script, I tested it and it worked fine.

https://codeload.github.com/Essam3152/widevine-L3-WEB-DL-Script/zip/refs/heads/referer

The script needed the changes here for the downloading from the mpd to work.

https://github.com/Essam3152/widevine-L3-WEB-DL-Script/commit/6e773f4e49f29c5580171547cc25d2db616f78b0

huliad2022 commented 3 years ago

@ali617768987 Use this modified version of the script, I tested it and it worked fine.

https://codeload.github.com/Essam3152/widevine-L3-WEB-DL-Script/zip/refs/heads/referer

The script needed the changes here for the downloading from the mpd to work.

Essam3152@6e773f4

It can be downloaded normally. Thank you very much.[♥]

mserageng commented 3 years ago

from where u got the json file that have the token i have the normal extension that give the mpd and keys only is thier updated extension that give that ??