VideoHelp Forum




+ Reply to Thread
Results 1 to 16 of 16
  1. Hi everyone. I'm running N_m3u8DL-RE in a Linux server via command line with following code:

    Code:
    N_m3u8DL-RE ".m3u8" --save-name 2024 Bahrain Grand Prix - Practice 2 -sv best -sa all
    I get the best video and all audio files in separate folders.
    This is main folder created.

    Image
    [Attachment 77446 - Click to enlarge]


    Then if I go inside the folder created I can see more folders for video and audios separated.

    Image
    [Attachment 77447 - Click to enlarge]


    Inside Video and Audio folders I find a lot of files with extension .ts

    Image
    [Attachment 77448 - Click to enlarge]


    It's supposed N_m3u8DL-R should assign extension .mp4 for video and .m4a for audios?
    Why am I getting files this way separated in folders?

    Hopefully someone can help here. Thanks.
    Last edited by Mochomo; 5th Mar 2024 at 16:38.
    Quote Quote  
  2. In my case I use

    --live-real-time-merge
    as the documentation says and as a very kind user here taught me, I don't know if there is another way but in my case it always stays together with several audios
    Quote Quote  
  3. I just tried adding "--live-real-time-merge"

    Code:
    N_m3u8DL-RE "MPD" --save-name 2024 Bahrain Grand Prix - Practice 2 -sv best -sa all --live-real-time-merge
    It didn't work. I just don't know why is creating all these folders. Also audio files as .ts instead of .m4a ... Really weird.
    Quote Quote  
  4. Originally Posted by Mochomo View Post
    I just tried adding "--live-real-time-merge"

    Code:
    N_m3u8DL-RE "MPD" --save-name 2024 Bahrain Grand Prix - Practice 2 -sv best -sa all --live-real-time-merge
    It didn't work. I just don't know why is creating all these folders. Also audio files as .ts instead of .m4a ... Really weird.
    Are you adding the keys for that mpd? I don't see that you have that tag added
    Quote Quote  
  5. Sorry, I just edited my initial post, this video is not MPD, it's .m3u8
    Quote Quote  
  6. If you're dealing with live video, then you should use:

    Code:
    --live-pipe-mux --live-keep-segments False
    If it's a VOD, then just mux everything after the download is finished:

    Code:
    -M format=mkv
    Quote Quote  
  7. it's not weird. your command on first post download from m3u8, save video with name, best video and all audio files
    missing command to join audio/video files, like white_snake says, with live-pipe-mux (for live) or mkv format for simply VOD
    Quote Quote  
  8. As suggested I added this at the end of my code.

    Code:
    -M format=mkv
    It didn't work. Mux process failed. Please refer to screenshot.

    Image
    [Attachment 77457 - Click to enlarge]


    As I can see, mux process fails because audio extension is ".ts" and video as well.
    It should be ".m4a" for audio since it's "aac" audio and ".mp4" for the video.

    Weird all files are downloaded as .ts

    FYI... If I use "ffmpeg" to download and merge files it just works as expect. I'm trying to use N_m3u8DL-RE since download speed is way faster.
    Quote Quote  
  9. If you provided the full command (with the full m3u8 url) it would be easier to give you assistance.
    Quote Quote  
  10. My bad. This is the full command. It's VOD, not live.

    Code:
    N_m3u8DL-RE "https://ott-video-fer-cf.formula1.com/v2/pa_cGF0aDolMkZjODA1OTI3MDUyOWU2M2U0OTJiMzQzMTc5MzNjM2RjYSUyRm91dCUyRnYxJTJGMTA3Yjc5Y2IwZWY0NDViNDk0ZGQ4N2JjYzY2YzJhOGUlMkYzMzk1NzMwN2M1Yjg0OGE2YmVhNjkzYmI0MDBhNzE2NnxraWQ6MTA0MnxleHA6MTcwOTgxNjc4N3x0dGw6MTQ0MHxnZW86VVN8c3RyZWFtVHlwZTpITFN8c2Vzc2lvbklkOjE2ODk0NTA2OV8wMUhSOVhZTjExODdZOEs3OFJUNDIxWDFIQ3x0b2tlbjpmQlhLQ05kYnZNS0ltOVNoUFpoc01Wd2p2ZGxNSVBxWDE1NEtsbVVNeHpvXw__/c8059270529e63e492b34317933c3dca/out/v1/107b79cb0ef445b494dd87bcc66c2a8e/33957307c5b848a6bea693bb400a7166/e4d49ef8077f4032a097e2b0c8a962bb/index.m3u8" --save-name Practice -sv best -sa all -M format=mkv
    Quote Quote  
  11. Originally Posted by Mochomo View Post
    My bad. This is the full command. It's VOD, not live.
    It worked fine for me, at least downloading partially using:

    Code:
    --custom-range 0-5
    Try with this N_m3u8DL-RE version here: https://forum.videohelp.com/threads/413676-N_m3u8DL-RE-pre-release

    And these ffmpeg binaries: https://github.com/yt-dlp/FFmpeg-Builds/releases
    Quote Quote  
  12. Originally Posted by white_snake View Post
    It worked fine for me, at least downloading partially using:

    Code:
    --custom-range 0-5
    Is this how it should look the new complete code?

    Code:
    N_m3u8DL-RE "https://ott-video-fer-cf.formula1.com/v2/pa_cGF0aDolMkZjODA1OTI3MDUyOWU2M2U0OTJiMzQzMTc5MzNjM2RjYSUyRm91dCUyRnYxJTJGMTA3Yjc5Y2IwZWY0NDViNDk0ZGQ4N2JjYzY2YzJhOGUlMkYzMzk1NzMwN2M1Yjg0OGE2YmVhNjkzYmI0MDBhNzE2NnxraWQ6MTA0MnxleHA6MTcwOTgxNjc4N3x0dGw6MTQ0MHxnZW86VVN8c3RyZWFtVHlwZTpITFN8c2Vzc2lvbklkOjE2ODk0NTA2OV8wMUhSOVhZTjExODdZOEs3OFJUNDIxWDFIQ3x0b2tlbjpmQlhLQ05kYnZNS0ltOVNoUFpoc01Wd2p2ZGxNSVBxWDE1NEtsbVVNeHpvXw__/c8059270529e63e492b34317933c3dca/out/v1/107b79cb0ef445b494dd87bcc66c2a8e/33957307c5b848a6bea693bb400a7166/e4d49ef8077f4032a097e2b0c8a962bb/index.m3u8" --save-name Practice -sv best -sa all -M format=mkv --custom-range 0-5
    Quote Quote  
  13. Originally Posted by Mochomo View Post
    Is this how it should look the new complete code?

    Code:
    N_m3u8DL-RE "https://ott-video-fer-cf.formula1.com/v2/pa_cGF0aDolMkZjODA1OTI3MDUyOWU2M2U0OTJiMzQzMTc5MzNjM2RjYSUyRm91dCUyRnYxJTJGMTA3Yjc5Y2IwZWY0NDViNDk0ZGQ4N2JjYzY2YzJhOGUlMkYzMzk1NzMwN2M1Yjg0OGE2YmVhNjkzYmI0MDBhNzE2NnxraWQ6MTA0MnxleHA6MTcwOTgxNjc4N3x0dGw6MTQ0MHxnZW86VVN8c3RyZWFtVHlwZTpITFN8c2Vzc2lvbklkOjE2ODk0NTA2OV8wMUhSOVhZTjExODdZOEs3OFJUNDIxWDFIQ3x0b2tlbjpmQlhLQ05kYnZNS0ltOVNoUFpoc01Wd2p2ZGxNSVBxWDE1NEtsbVVNeHpvXw__/c8059270529e63e492b34317933c3dca/out/v1/107b79cb0ef445b494dd87bcc66c2a8e/33957307c5b848a6bea693bb400a7166/e4d49ef8077f4032a097e2b0c8a962bb/index.m3u8" --save-name Practice -sv best -sa all -M format=mkv --custom-range 0-5
    Yup, works for me. Just make sure to delete the "Practice" folder that contains the temp files to avoid errors.

    (this will only download the first 20 seconds of the video of course)
    Quote Quote  
  14. This means to download only first 20 seconds? "--custom-range 0-5"

    Did you try it on Windows or Linux?
    Quote Quote  
  15. Originally Posted by Mochomo View Post
    This means to download only first 20 seconds? "--custom-range 0-5"
    Just remove it to download the full file. With the right binaries it should work.

    Did you try it on Windows or Linux?
    Windows.
    Quote Quote  
  16. Originally Posted by white_snake View Post
    It worked now using this version of N_m3u8DL-RE

    Thanks for your help!!
    Quote Quote  



Similar Threads

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