VideoHelp Forum




+ Reply to Thread
Results 1 to 9 of 9
  1. Member
    Join Date
    Aug 2022
    Location
    India
    Search Comp PM
    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?
    Quote Quote  
  2. is it possible to do?
    Yes it's quite simple 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
    Quote Quote  
  3. Member
    Join Date
    Aug 2022
    Location
    India
    Search Comp PM
    Can you give sample script!
    Quote Quote  
  4. Member
    Join Date
    Feb 2022
    Location
    Search the forum first!
    Search PM
    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)
    Quote Quote  
  5. Member
    Join Date
    Aug 2022
    Location
    India
    Search Comp PM
    Its just progresabar, isn't it! ��
    Quote Quote  
  6. Member
    Join Date
    Feb 2022
    Location
    Search the forum first!
    Search PM
    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
    Quote Quote  
  7. Member
    Join Date
    Aug 2022
    Location
    India
    Search Comp PM
    I didnt tried.i know python...but not expert
    Quote Quote  
  8. Member
    Join Date
    Feb 2022
    Location
    Search the forum first!
    Search PM
    Originally Posted by Neura View Post
    I didnt tried.i know python...but not expert
    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)
    Quote Quote  
  9. Member
    Join Date
    Aug 2022
    Location
    India
    Search Comp PM
    Ohhh wow, thank you for motivation.
    I got you.
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!