VideoHelp Forum




+ Reply to Thread
Results 1 to 6 of 6
  1. hi everybody,

    i have wonderful py script to get m3u8 link and download with N_m3u8DL-RE
    but on final step i have one mp4 and one audio m4a file
    now the script is like this:
    Code:
    M3U8_DL_RE = 'D:\\streaming\\N_m3u8DL-RE\\N_m3u8DL-RE.exe'
    ..
    ...
    ....
    if download:
        re_process = subprocess.run([
            M3U8_DL_RE, f"{m3u8_link}", "--no-log", "--save-name xxxx"
        ])
    i want mux mp4+m4a to mkv file, so i've add:
    Code:
    M3U8_DL_RE, f"{m3u8_link}", "--no-log", "-M format=mkv:muxer=mkvmerge", "--save-name xxxx"
    but i've error: Unrecognized command or argument '-M format=mkv:muxer=mkvmerge'
    what's wrong on this py script?
    Quote Quote  
  2. Member
    Join Date
    Feb 2022
    Location
    Search the forum first!
    Search PM
    A comma after -M would follow your established pattern.
    But run your line directly as a command to test it is valid. Then translate into python code.
    Noob Starter Pack. Just download every Widevine mpd! Not kidding!.
    https://files.videohelp.com/u/301890/hellyes6.zip
    Quote Quote  
  3. ?? i don't understand your suggestion

    if i only run:
    Code:
    N_m3u8DL-RE "https://_playlist.m3u8?auth=daEd_" --no-log -M format=mkv:muxer=mkvmerge --save-name xxxx
    the command work fine. only from python script does not work!
    Quote Quote  
  4. Code:
    [ M3U8_DL_RE, f"{m3u8_link}", "--no-log", "-M", "format=mkv:muxer=mkvmerge", "--save-name", "xxxx" ]
    Quote Quote  
  5. Member
    Join Date
    Feb 2022
    Location
    Search the forum first!
    Search PM
    Originally Posted by whs912km View Post
    i want mux mp4+m4a to mkv file, so i've add:
    Code:
    M3U8_DL_RE, f"{m3u8_link}", "--no-log", "-M format=mkv:muxer=mkvmerge", "--save-name xxxx"
    ?? i don't understand your suggestion
    !!

    M3U8_DL_RE, f"{m3u8_link}", "--no-log", "-M","format=mkv:muxer=mkvmerge", "--save-name xxxx"
    Noob Starter Pack. Just download every Widevine mpd! Not kidding!.
    https://files.videohelp.com/u/301890/hellyes6.zip
    Quote Quote  
  6. oh yes, it work! thanks both
    Quote Quote  



Similar Threads

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