I have multiple MPD files and multiple keys.
want to bulk download from mpd, decrypt and merge audio and video.
I have mpd and key in a text file.
eg.
MPD Link:
https://xxxxxxxxx.cloudfront.net/media/xxxxxxx/xxxxxxx/stream.mpd
Keys:
xxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxx
MPD Link:
https://xxxxxxxxx.cloudfront.net/media/xxxxxxx/xxxxxxx/stream.mpd
Keys:
xxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxx
is it possible to do?
+ Reply to Thread
Results 1 to 9 of 9
-
-
is it possible to do?
Break the task into a series of small processes and concentrate on just doing a single process.
Write scripts to
a)download from mpd , (yt-dlp)
b) decrypt (mp4decrypt) and
c)merge audio and video (mkvmerge)
for a single file. Three scripts.
Once completed, loop the process for all files
N_m3u8DL-RE can do it all in one shot
N_m3u8DL-RE -M format=mp4 $Keys_variable $MPD_variable --save-name $Output_FileName_variable <<=== Loop this call -
Here you go - sample script.
Code:def printProgressBar (iteration, total, prefix = '', suffix = '', decimals = 1, length = 100, fill = '█', printEnd = "\r"): percent = ("{0:." + str(decimals) + "f}").format(100 * (iteration / float(total))) filledLength = int(length * iteration // total) bar = fill * filledLength + '-' * (length - filledLength) print(f'\r{prefix} |{bar}| {percent}% {suffix}', end = printEnd) # Print New Line on Complete if iteration == total: print() import time # A List of Items items = list(range(0, 100)) l = len(items) # Initial call to print 0% progress printProgressBar(0, l, prefix = 'Progress:', suffix = 'Complete', length = 50) for i, item in enumerate(items): # Do stuff... time.sleep(0.1) # Update Progress Bar printProgressBar(i + 1, l, prefix = 'Progress:', suffix = 'Complete', length = 50)
-
No it's a sample script. Didn't it download anything?
Maybe you need to add some bits? See here this may help https://forum.videohelp.com/threads/410561-bulk-download-decryption-and-merge#post2699428 -
Well DO TRY! Only by trying do you become an expert. Jack_666 has given you the steps; just code for them one by one. Take each part at a time and get it working before you move to the next. The whole builds from parts. You look at the whole and it is frightening, so just look at each small part and do that. Then suddenly you have a whole script and are on the way to 'expert' status. (whatever that is)
Similar Threads
-
I can't download this video without decryption
By olaoolao in forum Video Streaming DownloadingReplies: 14Last Post: 23rd May 2023, 07:45 -
A GUI to download bulk download files through their respective M3U8 links
By UNforces885 in forum Video Streaming DownloadingReplies: 4Last Post: 4th May 2023, 14:04 -
[help] (m3u8) no audio after download and decryption
By CrymanChen in forum Video Streaming DownloadingReplies: 6Last Post: 4th Jul 2022, 23:44 -
Help with video download and decryption
By herschel in forum Video Streaming DownloadingReplies: 4Last Post: 26th Jul 2021, 04:31 -
Merge intro to Videos in bulk without re-encoding
By M00nsp3ll in forum Newbie / General discussionsReplies: 2Last Post: 4th Apr 2020, 19:22