ErrorFlynn / ytdlp-interface

Windows graphical interface for yt-dlp, designed as a simple YouTube downloader
MIT License
1.1k stars 58 forks source link

wrong preferred format #190

Open nvnkx opened 1 month ago

nvnkx commented 1 month ago

i selected the mp4 format and the downloads appear in mkv or webm. help please 😭 image

babzai commented 1 week ago

I have the same issue

ErrorFlynn commented 1 week ago

YouTube doesn't use MP3, so yt-dlp selects the format it thinks is the best out of those available for that video, which is format 251 (Opus audio in a WebM container). The reason you don't get an .mp4 file is because the mp4 container doesn't support Opus audio streams, so yt-dlp is forced to put the H264 video and the Opus audio into an .mkv container file which supports both.

The tooltip for the "preferred container" settings attempts to explain this, and explains that you must select m4a as the preferred audio container, if you have selected mp4 as the preferred video container.