From f84fc81f08d5a64c1ac3d9483497378c2204f26b Mon Sep 17 00:00:00 2001 From: Michael Campagnaro Date: Mon, 14 Feb 2022 13:11:20 -0500 Subject: [PATCH] Download and merge best mp4 and m4a streams --- aliases | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/aliases b/aliases index b49a49a..51e6781 100644 --- a/aliases +++ b/aliases @@ -368,7 +368,9 @@ dl_youtube_vid() { fi if [[ $format == "" ]]; then printf "${BOLD}No format given; using best available.${NORMAL}\n" - format="best" + # Download best mp4 video and best m4a audio, then merge. + format="bv*[ext=mp4]+ba[ext=m4a]" + opts+=" --merge-output-format mp4" fi opts+=" --write-sub --sub-lang en --embed-subs" @@ -411,7 +413,9 @@ dl_youtube_vid_and_hflip() { fi if [[ $format == "" ]]; then printf "${BOLD}No format given; using best available.${NORMAL}\n" - format="best" + # Download best mp4 video and best m4a audio, then merge. + format="bv*[ext=mp4]+ba[ext=m4a]" + opts+=" --merge-output-format mp4" fi opts+=" --write-sub --sub-lang en --embed-subs" @@ -453,7 +457,9 @@ dl_youtube_playlist() { fi if [[ $format == "" ]]; then printf "${BOLD}No format given; using best available.${NORMAL}\n" - format="best" + # Download best mp4 video and best m4a audio, then merge. + format="bv*[ext=mp4]+ba[ext=m4a]" + opts+=" --merge-output-format mp4" fi opts+=" --write-sub --sub-lang en --embed-subs" @@ -540,6 +546,7 @@ dl_twitch_vid() { if [[ $format == "" ]]; then printf "${BOLD}No format given; using best available.${NORMAL}\n" format="best" + #opts+=" --merge-output-format mp4" fi if [[ $make_folder == "1" ]]; then