On Thu, Apr 18, 2019 at 12:38:47PM +0100, Mick wrote > If you do not specify an output format for youtube-dl to transcode the > video and audio into, the application will use a matroska container: > > [ffmpeg] Merging formats into "Double Slit Experiment explained! by Jim Al- > Khalili-A9tKncAdlHQ.mkv" > > which will retain the best video with the size you requested as h264 > *and* the best audio it could find as opus. This will adhere to your > request for a best video and best audio.
[...deletia...] > On a practical level, if the mkv container is not suitable for you, > you could instead restrict the audio format to m4a and then ytdl will > download the .f140 file rather than .f251 and mux video and audio into > an mp4 container - but arguably this won't represent the 'best' audio. Thank you, that works for me. mplayer can handle mkv. I misunderstood the man page and interpreted that specifying "--merge-output-format" was mandatory if I wanted a merge. I ran youtube-dl and played back with mplayer... [youtube] A9tKncAdlHQ: Downloading webpage [youtube] A9tKncAdlHQ: Downloading video info webpage [youtube] Downloading just video A9tKncAdlHQ because of --no-playlist WARNING: Requested formats are incompatible for merge and will be merged into mkv. [download] Destination: /home/waltdnes/ytdl/Double_Slit_Experiment_explained_by_Jim_Al-Khalili.f137.mp4 [download] 100% of 31.55MiB in 00:17 [download] Destination: /home/waltdnes/ytdl/Double_Slit_Experiment_explained_by_Jim_Al-Khalili.f251.webm [download] 100% of 6.65MiB in 00:03 [ffmpeg] Merging formats into "/home/waltdnes/ytdl/Double_Slit_Experiment_explained_by_Jim_Al-Khalili.mkv" Deleting original file /home/waltdnes/ytdl/Double_Slit_Experiment_explained_by_Jim_Al-Khalili.f137.mp4 (pass -k to keep) Deleting original file /home/waltdnes/ytdl/Double_Slit_Experiment_explained_by_Jim_Al-Khalili.f251.webm (pass -k to keep) My ~/.config/youtube-dl/config is... -f bestvideo[width<=1920]+bestaudio --no-mtime --no-playlist -o ~/ytdl/%(title)s.%(ext)s --restrict-filenames -- Walter Dnes <[email protected]> I don't run "desktop environments"; I run useful applications

