VideoHelp Forum



Support our site by donate $5 directly to us Thanks!!!

Try StreamFab Downloader and download streaming video from Netflix, Amazon!



+ Reply to Thread
Results 1 to 13 of 13
  1. Hello,
    Is it possible to download video with multiple audio streams and then merge it with video.
    For example, if video has ENGLISH and FRENCH, can they be downloaded together in single yt-dlp request, then merged with video.
    Thanks
    Quote Quote  
  2. Do not send me DM's
    Join Date
    Dec 2021
    Location
    Tórshavn
    Search Comp PM
    Yes, read the manual. Use the -f flag to select the audio streams

    Code:
    yt-dlp --allow-u -f <audio track> -f <otheraudio id> -f <video id> -o <name of download> <mpd.url>
    Last edited by Sorenb; 2nd Feb 2023 at 08:40. Reason: spelling
    Quote Quote  
  3. Hello Sorenb,
    Did you understand my question ?
    I asked to select TWO audiotracks, NOT just ONE track.
    Sincerely,
    Quote Quote  
  4. Do not send me DM's
    Join Date
    Dec 2021
    Location
    Tórshavn
    Search Comp PM
    Originally Posted by Pavel_47 View Post
    Hello Sorenb,
    Did you understand my question ?
    I asked to select TWO audiotracks, NOT just ONE track.
    Sincerely,
    Did you not understand my answer? Pay attention, I mentioned a selection flag and output filename flag. Think it through, and read the damn manual
    Quote Quote  
  5. I had read the manual and couldn't find how to capture 2 audio streams.
    Tried 2 options:

    (1) using --audio-multistreams
    (2) specifying 2 audiostreams after -F

    Doesn't work in both cases - only one audiotrack is kept.
    Sincerely
    Quote Quote  
  6. Do not send me DM's
    Join Date
    Dec 2021
    Location
    Tórshavn
    Search Comp PM
    It's going to grab the streams individually no matter what you wish. So, script it to grab one audio then the other. Or use n-m3u8
    Quote Quote  
  7. Code:
     -f "audioID1+audioID2+videoID" --audio-multistreams
    Quote Quote  
  8. Originally Posted by larits View Post
    Code:
     -f "audioID1+audioID2+videoID" --audio-multistreams
    The Best !!!
    Thanks !
    Quote Quote  
  9. I had a warning message because of option "--allowed-u" and audio files were downloaded separately. This is the code used:
    Code:
    yt-dlp  --allow-u  -f "audioID1+audioID2+videoID"  --audio-multistreams  -o  <name> <mpd url>
    Is there an option to skip the warning? I really want to get video+audios downloaded in the same file. Thanks.
    Quote Quote  
  10. Yes It's normal

    Decrypt audio and video separately with your key.

    Merge them with ffmpeg.

    Code:
    ffmpeg -i videodecrypt.mp4 -i audiodecrypt.m4a -c copy new.mp4
    Quote Quote  
  11. Ok, thank you for your reply.
    Quote Quote  
  12. Originally Posted by Pavel_47 View Post
    Hello,
    Is it possible to download video with multiple audio streams and then merge it with video.
    For example, if video has ENGLISH and FRENCH, can they be downloaded together in single yt-dlp request, then merged with video.
    Thanks
    This is "a little bit longer" way...

    1- List the content of MPD:

    yt-dlp --list-formats --allow-unplayable-formats mpdlink

    All video and audio formats will be listed with their special Stream IDs (changes on each site)


    2- Write down the Stream IDs for audio/video files to be downloaded:

    yt-dlp -f streamID --allow-unplayable-formats mpdlink


    3- After all downloads and decryptions, merge the video and audio files with MKVToolnix.


    If you also want subtitles (if available):

    yt-dlp --skip-download --write-subs --sub-langs "en, fr," --allow-unplayable-formats mpdlink


    You can also use "Encrypted Video Downloader" batch file, but you will have to download the audio files seperately again. Only one audio and one video will be downloaded, decrypted and merged. You will need yt-dlp, mp4decrypt, aria2c, and ffmpeg in the same folder.
    Quote Quote  



Similar Threads

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