{"action":"created","issue":{"url":"https://api.github.com/repos/rg3/youtube-dl/issues/5386","labels_url":"https://api.github.com/repos/rg3/youtube-dl/issues/5386/labels{/name}","comments_url":"https://api.github.com/repos/rg3/youtube-dl/issues/5386/comments","events_url":"https://api.github.com/repos/rg3/youtube-dl/issues/5386/events","html_url":"https://github.com/rg3/youtube-dl/issues/5386","id":67366491,"number":5386,"title":"--recode-video webm but mp4 video in same res is downloaded","user":{"login":"nemobis","id":901528,"avatar_url":"https://avatars.githubusercontent.com/u/901528?v=3","gravatar_id":"","url":"https://api.github.com/users/nemobis","html_url":"https://github.com/nemobis","followers_url":"https://api.github.com/users/nemobis/followers","following_url":"https://api.github.com/users/nemobis/following{/other_user}","gists_url":"https://api.github.com/users/nemobis/gists{/gist_id}","starred_url":"https://api.github.com/users/nemobis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nemobis/subscriptions","organizations_url":"https://api.github.com/users/nemobis/orgs","repos_url":"https://api.github.com/users/nemobis/repos","events_url":"https://api.github.com/users/nemobis/events{/privacy}","received_events_url":"https://api.github.com/users/nemobis/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-09T13:50:05Z","updated_at":"2015-04-09T14:09:35Z","closed_at":"2015-04-09T14:09:35Z","body":"I want to download a Wikimedia Commons-supported video (VP8 or Theora video, Vorbis audio), using the best available quality from YouTube and recoding as little as possible. I think youtube-dl is the best tool available for the job (*infinite gratitude*) but perhaps I'm using it incorrectly.\r\n\r\nI think this command line is supported, but the behaviour doesn't seem right. I've read https://github.com/rg3/youtube-dl/issues/5298#issuecomment-87071706\r\n```\r\n$ youtube-dl --title --continue --retries 4 --write-info-json --write-description --all-subs --ignore-errors -f bestvideo+bestaudio --audio-format vorbis --recode-video webm https://www.youtube.com/watch?v=zLFp5kEEaCo\r\n[youtube] zLFp5kEEaCo: Downloading webpage\r\n[youtube] zLFp5kEEaCo: Extracting video information\r\nWARNING: video doesn't have subtitles\r\n[youtube] zLFp5kEEaCo: Downloading DASH manifest\r\n[info] Writing video description to: Ins Netz gegangen - Dr. Oliver Sander - Die Kooperation des Bundesarchivs mit Wikimedia-zLFp5kEEaCo.mp4.description\r\n[info] Writing video description metadata as JSON to: Ins Netz gegangen - Dr. Oliver Sander - Die Kooperation des Bundesarchivs mit Wikimedia-zLFp5kEEaCo.info.json\r\n[download] Destination: Ins Netz gegangen - Dr. Oliver Sander - Die Kooperation des Bundesarchivs mit Wikimedia-zLFp5kEEaCo.f136.mp4\r\n[download] 100% of 286.62MiB in 00:38\r\n[download] Destination: Ins Netz gegangen - Dr. Oliver Sander - Die Kooperation des Bundesarchivs mit Wikimedia-zLFp5kEEaCo.f141.m4a\r\n[download] 100% of 69.37MiB in 00:12\r\n[ffmpeg] Merging formats into \"Ins Netz gegangen - Dr. Oliver Sander - Die Kooperation des Bundesarchivs mit Wikimedia-zLFp5kEEaCo.mp4\"\r\nWARNING: Your copy of avconv is outdated, update avconv to version 10-0 or newer if you encounter any errors.\r\n[ffmpeg] Converting video from mp4 to webm, Destination: Ins Netz gegangen - Dr. Oliver Sander - Die Kooperation des Bundesarchivs mit Wikimedia-zLFp5kEEaCo.webm\r\n```\r\n\r\nThe video did offer a webm of same quality, which AFAICS I could have avoided recoding:\r\n```\r\n$ youtube-dl -F https://www.youtube.com/watch?v=zLFp5kEEaCo\r\n[youtube] zLFp5kEEaCo: Downloading webpage\r\n[youtube] zLFp5kEEaCo: Extracting video information\r\n[youtube] zLFp5kEEaCo: Downloading DASH manifest\r\n[info] Available formats for zLFp5kEEaCo:\r\nformat code  extension  resolution note\r\n171          webm       audio only DASH audio  113k , audio@128k (44100Hz), 24.16MiB\r\n140          m4a        audio only DASH audio  129k , m4a_dash container, aac  @128k (44100Hz), 34.56MiB\r\n141          m4a        audio only DASH audio  257k , m4a_dash container, aac  @256k (44100Hz), 69.37MiB\r\n[...]\r\n247          webm       1280x720   DASH video 1192k , 25fps, video only, 170.75MiB\r\n136          mp4        1280x720   DASH video 2141k , 25fps, video only, 286.62MiB\r\n[...]\r\n22           mp4        1280x720   (best)\r\n```"},"comment":{"url":"https://api.github.com/repos/rg3/youtube-dl/issues/comments/91243446","html_url":"https://github.com/rg3/youtube-dl/issues/5386#issuecomment-91243446","issue_url":"https://api.github.com/repos/rg3/youtube-dl/issues/5386","id":91243446,"user":{"login":"dstftw","id":1908898,"avatar_url":"https://avatars.githubusercontent.com/u/1908898?v=3","gravatar_id":"","url":"https://api.github.com/users/dstftw","html_url":"https://github.com/dstftw","followers_url":"https://api.github.com/users/dstftw/followers","following_url":"https://api.github.com/users/dstftw/following{/other_user}","gists_url":"https://api.github.com/users/dstftw/gists{/gist_id}","starred_url":"https://api.github.com/users/dstftw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dstftw/subscriptions","organizations_url":"https://api.github.com/users/dstftw/orgs","repos_url":"https://api.github.com/users/dstftw/repos","events_url":"https://api.github.com/users/dstftw/events{/privacy}","received_events_url":"https://api.github.com/users/dstftw/received_events","type":"User","site_admin":false},"created_at":"2015-04-09T14:09:35Z","updated_at":"2015-04-09T14:09:35Z","body":"`bestvideo` can't refer to multiple formats. In your case `mp4` happened to be the `bestvideo`. If you want best webm quality use `bestvideo[ext=webm]`.\r\n\r\n>The video did offer a webm of same quality\r\n\r\nThey have different bitrate according to metadata, therefore in any case can't be treated as the same quality.\r\n\r\n"}}