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
Support our site by donate $5 directly to us Thanks!!!
Try StreamFab Downloader and download streaming video from Netflix, Amazon!
Try StreamFab Downloader and download streaming video from Netflix, Amazon!
+ Reply to Thread
Results 1 to 13 of 13
-
-
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
-
Hello Sorenb,
Did you understand my question ?
I asked to select TWO audiotracks, NOT just ONE track.
Sincerely, -
did you read the manual though?
https://github.com/yt-dlp/yt-dlp#video-format-options -
-
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 -
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
-
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>
-
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.
Similar Threads
-
yt-dlp - download segmented video?
By ampersand in forum Video Streaming DownloadingReplies: 32Last Post: 26th Dec 2022, 05:57 -
how to download SRT files from youtube video with yt-dlp please?
By inklara in forum Video Streaming DownloadingReplies: 5Last Post: 10th Jun 2022, 08:50 -
downloading multiple audio track with yt-dlp
By chisdchisdq in forum Video Streaming DownloadingReplies: 2Last Post: 17th Apr 2022, 04:16 -
Identifying Video with Multiple Audio Tracks
By bigcarp22 in forum Newbie / General discussionsReplies: 2Last Post: 27th Aug 2020, 05:02 -
Video edition with multiple audio tracks.
By djdan in forum Newbie / General discussionsReplies: 0Last Post: 18th Nov 2019, 15:14