CINXE.COM
GitHub - yt-dlp/yt-dlp: A feature-rich command-line audio/video downloader
<!DOCTYPE html> <html lang="en" data-color-mode="auto" data-light-theme="light" data-dark-theme="dark" data-a11y-animated-images="system" data-a11y-link-underlines="true" > <head> <meta charset="utf-8"> <link rel="dns-prefetch" href="https://github.githubassets.com"> <link rel="dns-prefetch" href="https://avatars.githubusercontent.com"> <link rel="dns-prefetch" href="https://github-cloud.s3.amazonaws.com"> <link rel="dns-prefetch" href="https://user-images.githubusercontent.com/"> <link rel="preconnect" href="https://github.githubassets.com" crossorigin> <link rel="preconnect" href="https://avatars.githubusercontent.com"> <link crossorigin="anonymous" media="all" rel="stylesheet" href="https://github.githubassets.com/assets/light-74231a1f3bbb.css" /><link crossorigin="anonymous" media="all" rel="stylesheet" href="https://github.githubassets.com/assets/dark-8a995f0bacd4.css" /><link data-color-theme="dark_dimmed" crossorigin="anonymous" media="all" rel="stylesheet" data-href="https://github.githubassets.com/assets/dark_dimmed-f37fb7684b1f.css" /><link data-color-theme="dark_high_contrast" crossorigin="anonymous" media="all" rel="stylesheet" data-href="https://github.githubassets.com/assets/dark_high_contrast-9ac301c3ebe5.css" /><link data-color-theme="dark_colorblind" crossorigin="anonymous" media="all" rel="stylesheet" data-href="https://github.githubassets.com/assets/dark_colorblind-cd826e8636dc.css" /><link data-color-theme="light_colorblind" crossorigin="anonymous" media="all" rel="stylesheet" data-href="https://github.githubassets.com/assets/light_colorblind-f91b0f603451.css" /><link data-color-theme="light_high_contrast" crossorigin="anonymous" media="all" rel="stylesheet" data-href="https://github.githubassets.com/assets/light_high_contrast-83beb16e0ecf.css" /><link data-color-theme="light_tritanopia" crossorigin="anonymous" media="all" rel="stylesheet" data-href="https://github.githubassets.com/assets/light_tritanopia-6e122dab64fc.css" /><link data-color-theme="dark_tritanopia" crossorigin="anonymous" media="all" rel="stylesheet" data-href="https://github.githubassets.com/assets/dark_tritanopia-18119e682df0.css" /> <link crossorigin="anonymous" media="all" rel="stylesheet" href="https://github.githubassets.com/assets/primer-primitives-225433424a87.css" /> <link crossorigin="anonymous" media="all" rel="stylesheet" href="https://github.githubassets.com/assets/primer-aaa714e5674d.css" /> <link crossorigin="anonymous" media="all" rel="stylesheet" href="https://github.githubassets.com/assets/global-0a3c53b9d1c2.css" /> <link crossorigin="anonymous" media="all" rel="stylesheet" href="https://github.githubassets.com/assets/github-ea73c9cb5377.css" /> <link crossorigin="anonymous" media="all" rel="stylesheet" href="https://github.githubassets.com/assets/repository-4fce88777fa8.css" /> <link crossorigin="anonymous" media="all" rel="stylesheet" href="https://github.githubassets.com/assets/code-0210be90f4d3.css" /> <script type="application/json" id="client-env">{"locale":"en","featureFlags":["copilot_immersive_issue_preview","copilot_new_references_ui","copilot_chat_repo_custom_instructions_preview","copilot_no_floating_button","copilot_topics_as_references","copilot_read_shared_conversation","copilot_duplicate_thread","copilot_buffered_streaming","dotcom_chat_client_side_skills","experimentation_azure_variant_endpoint","failbot_handle_non_errors","geojson_azure_maps","ghost_pilot_confidence_truncation_25","ghost_pilot_confidence_truncation_40","github_models_gateway_parse_params","github_models_o3_mini_streaming","insert_before_patch","issues_react_remove_placeholders","issues_react_blur_item_picker_on_close","issues_dashboard_no_redirects","marketing_pages_search_explore_provider","primer_react_css_modules_ga","react_data_router_pull_requests","react_override_default_key","remove_child_patch","sample_network_conn_type","swp_enterprise_contact_form","site_proxima_australia_update","viewscreen_sandbox","issues_react_create_milestone","issues_react_cache_fix_workaround","lifecycle_label_name_updates","copilot_task_oriented_assistive_prompts","issue_types_prevent_private_type_creation","refresh_image_video_src","react_router_dispose_on_disconnect","codespaces_prebuild_region_target_update","turbo_app_id_restore","copilot_code_review_sign_up_closed"]}</script> <script crossorigin="anonymous" defer="defer" type="application/javascript" src="https://github.githubassets.com/assets/wp-runtime-fdcbffc2f9b7.js"></script> <script crossorigin="anonymous" defer="defer" type="application/javascript" src="https://github.githubassets.com/assets/vendors-node_modules_oddbird_popover-polyfill_dist_popover_js-9da652f58479.js"></script> <script crossorigin="anonymous" defer="defer" type="application/javascript" src="https://github.githubassets.com/assets/vendors-node_modules_github_arianotify-polyfill_ariaNotify-polyfill_js-node_modules_github_mi-3abb8f-46b9f4874d95.js"></script> <script crossorigin="anonymous" defer="defer" type="application/javascript" src="https://github.githubassets.com/assets/ui_packages_failbot_failbot_ts-75968cfb5298.js"></script> <script crossorigin="anonymous" defer="defer" type="application/javascript" src="https://github.githubassets.com/assets/environment-f04cb2a9fc8c.js"></script> <script crossorigin="anonymous" defer="defer" type="application/javascript" src="https://github.githubassets.com/assets/vendors-node_modules_primer_behaviors_dist_esm_index_mjs-0dbb79f97f8f.js"></script> <script crossorigin="anonymous" defer="defer" type="application/javascript" src="https://github.githubassets.com/assets/vendors-node_modules_github_selector-observer_dist_index_esm_js-f690fd9ae3d5.js"></script> <script crossorigin="anonymous" defer="defer" type="application/javascript" src="https://github.githubassets.com/assets/vendors-node_modules_github_relative-time-element_dist_index_js-62d275b7ddd9.js"></script> <script crossorigin="anonymous" defer="defer" type="application/javascript" src="https://github.githubassets.com/assets/vendors-node_modules_github_text-expander-element_dist_index_js-78748950cb0c.js"></script> <script crossorigin="anonymous" defer="defer" type="application/javascript" src="https://github.githubassets.com/assets/vendors-node_modules_github_auto-complete-element_dist_index_js-node_modules_github_catalyst_-8e9f78-a90ac05d2469.js"></script> <script crossorigin="anonymous" defer="defer" type="application/javascript" src="https://github.githubassets.com/assets/vendors-node_modules_github_filter-input-element_dist_index_js-node_modules_github_remote-inp-b5f1d7-a1760ffda83d.js"></script> <script crossorigin="anonymous" defer="defer" type="application/javascript" src="https://github.githubassets.com/assets/vendors-node_modules_github_markdown-toolbar-element_dist_index_js-ceef33f593fa.js"></script> <script crossorigin="anonymous" defer="defer" type="application/javascript" src="https://github.githubassets.com/assets/vendors-node_modules_github_file-attachment-element_dist_index_js-node_modules_primer_view-co-c44a69-efa32db3a345.js"></script> <script crossorigin="anonymous" defer="defer" type="application/javascript" src="https://github.githubassets.com/assets/github-elements-394f8eb34f19.js"></script> <script crossorigin="anonymous" defer="defer" type="application/javascript" src="https://github.githubassets.com/assets/element-registry-25113a65b77f.js"></script> <script crossorigin="anonymous" defer="defer" type="application/javascript" src="https://github.githubassets.com/assets/vendors-node_modules_braintree_browser-detection_dist_browser-detection_js-node_modules_githu-2906d7-2a07a295af40.js"></script> <script crossorigin="anonymous" defer="defer" type="application/javascript" src="https://github.githubassets.com/assets/vendors-node_modules_lit-html_lit-html_js-be8cb88f481b.js"></script> <script crossorigin="anonymous" defer="defer" type="application/javascript" src="https://github.githubassets.com/assets/vendors-node_modules_github_mini-throttle_dist_index_js-node_modules_morphdom_dist_morphdom-e-7c534c-a4a1922eb55f.js"></script> <script crossorigin="anonymous" defer="defer" type="application/javascript" src="https://github.githubassets.com/assets/vendors-node_modules_github_turbo_dist_turbo_es2017-esm_js-a03ee12d659a.js"></script> <script crossorigin="anonymous" defer="defer" type="application/javascript" src="https://github.githubassets.com/assets/vendors-node_modules_github_remote-form_dist_index_js-node_modules_delegated-events_dist_inde-893f9f-b6294cf703b7.js"></script> <script crossorigin="anonymous" defer="defer" type="application/javascript" src="https://github.githubassets.com/assets/vendors-node_modules_color-convert_index_js-e3180fe3bcb3.js"></script> <script crossorigin="anonymous" defer="defer" type="application/javascript" src="https://github.githubassets.com/assets/vendors-node_modules_github_quote-selection_dist_index_js-node_modules_github_session-resume_-947061-e7a6c4a19f98.js"></script> <script crossorigin="anonymous" defer="defer" type="application/javascript" src="https://github.githubassets.com/assets/ui_packages_updatable-content_updatable-content_ts-eb3147a21e96.js"></script> <script crossorigin="anonymous" defer="defer" type="application/javascript" src="https://github.githubassets.com/assets/app_assets_modules_github_behaviors_task-list_ts-app_assets_modules_github_sso_ts-ui_packages-900dde-768abe60b1f8.js"></script> <script crossorigin="anonymous" defer="defer" type="application/javascript" src="https://github.githubassets.com/assets/app_assets_modules_github_sticky-scroll-into-view_ts-3e000c5d31a9.js"></script> <script crossorigin="anonymous" defer="defer" type="application/javascript" src="https://github.githubassets.com/assets/app_assets_modules_github_behaviors_ajax-error_ts-app_assets_modules_github_behaviors_include-87a4ae-627b7bfe72bf.js"></script> <script crossorigin="anonymous" defer="defer" type="application/javascript" src="https://github.githubassets.com/assets/app_assets_modules_github_behaviors_commenting_edit_ts-app_assets_modules_github_behaviors_ht-83c235-e429cff6ceb1.js"></script> <script crossorigin="anonymous" defer="defer" type="application/javascript" src="https://github.githubassets.com/assets/behaviors-124f4ce2c2c0.js"></script> <script crossorigin="anonymous" defer="defer" type="application/javascript" src="https://github.githubassets.com/assets/vendors-node_modules_delegated-events_dist_index_js-node_modules_github_catalyst_lib_index_js-f6223d90c7ba.js"></script> <script crossorigin="anonymous" defer="defer" type="application/javascript" src="https://github.githubassets.com/assets/notifications-global-01e85cd1be94.js"></script> <script crossorigin="anonymous" defer="defer" type="application/javascript" src="https://github.githubassets.com/assets/vendors-node_modules_virtualized-list_es_index_js-node_modules_github_template-parts_lib_index_js-94dc7a2157c1.js"></script> <script crossorigin="anonymous" defer="defer" type="application/javascript" src="https://github.githubassets.com/assets/vendors-node_modules_github_remote-form_dist_index_js-node_modules_delegated-events_dist_inde-70450e-4b93df70b903.js"></script> <script crossorigin="anonymous" defer="defer" type="application/javascript" src="https://github.githubassets.com/assets/app_assets_modules_github_ref-selector_ts-3e9d848bab5f.js"></script> <script crossorigin="anonymous" defer="defer" type="application/javascript" src="https://github.githubassets.com/assets/codespaces-f76fb2dd7b91.js"></script> <script crossorigin="anonymous" defer="defer" type="application/javascript" src="https://github.githubassets.com/assets/vendors-node_modules_github_filter-input-element_dist_index_js-node_modules_github_remote-inp-3eebbd-0763620ad7bf.js"></script> <script crossorigin="anonymous" defer="defer" type="application/javascript" src="https://github.githubassets.com/assets/vendors-node_modules_github_mini-throttle_dist_decorators_js-node_modules_delegated-events_di-e161aa-9d41fb1b6c9e.js"></script> <script crossorigin="anonymous" defer="defer" type="application/javascript" src="https://github.githubassets.com/assets/vendors-node_modules_github_file-attachment-element_dist_index_js-node_modules_github_remote--3c9c82-b71ef90fbdc7.js"></script> <script crossorigin="anonymous" defer="defer" type="application/javascript" src="https://github.githubassets.com/assets/repositories-e6e7c7ff47a3.js"></script> <script crossorigin="anonymous" defer="defer" type="application/javascript" src="https://github.githubassets.com/assets/vendors-node_modules_github_mini-throttle_dist_index_js-node_modules_github_catalyst_lib_inde-dbbea9-26cce2010167.js"></script> <script crossorigin="anonymous" defer="defer" type="application/javascript" src="https://github.githubassets.com/assets/code-menu-1c0aedc134b1.js"></script> <script crossorigin="anonymous" defer="defer" type="application/javascript" src="https://github.githubassets.com/assets/primer-react-602097a4b0db.js"></script> <script crossorigin="anonymous" defer="defer" type="application/javascript" src="https://github.githubassets.com/assets/react-core-0bc17999cb79.js"></script> <script crossorigin="anonymous" defer="defer" type="application/javascript" src="https://github.githubassets.com/assets/react-lib-f1bca44e0926.js"></script> <script crossorigin="anonymous" defer="defer" type="application/javascript" src="https://github.githubassets.com/assets/octicons-react-cf2f2ab8dab4.js"></script> <script crossorigin="anonymous" defer="defer" type="application/javascript" src="https://github.githubassets.com/assets/vendors-node_modules_emotion_is-prop-valid_dist_emotion-is-prop-valid_esm_js-node_modules_emo-62da9f-2df2f32ec596.js"></script> <script crossorigin="anonymous" defer="defer" type="application/javascript" src="https://github.githubassets.com/assets/vendors-node_modules_github_mini-throttle_dist_index_js-node_modules_stacktrace-parser_dist_s-e7dcdd-9a233856b02c.js"></script> <script crossorigin="anonymous" defer="defer" type="application/javascript" src="https://github.githubassets.com/assets/vendors-node_modules_oddbird_popover-polyfill_dist_popover-fn_js-55fea94174bf.js"></script> <script crossorigin="anonymous" defer="defer" type="application/javascript" src="https://github.githubassets.com/assets/notifications-subscriptions-menu-57956eade845.js"></script> <link crossorigin="anonymous" media="all" rel="stylesheet" href="https://github.githubassets.com/assets/primer-react.8157a56b30ae88a1b356.module.css" /> <link crossorigin="anonymous" media="all" rel="stylesheet" href="https://github.githubassets.com/assets/notifications-subscriptions-menu.1bcff9205c241e99cff2.module.css" /> <link crossorigin="anonymous" media="all" rel="stylesheet" href="https://github.githubassets.com/assets/primer-react.8157a56b30ae88a1b356.module.css" /> <link crossorigin="anonymous" media="all" rel="stylesheet" href="https://github.githubassets.com/assets/notifications-subscriptions-menu.1bcff9205c241e99cff2.module.css" /> <title>GitHub - yt-dlp/yt-dlp: A feature-rich command-line audio/video downloader</title> <meta name="route-pattern" content="/:user_id/:repository" data-turbo-transient> <meta name="route-controller" content="files" data-turbo-transient> <meta name="route-action" content="disambiguate" data-turbo-transient> <meta name="current-catalog-service-hash" content="f3abb0cc802f3d7b95fc8762b94bdcb13bf39634c40c357301c4aa1d67a256fb"> <meta name="request-id" content="9EA4:1524EC:628A11:712731:67EC27DD" data-pjax-transient="true"/><meta name="html-safe-nonce" content="147d95607c8c533b2edb223e1d41172ba41f500c1568230651048a7f14182450" data-pjax-transient="true"/><meta name="visitor-payload" content="eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RUE0OjE1MjRFQzo2MjhBMTE6NzEyNzMxOjY3RUMyN0REIiwidmlzaXRvcl9pZCI6IjMwNjY1Mjg5MTIxNzk0NzIzNDkiLCJyZWdpb25fZWRnZSI6InNvdXRoZWFzdGFzaWEiLCJyZWdpb25fcmVuZGVyIjoic291dGhlYXN0YXNpYSJ9" data-pjax-transient="true"/><meta name="visitor-hmac" content="fe95ca5bbbe9f124c66a74bcee44c57d5ac39d0233a4dd22abeee704c2753551" data-pjax-transient="true"/> <meta name="hovercard-subject-tag" content="repository:307260205" data-turbo-transient> <meta name="github-keyboard-shortcuts" content="repository,copilot" data-turbo-transient="true" /> <meta name="selected-link" value="repo_source" data-turbo-transient> <link rel="assets" href="https://github.githubassets.com/"> <meta name="google-site-verification" content="Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I"> <meta name="octolytics-url" content="https://collector.github.com/github/collect" /> <meta name="analytics-location" content="/<user-name>/<repo-name>" data-turbo-transient="true" /> <meta name="user-login" content=""> <meta name="viewport" content="width=device-width"> <meta name="description" content="A feature-rich command-line audio/video downloader - yt-dlp/yt-dlp"> <link rel="search" type="application/opensearchdescription+xml" href="/opensearch.xml" title="GitHub"> <link rel="fluid-icon" href="https://github.com/fluidicon.png" title="GitHub"> <meta property="fb:app_id" content="1401488693436528"> <meta name="apple-itunes-app" content="app-id=1477376905, app-argument=https://github.com/yt-dlp/yt-dlp" /> <meta name="twitter:image" content="https://repository-images.githubusercontent.com/307260205/b6a8d716-9c7b-40ec-bc44-6422d8b741a0" /><meta name="twitter:site" content="@github" /><meta name="twitter:card" content="summary_large_image" /><meta name="twitter:title" content="GitHub - yt-dlp/yt-dlp: A feature-rich command-line audio/video downloader" /><meta name="twitter:description" content="A feature-rich command-line audio/video downloader - yt-dlp/yt-dlp" /> <meta property="og:image" content="https://repository-images.githubusercontent.com/307260205/b6a8d716-9c7b-40ec-bc44-6422d8b741a0" /><meta property="og:image:alt" content="A feature-rich command-line audio/video downloader - yt-dlp/yt-dlp" /><meta property="og:site_name" content="GitHub" /><meta property="og:type" content="object" /><meta property="og:title" content="GitHub - yt-dlp/yt-dlp: A feature-rich command-line audio/video downloader" /><meta property="og:url" content="https://github.com/yt-dlp/yt-dlp" /><meta property="og:description" content="A feature-rich command-line audio/video downloader - yt-dlp/yt-dlp" /> <meta name="hostname" content="github.com"> <meta name="expected-hostname" content="github.com"> <meta http-equiv="x-pjax-version" content="8df61759de9ba96dfea2287f8fff4a110fc4889da9eb318cecc7e5ca5c18f01d" data-turbo-track="reload"> <meta http-equiv="x-pjax-csp-version" content="e26f9f0ba624ee85cc7ac057d8faa8618a4f25a85eab052c33d018ac0f6b1a46" data-turbo-track="reload"> <meta http-equiv="x-pjax-css-version" content="159e03504eed5183f9787c72780a7d8c1460af30746ab09d728b048c41719efa" data-turbo-track="reload"> <meta http-equiv="x-pjax-js-version" content="2941ea429632ba076ca10274ce233133403258acd120234e5ca3d83e98174b3d" data-turbo-track="reload"> <meta name="turbo-cache-control" content="no-preview" data-turbo-transient=""> <meta data-hydrostats="publish"> <meta name="go-import" content="github.com/yt-dlp/yt-dlp git https://github.com/yt-dlp/yt-dlp.git"> <meta name="octolytics-dimension-user_id" content="79589310" /><meta name="octolytics-dimension-user_login" content="yt-dlp" /><meta name="octolytics-dimension-repository_id" content="307260205" /><meta name="octolytics-dimension-repository_nwo" content="yt-dlp/yt-dlp" /><meta name="octolytics-dimension-repository_public" content="true" /><meta name="octolytics-dimension-repository_is_fork" content="false" /><meta name="octolytics-dimension-repository_network_root_id" content="307260205" /><meta name="octolytics-dimension-repository_network_root_nwo" content="yt-dlp/yt-dlp" /> <link rel="canonical" href="https://github.com/yt-dlp/yt-dlp" data-turbo-transient> <meta name="turbo-body-classes" content="logged-out env-production page-responsive"> <meta name="browser-stats-url" content="https://api.github.com/_private/browser/stats"> <meta name="browser-errors-url" content="https://api.github.com/_private/browser/errors"> <meta name="release" content="76804c7e0a175d26ec43c35cd753c9c903a20f71"> <link rel="mask-icon" href="https://github.githubassets.com/assets/pinned-octocat-093da3e6fa40.svg" color="#000000"> <link rel="alternate icon" class="js-site-favicon" type="image/png" href="https://github.githubassets.com/favicons/favicon.png"> <link rel="icon" class="js-site-favicon" type="image/svg+xml" href="https://github.githubassets.com/favicons/favicon.svg" data-base-href="https://github.githubassets.com/favicons/favicon"> <meta name="theme-color" content="#1e2327"> <meta name="color-scheme" content="light dark" /> <link rel="manifest" href="/manifest.json" crossOrigin="use-credentials"> </head> <body class="logged-out env-production page-responsive" style="word-wrap: break-word;"> <div data-turbo-body class="logged-out env-production page-responsive" style="word-wrap: break-word;"> <div class="position-relative header-wrapper js-header-wrapper "> <a href="#start-of-content" data-skip-target-assigned="false" class="px-2 py-4 color-bg-accent-emphasis color-fg-on-emphasis show-on-focus js-skip-to-content">Skip to content</a> <span data-view-component="true" class="progress-pjax-loader Progress position-fixed width-full"> <span style="width: 0%;" data-view-component="true" class="Progress-item progress-pjax-loader-bar left-0 top-0 color-bg-accent-emphasis"></span> </span> <script crossorigin="anonymous" defer="defer" type="application/javascript" src="https://github.githubassets.com/assets/ui_packages_ui-commands_ui-commands_ts-e2a7ccb6ae86.js"></script> <script crossorigin="anonymous" defer="defer" type="application/javascript" src="https://github.githubassets.com/assets/keyboard-shortcuts-dialog-79d6a754ebf9.js"></script> <link crossorigin="anonymous" media="all" rel="stylesheet" href="https://github.githubassets.com/assets/primer-react.8157a56b30ae88a1b356.module.css" /> <react-partial partial-name="keyboard-shortcuts-dialog" data-ssr="false" data-attempted-ssr="false" > <script type="application/json" data-target="react-partial.embeddedData">{"props":{"docsUrl":"https://docs.github.com/get-started/accessibility/keyboard-shortcuts"}}</script> <div data-target="react-partial.reactRoot"></div> </react-partial> <script crossorigin="anonymous" defer="defer" type="application/javascript" src="https://github.githubassets.com/assets/vendors-node_modules_github_remote-form_dist_index_js-node_modules_delegated-events_dist_inde-94fd67-4898d1bf4b51.js"></script> <script crossorigin="anonymous" defer="defer" type="application/javascript" src="https://github.githubassets.com/assets/sessions-730dca81d0a2.js"></script> <header class="HeaderMktg header-logged-out js-details-container js-header Details f4 py-3" role="banner" data-is-top="true" data-color-mode=light data-light-theme=light data-dark-theme=dark> <h2 class="sr-only">Navigation Menu</h2> <button type="button" class="HeaderMktg-backdrop d-lg-none border-0 position-fixed top-0 left-0 width-full height-full js-details-target" aria-label="Toggle navigation"> <span class="d-none">Toggle navigation</span> </button> <div class="d-flex flex-column flex-lg-row flex-items-center px-3 px-md-4 px-lg-5 height-full position-relative z-1"> <div class="d-flex flex-justify-between flex-items-center width-full width-lg-auto"> <div class="flex-1"> <button aria-label="Toggle navigation" aria-expanded="false" type="button" data-view-component="true" class="js-details-target js-nav-padding-recalculate js-header-menu-toggle Button--link Button--medium Button d-lg-none color-fg-inherit p-1"> <span class="Button-content"> <span class="Button-label"><div class="HeaderMenu-toggle-bar rounded my-1"></div> <div class="HeaderMenu-toggle-bar rounded my-1"></div> <div class="HeaderMenu-toggle-bar rounded my-1"></div></span> </span> </button> </div> <a class="mr-lg-3 color-fg-inherit flex-order-2 js-prevent-focus-on-mobile-nav" href="/" aria-label="Homepage" data-analytics-event="{"category":"Marketing nav","action":"click to go to homepage","label":"ref_page:Marketing;ref_cta:Logomark;ref_loc:Header"}"> <svg height="32" aria-hidden="true" viewBox="0 0 24 24" version="1.1" width="32" data-view-component="true" class="octicon octicon-mark-github"> <path d="M12 1C5.9225 1 1 5.9225 1 12C1 16.8675 4.14875 20.9787 8.52125 22.4362C9.07125 22.5325 9.2775 22.2025 9.2775 21.9137C9.2775 21.6525 9.26375 20.7862 9.26375 19.865C6.5 20.3737 5.785 19.1912 5.565 18.5725C5.44125 18.2562 4.905 17.28 4.4375 17.0187C4.0525 16.8125 3.5025 16.3037 4.42375 16.29C5.29 16.2762 5.90875 17.0875 6.115 17.4175C7.105 19.0812 8.68625 18.6137 9.31875 18.325C9.415 17.61 9.70375 17.1287 10.02 16.8537C7.5725 16.5787 5.015 15.63 5.015 11.4225C5.015 10.2262 5.44125 9.23625 6.1425 8.46625C6.0325 8.19125 5.6475 7.06375 6.2525 5.55125C6.2525 5.55125 7.17375 5.2625 9.2775 6.67875C10.1575 6.43125 11.0925 6.3075 12.0275 6.3075C12.9625 6.3075 13.8975 6.43125 14.7775 6.67875C16.8813 5.24875 17.8025 5.55125 17.8025 5.55125C18.4075 7.06375 18.0225 8.19125 17.9125 8.46625C18.6138 9.23625 19.04 10.2125 19.04 11.4225C19.04 15.6437 16.4688 16.5787 14.0213 16.8537C14.42 17.1975 14.7638 17.8575 14.7638 18.8887C14.7638 20.36 14.75 21.5425 14.75 21.9137C14.75 22.2025 14.9563 22.5462 15.5063 22.4362C19.8513 20.9787 23 16.8537 23 12C23 5.9225 18.0775 1 12 1Z"></path> </svg> </a> <div class="flex-1 flex-order-2 text-right"> <a href="/login?return_to=https%3A%2F%2Fgithub.com%2Fyt-dlp%2Fyt-dlp" class="HeaderMenu-link HeaderMenu-button d-inline-flex d-lg-none flex-order-1 f5 no-underline border color-border-default rounded-2 px-2 py-1 color-fg-inherit js-prevent-focus-on-mobile-nav" data-hydro-click="{"event_type":"authentication.click","payload":{"location_in_page":"site header menu","repository_id":null,"auth_type":"SIGN_UP","originating_url":"https://github.com/yt-dlp/yt-dlp","user_id":null}}" data-hydro-click-hmac="1408b1432c4f8239b765be1f4c54a40b046dd17cd32d4e0011766c82daf1d5b6" data-analytics-event="{"category":"Marketing nav","action":"click to Sign in","label":"ref_page:Marketing;ref_cta:Sign in;ref_loc:Header"}" > Sign in </a> </div> </div> <div class="HeaderMenu js-header-menu height-fit position-lg-relative d-lg-flex flex-column flex-auto top-0"> <div class="HeaderMenu-wrapper d-flex flex-column flex-self-start flex-lg-row flex-auto rounded rounded-lg-0"> <nav class="HeaderMenu-nav" aria-label="Global"> <ul class="d-lg-flex list-style-none"> <li class="HeaderMenu-item position-relative flex-wrap flex-justify-between flex-items-center d-block d-lg-flex flex-lg-nowrap flex-lg-items-center js-details-container js-header-menu-item"> <button type="button" class="HeaderMenu-link border-0 width-full width-lg-auto px-0 px-lg-2 py-lg-2 no-wrap d-flex flex-items-center flex-justify-between js-details-target" aria-expanded="false"> Product <svg opacity="0.5" aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-chevron-down HeaderMenu-icon ml-1"> <path d="M12.78 5.22a.749.749 0 0 1 0 1.06l-4.25 4.25a.749.749 0 0 1-1.06 0L3.22 6.28a.749.749 0 1 1 1.06-1.06L8 8.939l3.72-3.719a.749.749 0 0 1 1.06 0Z"></path> </svg> </button> <div class="HeaderMenu-dropdown dropdown-menu rounded m-0 p-0 pt-2 pt-lg-4 position-relative position-lg-absolute left-0 left-lg-n3 pb-2 pb-lg-4 d-lg-flex flex-wrap dropdown-menu-wide"> <div class="HeaderMenu-column px-lg-4 border-lg-right mb-4 mb-lg-0 pr-lg-7"> <div class="border-bottom pb-3 pb-lg-0 border-lg-bottom-0"> <ul class="list-style-none f5" > <li> <a class="HeaderMenu-dropdown-link d-block no-underline position-relative py-2 Link--secondary d-flex flex-items-center Link--has-description pb-lg-3" data-analytics-event="{"location":"navbar","action":"github_copilot","context":"product","tag":"link","label":"github_copilot_link_product_navbar"}" href="https://github.com/features/copilot"> <svg aria-hidden="true" height="24" viewBox="0 0 24 24" version="1.1" width="24" data-view-component="true" class="octicon octicon-copilot color-fg-subtle mr-3"> <path d="M23.922 16.992c-.861 1.495-5.859 5.023-11.922 5.023-6.063 0-11.061-3.528-11.922-5.023A.641.641 0 0 1 0 16.736v-2.869a.841.841 0 0 1 .053-.22c.372-.935 1.347-2.292 2.605-2.656.167-.429.414-1.055.644-1.517a10.195 10.195 0 0 1-.052-1.086c0-1.331.282-2.499 1.132-3.368.397-.406.89-.717 1.474-.952 1.399-1.136 3.392-2.093 6.122-2.093 2.731 0 4.767.957 6.166 2.093.584.235 1.077.546 1.474.952.85.869 1.132 2.037 1.132 3.368 0 .368-.014.733-.052 1.086.23.462.477 1.088.644 1.517 1.258.364 2.233 1.721 2.605 2.656a.832.832 0 0 1 .053.22v2.869a.641.641 0 0 1-.078.256ZM12.172 11h-.344a4.323 4.323 0 0 1-.355.508C10.703 12.455 9.555 13 7.965 13c-1.725 0-2.989-.359-3.782-1.259a2.005 2.005 0 0 1-.085-.104L4 11.741v6.585c1.435.779 4.514 2.179 8 2.179 3.486 0 6.565-1.4 8-2.179v-6.585l-.098-.104s-.033.045-.085.104c-.793.9-2.057 1.259-3.782 1.259-1.59 0-2.738-.545-3.508-1.492a4.323 4.323 0 0 1-.355-.508h-.016.016Zm.641-2.935c.136 1.057.403 1.913.878 2.497.442.544 1.134.938 2.344.938 1.573 0 2.292-.337 2.657-.751.384-.435.558-1.15.558-2.361 0-1.14-.243-1.847-.705-2.319-.477-.488-1.319-.862-2.824-1.025-1.487-.161-2.192.138-2.533.529-.269.307-.437.808-.438 1.578v.021c0 .265.021.562.063.893Zm-1.626 0c.042-.331.063-.628.063-.894v-.02c-.001-.77-.169-1.271-.438-1.578-.341-.391-1.046-.69-2.533-.529-1.505.163-2.347.537-2.824 1.025-.462.472-.705 1.179-.705 2.319 0 1.211.175 1.926.558 2.361.365.414 1.084.751 2.657.751 1.21 0 1.902-.394 2.344-.938.475-.584.742-1.44.878-2.497Z"></path><path d="M14.5 14.25a1 1 0 0 1 1 1v2a1 1 0 0 1-2 0v-2a1 1 0 0 1 1-1Zm-5 0a1 1 0 0 1 1 1v2a1 1 0 0 1-2 0v-2a1 1 0 0 1 1-1Z"></path> </svg> <div> <div class="color-fg-default h4">GitHub Copilot</div> Write better code with AI </div> </a></li> <li> <a class="HeaderMenu-dropdown-link d-block no-underline position-relative py-2 Link--secondary d-flex flex-items-center Link--has-description pb-lg-3" data-analytics-event="{"location":"navbar","action":"github_advanced_security","context":"product","tag":"link","label":"github_advanced_security_link_product_navbar"}" href="https://github.com/security/advanced-security"> <svg aria-hidden="true" height="24" viewBox="0 0 24 24" version="1.1" width="24" data-view-component="true" class="octicon octicon-shield-check color-fg-subtle mr-3"> <path d="M16.53 9.78a.75.75 0 0 0-1.06-1.06L11 13.19l-1.97-1.97a.75.75 0 0 0-1.06 1.06l2.5 2.5a.75.75 0 0 0 1.06 0l5-5Z"></path><path d="m12.54.637 8.25 2.675A1.75 1.75 0 0 1 22 4.976V10c0 6.19-3.771 10.704-9.401 12.83a1.704 1.704 0 0 1-1.198 0C5.77 20.705 2 16.19 2 10V4.976c0-.758.489-1.43 1.21-1.664L11.46.637a1.748 1.748 0 0 1 1.08 0Zm-.617 1.426-8.25 2.676a.249.249 0 0 0-.173.237V10c0 5.46 3.28 9.483 8.43 11.426a.199.199 0 0 0 .14 0C17.22 19.483 20.5 15.461 20.5 10V4.976a.25.25 0 0 0-.173-.237l-8.25-2.676a.253.253 0 0 0-.154 0Z"></path> </svg> <div> <div class="color-fg-default h4">GitHub Advanced Security</div> Find and fix vulnerabilities </div> </a></li> <li> <a class="HeaderMenu-dropdown-link d-block no-underline position-relative py-2 Link--secondary d-flex flex-items-center Link--has-description pb-lg-3" data-analytics-event="{"location":"navbar","action":"actions","context":"product","tag":"link","label":"actions_link_product_navbar"}" href="https://github.com/features/actions"> <svg aria-hidden="true" height="24" viewBox="0 0 24 24" version="1.1" width="24" data-view-component="true" class="octicon octicon-workflow color-fg-subtle mr-3"> <path d="M1 3a2 2 0 0 1 2-2h6.5a2 2 0 0 1 2 2v6.5a2 2 0 0 1-2 2H7v4.063C7 16.355 7.644 17 8.438 17H12.5v-2.5a2 2 0 0 1 2-2H21a2 2 0 0 1 2 2V21a2 2 0 0 1-2 2h-6.5a2 2 0 0 1-2-2v-2.5H8.437A2.939 2.939 0 0 1 5.5 15.562V11.5H3a2 2 0 0 1-2-2Zm2-.5a.5.5 0 0 0-.5.5v6.5a.5.5 0 0 0 .5.5h6.5a.5.5 0 0 0 .5-.5V3a.5.5 0 0 0-.5-.5ZM14.5 14a.5.5 0 0 0-.5.5V21a.5.5 0 0 0 .5.5H21a.5.5 0 0 0 .5-.5v-6.5a.5.5 0 0 0-.5-.5Z"></path> </svg> <div> <div class="color-fg-default h4">Actions</div> Automate any workflow </div> </a></li> <li> <a class="HeaderMenu-dropdown-link d-block no-underline position-relative py-2 Link--secondary d-flex flex-items-center Link--has-description pb-lg-3" data-analytics-event="{"location":"navbar","action":"codespaces","context":"product","tag":"link","label":"codespaces_link_product_navbar"}" href="https://github.com/features/codespaces"> <svg aria-hidden="true" height="24" viewBox="0 0 24 24" version="1.1" width="24" data-view-component="true" class="octicon octicon-codespaces color-fg-subtle mr-3"> <path d="M3.5 3.75C3.5 2.784 4.284 2 5.25 2h13.5c.966 0 1.75.784 1.75 1.75v7.5A1.75 1.75 0 0 1 18.75 13H5.25a1.75 1.75 0 0 1-1.75-1.75Zm-2 12c0-.966.784-1.75 1.75-1.75h17.5c.966 0 1.75.784 1.75 1.75v4a1.75 1.75 0 0 1-1.75 1.75H3.25a1.75 1.75 0 0 1-1.75-1.75ZM5.25 3.5a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h13.5a.25.25 0 0 0 .25-.25v-7.5a.25.25 0 0 0-.25-.25Zm-2 12a.25.25 0 0 0-.25.25v4c0 .138.112.25.25.25h17.5a.25.25 0 0 0 .25-.25v-4a.25.25 0 0 0-.25-.25Z"></path><path d="M10 17.75a.75.75 0 0 1 .75-.75h6.5a.75.75 0 0 1 0 1.5h-6.5a.75.75 0 0 1-.75-.75Zm-4 0a.75.75 0 0 1 .75-.75h.5a.75.75 0 0 1 0 1.5h-.5a.75.75 0 0 1-.75-.75Z"></path> </svg> <div> <div class="color-fg-default h4">Codespaces</div> Instant dev environments </div> </a></li> <li> <a class="HeaderMenu-dropdown-link d-block no-underline position-relative py-2 Link--secondary d-flex flex-items-center Link--has-description pb-lg-3" data-analytics-event="{"location":"navbar","action":"issues","context":"product","tag":"link","label":"issues_link_product_navbar"}" href="https://github.com/features/issues"> <svg aria-hidden="true" height="24" viewBox="0 0 24 24" version="1.1" width="24" data-view-component="true" class="octicon octicon-issue-opened color-fg-subtle mr-3"> <path d="M12 1c6.075 0 11 4.925 11 11s-4.925 11-11 11S1 18.075 1 12 5.925 1 12 1ZM2.5 12a9.5 9.5 0 0 0 9.5 9.5 9.5 9.5 0 0 0 9.5-9.5A9.5 9.5 0 0 0 12 2.5 9.5 9.5 0 0 0 2.5 12Zm9.5 2a2 2 0 1 1-.001-3.999A2 2 0 0 1 12 14Z"></path> </svg> <div> <div class="color-fg-default h4">Issues</div> Plan and track work </div> </a></li> <li> <a class="HeaderMenu-dropdown-link d-block no-underline position-relative py-2 Link--secondary d-flex flex-items-center Link--has-description pb-lg-3" data-analytics-event="{"location":"navbar","action":"code_review","context":"product","tag":"link","label":"code_review_link_product_navbar"}" href="https://github.com/features/code-review"> <svg aria-hidden="true" height="24" viewBox="0 0 24 24" version="1.1" width="24" data-view-component="true" class="octicon octicon-code-review color-fg-subtle mr-3"> <path d="M10.3 6.74a.75.75 0 0 1-.04 1.06l-2.908 2.7 2.908 2.7a.75.75 0 1 1-1.02 1.1l-3.5-3.25a.75.75 0 0 1 0-1.1l3.5-3.25a.75.75 0 0 1 1.06.04Zm3.44 1.06a.75.75 0 1 1 1.02-1.1l3.5 3.25a.75.75 0 0 1 0 1.1l-3.5 3.25a.75.75 0 1 1-1.02-1.1l2.908-2.7-2.908-2.7Z"></path><path d="M1.5 4.25c0-.966.784-1.75 1.75-1.75h17.5c.966 0 1.75.784 1.75 1.75v12.5a1.75 1.75 0 0 1-1.75 1.75h-9.69l-3.573 3.573A1.458 1.458 0 0 1 5 21.043V18.5H3.25a1.75 1.75 0 0 1-1.75-1.75ZM3.25 4a.25.25 0 0 0-.25.25v12.5c0 .138.112.25.25.25h2.5a.75.75 0 0 1 .75.75v3.19l3.72-3.72a.749.749 0 0 1 .53-.22h10a.25.25 0 0 0 .25-.25V4.25a.25.25 0 0 0-.25-.25Z"></path> </svg> <div> <div class="color-fg-default h4">Code Review</div> Manage code changes </div> </a></li> <li> <a class="HeaderMenu-dropdown-link d-block no-underline position-relative py-2 Link--secondary d-flex flex-items-center Link--has-description pb-lg-3" data-analytics-event="{"location":"navbar","action":"discussions","context":"product","tag":"link","label":"discussions_link_product_navbar"}" href="https://github.com/features/discussions"> <svg aria-hidden="true" height="24" viewBox="0 0 24 24" version="1.1" width="24" data-view-component="true" class="octicon octicon-comment-discussion color-fg-subtle mr-3"> <path d="M1.75 1h12.5c.966 0 1.75.784 1.75 1.75v9.5A1.75 1.75 0 0 1 14.25 14H8.061l-2.574 2.573A1.458 1.458 0 0 1 3 15.543V14H1.75A1.75 1.75 0 0 1 0 12.25v-9.5C0 1.784.784 1 1.75 1ZM1.5 2.75v9.5c0 .138.112.25.25.25h2a.75.75 0 0 1 .75.75v2.19l2.72-2.72a.749.749 0 0 1 .53-.22h6.5a.25.25 0 0 0 .25-.25v-9.5a.25.25 0 0 0-.25-.25H1.75a.25.25 0 0 0-.25.25Z"></path><path d="M22.5 8.75a.25.25 0 0 0-.25-.25h-3.5a.75.75 0 0 1 0-1.5h3.5c.966 0 1.75.784 1.75 1.75v9.5A1.75 1.75 0 0 1 22.25 20H21v1.543a1.457 1.457 0 0 1-2.487 1.03L15.939 20H10.75A1.75 1.75 0 0 1 9 18.25v-1.465a.75.75 0 0 1 1.5 0v1.465c0 .138.112.25.25.25h5.5a.75.75 0 0 1 .53.22l2.72 2.72v-2.19a.75.75 0 0 1 .75-.75h2a.25.25 0 0 0 .25-.25v-9.5Z"></path> </svg> <div> <div class="color-fg-default h4">Discussions</div> Collaborate outside of code </div> </a></li> <li> <a class="HeaderMenu-dropdown-link d-block no-underline position-relative py-2 Link--secondary d-flex flex-items-center Link--has-description" data-analytics-event="{"location":"navbar","action":"code_search","context":"product","tag":"link","label":"code_search_link_product_navbar"}" href="https://github.com/features/code-search"> <svg aria-hidden="true" height="24" viewBox="0 0 24 24" version="1.1" width="24" data-view-component="true" class="octicon octicon-code-square color-fg-subtle mr-3"> <path d="M10.3 8.24a.75.75 0 0 1-.04 1.06L7.352 12l2.908 2.7a.75.75 0 1 1-1.02 1.1l-3.5-3.25a.75.75 0 0 1 0-1.1l3.5-3.25a.75.75 0 0 1 1.06.04Zm3.44 1.06a.75.75 0 1 1 1.02-1.1l3.5 3.25a.75.75 0 0 1 0 1.1l-3.5 3.25a.75.75 0 1 1-1.02-1.1l2.908-2.7-2.908-2.7Z"></path><path d="M2 3.75C2 2.784 2.784 2 3.75 2h16.5c.966 0 1.75.784 1.75 1.75v16.5A1.75 1.75 0 0 1 20.25 22H3.75A1.75 1.75 0 0 1 2 20.25Zm1.75-.25a.25.25 0 0 0-.25.25v16.5c0 .138.112.25.25.25h16.5a.25.25 0 0 0 .25-.25V3.75a.25.25 0 0 0-.25-.25Z"></path> </svg> <div> <div class="color-fg-default h4">Code Search</div> Find more, search less </div> </a></li> </ul> </div> </div> <div class="HeaderMenu-column px-lg-4"> <div class="border-bottom pb-3 pb-lg-0 border-lg-bottom-0 border-bottom-0"> <span class="d-block h4 color-fg-default my-1" id="product-explore-heading">Explore</span> <ul class="list-style-none f5" aria-labelledby="product-explore-heading"> <li> <a class="HeaderMenu-dropdown-link d-block no-underline position-relative py-2 Link--secondary" data-analytics-event="{"location":"navbar","action":"all_features","context":"product","tag":"link","label":"all_features_link_product_navbar"}" href="https://github.com/features"> All features </a></li> <li> <a class="HeaderMenu-dropdown-link d-block no-underline position-relative py-2 Link--secondary Link--external" target="_blank" data-analytics-event="{"location":"navbar","action":"documentation","context":"product","tag":"link","label":"documentation_link_product_navbar"}" href="https://docs.github.com"> Documentation <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-link-external HeaderMenu-external-icon color-fg-subtle"> <path d="M3.75 2h3.5a.75.75 0 0 1 0 1.5h-3.5a.25.25 0 0 0-.25.25v8.5c0 .138.112.25.25.25h8.5a.25.25 0 0 0 .25-.25v-3.5a.75.75 0 0 1 1.5 0v3.5A1.75 1.75 0 0 1 12.25 14h-8.5A1.75 1.75 0 0 1 2 12.25v-8.5C2 2.784 2.784 2 3.75 2Zm6.854-1h4.146a.25.25 0 0 1 .25.25v4.146a.25.25 0 0 1-.427.177L13.03 4.03 9.28 7.78a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042l3.75-3.75-1.543-1.543A.25.25 0 0 1 10.604 1Z"></path> </svg> </a></li> <li> <a class="HeaderMenu-dropdown-link d-block no-underline position-relative py-2 Link--secondary Link--external" target="_blank" data-analytics-event="{"location":"navbar","action":"github_skills","context":"product","tag":"link","label":"github_skills_link_product_navbar"}" href="https://skills.github.com"> GitHub Skills <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-link-external HeaderMenu-external-icon color-fg-subtle"> <path d="M3.75 2h3.5a.75.75 0 0 1 0 1.5h-3.5a.25.25 0 0 0-.25.25v8.5c0 .138.112.25.25.25h8.5a.25.25 0 0 0 .25-.25v-3.5a.75.75 0 0 1 1.5 0v3.5A1.75 1.75 0 0 1 12.25 14h-8.5A1.75 1.75 0 0 1 2 12.25v-8.5C2 2.784 2.784 2 3.75 2Zm6.854-1h4.146a.25.25 0 0 1 .25.25v4.146a.25.25 0 0 1-.427.177L13.03 4.03 9.28 7.78a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042l3.75-3.75-1.543-1.543A.25.25 0 0 1 10.604 1Z"></path> </svg> </a></li> <li> <a class="HeaderMenu-dropdown-link d-block no-underline position-relative py-2 Link--secondary Link--external" target="_blank" data-analytics-event="{"location":"navbar","action":"blog","context":"product","tag":"link","label":"blog_link_product_navbar"}" href="https://github.blog"> Blog <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-link-external HeaderMenu-external-icon color-fg-subtle"> <path d="M3.75 2h3.5a.75.75 0 0 1 0 1.5h-3.5a.25.25 0 0 0-.25.25v8.5c0 .138.112.25.25.25h8.5a.25.25 0 0 0 .25-.25v-3.5a.75.75 0 0 1 1.5 0v3.5A1.75 1.75 0 0 1 12.25 14h-8.5A1.75 1.75 0 0 1 2 12.25v-8.5C2 2.784 2.784 2 3.75 2Zm6.854-1h4.146a.25.25 0 0 1 .25.25v4.146a.25.25 0 0 1-.427.177L13.03 4.03 9.28 7.78a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042l3.75-3.75-1.543-1.543A.25.25 0 0 1 10.604 1Z"></path> </svg> </a></li> </ul> </div> </div> </div> </li> <li class="HeaderMenu-item position-relative flex-wrap flex-justify-between flex-items-center d-block d-lg-flex flex-lg-nowrap flex-lg-items-center js-details-container js-header-menu-item"> <button type="button" class="HeaderMenu-link border-0 width-full width-lg-auto px-0 px-lg-2 py-lg-2 no-wrap d-flex flex-items-center flex-justify-between js-details-target" aria-expanded="false"> Solutions <svg opacity="0.5" aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-chevron-down HeaderMenu-icon ml-1"> <path d="M12.78 5.22a.749.749 0 0 1 0 1.06l-4.25 4.25a.749.749 0 0 1-1.06 0L3.22 6.28a.749.749 0 1 1 1.06-1.06L8 8.939l3.72-3.719a.749.749 0 0 1 1.06 0Z"></path> </svg> </button> <div class="HeaderMenu-dropdown dropdown-menu rounded m-0 p-0 pt-2 pt-lg-4 position-relative position-lg-absolute left-0 left-lg-n3 d-lg-flex flex-wrap dropdown-menu-wide"> <div class="HeaderMenu-column px-lg-4 border-lg-right mb-4 mb-lg-0 pr-lg-7"> <div class="border-bottom pb-3 pb-lg-0 border-lg-bottom-0 pb-lg-3 mb-3 mb-lg-0"> <span class="d-block h4 color-fg-default my-1" id="solutions-by-company-size-heading">By company size</span> <ul class="list-style-none f5" aria-labelledby="solutions-by-company-size-heading"> <li> <a class="HeaderMenu-dropdown-link d-block no-underline position-relative py-2 Link--secondary" data-analytics-event="{"location":"navbar","action":"enterprises","context":"solutions","tag":"link","label":"enterprises_link_solutions_navbar"}" href="https://github.com/enterprise"> Enterprises </a></li> <li> <a class="HeaderMenu-dropdown-link d-block no-underline position-relative py-2 Link--secondary" data-analytics-event="{"location":"navbar","action":"small_and_medium_teams","context":"solutions","tag":"link","label":"small_and_medium_teams_link_solutions_navbar"}" href="https://github.com/team"> Small and medium teams </a></li> <li> <a class="HeaderMenu-dropdown-link d-block no-underline position-relative py-2 Link--secondary" data-analytics-event="{"location":"navbar","action":"startups","context":"solutions","tag":"link","label":"startups_link_solutions_navbar"}" href="https://github.com/enterprise/startups"> Startups </a></li> <li> <a class="HeaderMenu-dropdown-link d-block no-underline position-relative py-2 Link--secondary" data-analytics-event="{"location":"navbar","action":"nonprofits","context":"solutions","tag":"link","label":"nonprofits_link_solutions_navbar"}" href="/solutions/industry/nonprofits"> Nonprofits </a></li> </ul> </div> <div class="border-bottom pb-3 pb-lg-0 border-lg-bottom-0"> <span class="d-block h4 color-fg-default my-1" id="solutions-by-use-case-heading">By use case</span> <ul class="list-style-none f5" aria-labelledby="solutions-by-use-case-heading"> <li> <a class="HeaderMenu-dropdown-link d-block no-underline position-relative py-2 Link--secondary" data-analytics-event="{"location":"navbar","action":"devsecops","context":"solutions","tag":"link","label":"devsecops_link_solutions_navbar"}" href="/solutions/use-case/devsecops"> DevSecOps </a></li> <li> <a class="HeaderMenu-dropdown-link d-block no-underline position-relative py-2 Link--secondary" data-analytics-event="{"location":"navbar","action":"devops","context":"solutions","tag":"link","label":"devops_link_solutions_navbar"}" href="/solutions/use-case/devops"> DevOps </a></li> <li> <a class="HeaderMenu-dropdown-link d-block no-underline position-relative py-2 Link--secondary" data-analytics-event="{"location":"navbar","action":"ci_cd","context":"solutions","tag":"link","label":"ci_cd_link_solutions_navbar"}" href="/solutions/use-case/ci-cd"> CI/CD </a></li> <li> <a class="HeaderMenu-dropdown-link d-block no-underline position-relative py-2 Link--secondary" data-analytics-event="{"location":"navbar","action":"view_all_use_cases","context":"solutions","tag":"link","label":"view_all_use_cases_link_solutions_navbar"}" href="/solutions/use-case"> View all use cases </a></li> </ul> </div> </div> <div class="HeaderMenu-column px-lg-4"> <div class="border-bottom pb-3 pb-lg-0 border-lg-bottom-0"> <span class="d-block h4 color-fg-default my-1" id="solutions-by-industry-heading">By industry</span> <ul class="list-style-none f5" aria-labelledby="solutions-by-industry-heading"> <li> <a class="HeaderMenu-dropdown-link d-block no-underline position-relative py-2 Link--secondary" data-analytics-event="{"location":"navbar","action":"healthcare","context":"solutions","tag":"link","label":"healthcare_link_solutions_navbar"}" href="/solutions/industry/healthcare"> Healthcare </a></li> <li> <a class="HeaderMenu-dropdown-link d-block no-underline position-relative py-2 Link--secondary" data-analytics-event="{"location":"navbar","action":"financial_services","context":"solutions","tag":"link","label":"financial_services_link_solutions_navbar"}" href="/solutions/industry/financial-services"> Financial services </a></li> <li> <a class="HeaderMenu-dropdown-link d-block no-underline position-relative py-2 Link--secondary" data-analytics-event="{"location":"navbar","action":"manufacturing","context":"solutions","tag":"link","label":"manufacturing_link_solutions_navbar"}" href="/solutions/industry/manufacturing"> Manufacturing </a></li> <li> <a class="HeaderMenu-dropdown-link d-block no-underline position-relative py-2 Link--secondary" data-analytics-event="{"location":"navbar","action":"government","context":"solutions","tag":"link","label":"government_link_solutions_navbar"}" href="/solutions/industry/government"> Government </a></li> <li> <a class="HeaderMenu-dropdown-link d-block no-underline position-relative py-2 Link--secondary" data-analytics-event="{"location":"navbar","action":"view_all_industries","context":"solutions","tag":"link","label":"view_all_industries_link_solutions_navbar"}" href="/solutions/industry"> View all industries </a></li> </ul> </div> </div> <div class="HeaderMenu-trailing-link rounded-bottom-2 flex-shrink-0 mt-lg-4 px-lg-4 py-4 py-lg-3 f5 text-semibold"> <a href="/solutions"> View all solutions <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-chevron-right HeaderMenu-trailing-link-icon"> <path d="M6.22 3.22a.75.75 0 0 1 1.06 0l4.25 4.25a.75.75 0 0 1 0 1.06l-4.25 4.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042L9.94 8 6.22 4.28a.75.75 0 0 1 0-1.06Z"></path> </svg> </a> </div> </div> </li> <li class="HeaderMenu-item position-relative flex-wrap flex-justify-between flex-items-center d-block d-lg-flex flex-lg-nowrap flex-lg-items-center js-details-container js-header-menu-item"> <button type="button" class="HeaderMenu-link border-0 width-full width-lg-auto px-0 px-lg-2 py-lg-2 no-wrap d-flex flex-items-center flex-justify-between js-details-target" aria-expanded="false"> Resources <svg opacity="0.5" aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-chevron-down HeaderMenu-icon ml-1"> <path d="M12.78 5.22a.749.749 0 0 1 0 1.06l-4.25 4.25a.749.749 0 0 1-1.06 0L3.22 6.28a.749.749 0 1 1 1.06-1.06L8 8.939l3.72-3.719a.749.749 0 0 1 1.06 0Z"></path> </svg> </button> <div class="HeaderMenu-dropdown dropdown-menu rounded m-0 p-0 pt-2 pt-lg-4 position-relative position-lg-absolute left-0 left-lg-n3 pb-2 pb-lg-4 d-lg-flex flex-wrap dropdown-menu-wide"> <div class="HeaderMenu-column px-lg-4 border-lg-right mb-4 mb-lg-0 pr-lg-7"> <div class="border-bottom pb-3 pb-lg-0 border-lg-bottom-0"> <span class="d-block h4 color-fg-default my-1" id="resources-topics-heading">Topics</span> <ul class="list-style-none f5" aria-labelledby="resources-topics-heading"> <li> <a class="HeaderMenu-dropdown-link d-block no-underline position-relative py-2 Link--secondary" data-analytics-event="{"location":"navbar","action":"ai","context":"resources","tag":"link","label":"ai_link_resources_navbar"}" href="/resources/articles/ai"> AI </a></li> <li> <a class="HeaderMenu-dropdown-link d-block no-underline position-relative py-2 Link--secondary" data-analytics-event="{"location":"navbar","action":"devops","context":"resources","tag":"link","label":"devops_link_resources_navbar"}" href="/resources/articles/devops"> DevOps </a></li> <li> <a class="HeaderMenu-dropdown-link d-block no-underline position-relative py-2 Link--secondary" data-analytics-event="{"location":"navbar","action":"security","context":"resources","tag":"link","label":"security_link_resources_navbar"}" href="/resources/articles/security"> Security </a></li> <li> <a class="HeaderMenu-dropdown-link d-block no-underline position-relative py-2 Link--secondary" data-analytics-event="{"location":"navbar","action":"software_development","context":"resources","tag":"link","label":"software_development_link_resources_navbar"}" href="/resources/articles/software-development"> Software Development </a></li> <li> <a class="HeaderMenu-dropdown-link d-block no-underline position-relative py-2 Link--secondary" data-analytics-event="{"location":"navbar","action":"view_all","context":"resources","tag":"link","label":"view_all_link_resources_navbar"}" href="/resources/articles"> View all </a></li> </ul> </div> </div> <div class="HeaderMenu-column px-lg-4"> <div class="border-bottom pb-3 pb-lg-0 border-lg-bottom-0 border-bottom-0"> <span class="d-block h4 color-fg-default my-1" id="resources-explore-heading">Explore</span> <ul class="list-style-none f5" aria-labelledby="resources-explore-heading"> <li> <a class="HeaderMenu-dropdown-link d-block no-underline position-relative py-2 Link--secondary Link--external" target="_blank" data-analytics-event="{"location":"navbar","action":"learning_pathways","context":"resources","tag":"link","label":"learning_pathways_link_resources_navbar"}" href="https://resources.github.com/learn/pathways"> Learning Pathways <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-link-external HeaderMenu-external-icon color-fg-subtle"> <path d="M3.75 2h3.5a.75.75 0 0 1 0 1.5h-3.5a.25.25 0 0 0-.25.25v8.5c0 .138.112.25.25.25h8.5a.25.25 0 0 0 .25-.25v-3.5a.75.75 0 0 1 1.5 0v3.5A1.75 1.75 0 0 1 12.25 14h-8.5A1.75 1.75 0 0 1 2 12.25v-8.5C2 2.784 2.784 2 3.75 2Zm6.854-1h4.146a.25.25 0 0 1 .25.25v4.146a.25.25 0 0 1-.427.177L13.03 4.03 9.28 7.78a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042l3.75-3.75-1.543-1.543A.25.25 0 0 1 10.604 1Z"></path> </svg> </a></li> <li> <a class="HeaderMenu-dropdown-link d-block no-underline position-relative py-2 Link--secondary Link--external" target="_blank" data-analytics-event="{"location":"navbar","action":"events_amp_webinars","context":"resources","tag":"link","label":"events_amp_webinars_link_resources_navbar"}" href="https://resources.github.com"> Events & Webinars <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-link-external HeaderMenu-external-icon color-fg-subtle"> <path d="M3.75 2h3.5a.75.75 0 0 1 0 1.5h-3.5a.25.25 0 0 0-.25.25v8.5c0 .138.112.25.25.25h8.5a.25.25 0 0 0 .25-.25v-3.5a.75.75 0 0 1 1.5 0v3.5A1.75 1.75 0 0 1 12.25 14h-8.5A1.75 1.75 0 0 1 2 12.25v-8.5C2 2.784 2.784 2 3.75 2Zm6.854-1h4.146a.25.25 0 0 1 .25.25v4.146a.25.25 0 0 1-.427.177L13.03 4.03 9.28 7.78a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042l3.75-3.75-1.543-1.543A.25.25 0 0 1 10.604 1Z"></path> </svg> </a></li> <li> <a class="HeaderMenu-dropdown-link d-block no-underline position-relative py-2 Link--secondary" data-analytics-event="{"location":"navbar","action":"ebooks_amp_whitepapers","context":"resources","tag":"link","label":"ebooks_amp_whitepapers_link_resources_navbar"}" href="https://github.com/resources/whitepapers"> Ebooks & Whitepapers </a></li> <li> <a class="HeaderMenu-dropdown-link d-block no-underline position-relative py-2 Link--secondary" data-analytics-event="{"location":"navbar","action":"customer_stories","context":"resources","tag":"link","label":"customer_stories_link_resources_navbar"}" href="https://github.com/customer-stories"> Customer Stories </a></li> <li> <a class="HeaderMenu-dropdown-link d-block no-underline position-relative py-2 Link--secondary Link--external" target="_blank" data-analytics-event="{"location":"navbar","action":"partners","context":"resources","tag":"link","label":"partners_link_resources_navbar"}" href="https://partner.github.com"> Partners <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-link-external HeaderMenu-external-icon color-fg-subtle"> <path d="M3.75 2h3.5a.75.75 0 0 1 0 1.5h-3.5a.25.25 0 0 0-.25.25v8.5c0 .138.112.25.25.25h8.5a.25.25 0 0 0 .25-.25v-3.5a.75.75 0 0 1 1.5 0v3.5A1.75 1.75 0 0 1 12.25 14h-8.5A1.75 1.75 0 0 1 2 12.25v-8.5C2 2.784 2.784 2 3.75 2Zm6.854-1h4.146a.25.25 0 0 1 .25.25v4.146a.25.25 0 0 1-.427.177L13.03 4.03 9.28 7.78a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042l3.75-3.75-1.543-1.543A.25.25 0 0 1 10.604 1Z"></path> </svg> </a></li> <li> <a class="HeaderMenu-dropdown-link d-block no-underline position-relative py-2 Link--secondary" data-analytics-event="{"location":"navbar","action":"executive_insights","context":"resources","tag":"link","label":"executive_insights_link_resources_navbar"}" href="https://github.com/solutions/executive-insights"> Executive Insights </a></li> </ul> </div> </div> </div> </li> <li class="HeaderMenu-item position-relative flex-wrap flex-justify-between flex-items-center d-block d-lg-flex flex-lg-nowrap flex-lg-items-center js-details-container js-header-menu-item"> <button type="button" class="HeaderMenu-link border-0 width-full width-lg-auto px-0 px-lg-2 py-lg-2 no-wrap d-flex flex-items-center flex-justify-between js-details-target" aria-expanded="false"> Open Source <svg opacity="0.5" aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-chevron-down HeaderMenu-icon ml-1"> <path d="M12.78 5.22a.749.749 0 0 1 0 1.06l-4.25 4.25a.749.749 0 0 1-1.06 0L3.22 6.28a.749.749 0 1 1 1.06-1.06L8 8.939l3.72-3.719a.749.749 0 0 1 1.06 0Z"></path> </svg> </button> <div class="HeaderMenu-dropdown dropdown-menu rounded m-0 p-0 pt-2 pt-lg-4 position-relative position-lg-absolute left-0 left-lg-n3 pb-2 pb-lg-4 px-lg-4"> <div class="HeaderMenu-column"> <div class="border-bottom pb-3 pb-lg-0 pb-lg-3 mb-3 mb-lg-0 mb-lg-3"> <ul class="list-style-none f5" > <li> <a class="HeaderMenu-dropdown-link d-block no-underline position-relative py-2 Link--secondary d-flex flex-items-center Link--has-description" data-analytics-event="{"location":"navbar","action":"github_sponsors","context":"open_source","tag":"link","label":"github_sponsors_link_open_source_navbar"}" href="/sponsors"> <div> <div class="color-fg-default h4">GitHub Sponsors</div> Fund open source developers </div> </a></li> </ul> </div> <div class="border-bottom pb-3 pb-lg-0 pb-lg-3 mb-3 mb-lg-0 mb-lg-3"> <ul class="list-style-none f5" > <li> <a class="HeaderMenu-dropdown-link d-block no-underline position-relative py-2 Link--secondary d-flex flex-items-center Link--has-description" data-analytics-event="{"location":"navbar","action":"the_readme_project","context":"open_source","tag":"link","label":"the_readme_project_link_open_source_navbar"}" href="https://github.com/readme"> <div> <div class="color-fg-default h4">The ReadME Project</div> GitHub community articles </div> </a></li> </ul> </div> <div class="border-bottom pb-3 pb-lg-0 border-bottom-0"> <span class="d-block h4 color-fg-default my-1" id="open-source-repositories-heading">Repositories</span> <ul class="list-style-none f5" aria-labelledby="open-source-repositories-heading"> <li> <a class="HeaderMenu-dropdown-link d-block no-underline position-relative py-2 Link--secondary" data-analytics-event="{"location":"navbar","action":"topics","context":"open_source","tag":"link","label":"topics_link_open_source_navbar"}" href="https://github.com/topics"> Topics </a></li> <li> <a class="HeaderMenu-dropdown-link d-block no-underline position-relative py-2 Link--secondary" data-analytics-event="{"location":"navbar","action":"trending","context":"open_source","tag":"link","label":"trending_link_open_source_navbar"}" href="https://github.com/trending"> Trending </a></li> <li> <a class="HeaderMenu-dropdown-link d-block no-underline position-relative py-2 Link--secondary" data-analytics-event="{"location":"navbar","action":"collections","context":"open_source","tag":"link","label":"collections_link_open_source_navbar"}" href="https://github.com/collections"> Collections </a></li> </ul> </div> </div> </div> </li> <li class="HeaderMenu-item position-relative flex-wrap flex-justify-between flex-items-center d-block d-lg-flex flex-lg-nowrap flex-lg-items-center js-details-container js-header-menu-item"> <button type="button" class="HeaderMenu-link border-0 width-full width-lg-auto px-0 px-lg-2 py-lg-2 no-wrap d-flex flex-items-center flex-justify-between js-details-target" aria-expanded="false"> Enterprise <svg opacity="0.5" aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-chevron-down HeaderMenu-icon ml-1"> <path d="M12.78 5.22a.749.749 0 0 1 0 1.06l-4.25 4.25a.749.749 0 0 1-1.06 0L3.22 6.28a.749.749 0 1 1 1.06-1.06L8 8.939l3.72-3.719a.749.749 0 0 1 1.06 0Z"></path> </svg> </button> <div class="HeaderMenu-dropdown dropdown-menu rounded m-0 p-0 pt-2 pt-lg-4 position-relative position-lg-absolute left-0 left-lg-n3 pb-2 pb-lg-4 px-lg-4"> <div class="HeaderMenu-column"> <div class="border-bottom pb-3 pb-lg-0 pb-lg-3 mb-3 mb-lg-0 mb-lg-3"> <ul class="list-style-none f5" > <li> <a class="HeaderMenu-dropdown-link d-block no-underline position-relative py-2 Link--secondary d-flex flex-items-center Link--has-description" data-analytics-event="{"location":"navbar","action":"enterprise_platform","context":"enterprise","tag":"link","label":"enterprise_platform_link_enterprise_navbar"}" href="/enterprise"> <svg aria-hidden="true" height="24" viewBox="0 0 24 24" version="1.1" width="24" data-view-component="true" class="octicon octicon-stack color-fg-subtle mr-3"> <path d="M11.063 1.456a1.749 1.749 0 0 1 1.874 0l8.383 5.316a1.751 1.751 0 0 1 0 2.956l-8.383 5.316a1.749 1.749 0 0 1-1.874 0L2.68 9.728a1.751 1.751 0 0 1 0-2.956Zm1.071 1.267a.25.25 0 0 0-.268 0L3.483 8.039a.25.25 0 0 0 0 .422l8.383 5.316a.25.25 0 0 0 .268 0l8.383-5.316a.25.25 0 0 0 0-.422Z"></path><path d="M1.867 12.324a.75.75 0 0 1 1.035-.232l8.964 5.685a.25.25 0 0 0 .268 0l8.964-5.685a.75.75 0 0 1 .804 1.267l-8.965 5.685a1.749 1.749 0 0 1-1.874 0l-8.965-5.685a.75.75 0 0 1-.231-1.035Z"></path><path d="M1.867 16.324a.75.75 0 0 1 1.035-.232l8.964 5.685a.25.25 0 0 0 .268 0l8.964-5.685a.75.75 0 0 1 .804 1.267l-8.965 5.685a1.749 1.749 0 0 1-1.874 0l-8.965-5.685a.75.75 0 0 1-.231-1.035Z"></path> </svg> <div> <div class="color-fg-default h4">Enterprise platform</div> AI-powered developer platform </div> </a></li> </ul> </div> <div class="border-bottom pb-3 pb-lg-0 border-bottom-0"> <span class="d-block h4 color-fg-default my-1" id="enterprise-available-add-ons-heading">Available add-ons</span> <ul class="list-style-none f5" aria-labelledby="enterprise-available-add-ons-heading"> <li> <a class="HeaderMenu-dropdown-link d-block no-underline position-relative py-2 Link--secondary d-flex flex-items-center Link--has-description pb-lg-3" data-analytics-event="{"location":"navbar","action":"github_advanced_security","context":"enterprise","tag":"link","label":"github_advanced_security_link_enterprise_navbar"}" href="https://github.com/security/advanced-security"> <svg aria-hidden="true" height="24" viewBox="0 0 24 24" version="1.1" width="24" data-view-component="true" class="octicon octicon-shield-check color-fg-subtle mr-3"> <path d="M16.53 9.78a.75.75 0 0 0-1.06-1.06L11 13.19l-1.97-1.97a.75.75 0 0 0-1.06 1.06l2.5 2.5a.75.75 0 0 0 1.06 0l5-5Z"></path><path d="m12.54.637 8.25 2.675A1.75 1.75 0 0 1 22 4.976V10c0 6.19-3.771 10.704-9.401 12.83a1.704 1.704 0 0 1-1.198 0C5.77 20.705 2 16.19 2 10V4.976c0-.758.489-1.43 1.21-1.664L11.46.637a1.748 1.748 0 0 1 1.08 0Zm-.617 1.426-8.25 2.676a.249.249 0 0 0-.173.237V10c0 5.46 3.28 9.483 8.43 11.426a.199.199 0 0 0 .14 0C17.22 19.483 20.5 15.461 20.5 10V4.976a.25.25 0 0 0-.173-.237l-8.25-2.676a.253.253 0 0 0-.154 0Z"></path> </svg> <div> <div class="color-fg-default h4">GitHub Advanced Security</div> Enterprise-grade security features </div> </a></li> <li> <a class="HeaderMenu-dropdown-link d-block no-underline position-relative py-2 Link--secondary d-flex flex-items-center Link--has-description pb-lg-3" data-analytics-event="{"location":"navbar","action":"copilot_for_business","context":"enterprise","tag":"link","label":"copilot_for_business_link_enterprise_navbar"}" href="/features/copilot/copilot-business"> <svg aria-hidden="true" height="24" viewBox="0 0 24 24" version="1.1" width="24" data-view-component="true" class="octicon octicon-copilot color-fg-subtle mr-3"> <path d="M23.922 16.992c-.861 1.495-5.859 5.023-11.922 5.023-6.063 0-11.061-3.528-11.922-5.023A.641.641 0 0 1 0 16.736v-2.869a.841.841 0 0 1 .053-.22c.372-.935 1.347-2.292 2.605-2.656.167-.429.414-1.055.644-1.517a10.195 10.195 0 0 1-.052-1.086c0-1.331.282-2.499 1.132-3.368.397-.406.89-.717 1.474-.952 1.399-1.136 3.392-2.093 6.122-2.093 2.731 0 4.767.957 6.166 2.093.584.235 1.077.546 1.474.952.85.869 1.132 2.037 1.132 3.368 0 .368-.014.733-.052 1.086.23.462.477 1.088.644 1.517 1.258.364 2.233 1.721 2.605 2.656a.832.832 0 0 1 .053.22v2.869a.641.641 0 0 1-.078.256ZM12.172 11h-.344a4.323 4.323 0 0 1-.355.508C10.703 12.455 9.555 13 7.965 13c-1.725 0-2.989-.359-3.782-1.259a2.005 2.005 0 0 1-.085-.104L4 11.741v6.585c1.435.779 4.514 2.179 8 2.179 3.486 0 6.565-1.4 8-2.179v-6.585l-.098-.104s-.033.045-.085.104c-.793.9-2.057 1.259-3.782 1.259-1.59 0-2.738-.545-3.508-1.492a4.323 4.323 0 0 1-.355-.508h-.016.016Zm.641-2.935c.136 1.057.403 1.913.878 2.497.442.544 1.134.938 2.344.938 1.573 0 2.292-.337 2.657-.751.384-.435.558-1.15.558-2.361 0-1.14-.243-1.847-.705-2.319-.477-.488-1.319-.862-2.824-1.025-1.487-.161-2.192.138-2.533.529-.269.307-.437.808-.438 1.578v.021c0 .265.021.562.063.893Zm-1.626 0c.042-.331.063-.628.063-.894v-.02c-.001-.77-.169-1.271-.438-1.578-.341-.391-1.046-.69-2.533-.529-1.505.163-2.347.537-2.824 1.025-.462.472-.705 1.179-.705 2.319 0 1.211.175 1.926.558 2.361.365.414 1.084.751 2.657.751 1.21 0 1.902-.394 2.344-.938.475-.584.742-1.44.878-2.497Z"></path><path d="M14.5 14.25a1 1 0 0 1 1 1v2a1 1 0 0 1-2 0v-2a1 1 0 0 1 1-1Zm-5 0a1 1 0 0 1 1 1v2a1 1 0 0 1-2 0v-2a1 1 0 0 1 1-1Z"></path> </svg> <div> <div class="color-fg-default h4">Copilot for business</div> Enterprise-grade AI features </div> </a></li> <li> <a class="HeaderMenu-dropdown-link d-block no-underline position-relative py-2 Link--secondary d-flex flex-items-center Link--has-description" data-analytics-event="{"location":"navbar","action":"premium_support","context":"enterprise","tag":"link","label":"premium_support_link_enterprise_navbar"}" href="/premium-support"> <svg aria-hidden="true" height="24" viewBox="0 0 24 24" version="1.1" width="24" data-view-component="true" class="octicon octicon-comment-discussion color-fg-subtle mr-3"> <path d="M1.75 1h12.5c.966 0 1.75.784 1.75 1.75v9.5A1.75 1.75 0 0 1 14.25 14H8.061l-2.574 2.573A1.458 1.458 0 0 1 3 15.543V14H1.75A1.75 1.75 0 0 1 0 12.25v-9.5C0 1.784.784 1 1.75 1ZM1.5 2.75v9.5c0 .138.112.25.25.25h2a.75.75 0 0 1 .75.75v2.19l2.72-2.72a.749.749 0 0 1 .53-.22h6.5a.25.25 0 0 0 .25-.25v-9.5a.25.25 0 0 0-.25-.25H1.75a.25.25 0 0 0-.25.25Z"></path><path d="M22.5 8.75a.25.25 0 0 0-.25-.25h-3.5a.75.75 0 0 1 0-1.5h3.5c.966 0 1.75.784 1.75 1.75v9.5A1.75 1.75 0 0 1 22.25 20H21v1.543a1.457 1.457 0 0 1-2.487 1.03L15.939 20H10.75A1.75 1.75 0 0 1 9 18.25v-1.465a.75.75 0 0 1 1.5 0v1.465c0 .138.112.25.25.25h5.5a.75.75 0 0 1 .53.22l2.72 2.72v-2.19a.75.75 0 0 1 .75-.75h2a.25.25 0 0 0 .25-.25v-9.5Z"></path> </svg> <div> <div class="color-fg-default h4">Premium Support</div> Enterprise-grade 24/7 support </div> </a></li> </ul> </div> </div> </div> </li> <li class="HeaderMenu-item position-relative flex-wrap flex-justify-between flex-items-center d-block d-lg-flex flex-lg-nowrap flex-lg-items-center js-details-container js-header-menu-item"> <a class="HeaderMenu-link no-underline px-0 px-lg-2 py-3 py-lg-2 d-block d-lg-inline-block" data-analytics-event="{"location":"navbar","action":"pricing","context":"global","tag":"link","label":"pricing_link_global_navbar"}" href="https://github.com/pricing">Pricing</a> </li> </ul> </nav> <div class="d-flex flex-column flex-lg-row width-full flex-justify-end flex-lg-items-center text-center mt-3 mt-lg-0 text-lg-left ml-lg-3"> <qbsearch-input class="search-input" data-scope="repo:yt-dlp/yt-dlp" data-custom-scopes-path="/search/custom_scopes" data-delete-custom-scopes-csrf="Hvksgzq5-yCdmHxd1a5eEyLd0qmWIYaON_GhjJp5myEOA3Fif_rsprEwnP7e5AdcG-EL97RwSVC66vmmIYuCpw" data-max-custom-scopes="10" data-header-redesign-enabled="false" data-initial-value="" data-blackbird-suggestions-path="/search/suggestions" data-jump-to-suggestions-path="/_graphql/GetSuggestedNavigationDestinations" data-current-repository="yt-dlp/yt-dlp" data-current-org="yt-dlp" data-current-owner="" data-logged-in="false" data-copilot-chat-enabled="false" data-nl-search-enabled="false" data-retain-scroll-position="true"> <div class="search-input-container search-with-dialog position-relative d-flex flex-row flex-items-center mr-4 rounded" data-action="click:qbsearch-input#searchInputContainerClicked" > <button type="button" class="header-search-button placeholder input-button form-control d-flex flex-1 flex-self-stretch flex-items-center no-wrap width-full py-0 pl-2 pr-0 text-left border-0 box-shadow-none" data-target="qbsearch-input.inputButton" aria-label="Search or jump to…" aria-haspopup="dialog" placeholder="Search or jump to..." data-hotkey=s,/ autocapitalize="off" data-analytics-event="{"location":"navbar","action":"searchbar","context":"global","tag":"input","label":"searchbar_input_global_navbar"}" data-action="click:qbsearch-input#handleExpand" > <div class="mr-2 color-fg-muted"> <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-search"> <path d="M10.68 11.74a6 6 0 0 1-7.922-8.982 6 6 0 0 1 8.982 7.922l3.04 3.04a.749.749 0 0 1-.326 1.275.749.749 0 0 1-.734-.215ZM11.5 7a4.499 4.499 0 1 0-8.997 0A4.499 4.499 0 0 0 11.5 7Z"></path> </svg> </div> <span class="flex-1" data-target="qbsearch-input.inputButtonText">Search or jump to...</span> <div class="d-flex" data-target="qbsearch-input.hotkeyIndicator"> <svg xmlns="http://www.w3.org/2000/svg" width="22" height="20" aria-hidden="true" class="mr-1"><path fill="none" stroke="#979A9C" opacity=".4" d="M3.5.5h12c1.7 0 3 1.3 3 3v13c0 1.7-1.3 3-3 3h-12c-1.7 0-3-1.3-3-3v-13c0-1.7 1.3-3 3-3z"></path><path fill="#979A9C" d="M11.8 6L8 15.1h-.9L10.8 6h1z"></path></svg> </div> </button> <input type="hidden" name="type" class="js-site-search-type-field"> <div class="Overlay--hidden " data-modal-dialog-overlay> <modal-dialog data-action="close:qbsearch-input#handleClose cancel:qbsearch-input#handleClose" data-target="qbsearch-input.searchSuggestionsDialog" role="dialog" id="search-suggestions-dialog" aria-modal="true" aria-labelledby="search-suggestions-dialog-header" data-view-component="true" class="Overlay Overlay--width-large Overlay--height-auto"> <h1 id="search-suggestions-dialog-header" class="sr-only">Search code, repositories, users, issues, pull requests...</h1> <div class="Overlay-body Overlay-body--paddingNone"> <div data-view-component="true"> <div class="search-suggestions position-fixed width-full color-shadow-large border color-fg-default color-bg-default overflow-hidden d-flex flex-column query-builder-container" style="border-radius: 12px;" data-target="qbsearch-input.queryBuilderContainer" hidden > <!-- '"` --><!-- </textarea></xmp> --></option></form><form id="query-builder-test-form" action="" accept-charset="UTF-8" method="get"> <query-builder data-target="qbsearch-input.queryBuilder" id="query-builder-query-builder-test" data-filter-key=":" data-view-component="true" class="QueryBuilder search-query-builder"> <div class="FormControl FormControl--fullWidth"> <label id="query-builder-test-label" for="query-builder-test" class="FormControl-label sr-only"> Search </label> <div class="QueryBuilder-StyledInput width-fit " data-target="query-builder.styledInput" > <span id="query-builder-test-leadingvisual-wrap" class="FormControl-input-leadingVisualWrap QueryBuilder-leadingVisualWrap"> <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-search FormControl-input-leadingVisual"> <path d="M10.68 11.74a6 6 0 0 1-7.922-8.982 6 6 0 0 1 8.982 7.922l3.04 3.04a.749.749 0 0 1-.326 1.275.749.749 0 0 1-.734-.215ZM11.5 7a4.499 4.499 0 1 0-8.997 0A4.499 4.499 0 0 0 11.5 7Z"></path> </svg> </span> <div data-target="query-builder.styledInputContainer" class="QueryBuilder-StyledInputContainer"> <div aria-hidden="true" class="QueryBuilder-StyledInputContent" data-target="query-builder.styledInputContent" ></div> <div class="QueryBuilder-InputWrapper"> <div aria-hidden="true" class="QueryBuilder-Sizer" data-target="query-builder.sizer"></div> <input id="query-builder-test" name="query-builder-test" value="" autocomplete="off" type="text" role="combobox" spellcheck="false" aria-expanded="false" aria-describedby="validation-9bdf2e85-d6d9-4f5c-a129-791a58f4c9ab" data-target="query-builder.input" data-action=" input:query-builder#inputChange blur:query-builder#inputBlur keydown:query-builder#inputKeydown focus:query-builder#inputFocus " data-view-component="true" class="FormControl-input QueryBuilder-Input FormControl-medium" /> </div> </div> <span class="sr-only" id="query-builder-test-clear">Clear</span> <button role="button" id="query-builder-test-clear-button" aria-labelledby="query-builder-test-clear query-builder-test-label" data-target="query-builder.clearButton" data-action=" click:query-builder#clear focus:query-builder#clearButtonFocus blur:query-builder#clearButtonBlur " variant="small" hidden="hidden" type="button" data-view-component="true" class="Button Button--iconOnly Button--invisible Button--medium mr-1 px-2 py-0 d-flex flex-items-center rounded-1 color-fg-muted"> <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-x-circle-fill Button-visual"> <path d="M2.343 13.657A8 8 0 1 1 13.658 2.343 8 8 0 0 1 2.343 13.657ZM6.03 4.97a.751.751 0 0 0-1.042.018.751.751 0 0 0-.018 1.042L6.94 8 4.97 9.97a.749.749 0 0 0 .326 1.275.749.749 0 0 0 .734-.215L8 9.06l1.97 1.97a.749.749 0 0 0 1.275-.326.749.749 0 0 0-.215-.734L9.06 8l1.97-1.97a.749.749 0 0 0-.326-1.275.749.749 0 0 0-.734.215L8 6.94Z"></path> </svg> </button> </div> <template id="search-icon"> <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-search"> <path d="M10.68 11.74a6 6 0 0 1-7.922-8.982 6 6 0 0 1 8.982 7.922l3.04 3.04a.749.749 0 0 1-.326 1.275.749.749 0 0 1-.734-.215ZM11.5 7a4.499 4.499 0 1 0-8.997 0A4.499 4.499 0 0 0 11.5 7Z"></path> </svg> </template> <template id="code-icon"> <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-code"> <path d="m11.28 3.22 4.25 4.25a.75.75 0 0 1 0 1.06l-4.25 4.25a.749.749 0 0 1-1.275-.326.749.749 0 0 1 .215-.734L13.94 8l-3.72-3.72a.749.749 0 0 1 .326-1.275.749.749 0 0 1 .734.215Zm-6.56 0a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042L2.06 8l3.72 3.72a.749.749 0 0 1-.326 1.275.749.749 0 0 1-.734-.215L.47 8.53a.75.75 0 0 1 0-1.06Z"></path> </svg> </template> <template id="file-code-icon"> <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-file-code"> <path d="M4 1.75C4 .784 4.784 0 5.75 0h5.586c.464 0 .909.184 1.237.513l2.914 2.914c.329.328.513.773.513 1.237v8.586A1.75 1.75 0 0 1 14.25 15h-9a.75.75 0 0 1 0-1.5h9a.25.25 0 0 0 .25-.25V6h-2.75A1.75 1.75 0 0 1 10 4.25V1.5H5.75a.25.25 0 0 0-.25.25v2.5a.75.75 0 0 1-1.5 0Zm1.72 4.97a.75.75 0 0 1 1.06 0l2 2a.75.75 0 0 1 0 1.06l-2 2a.749.749 0 0 1-1.275-.326.749.749 0 0 1 .215-.734l1.47-1.47-1.47-1.47a.75.75 0 0 1 0-1.06ZM3.28 7.78 1.81 9.25l1.47 1.47a.751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018l-2-2a.75.75 0 0 1 0-1.06l2-2a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042Zm8.22-6.218V4.25c0 .138.112.25.25.25h2.688l-.011-.013-2.914-2.914-.013-.011Z"></path> </svg> </template> <template id="history-icon"> <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-history"> <path d="m.427 1.927 1.215 1.215a8.002 8.002 0 1 1-1.6 5.685.75.75 0 1 1 1.493-.154 6.5 6.5 0 1 0 1.18-4.458l1.358 1.358A.25.25 0 0 1 3.896 6H.25A.25.25 0 0 1 0 5.75V2.104a.25.25 0 0 1 .427-.177ZM7.75 4a.75.75 0 0 1 .75.75v2.992l2.028.812a.75.75 0 0 1-.557 1.392l-2.5-1A.751.751 0 0 1 7 8.25v-3.5A.75.75 0 0 1 7.75 4Z"></path> </svg> </template> <template id="repo-icon"> <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-repo"> <path d="M2 2.5A2.5 2.5 0 0 1 4.5 0h8.75a.75.75 0 0 1 .75.75v12.5a.75.75 0 0 1-.75.75h-2.5a.75.75 0 0 1 0-1.5h1.75v-2h-8a1 1 0 0 0-.714 1.7.75.75 0 1 1-1.072 1.05A2.495 2.495 0 0 1 2 11.5Zm10.5-1h-8a1 1 0 0 0-1 1v6.708A2.486 2.486 0 0 1 4.5 9h8ZM5 12.25a.25.25 0 0 1 .25-.25h3.5a.25.25 0 0 1 .25.25v3.25a.25.25 0 0 1-.4.2l-1.45-1.087a.249.249 0 0 0-.3 0L5.4 15.7a.25.25 0 0 1-.4-.2Z"></path> </svg> </template> <template id="bookmark-icon"> <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-bookmark"> <path d="M3 2.75C3 1.784 3.784 1 4.75 1h6.5c.966 0 1.75.784 1.75 1.75v11.5a.75.75 0 0 1-1.227.579L8 11.722l-3.773 3.107A.751.751 0 0 1 3 14.25Zm1.75-.25a.25.25 0 0 0-.25.25v9.91l3.023-2.489a.75.75 0 0 1 .954 0l3.023 2.49V2.75a.25.25 0 0 0-.25-.25Z"></path> </svg> </template> <template id="plus-circle-icon"> <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-plus-circle"> <path d="M8 0a8 8 0 1 1 0 16A8 8 0 0 1 8 0ZM1.5 8a6.5 6.5 0 1 0 13 0 6.5 6.5 0 0 0-13 0Zm7.25-3.25v2.5h2.5a.75.75 0 0 1 0 1.5h-2.5v2.5a.75.75 0 0 1-1.5 0v-2.5h-2.5a.75.75 0 0 1 0-1.5h2.5v-2.5a.75.75 0 0 1 1.5 0Z"></path> </svg> </template> <template id="circle-icon"> <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-dot-fill"> <path d="M8 4a4 4 0 1 1 0 8 4 4 0 0 1 0-8Z"></path> </svg> </template> <template id="trash-icon"> <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-trash"> <path d="M11 1.75V3h2.25a.75.75 0 0 1 0 1.5H2.75a.75.75 0 0 1 0-1.5H5V1.75C5 .784 5.784 0 6.75 0h2.5C10.216 0 11 .784 11 1.75ZM4.496 6.675l.66 6.6a.25.25 0 0 0 .249.225h5.19a.25.25 0 0 0 .249-.225l.66-6.6a.75.75 0 0 1 1.492.149l-.66 6.6A1.748 1.748 0 0 1 10.595 15h-5.19a1.75 1.75 0 0 1-1.741-1.575l-.66-6.6a.75.75 0 1 1 1.492-.15ZM6.5 1.75V3h3V1.75a.25.25 0 0 0-.25-.25h-2.5a.25.25 0 0 0-.25.25Z"></path> </svg> </template> <template id="team-icon"> <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-people"> <path d="M2 5.5a3.5 3.5 0 1 1 5.898 2.549 5.508 5.508 0 0 1 3.034 4.084.75.75 0 1 1-1.482.235 4 4 0 0 0-7.9 0 .75.75 0 0 1-1.482-.236A5.507 5.507 0 0 1 3.102 8.05 3.493 3.493 0 0 1 2 5.5ZM11 4a3.001 3.001 0 0 1 2.22 5.018 5.01 5.01 0 0 1 2.56 3.012.749.749 0 0 1-.885.954.752.752 0 0 1-.549-.514 3.507 3.507 0 0 0-2.522-2.372.75.75 0 0 1-.574-.73v-.352a.75.75 0 0 1 .416-.672A1.5 1.5 0 0 0 11 5.5.75.75 0 0 1 11 4Zm-5.5-.5a2 2 0 1 0-.001 3.999A2 2 0 0 0 5.5 3.5Z"></path> </svg> </template> <template id="project-icon"> <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-project"> <path d="M1.75 0h12.5C15.216 0 16 .784 16 1.75v12.5A1.75 1.75 0 0 1 14.25 16H1.75A1.75 1.75 0 0 1 0 14.25V1.75C0 .784.784 0 1.75 0ZM1.5 1.75v12.5c0 .138.112.25.25.25h12.5a.25.25 0 0 0 .25-.25V1.75a.25.25 0 0 0-.25-.25H1.75a.25.25 0 0 0-.25.25ZM11.75 3a.75.75 0 0 1 .75.75v7.5a.75.75 0 0 1-1.5 0v-7.5a.75.75 0 0 1 .75-.75Zm-8.25.75a.75.75 0 0 1 1.5 0v5.5a.75.75 0 0 1-1.5 0ZM8 3a.75.75 0 0 1 .75.75v3.5a.75.75 0 0 1-1.5 0v-3.5A.75.75 0 0 1 8 3Z"></path> </svg> </template> <template id="pencil-icon"> <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-pencil"> <path d="M11.013 1.427a1.75 1.75 0 0 1 2.474 0l1.086 1.086a1.75 1.75 0 0 1 0 2.474l-8.61 8.61c-.21.21-.47.364-.756.445l-3.251.93a.75.75 0 0 1-.927-.928l.929-3.25c.081-.286.235-.547.445-.758l8.61-8.61Zm.176 4.823L9.75 4.81l-6.286 6.287a.253.253 0 0 0-.064.108l-.558 1.953 1.953-.558a.253.253 0 0 0 .108-.064Zm1.238-3.763a.25.25 0 0 0-.354 0L10.811 3.75l1.439 1.44 1.263-1.263a.25.25 0 0 0 0-.354Z"></path> </svg> </template> <template id="copilot-icon"> <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-copilot"> <path d="M7.998 15.035c-4.562 0-7.873-2.914-7.998-3.749V9.338c.085-.628.677-1.686 1.588-2.065.013-.07.024-.143.036-.218.029-.183.06-.384.126-.612-.201-.508-.254-1.084-.254-1.656 0-.87.128-1.769.693-2.484.579-.733 1.494-1.124 2.724-1.261 1.206-.134 2.262.034 2.944.765.05.053.096.108.139.165.044-.057.094-.112.143-.165.682-.731 1.738-.899 2.944-.765 1.23.137 2.145.528 2.724 1.261.566.715.693 1.614.693 2.484 0 .572-.053 1.148-.254 1.656.066.228.098.429.126.612.012.076.024.148.037.218.924.385 1.522 1.471 1.591 2.095v1.872c0 .766-3.351 3.795-8.002 3.795Zm0-1.485c2.28 0 4.584-1.11 5.002-1.433V7.862l-.023-.116c-.49.21-1.075.291-1.727.291-1.146 0-2.059-.327-2.71-.991A3.222 3.222 0 0 1 8 6.303a3.24 3.24 0 0 1-.544.743c-.65.664-1.563.991-2.71.991-.652 0-1.236-.081-1.727-.291l-.023.116v4.255c.419.323 2.722 1.433 5.002 1.433ZM6.762 2.83c-.193-.206-.637-.413-1.682-.297-1.019.113-1.479.404-1.713.7-.247.312-.369.789-.369 1.554 0 .793.129 1.171.308 1.371.162.181.519.379 1.442.379.853 0 1.339-.235 1.638-.54.315-.322.527-.827.617-1.553.117-.935-.037-1.395-.241-1.614Zm4.155-.297c-1.044-.116-1.488.091-1.681.297-.204.219-.359.679-.242 1.614.091.726.303 1.231.618 1.553.299.305.784.54 1.638.54.922 0 1.28-.198 1.442-.379.179-.2.308-.578.308-1.371 0-.765-.123-1.242-.37-1.554-.233-.296-.693-.587-1.713-.7Z"></path><path d="M6.25 9.037a.75.75 0 0 1 .75.75v1.501a.75.75 0 0 1-1.5 0V9.787a.75.75 0 0 1 .75-.75Zm4.25.75v1.501a.75.75 0 0 1-1.5 0V9.787a.75.75 0 0 1 1.5 0Z"></path> </svg> </template> <template id="copilot-error-icon"> <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-copilot-error"> <path d="M16 11.24c0 .112-.072.274-.21.467L13 9.688V7.862l-.023-.116c-.49.21-1.075.291-1.727.291-.198 0-.388-.009-.571-.029L6.833 5.226a4.01 4.01 0 0 0 .17-.782c.117-.935-.037-1.395-.241-1.614-.193-.206-.637-.413-1.682-.297-.683.076-1.115.231-1.395.415l-1.257-.91c.579-.564 1.413-.877 2.485-.996 1.206-.134 2.262.034 2.944.765.05.053.096.108.139.165.044-.057.094-.112.143-.165.682-.731 1.738-.899 2.944-.765 1.23.137 2.145.528 2.724 1.261.566.715.693 1.614.693 2.484 0 .572-.053 1.148-.254 1.656.066.228.098.429.126.612.012.076.024.148.037.218.924.385 1.522 1.471 1.591 2.095Zm-5.083-8.707c-1.044-.116-1.488.091-1.681.297-.204.219-.359.679-.242 1.614.091.726.303 1.231.618 1.553.299.305.784.54 1.638.54.922 0 1.28-.198 1.442-.379.179-.2.308-.578.308-1.371 0-.765-.123-1.242-.37-1.554-.233-.296-.693-.587-1.713-.7Zm2.511 11.074c-1.393.776-3.272 1.428-5.43 1.428-4.562 0-7.873-2.914-7.998-3.749V9.338c.085-.628.677-1.686 1.588-2.065.013-.07.024-.143.036-.218.029-.183.06-.384.126-.612-.18-.455-.241-.963-.252-1.475L.31 4.107A.747.747 0 0 1 0 3.509V3.49a.748.748 0 0 1 .625-.73c.156-.026.306.047.435.139l14.667 10.578a.592.592 0 0 1 .227.264.752.752 0 0 1 .046.249v.022a.75.75 0 0 1-1.19.596Zm-1.367-.991L5.635 7.964a5.128 5.128 0 0 1-.889.073c-.652 0-1.236-.081-1.727-.291l-.023.116v4.255c.419.323 2.722 1.433 5.002 1.433 1.539 0 3.089-.505 4.063-.934Z"></path> </svg> </template> <template id="workflow-icon"> <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-workflow"> <path d="M0 1.75C0 .784.784 0 1.75 0h3.5C6.216 0 7 .784 7 1.75v3.5A1.75 1.75 0 0 1 5.25 7H4v4a1 1 0 0 0 1 1h4v-1.25C9 9.784 9.784 9 10.75 9h3.5c.966 0 1.75.784 1.75 1.75v3.5A1.75 1.75 0 0 1 14.25 16h-3.5A1.75 1.75 0 0 1 9 14.25v-.75H5A2.5 2.5 0 0 1 2.5 11V7h-.75A1.75 1.75 0 0 1 0 5.25Zm1.75-.25a.25.25 0 0 0-.25.25v3.5c0 .138.112.25.25.25h3.5a.25.25 0 0 0 .25-.25v-3.5a.25.25 0 0 0-.25-.25Zm9 9a.25.25 0 0 0-.25.25v3.5c0 .138.112.25.25.25h3.5a.25.25 0 0 0 .25-.25v-3.5a.25.25 0 0 0-.25-.25Z"></path> </svg> </template> <template id="book-icon"> <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-book"> <path d="M0 1.75A.75.75 0 0 1 .75 1h4.253c1.227 0 2.317.59 3 1.501A3.743 3.743 0 0 1 11.006 1h4.245a.75.75 0 0 1 .75.75v10.5a.75.75 0 0 1-.75.75h-4.507a2.25 2.25 0 0 0-1.591.659l-.622.621a.75.75 0 0 1-1.06 0l-.622-.621A2.25 2.25 0 0 0 5.258 13H.75a.75.75 0 0 1-.75-.75Zm7.251 10.324.004-5.073-.002-2.253A2.25 2.25 0 0 0 5.003 2.5H1.5v9h3.757a3.75 3.75 0 0 1 1.994.574ZM8.755 4.75l-.004 7.322a3.752 3.752 0 0 1 1.992-.572H14.5v-9h-3.495a2.25 2.25 0 0 0-2.25 2.25Z"></path> </svg> </template> <template id="code-review-icon"> <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-code-review"> <path d="M1.75 1h12.5c.966 0 1.75.784 1.75 1.75v8.5A1.75 1.75 0 0 1 14.25 13H8.061l-2.574 2.573A1.458 1.458 0 0 1 3 14.543V13H1.75A1.75 1.75 0 0 1 0 11.25v-8.5C0 1.784.784 1 1.75 1ZM1.5 2.75v8.5c0 .138.112.25.25.25h2a.75.75 0 0 1 .75.75v2.19l2.72-2.72a.749.749 0 0 1 .53-.22h6.5a.25.25 0 0 0 .25-.25v-8.5a.25.25 0 0 0-.25-.25H1.75a.25.25 0 0 0-.25.25Zm5.28 1.72a.75.75 0 0 1 0 1.06L5.31 7l1.47 1.47a.751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018l-2-2a.75.75 0 0 1 0-1.06l2-2a.75.75 0 0 1 1.06 0Zm2.44 0a.75.75 0 0 1 1.06 0l2 2a.75.75 0 0 1 0 1.06l-2 2a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042L10.69 7 9.22 5.53a.75.75 0 0 1 0-1.06Z"></path> </svg> </template> <template id="codespaces-icon"> <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-codespaces"> <path d="M0 11.25c0-.966.784-1.75 1.75-1.75h12.5c.966 0 1.75.784 1.75 1.75v3A1.75 1.75 0 0 1 14.25 16H1.75A1.75 1.75 0 0 1 0 14.25Zm2-9.5C2 .784 2.784 0 3.75 0h8.5C13.216 0 14 .784 14 1.75v5a1.75 1.75 0 0 1-1.75 1.75h-8.5A1.75 1.75 0 0 1 2 6.75Zm1.75-.25a.25.25 0 0 0-.25.25v5c0 .138.112.25.25.25h8.5a.25.25 0 0 0 .25-.25v-5a.25.25 0 0 0-.25-.25Zm-2 9.5a.25.25 0 0 0-.25.25v3c0 .138.112.25.25.25h12.5a.25.25 0 0 0 .25-.25v-3a.25.25 0 0 0-.25-.25Z"></path><path d="M7 12.75a.75.75 0 0 1 .75-.75h4.5a.75.75 0 0 1 0 1.5h-4.5a.75.75 0 0 1-.75-.75Zm-4 0a.75.75 0 0 1 .75-.75h.5a.75.75 0 0 1 0 1.5h-.5a.75.75 0 0 1-.75-.75Z"></path> </svg> </template> <template id="comment-icon"> <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-comment"> <path d="M1 2.75C1 1.784 1.784 1 2.75 1h10.5c.966 0 1.75.784 1.75 1.75v7.5A1.75 1.75 0 0 1 13.25 12H9.06l-2.573 2.573A1.458 1.458 0 0 1 4 13.543V12H2.75A1.75 1.75 0 0 1 1 10.25Zm1.75-.25a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h2a.75.75 0 0 1 .75.75v2.19l2.72-2.72a.749.749 0 0 1 .53-.22h4.5a.25.25 0 0 0 .25-.25v-7.5a.25.25 0 0 0-.25-.25Z"></path> </svg> </template> <template id="comment-discussion-icon"> <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-comment-discussion"> <path d="M1.75 1h8.5c.966 0 1.75.784 1.75 1.75v5.5A1.75 1.75 0 0 1 10.25 10H7.061l-2.574 2.573A1.458 1.458 0 0 1 2 11.543V10h-.25A1.75 1.75 0 0 1 0 8.25v-5.5C0 1.784.784 1 1.75 1ZM1.5 2.75v5.5c0 .138.112.25.25.25h1a.75.75 0 0 1 .75.75v2.19l2.72-2.72a.749.749 0 0 1 .53-.22h3.5a.25.25 0 0 0 .25-.25v-5.5a.25.25 0 0 0-.25-.25h-8.5a.25.25 0 0 0-.25.25Zm13 2a.25.25 0 0 0-.25-.25h-.5a.75.75 0 0 1 0-1.5h.5c.966 0 1.75.784 1.75 1.75v5.5A1.75 1.75 0 0 1 14.25 12H14v1.543a1.458 1.458 0 0 1-2.487 1.03L9.22 12.28a.749.749 0 0 1 .326-1.275.749.749 0 0 1 .734.215l2.22 2.22v-2.19a.75.75 0 0 1 .75-.75h1a.25.25 0 0 0 .25-.25Z"></path> </svg> </template> <template id="organization-icon"> <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-organization"> <path d="M1.75 16A1.75 1.75 0 0 1 0 14.25V1.75C0 .784.784 0 1.75 0h8.5C11.216 0 12 .784 12 1.75v12.5c0 .085-.006.168-.018.25h2.268a.25.25 0 0 0 .25-.25V8.285a.25.25 0 0 0-.111-.208l-1.055-.703a.749.749 0 1 1 .832-1.248l1.055.703c.487.325.779.871.779 1.456v5.965A1.75 1.75 0 0 1 14.25 16h-3.5a.766.766 0 0 1-.197-.026c-.099.017-.2.026-.303.026h-3a.75.75 0 0 1-.75-.75V14h-1v1.25a.75.75 0 0 1-.75.75Zm-.25-1.75c0 .138.112.25.25.25H4v-1.25a.75.75 0 0 1 .75-.75h2.5a.75.75 0 0 1 .75.75v1.25h2.25a.25.25 0 0 0 .25-.25V1.75a.25.25 0 0 0-.25-.25h-8.5a.25.25 0 0 0-.25.25ZM3.75 6h.5a.75.75 0 0 1 0 1.5h-.5a.75.75 0 0 1 0-1.5ZM3 3.75A.75.75 0 0 1 3.75 3h.5a.75.75 0 0 1 0 1.5h-.5A.75.75 0 0 1 3 3.75Zm4 3A.75.75 0 0 1 7.75 6h.5a.75.75 0 0 1 0 1.5h-.5A.75.75 0 0 1 7 6.75ZM7.75 3h.5a.75.75 0 0 1 0 1.5h-.5a.75.75 0 0 1 0-1.5ZM3 9.75A.75.75 0 0 1 3.75 9h.5a.75.75 0 0 1 0 1.5h-.5A.75.75 0 0 1 3 9.75ZM7.75 9h.5a.75.75 0 0 1 0 1.5h-.5a.75.75 0 0 1 0-1.5Z"></path> </svg> </template> <template id="rocket-icon"> <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-rocket"> <path d="M14.064 0h.186C15.216 0 16 .784 16 1.75v.186a8.752 8.752 0 0 1-2.564 6.186l-.458.459c-.314.314-.641.616-.979.904v3.207c0 .608-.315 1.172-.833 1.49l-2.774 1.707a.749.749 0 0 1-1.11-.418l-.954-3.102a1.214 1.214 0 0 1-.145-.125L3.754 9.816a1.218 1.218 0 0 1-.124-.145L.528 8.717a.749.749 0 0 1-.418-1.11l1.71-2.774A1.748 1.748 0 0 1 3.31 4h3.204c.288-.338.59-.665.904-.979l.459-.458A8.749 8.749 0 0 1 14.064 0ZM8.938 3.623h-.002l-.458.458c-.76.76-1.437 1.598-2.02 2.5l-1.5 2.317 2.143 2.143 2.317-1.5c.902-.583 1.74-1.26 2.499-2.02l.459-.458a7.25 7.25 0 0 0 2.123-5.127V1.75a.25.25 0 0 0-.25-.25h-.186a7.249 7.249 0 0 0-5.125 2.123ZM3.56 14.56c-.732.732-2.334 1.045-3.005 1.148a.234.234 0 0 1-.201-.064.234.234 0 0 1-.064-.201c.103-.671.416-2.273 1.15-3.003a1.502 1.502 0 1 1 2.12 2.12Zm6.94-3.935c-.088.06-.177.118-.266.175l-2.35 1.521.548 1.783 1.949-1.2a.25.25 0 0 0 .119-.213ZM3.678 8.116 5.2 5.766c.058-.09.117-.178.176-.266H3.309a.25.25 0 0 0-.213.119l-1.2 1.95ZM12 5a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z"></path> </svg> </template> <template id="shield-check-icon"> <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-shield-check"> <path d="m8.533.133 5.25 1.68A1.75 1.75 0 0 1 15 3.48V7c0 1.566-.32 3.182-1.303 4.682-.983 1.498-2.585 2.813-5.032 3.855a1.697 1.697 0 0 1-1.33 0c-2.447-1.042-4.049-2.357-5.032-3.855C1.32 10.182 1 8.566 1 7V3.48a1.75 1.75 0 0 1 1.217-1.667l5.25-1.68a1.748 1.748 0 0 1 1.066 0Zm-.61 1.429.001.001-5.25 1.68a.251.251 0 0 0-.174.237V7c0 1.36.275 2.666 1.057 3.859.784 1.194 2.121 2.342 4.366 3.298a.196.196 0 0 0 .154 0c2.245-.957 3.582-2.103 4.366-3.297C13.225 9.666 13.5 8.358 13.5 7V3.48a.25.25 0 0 0-.174-.238l-5.25-1.68a.25.25 0 0 0-.153 0ZM11.28 6.28l-3.5 3.5a.75.75 0 0 1-1.06 0l-1.5-1.5a.749.749 0 0 1 .326-1.275.749.749 0 0 1 .734.215l.97.97 2.97-2.97a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042Z"></path> </svg> </template> <template id="heart-icon"> <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-heart"> <path d="m8 14.25.345.666a.75.75 0 0 1-.69 0l-.008-.004-.018-.01a7.152 7.152 0 0 1-.31-.17 22.055 22.055 0 0 1-3.434-2.414C2.045 10.731 0 8.35 0 5.5 0 2.836 2.086 1 4.25 1 5.797 1 7.153 1.802 8 3.02 8.847 1.802 10.203 1 11.75 1 13.914 1 16 2.836 16 5.5c0 2.85-2.045 5.231-3.885 6.818a22.066 22.066 0 0 1-3.744 2.584l-.018.01-.006.003h-.002ZM4.25 2.5c-1.336 0-2.75 1.164-2.75 3 0 2.15 1.58 4.144 3.365 5.682A20.58 20.58 0 0 0 8 13.393a20.58 20.58 0 0 0 3.135-2.211C12.92 9.644 14.5 7.65 14.5 5.5c0-1.836-1.414-3-2.75-3-1.373 0-2.609.986-3.029 2.456a.749.749 0 0 1-1.442 0C6.859 3.486 5.623 2.5 4.25 2.5Z"></path> </svg> </template> <template id="server-icon"> <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-server"> <path d="M1.75 1h12.5c.966 0 1.75.784 1.75 1.75v4c0 .372-.116.717-.314 1 .198.283.314.628.314 1v4a1.75 1.75 0 0 1-1.75 1.75H1.75A1.75 1.75 0 0 1 0 12.75v-4c0-.358.109-.707.314-1a1.739 1.739 0 0 1-.314-1v-4C0 1.784.784 1 1.75 1ZM1.5 2.75v4c0 .138.112.25.25.25h12.5a.25.25 0 0 0 .25-.25v-4a.25.25 0 0 0-.25-.25H1.75a.25.25 0 0 0-.25.25Zm.25 5.75a.25.25 0 0 0-.25.25v4c0 .138.112.25.25.25h12.5a.25.25 0 0 0 .25-.25v-4a.25.25 0 0 0-.25-.25ZM7 4.75A.75.75 0 0 1 7.75 4h4.5a.75.75 0 0 1 0 1.5h-4.5A.75.75 0 0 1 7 4.75ZM7.75 10h4.5a.75.75 0 0 1 0 1.5h-4.5a.75.75 0 0 1 0-1.5ZM3 4.75A.75.75 0 0 1 3.75 4h.5a.75.75 0 0 1 0 1.5h-.5A.75.75 0 0 1 3 4.75ZM3.75 10h.5a.75.75 0 0 1 0 1.5h-.5a.75.75 0 0 1 0-1.5Z"></path> </svg> </template> <template id="globe-icon"> <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-globe"> <path d="M8 0a8 8 0 1 1 0 16A8 8 0 0 1 8 0ZM5.78 8.75a9.64 9.64 0 0 0 1.363 4.177c.255.426.542.832.857 1.215.245-.296.551-.705.857-1.215A9.64 9.64 0 0 0 10.22 8.75Zm4.44-1.5a9.64 9.64 0 0 0-1.363-4.177c-.307-.51-.612-.919-.857-1.215a9.927 9.927 0 0 0-.857 1.215A9.64 9.64 0 0 0 5.78 7.25Zm-5.944 1.5H1.543a6.507 6.507 0 0 0 4.666 5.5c-.123-.181-.24-.365-.352-.552-.715-1.192-1.437-2.874-1.581-4.948Zm-2.733-1.5h2.733c.144-2.074.866-3.756 1.58-4.948.12-.197.237-.381.353-.552a6.507 6.507 0 0 0-4.666 5.5Zm10.181 1.5c-.144 2.074-.866 3.756-1.58 4.948-.12.197-.237.381-.353.552a6.507 6.507 0 0 0 4.666-5.5Zm2.733-1.5a6.507 6.507 0 0 0-4.666-5.5c.123.181.24.365.353.552.714 1.192 1.436 2.874 1.58 4.948Z"></path> </svg> </template> <template id="issue-opened-icon"> <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-issue-opened"> <path d="M8 9.5a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Z"></path><path d="M8 0a8 8 0 1 1 0 16A8 8 0 0 1 8 0ZM1.5 8a6.5 6.5 0 1 0 13 0 6.5 6.5 0 0 0-13 0Z"></path> </svg> </template> <template id="device-mobile-icon"> <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-device-mobile"> <path d="M3.75 0h8.5C13.216 0 14 .784 14 1.75v12.5A1.75 1.75 0 0 1 12.25 16h-8.5A1.75 1.75 0 0 1 2 14.25V1.75C2 .784 2.784 0 3.75 0ZM3.5 1.75v12.5c0 .138.112.25.25.25h8.5a.25.25 0 0 0 .25-.25V1.75a.25.25 0 0 0-.25-.25h-8.5a.25.25 0 0 0-.25.25ZM8 13a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z"></path> </svg> </template> <template id="package-icon"> <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-package"> <path d="m8.878.392 5.25 3.045c.54.314.872.89.872 1.514v6.098a1.75 1.75 0 0 1-.872 1.514l-5.25 3.045a1.75 1.75 0 0 1-1.756 0l-5.25-3.045A1.75 1.75 0 0 1 1 11.049V4.951c0-.624.332-1.201.872-1.514L7.122.392a1.75 1.75 0 0 1 1.756 0ZM7.875 1.69l-4.63 2.685L8 7.133l4.755-2.758-4.63-2.685a.248.248 0 0 0-.25 0ZM2.5 5.677v5.372c0 .09.047.171.125.216l4.625 2.683V8.432Zm6.25 8.271 4.625-2.683a.25.25 0 0 0 .125-.216V5.677L8.75 8.432Z"></path> </svg> </template> <template id="credit-card-icon"> <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-credit-card"> <path d="M10.75 9a.75.75 0 0 0 0 1.5h1.5a.75.75 0 0 0 0-1.5h-1.5Z"></path><path d="M0 3.75C0 2.784.784 2 1.75 2h12.5c.966 0 1.75.784 1.75 1.75v8.5A1.75 1.75 0 0 1 14.25 14H1.75A1.75 1.75 0 0 1 0 12.25ZM14.5 6.5h-13v5.75c0 .138.112.25.25.25h12.5a.25.25 0 0 0 .25-.25Zm0-2.75a.25.25 0 0 0-.25-.25H1.75a.25.25 0 0 0-.25.25V5h13Z"></path> </svg> </template> <template id="play-icon"> <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-play"> <path d="M8 0a8 8 0 1 1 0 16A8 8 0 0 1 8 0ZM1.5 8a6.5 6.5 0 1 0 13 0 6.5 6.5 0 0 0-13 0Zm4.879-2.773 4.264 2.559a.25.25 0 0 1 0 .428l-4.264 2.559A.25.25 0 0 1 6 10.559V5.442a.25.25 0 0 1 .379-.215Z"></path> </svg> </template> <template id="gift-icon"> <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-gift"> <path d="M2 2.75A2.75 2.75 0 0 1 4.75 0c.983 0 1.873.42 2.57 1.232.268.318.497.668.68 1.042.183-.375.411-.725.68-1.044C9.376.42 10.266 0 11.25 0a2.75 2.75 0 0 1 2.45 4h.55c.966 0 1.75.784 1.75 1.75v2c0 .698-.409 1.301-1 1.582v4.918A1.75 1.75 0 0 1 13.25 16H2.75A1.75 1.75 0 0 1 1 14.25V9.332C.409 9.05 0 8.448 0 7.75v-2C0 4.784.784 4 1.75 4h.55c-.192-.375-.3-.8-.3-1.25ZM7.25 9.5H2.5v4.75c0 .138.112.25.25.25h4.5Zm1.5 0v5h4.5a.25.25 0 0 0 .25-.25V9.5Zm0-4V8h5.5a.25.25 0 0 0 .25-.25v-2a.25.25 0 0 0-.25-.25Zm-7 0a.25.25 0 0 0-.25.25v2c0 .138.112.25.25.25h5.5V5.5h-5.5Zm3-4a1.25 1.25 0 0 0 0 2.5h2.309c-.233-.818-.542-1.401-.878-1.793-.43-.502-.915-.707-1.431-.707ZM8.941 4h2.309a1.25 1.25 0 0 0 0-2.5c-.516 0-1 .205-1.43.707-.337.392-.646.975-.879 1.793Z"></path> </svg> </template> <template id="code-square-icon"> <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-code-square"> <path d="M0 1.75C0 .784.784 0 1.75 0h12.5C15.216 0 16 .784 16 1.75v12.5A1.75 1.75 0 0 1 14.25 16H1.75A1.75 1.75 0 0 1 0 14.25Zm1.75-.25a.25.25 0 0 0-.25.25v12.5c0 .138.112.25.25.25h12.5a.25.25 0 0 0 .25-.25V1.75a.25.25 0 0 0-.25-.25Zm7.47 3.97a.75.75 0 0 1 1.06 0l2 2a.75.75 0 0 1 0 1.06l-2 2a.749.749 0 0 1-1.275-.326.749.749 0 0 1 .215-.734L10.69 8 9.22 6.53a.75.75 0 0 1 0-1.06ZM6.78 6.53 5.31 8l1.47 1.47a.749.749 0 0 1-.326 1.275.749.749 0 0 1-.734-.215l-2-2a.75.75 0 0 1 0-1.06l2-2a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042Z"></path> </svg> </template> <template id="device-desktop-icon"> <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-device-desktop"> <path d="M14.25 1c.966 0 1.75.784 1.75 1.75v7.5A1.75 1.75 0 0 1 14.25 12h-3.727c.099 1.041.52 1.872 1.292 2.757A.752.752 0 0 1 11.25 16h-6.5a.75.75 0 0 1-.565-1.243c.772-.885 1.192-1.716 1.292-2.757H1.75A1.75 1.75 0 0 1 0 10.25v-7.5C0 1.784.784 1 1.75 1ZM1.75 2.5a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h12.5a.25.25 0 0 0 .25-.25v-7.5a.25.25 0 0 0-.25-.25ZM9.018 12H6.982a5.72 5.72 0 0 1-.765 2.5h3.566a5.72 5.72 0 0 1-.765-2.5Z"></path> </svg> </template> <div class="position-relative"> <ul role="listbox" class="ActionListWrap QueryBuilder-ListWrap" aria-label="Suggestions" data-action=" combobox-commit:query-builder#comboboxCommit mousedown:query-builder#resultsMousedown " data-target="query-builder.resultsList" data-persist-list=false id="query-builder-test-results" ></ul> </div> <div class="FormControl-inlineValidation" id="validation-9bdf2e85-d6d9-4f5c-a129-791a58f4c9ab" hidden="hidden"> <span class="FormControl-inlineValidation--visual"> <svg aria-hidden="true" height="12" viewBox="0 0 12 12" version="1.1" width="12" data-view-component="true" class="octicon octicon-alert-fill"> <path d="M4.855.708c.5-.896 1.79-.896 2.29 0l4.675 8.351a1.312 1.312 0 0 1-1.146 1.954H1.33A1.313 1.313 0 0 1 .183 9.058ZM7 7V3H5v4Zm-1 3a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z"></path> </svg> </span> <span></span> </div> </div> <div data-target="query-builder.screenReaderFeedback" aria-live="polite" aria-atomic="true" class="sr-only"></div> </query-builder></form> <div class="d-flex flex-row color-fg-muted px-3 text-small color-bg-default search-feedback-prompt"> <a target="_blank" href="https://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax" data-view-component="true" class="Link color-fg-accent text-normal ml-2">Search syntax tips</a> <div class="d-flex flex-1"></div> </div> </div> </div> </div> </modal-dialog></div> </div> <div data-action="click:qbsearch-input#retract" class="dark-backdrop position-fixed" hidden data-target="qbsearch-input.darkBackdrop"></div> <div class="color-fg-default"> <dialog-helper> <dialog data-target="qbsearch-input.feedbackDialog" data-action="close:qbsearch-input#handleDialogClose cancel:qbsearch-input#handleDialogClose" id="feedback-dialog" aria-modal="true" aria-labelledby="feedback-dialog-title" aria-describedby="feedback-dialog-description" data-view-component="true" class="Overlay Overlay-whenNarrow Overlay--size-medium Overlay--motion-scaleFade Overlay--disableScroll"> <div data-view-component="true" class="Overlay-header"> <div class="Overlay-headerContentWrap"> <div class="Overlay-titleWrap"> <h1 class="Overlay-title " id="feedback-dialog-title"> Provide feedback </h1> </div> <div class="Overlay-actionWrap"> <button data-close-dialog-id="feedback-dialog" aria-label="Close" type="button" data-view-component="true" class="close-button Overlay-closeButton"><svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-x"> <path d="M3.72 3.72a.75.75 0 0 1 1.06 0L8 6.94l3.22-3.22a.749.749 0 0 1 1.275.326.749.749 0 0 1-.215.734L9.06 8l3.22 3.22a.749.749 0 0 1-.326 1.275.749.749 0 0 1-.734-.215L8 9.06l-3.22 3.22a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042L6.94 8 3.72 4.78a.75.75 0 0 1 0-1.06Z"></path> </svg></button> </div> </div> </div> <scrollable-region data-labelled-by="feedback-dialog-title"> <div data-view-component="true" class="Overlay-body"> <!-- '"` --><!-- </textarea></xmp> --></option></form><form id="code-search-feedback-form" data-turbo="false" action="/search/feedback" accept-charset="UTF-8" method="post"><input type="hidden" data-csrf="true" name="authenticity_token" value="BO7rGVC8X72LPN88ShRuDXcw//ymJhpoCaL0NdzBcnCr+PZPJat9qnkDzU+mSqiLD/IlaQNuYZDFuQRBZcIcNA==" /> <p>We read every piece of feedback, and take your input very seriously.</p> <textarea name="feedback" class="form-control width-full mb-2" style="height: 120px" id="feedback"></textarea> <input name="include_email" id="include_email" aria-label="Include my email address so I can be contacted" class="form-control mr-2" type="checkbox"> <label for="include_email" style="font-weight: normal">Include my email address so I can be contacted</label> </form></div> </scrollable-region> <div data-view-component="true" class="Overlay-footer Overlay-footer--alignEnd"> <button data-close-dialog-id="feedback-dialog" type="button" data-view-component="true" class="btn"> Cancel </button> <button form="code-search-feedback-form" data-action="click:qbsearch-input#submitFeedback" type="submit" data-view-component="true" class="btn-primary btn"> Submit feedback </button> </div> </dialog></dialog-helper> <custom-scopes data-target="qbsearch-input.customScopesManager"> <dialog-helper> <dialog data-target="custom-scopes.customScopesModalDialog" data-action="close:qbsearch-input#handleDialogClose cancel:qbsearch-input#handleDialogClose" id="custom-scopes-dialog" aria-modal="true" aria-labelledby="custom-scopes-dialog-title" aria-describedby="custom-scopes-dialog-description" data-view-component="true" class="Overlay Overlay-whenNarrow Overlay--size-medium Overlay--motion-scaleFade Overlay--disableScroll"> <div data-view-component="true" class="Overlay-header Overlay-header--divided"> <div class="Overlay-headerContentWrap"> <div class="Overlay-titleWrap"> <h1 class="Overlay-title " id="custom-scopes-dialog-title"> Saved searches </h1> <h2 id="custom-scopes-dialog-description" class="Overlay-description">Use saved searches to filter your results more quickly</h2> </div> <div class="Overlay-actionWrap"> <button data-close-dialog-id="custom-scopes-dialog" aria-label="Close" type="button" data-view-component="true" class="close-button Overlay-closeButton"><svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-x"> <path d="M3.72 3.72a.75.75 0 0 1 1.06 0L8 6.94l3.22-3.22a.749.749 0 0 1 1.275.326.749.749 0 0 1-.215.734L9.06 8l3.22 3.22a.749.749 0 0 1-.326 1.275.749.749 0 0 1-.734-.215L8 9.06l-3.22 3.22a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042L6.94 8 3.72 4.78a.75.75 0 0 1 0-1.06Z"></path> </svg></button> </div> </div> </div> <scrollable-region data-labelled-by="custom-scopes-dialog-title"> <div data-view-component="true" class="Overlay-body"> <div data-target="custom-scopes.customScopesModalDialogFlash"></div> <div hidden class="create-custom-scope-form" data-target="custom-scopes.createCustomScopeForm"> <!-- '"` --><!-- </textarea></xmp> --></option></form><form id="custom-scopes-dialog-form" data-turbo="false" action="/search/custom_scopes" accept-charset="UTF-8" method="post"><input type="hidden" data-csrf="true" name="authenticity_token" value="YfUG5Qblxj9H5qt7pkcv3hfT/ZM3fad2T04jT+gPFkI0+6YffYCf7KRqwvynI/PE7YksiscpBPo+GW9EG8S2RQ==" /> <div data-target="custom-scopes.customScopesModalDialogFlash"></div> <input type="hidden" id="custom_scope_id" name="custom_scope_id" data-target="custom-scopes.customScopesIdField"> <div class="form-group"> <label for="custom_scope_name">Name</label> <auto-check src="/search/custom_scopes/check_name" required only-validate-on-blur="false"> <input type="text" name="custom_scope_name" id="custom_scope_name" data-target="custom-scopes.customScopesNameField" class="form-control" autocomplete="off" placeholder="github-ruby" required maxlength="50"> <input type="hidden" data-csrf="true" value="jdQVukuLTG2OCiajGZ0cGjSEod9Y/u8tS1sVVH+yODpzeLn5+jtQQ1v5SdGdi2Ongf/f7NVF/w7W/JK5tJBunw==" /> </auto-check> </div> <div class="form-group"> <label for="custom_scope_query">Query</label> <input type="text" name="custom_scope_query" id="custom_scope_query" data-target="custom-scopes.customScopesQueryField" class="form-control" autocomplete="off" placeholder="(repo:mona/a OR repo:mona/b) AND lang:python" required maxlength="500"> </div> <p class="text-small color-fg-muted"> To see all available qualifiers, see our <a class="Link--inTextBlock" href="https://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax">documentation</a>. </p> </form> </div> <div data-target="custom-scopes.manageCustomScopesForm"> <div data-target="custom-scopes.list"></div> </div> </div> </scrollable-region> <div data-view-component="true" class="Overlay-footer Overlay-footer--alignEnd Overlay-footer--divided"> <button data-action="click:custom-scopes#customScopesCancel" type="button" data-view-component="true" class="btn"> Cancel </button> <button form="custom-scopes-dialog-form" data-action="click:custom-scopes#customScopesSubmit" data-target="custom-scopes.customScopesSubmitButton" type="submit" data-view-component="true" class="btn-primary btn"> Create saved search </button> </div> </dialog></dialog-helper> </custom-scopes> </div> </qbsearch-input> <div class="position-relative HeaderMenu-link-wrap d-lg-inline-block"> <a href="/login?return_to=https%3A%2F%2Fgithub.com%2Fyt-dlp%2Fyt-dlp" class="HeaderMenu-link HeaderMenu-link--sign-in HeaderMenu-button flex-shrink-0 no-underline d-none d-lg-inline-flex border border-lg-0 rounded rounded-lg-0 px-2 py-1" style="margin-left: 12px;" data-hydro-click="{"event_type":"authentication.click","payload":{"location_in_page":"site header menu","repository_id":null,"auth_type":"SIGN_UP","originating_url":"https://github.com/yt-dlp/yt-dlp","user_id":null}}" data-hydro-click-hmac="1408b1432c4f8239b765be1f4c54a40b046dd17cd32d4e0011766c82daf1d5b6" data-analytics-event="{"category":"Marketing nav","action":"click to go to homepage","label":"ref_page:Marketing;ref_cta:Sign in;ref_loc:Header"}" > Sign in </a> </div> <a href="/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E&source=header-repo&source_repo=yt-dlp%2Fyt-dlp" class="HeaderMenu-link HeaderMenu-link--sign-up HeaderMenu-button flex-shrink-0 d-flex d-lg-inline-flex no-underline border color-border-default rounded px-2 py-1" data-hydro-click="{"event_type":"authentication.click","payload":{"location_in_page":"site header menu","repository_id":null,"auth_type":"SIGN_UP","originating_url":"https://github.com/yt-dlp/yt-dlp","user_id":null}}" data-hydro-click-hmac="1408b1432c4f8239b765be1f4c54a40b046dd17cd32d4e0011766c82daf1d5b6" data-analytics-event="{"category":"Sign up","action":"click to sign up for account","label":"ref_page:/<user-name>/<repo-name>;ref_cta:Sign up;ref_loc:header logged out"}" > Sign up </a> <button type="button" class="sr-only js-header-menu-focus-trap d-block d-lg-none">Reseting focus</button> </div> </div> </div> </div> </header> <div hidden="hidden" data-view-component="true" class="js-stale-session-flash stale-session-flash flash flash-warn flash-full"> <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-alert"> <path d="M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z"></path> </svg> <span class="js-stale-session-flash-signed-in" hidden>You signed in with another tab or window. <a class="Link--inTextBlock" href="">Reload</a> to refresh your session.</span> <span class="js-stale-session-flash-signed-out" hidden>You signed out in another tab or window. <a class="Link--inTextBlock" href="">Reload</a> to refresh your session.</span> <span class="js-stale-session-flash-switched" hidden>You switched accounts on another tab or window. <a class="Link--inTextBlock" href="">Reload</a> to refresh your session.</span> <button id="icon-button-6fbebf14-ba6f-4c3e-b3c9-5d760ca1edd8" aria-labelledby="tooltip-e5e93cd8-623e-4914-9d6e-382b95251d21" type="button" data-view-component="true" class="Button Button--iconOnly Button--invisible Button--medium flash-close js-flash-close"> <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-x Button-visual"> <path d="M3.72 3.72a.75.75 0 0 1 1.06 0L8 6.94l3.22-3.22a.749.749 0 0 1 1.275.326.749.749 0 0 1-.215.734L9.06 8l3.22 3.22a.749.749 0 0 1-.326 1.275.749.749 0 0 1-.734-.215L8 9.06l-3.22 3.22a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042L6.94 8 3.72 4.78a.75.75 0 0 1 0-1.06Z"></path> </svg> </button><tool-tip id="tooltip-e5e93cd8-623e-4914-9d6e-382b95251d21" for="icon-button-6fbebf14-ba6f-4c3e-b3c9-5d760ca1edd8" popover="manual" data-direction="s" data-type="label" data-view-component="true" class="sr-only position-absolute">Dismiss alert</tool-tip> </div> </div> <div id="start-of-content" class="show-on-focus"></div> <div id="js-flash-container" class="flash-container" data-turbo-replace> <template class="js-flash-template"> <div class="flash flash-full {{ className }}"> <div > <button autofocus class="flash-close js-flash-close" type="button" aria-label="Dismiss this message"> <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-x"> <path d="M3.72 3.72a.75.75 0 0 1 1.06 0L8 6.94l3.22-3.22a.749.749 0 0 1 1.275.326.749.749 0 0 1-.215.734L9.06 8l3.22 3.22a.749.749 0 0 1-.326 1.275.749.749 0 0 1-.734-.215L8 9.06l-3.22 3.22a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042L6.94 8 3.72 4.78a.75.75 0 0 1 0-1.06Z"></path> </svg> </button> <div aria-atomic="true" role="alert" class="js-flash-alert"> <div>{{ message }}</div> </div> </div> </div> </template> </div> <div class="application-main " data-commit-hovercards-enabled data-discussion-hovercards-enabled data-issue-and-pr-hovercards-enabled data-project-hovercards-enabled > <div itemscope itemtype="http://schema.org/SoftwareSourceCode" class=""> <main id="js-repo-pjax-container" > <div id="repository-container-header" class="pt-3 hide-full-screen" style="background-color: var(--page-header-bgColor, var(--color-page-header-bg));" data-turbo-replace> <div class="d-flex flex-nowrap flex-justify-end mb-3 px-3 px-lg-5" style="gap: 1rem;"> <div class="flex-auto min-width-0 width-fit"> <div class=" d-flex flex-wrap flex-items-center wb-break-word f3 text-normal"> <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-repo color-fg-muted mr-2"> <path d="M2 2.5A2.5 2.5 0 0 1 4.5 0h8.75a.75.75 0 0 1 .75.75v12.5a.75.75 0 0 1-.75.75h-2.5a.75.75 0 0 1 0-1.5h1.75v-2h-8a1 1 0 0 0-.714 1.7.75.75 0 1 1-1.072 1.05A2.495 2.495 0 0 1 2 11.5Zm10.5-1h-8a1 1 0 0 0-1 1v6.708A2.486 2.486 0 0 1 4.5 9h8ZM5 12.25a.25.25 0 0 1 .25-.25h3.5a.25.25 0 0 1 .25.25v3.25a.25.25 0 0 1-.4.2l-1.45-1.087a.249.249 0 0 0-.3 0L5.4 15.7a.25.25 0 0 1-.4-.2Z"></path> </svg> <span class="author flex-self-stretch" itemprop="author"> <a class="url fn" rel="author" data-hovercard-type="organization" data-hovercard-url="/orgs/yt-dlp/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="/yt-dlp"> yt-dlp </a> </span> <span class="mx-1 flex-self-stretch color-fg-muted">/</span> <strong itemprop="name" class="mr-2 flex-self-stretch"> <a data-pjax="#repo-content-pjax-container" data-turbo-frame="repo-content-turbo-frame" href="/yt-dlp/yt-dlp">yt-dlp</a> </strong> <span></span><span class="Label Label--secondary v-align-middle mr-1">Public</span> </div> </div> <div id="repository-details-container" class="flex-shrink-0" data-turbo-replace style="max-width: 70%;"> <ul class="pagehead-actions flex-shrink-0 d-none d-md-inline" style="padding: 2px 0;"> <li> <include-fragment src="/yt-dlp/yt-dlp/sponsor_button"></include-fragment> </li> <li> <a href="/login?return_to=%2Fyt-dlp%2Fyt-dlp" rel="nofollow" id="repository-details-watch-button" data-hydro-click="{"event_type":"authentication.click","payload":{"location_in_page":"notification subscription menu watch","repository_id":null,"auth_type":"LOG_IN","originating_url":"https://github.com/yt-dlp/yt-dlp","user_id":null}}" data-hydro-click-hmac="25d866932736f37257f17d0534ac9692456b19e684ac271e82f67a73927a0c4f" aria-label="You must be signed in to change notification settings" data-view-component="true" class="btn-sm btn"> <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-bell mr-2"> <path d="M8 16a2 2 0 0 0 1.985-1.75c.017-.137-.097-.25-.235-.25h-3.5c-.138 0-.252.113-.235.25A2 2 0 0 0 8 16ZM3 5a5 5 0 0 1 10 0v2.947c0 .05.015.098.042.139l1.703 2.555A1.519 1.519 0 0 1 13.482 13H2.518a1.516 1.516 0 0 1-1.263-2.36l1.703-2.554A.255.255 0 0 0 3 7.947Zm5-3.5A3.5 3.5 0 0 0 4.5 5v2.947c0 .346-.102.683-.294.97l-1.703 2.556a.017.017 0 0 0-.003.01l.001.006c0 .002.002.004.004.006l.006.004.007.001h10.964l.007-.001.006-.004.004-.006.001-.007a.017.017 0 0 0-.003-.01l-1.703-2.554a1.745 1.745 0 0 1-.294-.97V5A3.5 3.5 0 0 0 8 1.5Z"></path> </svg>Notifications </a> <tool-tip id="tooltip-745c306d-d6a6-4738-a8ae-944b8d78a3d3" for="repository-details-watch-button" popover="manual" data-direction="s" data-type="description" data-view-component="true" class="sr-only position-absolute">You must be signed in to change notification settings</tool-tip> </li> <li> <a icon="repo-forked" id="fork-button" href="/login?return_to=%2Fyt-dlp%2Fyt-dlp" rel="nofollow" data-hydro-click="{"event_type":"authentication.click","payload":{"location_in_page":"repo details fork button","repository_id":307260205,"auth_type":"LOG_IN","originating_url":"https://github.com/yt-dlp/yt-dlp","user_id":null}}" data-hydro-click-hmac="26ad800b8c740f0415ac332475b26b5b450f2ea4430675787e2bbccd3fbf6d80" data-view-component="true" class="btn-sm btn"> <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-repo-forked mr-2"> <path d="M5 5.372v.878c0 .414.336.75.75.75h4.5a.75.75 0 0 0 .75-.75v-.878a2.25 2.25 0 1 1 1.5 0v.878a2.25 2.25 0 0 1-2.25 2.25h-1.5v2.128a2.251 2.251 0 1 1-1.5 0V8.5h-1.5A2.25 2.25 0 0 1 3.5 6.25v-.878a2.25 2.25 0 1 1 1.5 0ZM5 3.25a.75.75 0 1 0-1.5 0 .75.75 0 0 0 1.5 0Zm6.75.75a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5Zm-3 8.75a.75.75 0 1 0-1.5 0 .75.75 0 0 0 1.5 0Z"></path> </svg>Fork <span id="repo-network-counter" data-pjax-replace="true" data-turbo-replace="true" title="8,343" data-view-component="true" class="Counter">8.3k</span> </a> </li> <li> <div data-view-component="true" class="BtnGroup d-flex"> <a href="/login?return_to=%2Fyt-dlp%2Fyt-dlp" rel="nofollow" data-hydro-click="{"event_type":"authentication.click","payload":{"location_in_page":"star button","repository_id":307260205,"auth_type":"LOG_IN","originating_url":"https://github.com/yt-dlp/yt-dlp","user_id":null}}" data-hydro-click-hmac="19eb4b1651fe45b7ad545b1bdf754d7b205f7655aed4d41ce177a2875d1850f6" aria-label="You must be signed in to star a repository" data-view-component="true" class="tooltipped tooltipped-sw btn-sm btn"> <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-star v-align-text-bottom d-inline-block mr-2"> <path d="M8 .25a.75.75 0 0 1 .673.418l1.882 3.815 4.21.612a.75.75 0 0 1 .416 1.279l-3.046 2.97.719 4.192a.751.751 0 0 1-1.088.791L8 12.347l-3.766 1.98a.75.75 0 0 1-1.088-.79l.72-4.194L.818 6.374a.75.75 0 0 1 .416-1.28l4.21-.611L7.327.668A.75.75 0 0 1 8 .25Zm0 2.445L6.615 5.5a.75.75 0 0 1-.564.41l-3.097.45 2.24 2.184a.75.75 0 0 1 .216.664l-.528 3.084 2.769-1.456a.75.75 0 0 1 .698 0l2.77 1.456-.53-3.084a.75.75 0 0 1 .216-.664l2.24-2.183-3.096-.45a.75.75 0 0 1-.564-.41L8 2.694Z"></path> </svg><span data-view-component="true" class="d-inline"> Star </span> <span id="repo-stars-counter-star" aria-label="106267 users starred this repository" data-singular-suffix="user starred this repository" data-plural-suffix="users starred this repository" data-turbo-replace="true" title="106,267" data-view-component="true" class="Counter js-social-count">106k</span> </a></div> </li> </ul> </div> </div> <div id="responsive-meta-container" data-turbo-replace> <div class="d-block d-md-none mb-2 px-3 px-md-4 px-lg-5"> <p class="f4 mb-3 "> A feature-rich command-line audio/video downloader </p> <div class="mb-2 d-flex flex-items-center Link--secondary"> <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-link flex-shrink-0 mr-2"> <path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path> </svg> <span class="flex-auto min-width-0 css-truncate css-truncate-target width-fit"> <a title="https://discord.gg/H5MNcFW63r" role="link" target="_blank" class="text-bold" rel="noopener noreferrer" href="https://discord.gg/H5MNcFW63r">discord.gg/H5MNcFW63r</a> </span> </div> <h3 class="sr-only">License</h3> <div class="mb-2"> <a href="/yt-dlp/yt-dlp/blob/master/LICENSE" class="Link--muted" data-analytics-event="{"category":"Repository Overview","action":"click","label":"location:sidebar;file:license"}" > <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-law mr-2"> <path d="M8.75.75V2h.985c.304 0 .603.08.867.231l1.29.736c.038.022.08.033.124.033h2.234a.75.75 0 0 1 0 1.5h-.427l2.111 4.692a.75.75 0 0 1-.154.838l-.53-.53.529.531-.001.002-.002.002-.006.006-.006.005-.01.01-.045.04c-.21.176-.441.327-.686.45C14.556 10.78 13.88 11 13 11a4.498 4.498 0 0 1-2.023-.454 3.544 3.544 0 0 1-.686-.45l-.045-.04-.016-.015-.006-.006-.004-.004v-.001a.75.75 0 0 1-.154-.838L12.178 4.5h-.162c-.305 0-.604-.079-.868-.231l-1.29-.736a.245.245 0 0 0-.124-.033H8.75V13h2.5a.75.75 0 0 1 0 1.5h-6.5a.75.75 0 0 1 0-1.5h2.5V3.5h-.984a.245.245 0 0 0-.124.033l-1.289.737c-.265.15-.564.23-.869.23h-.162l2.112 4.692a.75.75 0 0 1-.154.838l-.53-.53.529.531-.001.002-.002.002-.006.006-.016.015-.045.04c-.21.176-.441.327-.686.45C4.556 10.78 3.88 11 3 11a4.498 4.498 0 0 1-2.023-.454 3.544 3.544 0 0 1-.686-.45l-.045-.04-.016-.015-.006-.006-.004-.004v-.001a.75.75 0 0 1-.154-.838L2.178 4.5H1.75a.75.75 0 0 1 0-1.5h2.234a.249.249 0 0 0 .125-.033l1.288-.737c.265-.15.564-.23.869-.23h.984V.75a.75.75 0 0 1 1.5 0Zm2.945 8.477c.285.135.718.273 1.305.273s1.02-.138 1.305-.273L13 6.327Zm-10 0c.285.135.718.273 1.305.273s1.02-.138 1.305-.273L3 6.327Z"></path> </svg> Unlicense license </a> </div> <div class="mb-3"> <a class="Link--secondary no-underline mr-3" href="/yt-dlp/yt-dlp/stargazers"> <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-star mr-1"> <path d="M8 .25a.75.75 0 0 1 .673.418l1.882 3.815 4.21.612a.75.75 0 0 1 .416 1.279l-3.046 2.97.719 4.192a.751.751 0 0 1-1.088.791L8 12.347l-3.766 1.98a.75.75 0 0 1-1.088-.79l.72-4.194L.818 6.374a.75.75 0 0 1 .416-1.28l4.21-.611L7.327.668A.75.75 0 0 1 8 .25Zm0 2.445L6.615 5.5a.75.75 0 0 1-.564.41l-3.097.45 2.24 2.184a.75.75 0 0 1 .216.664l-.528 3.084 2.769-1.456a.75.75 0 0 1 .698 0l2.77 1.456-.53-3.084a.75.75 0 0 1 .216-.664l2.24-2.183-3.096-.45a.75.75 0 0 1-.564-.41L8 2.694Z"></path> </svg> <span class="text-bold">106k</span> stars </a> <a class="Link--secondary no-underline mr-3" href="/yt-dlp/yt-dlp/forks"> <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-repo-forked mr-1"> <path d="M5 5.372v.878c0 .414.336.75.75.75h4.5a.75.75 0 0 0 .75-.75v-.878a2.25 2.25 0 1 1 1.5 0v.878a2.25 2.25 0 0 1-2.25 2.25h-1.5v2.128a2.251 2.251 0 1 1-1.5 0V8.5h-1.5A2.25 2.25 0 0 1 3.5 6.25v-.878a2.25 2.25 0 1 1 1.5 0ZM5 3.25a.75.75 0 1 0-1.5 0 .75.75 0 0 0 1.5 0Zm6.75.75a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5Zm-3 8.75a.75.75 0 1 0-1.5 0 .75.75 0 0 0 1.5 0Z"></path> </svg> <span class="text-bold">8.3k</span> forks </a> <a class="Link--secondary no-underline mr-3 d-inline-block" href="/yt-dlp/yt-dlp/branches"> <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-git-branch mr-1"> <path d="M9.5 3.25a2.25 2.25 0 1 1 3 2.122V6A2.5 2.5 0 0 1 10 8.5H6a1 1 0 0 0-1 1v1.128a2.251 2.251 0 1 1-1.5 0V5.372a2.25 2.25 0 1 1 1.5 0v1.836A2.493 2.493 0 0 1 6 7h4a1 1 0 0 0 1-1v-.628A2.25 2.25 0 0 1 9.5 3.25Zm-6 0a.75.75 0 1 0 1.5 0 .75.75 0 0 0-1.5 0Zm8.25-.75a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5ZM4.25 12a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5Z"></path> </svg> <span>Branches</span> </a> <a class="Link--secondary no-underline d-inline-block" href="/yt-dlp/yt-dlp/tags"> <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-tag mr-1"> <path d="M1 7.775V2.75C1 1.784 1.784 1 2.75 1h5.025c.464 0 .91.184 1.238.513l6.25 6.25a1.75 1.75 0 0 1 0 2.474l-5.026 5.026a1.75 1.75 0 0 1-2.474 0l-6.25-6.25A1.752 1.752 0 0 1 1 7.775Zm1.5 0c0 .066.026.13.073.177l6.25 6.25a.25.25 0 0 0 .354 0l5.025-5.025a.25.25 0 0 0 0-.354l-6.25-6.25a.25.25 0 0 0-.177-.073H2.75a.25.25 0 0 0-.25.25ZM6 5a1 1 0 1 1 0 2 1 1 0 0 1 0-2Z"></path> </svg> <span>Tags</span> </a> <a class="Link--secondary no-underline d-inline-block" href="/yt-dlp/yt-dlp/activity"> <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-pulse mr-1"> <path d="M6 2c.306 0 .582.187.696.471L10 10.731l1.304-3.26A.751.751 0 0 1 12 7h3.25a.75.75 0 0 1 0 1.5h-2.742l-1.812 4.528a.751.751 0 0 1-1.392 0L6 4.77 4.696 8.03A.75.75 0 0 1 4 8.5H.75a.75.75 0 0 1 0-1.5h2.742l1.812-4.529A.751.751 0 0 1 6 2Z"></path> </svg> <span>Activity</span> </a> </div> <div class="d-flex flex-wrap gap-2"> <div class="flex-1"> <div data-view-component="true" class="BtnGroup d-flex"> <a href="/login?return_to=%2Fyt-dlp%2Fyt-dlp" rel="nofollow" data-hydro-click="{"event_type":"authentication.click","payload":{"location_in_page":"star button","repository_id":307260205,"auth_type":"LOG_IN","originating_url":"https://github.com/yt-dlp/yt-dlp","user_id":null}}" data-hydro-click-hmac="19eb4b1651fe45b7ad545b1bdf754d7b205f7655aed4d41ce177a2875d1850f6" aria-label="You must be signed in to star a repository" data-view-component="true" class="tooltipped tooltipped-sw btn-sm btn btn-block"> <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-star v-align-text-bottom d-inline-block mr-2"> <path d="M8 .25a.75.75 0 0 1 .673.418l1.882 3.815 4.21.612a.75.75 0 0 1 .416 1.279l-3.046 2.97.719 4.192a.751.751 0 0 1-1.088.791L8 12.347l-3.766 1.98a.75.75 0 0 1-1.088-.79l.72-4.194L.818 6.374a.75.75 0 0 1 .416-1.28l4.21-.611L7.327.668A.75.75 0 0 1 8 .25Zm0 2.445L6.615 5.5a.75.75 0 0 1-.564.41l-3.097.45 2.24 2.184a.75.75 0 0 1 .216.664l-.528 3.084 2.769-1.456a.75.75 0 0 1 .698 0l2.77 1.456-.53-3.084a.75.75 0 0 1 .216-.664l2.24-2.183-3.096-.45a.75.75 0 0 1-.564-.41L8 2.694Z"></path> </svg><span data-view-component="true" class="d-inline"> Star </span> </a></div> </div> <div class="flex-1"> <a href="/login?return_to=%2Fyt-dlp%2Fyt-dlp" rel="nofollow" id="files-overview-watch-button" data-hydro-click="{"event_type":"authentication.click","payload":{"location_in_page":"notification subscription menu watch","repository_id":null,"auth_type":"LOG_IN","originating_url":"https://github.com/yt-dlp/yt-dlp","user_id":null}}" data-hydro-click-hmac="25d866932736f37257f17d0534ac9692456b19e684ac271e82f67a73927a0c4f" aria-label="You must be signed in to change notification settings" data-view-component="true" class="btn-sm btn btn-block"> <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-bell mr-2"> <path d="M8 16a2 2 0 0 0 1.985-1.75c.017-.137-.097-.25-.235-.25h-3.5c-.138 0-.252.113-.235.25A2 2 0 0 0 8 16ZM3 5a5 5 0 0 1 10 0v2.947c0 .05.015.098.042.139l1.703 2.555A1.519 1.519 0 0 1 13.482 13H2.518a1.516 1.516 0 0 1-1.263-2.36l1.703-2.554A.255.255 0 0 0 3 7.947Zm5-3.5A3.5 3.5 0 0 0 4.5 5v2.947c0 .346-.102.683-.294.97l-1.703 2.556a.017.017 0 0 0-.003.01l.001.006c0 .002.002.004.004.006l.006.004.007.001h10.964l.007-.001.006-.004.004-.006.001-.007a.017.017 0 0 0-.003-.01l-1.703-2.554a1.745 1.745 0 0 1-.294-.97V5A3.5 3.5 0 0 0 8 1.5Z"></path> </svg>Notifications </a> <tool-tip id="tooltip-192a59b3-651b-4d0a-8d0a-f5986e4238e2" for="files-overview-watch-button" popover="manual" data-direction="s" data-type="description" data-view-component="true" class="sr-only position-absolute">You must be signed in to change notification settings</tool-tip> </div> <span> </span> </div> </div> </div> <nav data-pjax="#js-repo-pjax-container" aria-label="Repository" data-view-component="true" class="js-repo-nav js-sidenav-container-pjax js-responsive-underlinenav overflow-hidden UnderlineNav px-3 px-md-4 px-lg-5"> <ul data-view-component="true" class="UnderlineNav-body list-style-none"> <li data-view-component="true" class="d-inline-flex"> <a id="code-tab" href="/yt-dlp/yt-dlp" data-tab-item="i0code-tab" data-selected-links="repo_source repo_downloads repo_commits repo_releases repo_tags repo_branches repo_packages repo_deployments repo_attestations /yt-dlp/yt-dlp" data-pjax="#repo-content-pjax-container" data-turbo-frame="repo-content-turbo-frame" data-hotkey="g c" data-analytics-event="{"category":"Underline navbar","action":"Click tab","label":"Code","target":"UNDERLINE_NAV.TAB"}" aria-current="page" data-view-component="true" class="UnderlineNav-item no-wrap js-responsive-underlinenav-item js-selected-navigation-item selected"> <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-code UnderlineNav-octicon d-none d-sm-inline"> <path d="m11.28 3.22 4.25 4.25a.75.75 0 0 1 0 1.06l-4.25 4.25a.749.749 0 0 1-1.275-.326.749.749 0 0 1 .215-.734L13.94 8l-3.72-3.72a.749.749 0 0 1 .326-1.275.749.749 0 0 1 .734.215Zm-6.56 0a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042L2.06 8l3.72 3.72a.749.749 0 0 1-.326 1.275.749.749 0 0 1-.734-.215L.47 8.53a.75.75 0 0 1 0-1.06Z"></path> </svg> <span data-content="Code">Code</span> <span id="code-repo-tab-count" data-pjax-replace="" data-turbo-replace="" title="Not available" data-view-component="true" class="Counter"></span> </a></li> <li data-view-component="true" class="d-inline-flex"> <a id="issues-tab" href="/yt-dlp/yt-dlp/issues" data-tab-item="i1issues-tab" data-selected-links="repo_issues repo_labels repo_milestones /yt-dlp/yt-dlp/issues" data-pjax="#repo-content-pjax-container" data-turbo-frame="repo-content-turbo-frame" data-hotkey="g i" data-analytics-event="{"category":"Underline navbar","action":"Click tab","label":"Issues","target":"UNDERLINE_NAV.TAB"}" data-view-component="true" class="UnderlineNav-item no-wrap js-responsive-underlinenav-item js-selected-navigation-item"> <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-issue-opened UnderlineNav-octicon d-none d-sm-inline"> <path d="M8 9.5a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Z"></path><path d="M8 0a8 8 0 1 1 0 16A8 8 0 0 1 8 0ZM1.5 8a6.5 6.5 0 1 0 13 0 6.5 6.5 0 0 0-13 0Z"></path> </svg> <span data-content="Issues">Issues</span> <span id="issues-repo-tab-count" data-pjax-replace="" data-turbo-replace="" title="1,538" data-view-component="true" class="Counter">1.5k</span> </a></li> <li data-view-component="true" class="d-inline-flex"> <a id="pull-requests-tab" href="/yt-dlp/yt-dlp/pulls" data-tab-item="i2pull-requests-tab" data-selected-links="repo_pulls checks /yt-dlp/yt-dlp/pulls" data-pjax="#repo-content-pjax-container" data-turbo-frame="repo-content-turbo-frame" data-hotkey="g p" data-analytics-event="{"category":"Underline navbar","action":"Click tab","label":"Pull requests","target":"UNDERLINE_NAV.TAB"}" data-view-component="true" class="UnderlineNav-item no-wrap js-responsive-underlinenav-item js-selected-navigation-item"> <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-git-pull-request UnderlineNav-octicon d-none d-sm-inline"> <path d="M1.5 3.25a2.25 2.25 0 1 1 3 2.122v5.256a2.251 2.251 0 1 1-1.5 0V5.372A2.25 2.25 0 0 1 1.5 3.25Zm5.677-.177L9.573.677A.25.25 0 0 1 10 .854V2.5h1A2.5 2.5 0 0 1 13.5 5v5.628a2.251 2.251 0 1 1-1.5 0V5a1 1 0 0 0-1-1h-1v1.646a.25.25 0 0 1-.427.177L7.177 3.427a.25.25 0 0 1 0-.354ZM3.75 2.5a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5Zm0 9.5a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5Zm8.25.75a.75.75 0 1 0 1.5 0 .75.75 0 0 0-1.5 0Z"></path> </svg> <span data-content="Pull requests">Pull requests</span> <span id="pull-requests-repo-tab-count" data-pjax-replace="" data-turbo-replace="" title="336" data-view-component="true" class="Counter">336</span> </a></li> <li data-view-component="true" class="d-inline-flex"> <a id="discussions-tab" href="/yt-dlp/yt-dlp/discussions" data-tab-item="i3discussions-tab" data-selected-links="repo_discussions /yt-dlp/yt-dlp/discussions" data-pjax="#repo-content-pjax-container" data-turbo-frame="repo-content-turbo-frame" data-hotkey="g g" data-analytics-event="{"category":"Underline navbar","action":"Click tab","label":"Discussions","target":"UNDERLINE_NAV.TAB"}" data-view-component="true" class="UnderlineNav-item no-wrap js-responsive-underlinenav-item js-selected-navigation-item"> <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-comment-discussion UnderlineNav-octicon d-none d-sm-inline"> <path d="M1.75 1h8.5c.966 0 1.75.784 1.75 1.75v5.5A1.75 1.75 0 0 1 10.25 10H7.061l-2.574 2.573A1.458 1.458 0 0 1 2 11.543V10h-.25A1.75 1.75 0 0 1 0 8.25v-5.5C0 1.784.784 1 1.75 1ZM1.5 2.75v5.5c0 .138.112.25.25.25h1a.75.75 0 0 1 .75.75v2.19l2.72-2.72a.749.749 0 0 1 .53-.22h3.5a.25.25 0 0 0 .25-.25v-5.5a.25.25 0 0 0-.25-.25h-8.5a.25.25 0 0 0-.25.25Zm13 2a.25.25 0 0 0-.25-.25h-.5a.75.75 0 0 1 0-1.5h.5c.966 0 1.75.784 1.75 1.75v5.5A1.75 1.75 0 0 1 14.25 12H14v1.543a1.458 1.458 0 0 1-2.487 1.03L9.22 12.28a.749.749 0 0 1 .326-1.275.749.749 0 0 1 .734.215l2.22 2.22v-2.19a.75.75 0 0 1 .75-.75h1a.25.25 0 0 0 .25-.25Z"></path> </svg> <span data-content="Discussions">Discussions</span> <span id="discussions-repo-tab-count" data-pjax-replace="" data-turbo-replace="" title="Not available" data-view-component="true" class="Counter"></span> </a></li> <li data-view-component="true" class="d-inline-flex"> <a id="actions-tab" href="/yt-dlp/yt-dlp/actions" data-tab-item="i4actions-tab" data-selected-links="repo_actions /yt-dlp/yt-dlp/actions" data-pjax="#repo-content-pjax-container" data-turbo-frame="repo-content-turbo-frame" data-hotkey="g a" data-analytics-event="{"category":"Underline navbar","action":"Click tab","label":"Actions","target":"UNDERLINE_NAV.TAB"}" data-view-component="true" class="UnderlineNav-item no-wrap js-responsive-underlinenav-item js-selected-navigation-item"> <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-play UnderlineNav-octicon d-none d-sm-inline"> <path d="M8 0a8 8 0 1 1 0 16A8 8 0 0 1 8 0ZM1.5 8a6.5 6.5 0 1 0 13 0 6.5 6.5 0 0 0-13 0Zm4.879-2.773 4.264 2.559a.25.25 0 0 1 0 .428l-4.264 2.559A.25.25 0 0 1 6 10.559V5.442a.25.25 0 0 1 .379-.215Z"></path> </svg> <span data-content="Actions">Actions</span> <span id="actions-repo-tab-count" data-pjax-replace="" data-turbo-replace="" title="Not available" data-view-component="true" class="Counter"></span> </a></li> <li data-view-component="true" class="d-inline-flex"> <a id="projects-tab" href="/yt-dlp/yt-dlp/projects" data-tab-item="i5projects-tab" data-selected-links="repo_projects new_repo_project repo_project /yt-dlp/yt-dlp/projects" data-pjax="#repo-content-pjax-container" data-turbo-frame="repo-content-turbo-frame" data-hotkey="g b" data-analytics-event="{"category":"Underline navbar","action":"Click tab","label":"Projects","target":"UNDERLINE_NAV.TAB"}" data-view-component="true" class="UnderlineNav-item no-wrap js-responsive-underlinenav-item js-selected-navigation-item"> <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-table UnderlineNav-octicon d-none d-sm-inline"> <path d="M0 1.75C0 .784.784 0 1.75 0h12.5C15.216 0 16 .784 16 1.75v12.5A1.75 1.75 0 0 1 14.25 16H1.75A1.75 1.75 0 0 1 0 14.25ZM6.5 6.5v8h7.75a.25.25 0 0 0 .25-.25V6.5Zm8-1.5V1.75a.25.25 0 0 0-.25-.25H6.5V5Zm-13 1.5v7.75c0 .138.112.25.25.25H5v-8ZM5 5V1.5H1.75a.25.25 0 0 0-.25.25V5Z"></path> </svg> <span data-content="Projects">Projects</span> <span id="projects-repo-tab-count" data-pjax-replace="" data-turbo-replace="" title="4" data-view-component="true" class="Counter">4</span> </a></li> <li data-view-component="true" class="d-inline-flex"> <a id="wiki-tab" href="/yt-dlp/yt-dlp/wiki" data-tab-item="i6wiki-tab" data-selected-links="repo_wiki /yt-dlp/yt-dlp/wiki" data-pjax="#repo-content-pjax-container" data-turbo-frame="repo-content-turbo-frame" data-hotkey="g w" data-analytics-event="{"category":"Underline navbar","action":"Click tab","label":"Wiki","target":"UNDERLINE_NAV.TAB"}" data-view-component="true" class="UnderlineNav-item no-wrap js-responsive-underlinenav-item js-selected-navigation-item"> <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-book UnderlineNav-octicon d-none d-sm-inline"> <path d="M0 1.75A.75.75 0 0 1 .75 1h4.253c1.227 0 2.317.59 3 1.501A3.743 3.743 0 0 1 11.006 1h4.245a.75.75 0 0 1 .75.75v10.5a.75.75 0 0 1-.75.75h-4.507a2.25 2.25 0 0 0-1.591.659l-.622.621a.75.75 0 0 1-1.06 0l-.622-.621A2.25 2.25 0 0 0 5.258 13H.75a.75.75 0 0 1-.75-.75Zm7.251 10.324.004-5.073-.002-2.253A2.25 2.25 0 0 0 5.003 2.5H1.5v9h3.757a3.75 3.75 0 0 1 1.994.574ZM8.755 4.75l-.004 7.322a3.752 3.752 0 0 1 1.992-.572H14.5v-9h-3.495a2.25 2.25 0 0 0-2.25 2.25Z"></path> </svg> <span data-content="Wiki">Wiki</span> <span id="wiki-repo-tab-count" data-pjax-replace="" data-turbo-replace="" title="Not available" data-view-component="true" class="Counter"></span> </a></li> <li data-view-component="true" class="d-inline-flex"> <a id="security-tab" href="/yt-dlp/yt-dlp/security" data-tab-item="i7security-tab" data-selected-links="security overview alerts policy token_scanning code_scanning /yt-dlp/yt-dlp/security" data-pjax="#repo-content-pjax-container" data-turbo-frame="repo-content-turbo-frame" data-hotkey="g s" data-analytics-event="{"category":"Underline navbar","action":"Click tab","label":"Security","target":"UNDERLINE_NAV.TAB"}" data-view-component="true" class="UnderlineNav-item no-wrap js-responsive-underlinenav-item js-selected-navigation-item"> <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-shield UnderlineNav-octicon d-none d-sm-inline"> <path d="M7.467.133a1.748 1.748 0 0 1 1.066 0l5.25 1.68A1.75 1.75 0 0 1 15 3.48V7c0 1.566-.32 3.182-1.303 4.682-.983 1.498-2.585 2.813-5.032 3.855a1.697 1.697 0 0 1-1.33 0c-2.447-1.042-4.049-2.357-5.032-3.855C1.32 10.182 1 8.566 1 7V3.48a1.75 1.75 0 0 1 1.217-1.667Zm.61 1.429a.25.25 0 0 0-.153 0l-5.25 1.68a.25.25 0 0 0-.174.238V7c0 1.358.275 2.666 1.057 3.86.784 1.194 2.121 2.34 4.366 3.297a.196.196 0 0 0 .154 0c2.245-.956 3.582-2.104 4.366-3.298C13.225 9.666 13.5 8.36 13.5 7V3.48a.251.251 0 0 0-.174-.237l-5.25-1.68ZM8.75 4.75v3a.75.75 0 0 1-1.5 0v-3a.75.75 0 0 1 1.5 0ZM9 10.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z"></path> </svg> <span data-content="Security">Security</span> <include-fragment src="/yt-dlp/yt-dlp/security/overall-count" accept="text/fragment+html"></include-fragment> </a></li> <li data-view-component="true" class="d-inline-flex"> <a id="insights-tab" href="/yt-dlp/yt-dlp/pulse" data-tab-item="i8insights-tab" data-selected-links="repo_graphs repo_contributors dependency_graph dependabot_updates pulse people community /yt-dlp/yt-dlp/pulse" data-pjax="#repo-content-pjax-container" data-turbo-frame="repo-content-turbo-frame" data-analytics-event="{"category":"Underline navbar","action":"Click tab","label":"Insights","target":"UNDERLINE_NAV.TAB"}" data-view-component="true" class="UnderlineNav-item no-wrap js-responsive-underlinenav-item js-selected-navigation-item"> <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-graph UnderlineNav-octicon d-none d-sm-inline"> <path d="M1.5 1.75V13.5h13.75a.75.75 0 0 1 0 1.5H.75a.75.75 0 0 1-.75-.75V1.75a.75.75 0 0 1 1.5 0Zm14.28 2.53-5.25 5.25a.75.75 0 0 1-1.06 0L7 7.06 4.28 9.78a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042l3.25-3.25a.75.75 0 0 1 1.06 0L10 7.94l4.72-4.72a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042Z"></path> </svg> <span data-content="Insights">Insights</span> <span id="insights-repo-tab-count" data-pjax-replace="" data-turbo-replace="" title="Not available" data-view-component="true" class="Counter"></span> </a></li> </ul> <div style="visibility:hidden;" data-view-component="true" class="UnderlineNav-actions js-responsive-underlinenav-overflow position-absolute pr-3 pr-md-4 pr-lg-5 right-0"> <action-menu data-select-variant="none" data-view-component="true"> <focus-group direction="vertical" mnemonics retain> <button id="action-menu-61256b20-28e4-4ce0-b393-4dfbda43dbb2-button" popovertarget="action-menu-61256b20-28e4-4ce0-b393-4dfbda43dbb2-overlay" aria-controls="action-menu-61256b20-28e4-4ce0-b393-4dfbda43dbb2-list" aria-haspopup="true" aria-labelledby="tooltip-d3068b9c-5845-49e5-abaa-490f0969679c" type="button" data-view-component="true" class="Button Button--iconOnly Button--secondary Button--medium UnderlineNav-item"> <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-kebab-horizontal Button-visual"> <path d="M8 9a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3ZM1.5 9a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Zm13 0a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Z"></path> </svg> </button><tool-tip id="tooltip-d3068b9c-5845-49e5-abaa-490f0969679c" for="action-menu-61256b20-28e4-4ce0-b393-4dfbda43dbb2-button" popover="manual" data-direction="s" data-type="label" data-view-component="true" class="sr-only position-absolute">Additional navigation options</tool-tip> <anchored-position data-target="action-menu.overlay" id="action-menu-61256b20-28e4-4ce0-b393-4dfbda43dbb2-overlay" anchor="action-menu-61256b20-28e4-4ce0-b393-4dfbda43dbb2-button" align="start" side="outside-bottom" anchor-offset="normal" popover="auto" data-view-component="true"> <div data-view-component="true" class="Overlay Overlay--size-auto"> <div data-view-component="true" class="Overlay-body Overlay-body--paddingNone"> <action-list> <div data-view-component="true"> <ul aria-labelledby="action-menu-61256b20-28e4-4ce0-b393-4dfbda43dbb2-button" id="action-menu-61256b20-28e4-4ce0-b393-4dfbda43dbb2-list" role="menu" data-view-component="true" class="ActionListWrap--inset ActionListWrap"> <li hidden="hidden" data-menu-item="i0code-tab" data-targets="action-list.items" role="none" data-view-component="true" class="ActionListItem"> <a tabindex="-1" id="item-aac3cee8-524d-463a-93aa-77d143ed9fe8" href="/yt-dlp/yt-dlp" role="menuitem" data-view-component="true" class="ActionListContent ActionListContent--visual16"> <span class="ActionListItem-visual ActionListItem-visual--leading"> <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-code"> <path d="m11.28 3.22 4.25 4.25a.75.75 0 0 1 0 1.06l-4.25 4.25a.749.749 0 0 1-1.275-.326.749.749 0 0 1 .215-.734L13.94 8l-3.72-3.72a.749.749 0 0 1 .326-1.275.749.749 0 0 1 .734.215Zm-6.56 0a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042L2.06 8l3.72 3.72a.749.749 0 0 1-.326 1.275.749.749 0 0 1-.734-.215L.47 8.53a.75.75 0 0 1 0-1.06Z"></path> </svg> </span> <span data-view-component="true" class="ActionListItem-label"> Code </span> </a> </li> <li hidden="hidden" data-menu-item="i1issues-tab" data-targets="action-list.items" role="none" data-view-component="true" class="ActionListItem"> <a tabindex="-1" id="item-81774490-bc72-4094-84a9-58fa72957890" href="/yt-dlp/yt-dlp/issues" role="menuitem" data-view-component="true" class="ActionListContent ActionListContent--visual16"> <span class="ActionListItem-visual ActionListItem-visual--leading"> <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-issue-opened"> <path d="M8 9.5a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Z"></path><path d="M8 0a8 8 0 1 1 0 16A8 8 0 0 1 8 0ZM1.5 8a6.5 6.5 0 1 0 13 0 6.5 6.5 0 0 0-13 0Z"></path> </svg> </span> <span data-view-component="true" class="ActionListItem-label"> Issues </span> </a> </li> <li hidden="hidden" data-menu-item="i2pull-requests-tab" data-targets="action-list.items" role="none" data-view-component="true" class="ActionListItem"> <a tabindex="-1" id="item-80c0a4a5-7c23-4bb0-9ed1-c4cd0d7d0ee1" href="/yt-dlp/yt-dlp/pulls" role="menuitem" data-view-component="true" class="ActionListContent ActionListContent--visual16"> <span class="ActionListItem-visual ActionListItem-visual--leading"> <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-git-pull-request"> <path d="M1.5 3.25a2.25 2.25 0 1 1 3 2.122v5.256a2.251 2.251 0 1 1-1.5 0V5.372A2.25 2.25 0 0 1 1.5 3.25Zm5.677-.177L9.573.677A.25.25 0 0 1 10 .854V2.5h1A2.5 2.5 0 0 1 13.5 5v5.628a2.251 2.251 0 1 1-1.5 0V5a1 1 0 0 0-1-1h-1v1.646a.25.25 0 0 1-.427.177L7.177 3.427a.25.25 0 0 1 0-.354ZM3.75 2.5a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5Zm0 9.5a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5Zm8.25.75a.75.75 0 1 0 1.5 0 .75.75 0 0 0-1.5 0Z"></path> </svg> </span> <span data-view-component="true" class="ActionListItem-label"> Pull requests </span> </a> </li> <li hidden="hidden" data-menu-item="i3discussions-tab" data-targets="action-list.items" role="none" data-view-component="true" class="ActionListItem"> <a tabindex="-1" id="item-93736dde-acb7-4992-8234-7dd636ec1802" href="/yt-dlp/yt-dlp/discussions" role="menuitem" data-view-component="true" class="ActionListContent ActionListContent--visual16"> <span class="ActionListItem-visual ActionListItem-visual--leading"> <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-comment-discussion"> <path d="M1.75 1h8.5c.966 0 1.75.784 1.75 1.75v5.5A1.75 1.75 0 0 1 10.25 10H7.061l-2.574 2.573A1.458 1.458 0 0 1 2 11.543V10h-.25A1.75 1.75 0 0 1 0 8.25v-5.5C0 1.784.784 1 1.75 1ZM1.5 2.75v5.5c0 .138.112.25.25.25h1a.75.75 0 0 1 .75.75v2.19l2.72-2.72a.749.749 0 0 1 .53-.22h3.5a.25.25 0 0 0 .25-.25v-5.5a.25.25 0 0 0-.25-.25h-8.5a.25.25 0 0 0-.25.25Zm13 2a.25.25 0 0 0-.25-.25h-.5a.75.75 0 0 1 0-1.5h.5c.966 0 1.75.784 1.75 1.75v5.5A1.75 1.75 0 0 1 14.25 12H14v1.543a1.458 1.458 0 0 1-2.487 1.03L9.22 12.28a.749.749 0 0 1 .326-1.275.749.749 0 0 1 .734.215l2.22 2.22v-2.19a.75.75 0 0 1 .75-.75h1a.25.25 0 0 0 .25-.25Z"></path> </svg> </span> <span data-view-component="true" class="ActionListItem-label"> Discussions </span> </a> </li> <li hidden="hidden" data-menu-item="i4actions-tab" data-targets="action-list.items" role="none" data-view-component="true" class="ActionListItem"> <a tabindex="-1" id="item-974d0db6-8353-4238-81ce-40ed14765ef2" href="/yt-dlp/yt-dlp/actions" role="menuitem" data-view-component="true" class="ActionListContent ActionListContent--visual16"> <span class="ActionListItem-visual ActionListItem-visual--leading"> <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-play"> <path d="M8 0a8 8 0 1 1 0 16A8 8 0 0 1 8 0ZM1.5 8a6.5 6.5 0 1 0 13 0 6.5 6.5 0 0 0-13 0Zm4.879-2.773 4.264 2.559a.25.25 0 0 1 0 .428l-4.264 2.559A.25.25 0 0 1 6 10.559V5.442a.25.25 0 0 1 .379-.215Z"></path> </svg> </span> <span data-view-component="true" class="ActionListItem-label"> Actions </span> </a> </li> <li hidden="hidden" data-menu-item="i5projects-tab" data-targets="action-list.items" role="none" data-view-component="true" class="ActionListItem"> <a tabindex="-1" id="item-670c88fc-e1dc-4e6f-9bc8-787be17edc5c" href="/yt-dlp/yt-dlp/projects" role="menuitem" data-view-component="true" class="ActionListContent ActionListContent--visual16"> <span class="ActionListItem-visual ActionListItem-visual--leading"> <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-table"> <path d="M0 1.75C0 .784.784 0 1.75 0h12.5C15.216 0 16 .784 16 1.75v12.5A1.75 1.75 0 0 1 14.25 16H1.75A1.75 1.75 0 0 1 0 14.25ZM6.5 6.5v8h7.75a.25.25 0 0 0 .25-.25V6.5Zm8-1.5V1.75a.25.25 0 0 0-.25-.25H6.5V5Zm-13 1.5v7.75c0 .138.112.25.25.25H5v-8ZM5 5V1.5H1.75a.25.25 0 0 0-.25.25V5Z"></path> </svg> </span> <span data-view-component="true" class="ActionListItem-label"> Projects </span> </a> </li> <li hidden="hidden" data-menu-item="i6wiki-tab" data-targets="action-list.items" role="none" data-view-component="true" class="ActionListItem"> <a tabindex="-1" id="item-fe1dae0f-294d-44d1-b1f0-0fa0c5545248" href="/yt-dlp/yt-dlp/wiki" role="menuitem" data-view-component="true" class="ActionListContent ActionListContent--visual16"> <span class="ActionListItem-visual ActionListItem-visual--leading"> <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-book"> <path d="M0 1.75A.75.75 0 0 1 .75 1h4.253c1.227 0 2.317.59 3 1.501A3.743 3.743 0 0 1 11.006 1h4.245a.75.75 0 0 1 .75.75v10.5a.75.75 0 0 1-.75.75h-4.507a2.25 2.25 0 0 0-1.591.659l-.622.621a.75.75 0 0 1-1.06 0l-.622-.621A2.25 2.25 0 0 0 5.258 13H.75a.75.75 0 0 1-.75-.75Zm7.251 10.324.004-5.073-.002-2.253A2.25 2.25 0 0 0 5.003 2.5H1.5v9h3.757a3.75 3.75 0 0 1 1.994.574ZM8.755 4.75l-.004 7.322a3.752 3.752 0 0 1 1.992-.572H14.5v-9h-3.495a2.25 2.25 0 0 0-2.25 2.25Z"></path> </svg> </span> <span data-view-component="true" class="ActionListItem-label"> Wiki </span> </a> </li> <li hidden="hidden" data-menu-item="i7security-tab" data-targets="action-list.items" role="none" data-view-component="true" class="ActionListItem"> <a tabindex="-1" id="item-dc3af997-7293-47eb-9be8-f1ef6f7247e4" href="/yt-dlp/yt-dlp/security" role="menuitem" data-view-component="true" class="ActionListContent ActionListContent--visual16"> <span class="ActionListItem-visual ActionListItem-visual--leading"> <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-shield"> <path d="M7.467.133a1.748 1.748 0 0 1 1.066 0l5.25 1.68A1.75 1.75 0 0 1 15 3.48V7c0 1.566-.32 3.182-1.303 4.682-.983 1.498-2.585 2.813-5.032 3.855a1.697 1.697 0 0 1-1.33 0c-2.447-1.042-4.049-2.357-5.032-3.855C1.32 10.182 1 8.566 1 7V3.48a1.75 1.75 0 0 1 1.217-1.667Zm.61 1.429a.25.25 0 0 0-.153 0l-5.25 1.68a.25.25 0 0 0-.174.238V7c0 1.358.275 2.666 1.057 3.86.784 1.194 2.121 2.34 4.366 3.297a.196.196 0 0 0 .154 0c2.245-.956 3.582-2.104 4.366-3.298C13.225 9.666 13.5 8.36 13.5 7V3.48a.251.251 0 0 0-.174-.237l-5.25-1.68ZM8.75 4.75v3a.75.75 0 0 1-1.5 0v-3a.75.75 0 0 1 1.5 0ZM9 10.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z"></path> </svg> </span> <span data-view-component="true" class="ActionListItem-label"> Security </span> </a> </li> <li hidden="hidden" data-menu-item="i8insights-tab" data-targets="action-list.items" role="none" data-view-component="true" class="ActionListItem"> <a tabindex="-1" id="item-cb7d46f5-a973-468a-89c4-c00b702beb62" href="/yt-dlp/yt-dlp/pulse" role="menuitem" data-view-component="true" class="ActionListContent ActionListContent--visual16"> <span class="ActionListItem-visual ActionListItem-visual--leading"> <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-graph"> <path d="M1.5 1.75V13.5h13.75a.75.75 0 0 1 0 1.5H.75a.75.75 0 0 1-.75-.75V1.75a.75.75 0 0 1 1.5 0Zm14.28 2.53-5.25 5.25a.75.75 0 0 1-1.06 0L7 7.06 4.28 9.78a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042l3.25-3.25a.75.75 0 0 1 1.06 0L10 7.94l4.72-4.72a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042Z"></path> </svg> </span> <span data-view-component="true" class="ActionListItem-label"> Insights </span> </a> </li> </ul> </div></action-list> </div> </div></anchored-position> </focus-group> </action-menu></div> </nav> </div> <turbo-frame id="repo-content-turbo-frame" target="_top" data-turbo-action="advance" class=""> <div id="repo-content-pjax-container" class="repository-content " > <h1 class='sr-only'>yt-dlp/yt-dlp</h1> <div class="clearfix container-xl px-md-4 px-lg-5 px-3"> <div> <div style="max-width: 100%" data-view-component="true" class="Layout Layout--flowRow-until-md react-repos-overview-margin Layout--sidebarPosition-end Layout--sidebarPosition-flowRow-end"> <div data-view-component="true" class="Layout-main"> <script crossorigin="anonymous" defer="defer" type="application/javascript" src="https://github.githubassets.com/assets/vendors-node_modules_dompurify_dist_purify_es_mjs-dd1d3ea6a436.js"></script> <script crossorigin="anonymous" defer="defer" type="application/javascript" src="https://github.githubassets.com/assets/vendors-node_modules_tanstack_query-core_build_modern_queryObserver_js-node_modules_tanstack_-defd52-843b41414e0e.js"></script> <script crossorigin="anonymous" defer="defer" type="application/javascript" src="https://github.githubassets.com/assets/ui_packages_aria-live_aria-live_ts-ui_packages_history_history_ts-ui_packages_promise-with-re-01dc80-134579ff449f.js"></script> <script crossorigin="anonymous" defer="defer" type="application/javascript" src="https://github.githubassets.com/assets/ui_packages_paths_index_ts-3adbcf6faa83.js"></script> <script crossorigin="anonymous" defer="defer" type="application/javascript" src="https://github.githubassets.com/assets/ui_packages_ref-selector_RefSelector_tsx-7496afc3784d.js"></script> <script crossorigin="anonymous" defer="defer" type="application/javascript" src="https://github.githubassets.com/assets/ui_packages_commit-attribution_index_ts-ui_packages_commit-checks-status_index_ts-ui_packages-7094d4-b869a469ca5e.js"></script> <script crossorigin="anonymous" defer="defer" type="application/javascript" src="https://github.githubassets.com/assets/ui_packages_hydro-analytics_hydro-analytics_ts-ui_packages_verified-fetch_verified-fetch_ts-u-4672d1-96a19eaeffb7.js"></script> <script crossorigin="anonymous" defer="defer" type="application/javascript" src="https://github.githubassets.com/assets/ui_packages_code-view-shared_hooks_use-canonical-object_ts-ui_packages_code-view-shared_hooks-d63960-3a5579c864b4.js"></script> <script crossorigin="anonymous" defer="defer" type="application/javascript" src="https://github.githubassets.com/assets/repos-overview-46b726bfa5eb.js"></script> <link crossorigin="anonymous" media="all" rel="stylesheet" href="https://github.githubassets.com/assets/primer-react.8157a56b30ae88a1b356.module.css" /> <link crossorigin="anonymous" media="all" rel="stylesheet" href="https://github.githubassets.com/assets/repos-overview.0ee7cac3ab511a65d9f9.module.css" /> <react-partial partial-name="repos-overview" data-ssr="true" data-attempted-ssr="true" > <script type="application/json" data-target="react-partial.embeddedData">{"props":{"initialPayload":{"allShortcutsEnabled":false,"path":"/","repo":{"id":307260205,"defaultBranch":"master","name":"yt-dlp","ownerLogin":"yt-dlp","currentUserCanPush":false,"isFork":false,"isEmpty":false,"createdAt":"2020-10-26T04:22:55.000Z","ownerAvatar":"https://avatars.githubusercontent.com/u/79589310?v=4","public":true,"private":false,"isOrgOwned":true},"currentUser":null,"refInfo":{"name":"master","listCacheKey":"v0:1743458600.0","canEdit":false,"refType":"branch","currentOid":"349f36606fa7fb658216334a73ac7825c13503c2"},"tree":{"items":[{"name":".github","path":".github","contentType":"directory"},{"name":"bundle","path":"bundle","contentType":"directory"},{"name":"devscripts","path":"devscripts","contentType":"directory"},{"name":"test","path":"test","contentType":"directory"},{"name":"yt_dlp","path":"yt_dlp","contentType":"directory"},{"name":".editorconfig","path":".editorconfig","contentType":"file"},{"name":".gitattributes","path":".gitattributes","contentType":"file"},{"name":".gitignore","path":".gitignore","contentType":"file"},{"name":".pre-commit-config.yaml","path":".pre-commit-config.yaml","contentType":"file"},{"name":".pre-commit-hatch.yaml","path":".pre-commit-hatch.yaml","contentType":"file"},{"name":"CONTRIBUTING.md","path":"CONTRIBUTING.md","contentType":"file"},{"name":"CONTRIBUTORS","path":"CONTRIBUTORS","contentType":"file"},{"name":"Changelog.md","path":"Changelog.md","contentType":"file"},{"name":"Collaborators.md","path":"Collaborators.md","contentType":"file"},{"name":"LICENSE","path":"LICENSE","contentType":"file"},{"name":"Makefile","path":"Makefile","contentType":"file"},{"name":"README.md","path":"README.md","contentType":"file"},{"name":"public.key","path":"public.key","contentType":"file"},{"name":"pyproject.toml","path":"pyproject.toml","contentType":"file"},{"name":"setup.cfg","path":"setup.cfg","contentType":"file"},{"name":"supportedsites.md","path":"supportedsites.md","contentType":"file"},{"name":"yt-dlp.cmd","path":"yt-dlp.cmd","contentType":"file"},{"name":"yt-dlp.sh","path":"yt-dlp.sh","contentType":"file"}],"templateDirectorySuggestionUrl":null,"readme":null,"totalCount":23,"showBranchInfobar":false},"fileTree":null,"fileTreeProcessingTime":null,"foldersToFetch":[],"treeExpanded":false,"symbolsExpanded":false,"isOverview":true,"overview":{"banners":{"shouldRecommendReadme":false,"isPersonalRepo":false,"showUseActionBanner":false,"actionSlug":null,"actionId":null,"showProtectBranchBanner":false,"publishBannersInfo":{"dismissActionNoticePath":"/settings/dismiss-notice/publish_action_from_repo","releasePath":"/yt-dlp/yt-dlp/releases/new?marketplace=true","showPublishActionBanner":false},"interactionLimitBanner":null,"showInvitationBanner":false,"inviterName":null,"actionsMigrationBannerInfo":{"releaseTags":[],"showImmutableActionsMigrationBanner":false,"initialMigrationStatus":null}},"codeButton":{"contactPath":"/contact","isEnterprise":false,"local":{"protocolInfo":{"httpAvailable":true,"sshAvailable":null,"httpUrl":"https://github.com/yt-dlp/yt-dlp.git","showCloneWarning":null,"sshUrl":null,"sshCertificatesRequired":null,"sshCertificatesAvailable":null,"ghCliUrl":"gh repo clone yt-dlp/yt-dlp","defaultProtocol":"http","newSshKeyUrl":"/settings/ssh/new","setProtocolPath":"/users/set_protocol"},"platformInfo":{"cloneUrl":"https://desktop.github.com","showVisualStudioCloneButton":false,"visualStudioCloneUrl":"https://windows.github.com","showXcodeCloneButton":false,"xcodeCloneUrl":"xcode://clone?repo=https%3A%2F%2Fgithub.com%2Fyt-dlp%2Fyt-dlp","zipballUrl":"/yt-dlp/yt-dlp/archive/refs/heads/master.zip"}},"newCodespacePath":"/codespaces/new?hide_repo_select=true\u0026repo=307260205"},"popovers":{"rename":null,"renamedParentRepo":null},"commitCount":"23,103","overviewFiles":[{"displayName":"README.md","repoName":"yt-dlp","refName":"master","path":"README.md","preferredFileType":"readme","tabName":"README","richText":"\u003carticle class=\"markdown-body entry-content container-lg\" itemprop=\"text\"\u003e\n\u003cdiv align=\"center\" dir=\"auto\"\u003e\n\u003cp dir=\"auto\"\u003e\u003ca href=\"#readme\"\u003e\u003cimg src=\"https://raw.githubusercontent.com/yt-dlp/yt-dlp/master/.github/banner.svg\" alt=\"YT-DLP\" style=\"max-width: 100%;\"\u003e\u003c/a\u003e\u003c/p\u003e\n\u003cp dir=\"auto\"\u003e\u003ca href=\"#installation\" title=\"Installation\"\u003e\u003cimg src=\"https://camo.githubusercontent.com/824c72c3297a271beecfd91279127f6f407e95ff0668801c79b6109eada7f129/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f79742d646c702f79742d646c703f636f6c6f723d627269676874677265656e266c6162656c3d446f776e6c6f6164267374796c653d666f722d7468652d6261646765\" alt=\"Release version\" data-canonical-src=\"https://img.shields.io/github/v/release/yt-dlp/yt-dlp?color=brightgreen\u0026amp;label=Download\u0026amp;style=for-the-badge\" style=\"max-width: 100%;\"\u003e\u003c/a\u003e\n\u003ca href=\"https://pypi.org/project/yt-dlp\" title=\"PyPI\" rel=\"nofollow\"\u003e\u003cimg src=\"https://camo.githubusercontent.com/79555c09a5a7a4a1e68f9d5a62d202ac95d35a7f863056286dccd9e5f0041b88/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f2d507950492d626c75652e7376673f6c6f676f3d70797069266c6162656c436f6c6f723d353535353535267374796c653d666f722d7468652d6261646765\" alt=\"PyPI\" data-canonical-src=\"https://img.shields.io/badge/-PyPI-blue.svg?logo=pypi\u0026amp;labelColor=555555\u0026amp;style=for-the-badge\" style=\"max-width: 100%;\"\u003e\u003c/a\u003e\n\u003ca href=\"/yt-dlp/yt-dlp/blob/master/Collaborators.md#collaborators\" title=\"Donate\"\u003e\u003cimg src=\"https://camo.githubusercontent.com/a8b252926d34e6123df43a4f0b9fa19d1fef006ffe4613e79eeff5421acf90e3/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5f2d446f6e6174652d7265642e7376673f6c6f676f3d67697468756273706f6e736f7273266c6162656c436f6c6f723d353535353535267374796c653d666f722d7468652d6261646765\" alt=\"Donate\" data-canonical-src=\"https://img.shields.io/badge/_-Donate-red.svg?logo=githubsponsors\u0026amp;labelColor=555555\u0026amp;style=for-the-badge\" style=\"max-width: 100%;\"\u003e\u003c/a\u003e\n\u003ca href=\"https://discord.gg/H5MNcFW63r\" title=\"Discord\" rel=\"nofollow\"\u003e\u003cimg src=\"https://camo.githubusercontent.com/bcdc8bc6e8838a459e598b3746c9adb9c5c0812f8f32e704022f36461ba4eecd/68747470733a2f2f696d672e736869656c64732e696f2f646973636f72642f3830373234353635323037323835373631303f636f6c6f723d626c7565266c6162656c436f6c6f723d353535353535266c6162656c3d266c6f676f3d646973636f7264267374796c653d666f722d7468652d6261646765\" alt=\"Discord\" data-canonical-src=\"https://img.shields.io/discord/807245652072857610?color=blue\u0026amp;labelColor=555555\u0026amp;label=\u0026amp;logo=discord\u0026amp;style=for-the-badge\" style=\"max-width: 100%;\"\u003e\u003c/a\u003e\n\u003ca href=\"/yt-dlp/yt-dlp/blob/master/supportedsites.md\" title=\"Supported Sites\"\u003e\u003cimg src=\"https://camo.githubusercontent.com/9bb4f56a3ada2140c086180a32a4576bfc064d01d707868fbed82a82a16d7daf/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f2d537570706f727465645f53697465732d627269676874677265656e2e7376673f7374796c653d666f722d7468652d6261646765\" alt=\"Supported Sites\" data-canonical-src=\"https://img.shields.io/badge/-Supported_Sites-brightgreen.svg?style=for-the-badge\" style=\"max-width: 100%;\"\u003e\u003c/a\u003e\n\u003ca href=\"/yt-dlp/yt-dlp/blob/master/LICENSE\" title=\"License\"\u003e\u003cimg src=\"https://camo.githubusercontent.com/3ec72577617d8f6ea3f2344049e148b8a2dabb1051caf3fb9b7732f3619296c9/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f2d556e6c6963656e73652d626c75652e7376673f7374796c653d666f722d7468652d6261646765\" alt=\"License: Unlicense\" data-canonical-src=\"https://img.shields.io/badge/-Unlicense-blue.svg?style=for-the-badge\" style=\"max-width: 100%;\"\u003e\u003c/a\u003e\n\u003ca href=\"https://github.com/yt-dlp/yt-dlp/actions\" title=\"CI Status\"\u003e\u003cimg src=\"https://camo.githubusercontent.com/7114361feea039be67be15c164bfffa0d730d0cef4d5226bd2b7a48741490829/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f79742d646c702f79742d646c702f636f72652e796d6c3f6272616e63683d6d6173746572266c6162656c3d5465737473267374796c653d666f722d7468652d6261646765\" alt=\"CI Status\" data-canonical-src=\"https://img.shields.io/github/actions/workflow/status/yt-dlp/yt-dlp/core.yml?branch=master\u0026amp;label=Tests\u0026amp;style=for-the-badge\" style=\"max-width: 100%;\"\u003e\u003c/a\u003e\n\u003ca href=\"https://github.com/yt-dlp/yt-dlp/commits\" title=\"Commit History\"\u003e\u003cimg src=\"https://camo.githubusercontent.com/07fe11d7c0f2176346c671010a08ac5913f75cbedb39f0cc38e8a5f201848a0e/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f636f6d6d69742d61637469766974792f6d2f79742d646c702f79742d646c703f6c6162656c3d636f6d6d697473267374796c653d666f722d7468652d6261646765\" alt=\"Commits\" data-canonical-src=\"https://img.shields.io/github/commit-activity/m/yt-dlp/yt-dlp?label=commits\u0026amp;style=for-the-badge\" style=\"max-width: 100%;\"\u003e\u003c/a\u003e\n\u003ca href=\"https://github.com/yt-dlp/yt-dlp/pulse/monthly\" title=\"Last activity\"\u003e\u003cimg src=\"https://camo.githubusercontent.com/45cb6641545c3d0cc3932c03451537f53f2ef42114235091a392ef4e7af9d7dd/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6173742d636f6d6d69742f79742d646c702f79742d646c702f6d61737465723f6c6162656c3d267374796c653d666f722d7468652d626164676526646973706c61795f74696d657374616d703d636f6d6d6974746572\" alt=\"Last Commit\" data-canonical-src=\"https://img.shields.io/github/last-commit/yt-dlp/yt-dlp/master?label=\u0026amp;style=for-the-badge\u0026amp;display_timestamp=committer\" style=\"max-width: 100%;\"\u003e\u003c/a\u003e\u003c/p\u003e\n\u003c/div\u003e\n\n\u003cp dir=\"auto\"\u003eyt-dlp is a feature-rich command-line audio/video downloader with support for \u003ca href=\"/yt-dlp/yt-dlp/blob/master/supportedsites.md\"\u003ethousands of sites\u003c/a\u003e. The project is a fork of \u003ca href=\"https://github.com/ytdl-org/youtube-dl\"\u003eyoutube-dl\u003c/a\u003e based on the now inactive \u003ca href=\"https://github.com/blackjack4494/yt-dlc\"\u003eyoutube-dlc\u003c/a\u003e.\u003c/p\u003e\n\n\n\u003cul dir=\"auto\"\u003e\n\u003cli\u003e\u003ca href=\"#installation\"\u003eINSTALLATION\u003c/a\u003e\n\u003cul dir=\"auto\"\u003e\n\u003cli\u003e\u003ca href=\"https://github.com/yt-dlp/yt-dlp/wiki/Installation\"\u003eDetailed instructions\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"#release-files\"\u003eRelease Files\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"#update\"\u003eUpdate\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"#dependencies\"\u003eDependencies\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"#compile\"\u003eCompile\u003c/a\u003e\u003c/li\u003e\n\u003c/ul\u003e\n\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"#usage-and-options\"\u003eUSAGE AND OPTIONS\u003c/a\u003e\n\u003cul dir=\"auto\"\u003e\n\u003cli\u003e\u003ca href=\"#general-options\"\u003eGeneral Options\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"#network-options\"\u003eNetwork Options\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"#geo-restriction\"\u003eGeo-restriction\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"#video-selection\"\u003eVideo Selection\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"#download-options\"\u003eDownload Options\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"#filesystem-options\"\u003eFilesystem Options\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"#thumbnail-options\"\u003eThumbnail Options\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"#internet-shortcut-options\"\u003eInternet Shortcut Options\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"#verbosity-and-simulation-options\"\u003eVerbosity and Simulation Options\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"#workarounds\"\u003eWorkarounds\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"#video-format-options\"\u003eVideo Format Options\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"#subtitle-options\"\u003eSubtitle Options\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"#authentication-options\"\u003eAuthentication Options\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"#post-processing-options\"\u003ePost-processing Options\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"#sponsorblock-options\"\u003eSponsorBlock Options\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"#extractor-options\"\u003eExtractor Options\u003c/a\u003e\u003c/li\u003e\n\u003c/ul\u003e\n\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"#configuration\"\u003eCONFIGURATION\u003c/a\u003e\n\u003cul dir=\"auto\"\u003e\n\u003cli\u003e\u003ca href=\"#configuration-file-encoding\"\u003eConfiguration file encoding\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"#authentication-with-netrc\"\u003eAuthentication with netrc\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"#notes-about-environment-variables\"\u003eNotes about environment variables\u003c/a\u003e\u003c/li\u003e\n\u003c/ul\u003e\n\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"#output-template\"\u003eOUTPUT TEMPLATE\u003c/a\u003e\n\u003cul dir=\"auto\"\u003e\n\u003cli\u003e\u003ca href=\"#output-template-examples\"\u003eOutput template examples\u003c/a\u003e\u003c/li\u003e\n\u003c/ul\u003e\n\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"#format-selection\"\u003eFORMAT SELECTION\u003c/a\u003e\n\u003cul dir=\"auto\"\u003e\n\u003cli\u003e\u003ca href=\"#filtering-formats\"\u003eFiltering Formats\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"#sorting-formats\"\u003eSorting Formats\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"#format-selection-examples\"\u003eFormat Selection examples\u003c/a\u003e\u003c/li\u003e\n\u003c/ul\u003e\n\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"#modifying-metadata\"\u003eMODIFYING METADATA\u003c/a\u003e\n\u003cul dir=\"auto\"\u003e\n\u003cli\u003e\u003ca href=\"#modifying-metadata-examples\"\u003eModifying metadata examples\u003c/a\u003e\u003c/li\u003e\n\u003c/ul\u003e\n\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"#extractor-arguments\"\u003eEXTRACTOR ARGUMENTS\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"#plugins\"\u003ePLUGINS\u003c/a\u003e\n\u003cul dir=\"auto\"\u003e\n\u003cli\u003e\u003ca href=\"#installing-plugins\"\u003eInstalling Plugins\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"#developing-plugins\"\u003eDeveloping Plugins\u003c/a\u003e\u003c/li\u003e\n\u003c/ul\u003e\n\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"#embedding-yt-dlp\"\u003eEMBEDDING YT-DLP\u003c/a\u003e\n\u003cul dir=\"auto\"\u003e\n\u003cli\u003e\u003ca href=\"#embedding-examples\"\u003eEmbedding examples\u003c/a\u003e\u003c/li\u003e\n\u003c/ul\u003e\n\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"#changes-from-youtube-dl\"\u003eCHANGES FROM YOUTUBE-DL\u003c/a\u003e\n\u003cul dir=\"auto\"\u003e\n\u003cli\u003e\u003ca href=\"#new-features\"\u003eNew features\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"#differences-in-default-behavior\"\u003eDifferences in default behavior\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"#deprecated-options\"\u003eDeprecated options\u003c/a\u003e\u003c/li\u003e\n\u003c/ul\u003e\n\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"/yt-dlp/yt-dlp/blob/master/CONTRIBUTING.md#contributing-to-yt-dlp\"\u003eCONTRIBUTING\u003c/a\u003e\n\u003cul dir=\"auto\"\u003e\n\u003cli\u003e\u003ca href=\"/yt-dlp/yt-dlp/blob/master/CONTRIBUTING.md#opening-an-issue\"\u003eOpening an Issue\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"/yt-dlp/yt-dlp/blob/master/CONTRIBUTING.md#developer-instructions\"\u003eDeveloper Instructions\u003c/a\u003e\u003c/li\u003e\n\u003c/ul\u003e\n\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"https://github.com/yt-dlp/yt-dlp/wiki\"\u003eWIKI\u003c/a\u003e\n\u003cul dir=\"auto\"\u003e\n\u003cli\u003e\u003ca href=\"https://github.com/yt-dlp/yt-dlp/wiki/FAQ\"\u003eFAQ\u003c/a\u003e\u003c/li\u003e\n\u003c/ul\u003e\n\u003c/li\u003e\n\u003c/ul\u003e\n\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch1 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eINSTALLATION\u003c/h1\u003e\u003ca id=\"user-content-installation\" class=\"anchor\" aria-label=\"Permalink: INSTALLATION\" href=\"#installation\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\n\u003cp dir=\"auto\"\u003e\u003ca href=\"https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp.exe\"\u003e\u003cimg src=\"https://camo.githubusercontent.com/95e4bf16965c1b490f880220bbe4fdbe4cd40f51e67830ea33aefb1c1db8ce16/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f2d57696e646f77735f7836342d626c75652e7376673f7374796c653d666f722d7468652d6261646765266c6f676f3d77696e646f7773\" alt=\"Windows\" data-canonical-src=\"https://img.shields.io/badge/-Windows_x64-blue.svg?style=for-the-badge\u0026amp;logo=windows\" style=\"max-width: 100%;\"\u003e\u003c/a\u003e\n\u003ca href=\"https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp\"\u003e\u003cimg src=\"https://camo.githubusercontent.com/6ddbf1063269fce338835e2e8f388da9248d52098980cba869fe4520224da5ba/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f2d4c696e75782f4253442d7265642e7376673f7374796c653d666f722d7468652d6261646765266c6f676f3d6c696e7578\" alt=\"Unix\" data-canonical-src=\"https://img.shields.io/badge/-Linux/BSD-red.svg?style=for-the-badge\u0026amp;logo=linux\" style=\"max-width: 100%;\"\u003e\u003c/a\u003e\n\u003ca href=\"https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp_macos\"\u003e\u003cimg src=\"https://camo.githubusercontent.com/7577b1b5f9261d4114046238799bfcd170bbc9ed5ad0089acf174a864a0dd208/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f2d4d61634f532d6c69676874626c75652e7376673f7374796c653d666f722d7468652d6261646765266c6f676f3d6170706c65\" alt=\"MacOS\" data-canonical-src=\"https://img.shields.io/badge/-MacOS-lightblue.svg?style=for-the-badge\u0026amp;logo=apple\" style=\"max-width: 100%;\"\u003e\u003c/a\u003e\n\u003ca href=\"https://pypi.org/project/yt-dlp\" rel=\"nofollow\"\u003e\u003cimg src=\"https://camo.githubusercontent.com/79555c09a5a7a4a1e68f9d5a62d202ac95d35a7f863056286dccd9e5f0041b88/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f2d507950492d626c75652e7376673f6c6f676f3d70797069266c6162656c436f6c6f723d353535353535267374796c653d666f722d7468652d6261646765\" alt=\"PyPI\" data-canonical-src=\"https://img.shields.io/badge/-PyPI-blue.svg?logo=pypi\u0026amp;labelColor=555555\u0026amp;style=for-the-badge\" style=\"max-width: 100%;\"\u003e\u003c/a\u003e\n\u003ca href=\"https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp.tar.gz\"\u003e\u003cimg src=\"https://camo.githubusercontent.com/3f11336f5c0406be71ab2a0085a3a1e99d9fdb6b3d318bf461c6a14b57c6fb7e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f2d536f757263655f7461722d677265656e2e7376673f7374796c653d666f722d7468652d6261646765\" alt=\"Source Tarball\" data-canonical-src=\"https://img.shields.io/badge/-Source_tar-green.svg?style=for-the-badge\" style=\"max-width: 100%;\"\u003e\u003c/a\u003e\n\u003ca href=\"#release-files\"\u003e\u003cimg src=\"https://camo.githubusercontent.com/2f43ea6dd7ef826a81a062a027b19c73f03f6bfb7e09dd498781b156ff81e4d5/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f2d4f746865722d677265792e7376673f7374796c653d666f722d7468652d6261646765\" alt=\"Other variants\" data-canonical-src=\"https://img.shields.io/badge/-Other-grey.svg?style=for-the-badge\" style=\"max-width: 100%;\"\u003e\u003c/a\u003e\n\u003ca href=\"https://github.com/yt-dlp/yt-dlp/releases\"\u003e\u003cimg src=\"https://camo.githubusercontent.com/6fbe31e8af8814abcbff56a77ad611fa7e9eb1aeb4bef85d7a8a65de1122b232/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f2d416c6c5f56657273696f6e732d6c69676874677265792e7376673f7374796c653d666f722d7468652d6261646765\" alt=\"All versions\" data-canonical-src=\"https://img.shields.io/badge/-All_Versions-lightgrey.svg?style=for-the-badge\" style=\"max-width: 100%;\"\u003e\u003c/a\u003e\u003c/p\u003e\n\n\u003cp dir=\"auto\"\u003eYou can install yt-dlp using \u003ca href=\"#release-files\"\u003ethe binaries\u003c/a\u003e, \u003ca href=\"https://pypi.org/project/yt-dlp\" rel=\"nofollow\"\u003epip\u003c/a\u003e or one using a third-party package manager. See \u003ca href=\"https://github.com/yt-dlp/yt-dlp/wiki/Installation\"\u003ethe wiki\u003c/a\u003e for detailed instructions\u003c/p\u003e\n\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch2 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eRELEASE FILES\u003c/h2\u003e\u003ca id=\"user-content-release-files\" class=\"anchor\" aria-label=\"Permalink: RELEASE FILES\" href=\"#release-files\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch4 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eRecommended\u003c/h4\u003e\u003ca id=\"user-content-recommended\" class=\"anchor\" aria-label=\"Permalink: Recommended\" href=\"#recommended\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cmarkdown-accessiblity-table\u003e\u003ctable\u003e\n\u003cthead\u003e\n\u003ctr\u003e\n\u003cth align=\"left\"\u003eFile\u003c/th\u003e\n\u003cth align=\"left\"\u003eDescription\u003c/th\u003e\n\u003c/tr\u003e\n\u003c/thead\u003e\n\u003ctbody\u003e\n\u003ctr\u003e\n\u003ctd align=\"left\"\u003e\u003ca href=\"https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp\"\u003eyt-dlp\u003c/a\u003e\u003c/td\u003e\n\u003ctd align=\"left\"\u003ePlatform-independent \u003ca href=\"https://docs.python.org/3/library/zipimport.html\" rel=\"nofollow\"\u003ezipimport\u003c/a\u003e binary. Needs Python (recommended for \u003cstrong\u003eLinux/BSD\u003c/strong\u003e)\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd align=\"left\"\u003e\u003ca href=\"https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp.exe\"\u003eyt-dlp.exe\u003c/a\u003e\u003c/td\u003e\n\u003ctd align=\"left\"\u003eWindows (Win8+) standalone x64 binary (recommended for \u003cstrong\u003eWindows\u003c/strong\u003e)\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd align=\"left\"\u003e\u003ca href=\"https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp_macos\"\u003eyt-dlp_macos\u003c/a\u003e\u003c/td\u003e\n\u003ctd align=\"left\"\u003eUniversal MacOS (10.15+) standalone executable (recommended for \u003cstrong\u003eMacOS\u003c/strong\u003e)\u003c/td\u003e\n\u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\u003c/markdown-accessiblity-table\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch4 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eAlternatives\u003c/h4\u003e\u003ca id=\"user-content-alternatives\" class=\"anchor\" aria-label=\"Permalink: Alternatives\" href=\"#alternatives\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cmarkdown-accessiblity-table\u003e\u003ctable\u003e\n\u003cthead\u003e\n\u003ctr\u003e\n\u003cth align=\"left\"\u003eFile\u003c/th\u003e\n\u003cth align=\"left\"\u003eDescription\u003c/th\u003e\n\u003c/tr\u003e\n\u003c/thead\u003e\n\u003ctbody\u003e\n\u003ctr\u003e\n\u003ctd align=\"left\"\u003e\u003ca href=\"https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp_x86.exe\"\u003eyt-dlp_x86.exe\u003c/a\u003e\u003c/td\u003e\n\u003ctd align=\"left\"\u003eWindows (Win8+) standalone x86 (32-bit) binary\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd align=\"left\"\u003e\u003ca href=\"https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp_linux\"\u003eyt-dlp_linux\u003c/a\u003e\u003c/td\u003e\n\u003ctd align=\"left\"\u003eLinux standalone x64 binary\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd align=\"left\"\u003e\u003ca href=\"https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp_linux_armv7l\"\u003eyt-dlp_linux_armv7l\u003c/a\u003e\u003c/td\u003e\n\u003ctd align=\"left\"\u003eLinux standalone armv7l (32-bit) binary\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd align=\"left\"\u003e\u003ca href=\"https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp_linux_aarch64\"\u003eyt-dlp_linux_aarch64\u003c/a\u003e\u003c/td\u003e\n\u003ctd align=\"left\"\u003eLinux standalone aarch64 (64-bit) binary\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd align=\"left\"\u003e\u003ca href=\"https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp_win.zip\"\u003eyt-dlp_win.zip\u003c/a\u003e\u003c/td\u003e\n\u003ctd align=\"left\"\u003eUnpackaged Windows executable (no auto-update)\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd align=\"left\"\u003e\u003ca href=\"https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp_macos.zip\"\u003eyt-dlp_macos.zip\u003c/a\u003e\u003c/td\u003e\n\u003ctd align=\"left\"\u003eUnpackaged MacOS (10.15+) executable (no auto-update)\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd align=\"left\"\u003e\u003ca href=\"https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp_macos_legacy\"\u003eyt-dlp_macos_legacy\u003c/a\u003e\u003c/td\u003e\n\u003ctd align=\"left\"\u003eMacOS (10.9+) standalone x64 executable\u003c/td\u003e\n\u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\u003c/markdown-accessiblity-table\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch4 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eMisc\u003c/h4\u003e\u003ca id=\"user-content-misc\" class=\"anchor\" aria-label=\"Permalink: Misc\" href=\"#misc\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cmarkdown-accessiblity-table\u003e\u003ctable\u003e\n\u003cthead\u003e\n\u003ctr\u003e\n\u003cth align=\"left\"\u003eFile\u003c/th\u003e\n\u003cth align=\"left\"\u003eDescription\u003c/th\u003e\n\u003c/tr\u003e\n\u003c/thead\u003e\n\u003ctbody\u003e\n\u003ctr\u003e\n\u003ctd align=\"left\"\u003e\u003ca href=\"https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp.tar.gz\"\u003eyt-dlp.tar.gz\u003c/a\u003e\u003c/td\u003e\n\u003ctd align=\"left\"\u003eSource tarball\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd align=\"left\"\u003e\u003ca href=\"https://github.com/yt-dlp/yt-dlp/releases/latest/download/SHA2-512SUMS\"\u003eSHA2-512SUMS\u003c/a\u003e\u003c/td\u003e\n\u003ctd align=\"left\"\u003eGNU-style SHA512 sums\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd align=\"left\"\u003e\u003ca href=\"https://github.com/yt-dlp/yt-dlp/releases/latest/download/SHA2-512SUMS.sig\"\u003eSHA2-512SUMS.sig\u003c/a\u003e\u003c/td\u003e\n\u003ctd align=\"left\"\u003eGPG signature file for SHA512 sums\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd align=\"left\"\u003e\u003ca href=\"https://github.com/yt-dlp/yt-dlp/releases/latest/download/SHA2-256SUMS\"\u003eSHA2-256SUMS\u003c/a\u003e\u003c/td\u003e\n\u003ctd align=\"left\"\u003eGNU-style SHA256 sums\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd align=\"left\"\u003e\u003ca href=\"https://github.com/yt-dlp/yt-dlp/releases/latest/download/SHA2-256SUMS.sig\"\u003eSHA2-256SUMS.sig\u003c/a\u003e\u003c/td\u003e\n\u003ctd align=\"left\"\u003eGPG signature file for SHA256 sums\u003c/td\u003e\n\u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\u003c/markdown-accessiblity-table\u003e\n\u003cp dir=\"auto\"\u003eThe public key that can be used to verify the GPG signatures is \u003ca href=\"https://github.com/yt-dlp/yt-dlp/blob/master/public.key\"\u003eavailable here\u003c/a\u003e\nExample usage:\u003c/p\u003e\n\u003cdiv class=\"snippet-clipboard-content notranslate position-relative overflow-auto\" data-snippet-clipboard-copy-content=\"curl -L https://github.com/yt-dlp/yt-dlp/raw/master/public.key | gpg --import\ngpg --verify SHA2-256SUMS.sig SHA2-256SUMS\ngpg --verify SHA2-512SUMS.sig SHA2-512SUMS\"\u003e\u003cpre class=\"notranslate\"\u003e\u003ccode\u003ecurl -L https://github.com/yt-dlp/yt-dlp/raw/master/public.key | gpg --import\ngpg --verify SHA2-256SUMS.sig SHA2-256SUMS\ngpg --verify SHA2-512SUMS.sig SHA2-512SUMS\n\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\n\n\u003cp dir=\"auto\"\u003e\u003cstrong\u003eNote\u003c/strong\u003e: The manpages, shell completion (autocomplete) files etc. are available inside the \u003ca href=\"https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp.tar.gz\"\u003esource tarball\u003c/a\u003e\u003c/p\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch2 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eUPDATE\u003c/h2\u003e\u003ca id=\"user-content-update\" class=\"anchor\" aria-label=\"Permalink: UPDATE\" href=\"#update\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cp dir=\"auto\"\u003eYou can use \u003ccode\u003eyt-dlp -U\u003c/code\u003e to update if you are using the \u003ca href=\"#release-files\"\u003erelease binaries\u003c/a\u003e\u003c/p\u003e\n\u003cp dir=\"auto\"\u003eIf you \u003ca href=\"https://github.com/yt-dlp/yt-dlp/wiki/Installation#with-pip\"\u003einstalled with pip\u003c/a\u003e, simply re-run the same command that was used to install the program\u003c/p\u003e\n\u003cp dir=\"auto\"\u003eFor other third-party package managers, see \u003ca href=\"https://github.com/yt-dlp/yt-dlp/wiki/Installation#third-party-package-managers\"\u003ethe wiki\u003c/a\u003e or refer to their documentation\u003c/p\u003e\n\u003cp dir=\"auto\"\u003e\u003ca id=\"user-content-update-channels\"\u003e\u003c/a\u003e\u003c/p\u003e\n\u003cp dir=\"auto\"\u003eThere are currently three release channels for binaries: \u003ccode\u003estable\u003c/code\u003e, \u003ccode\u003enightly\u003c/code\u003e and \u003ccode\u003emaster\u003c/code\u003e.\u003c/p\u003e\n\u003cul dir=\"auto\"\u003e\n\u003cli\u003e\u003ccode\u003estable\u003c/code\u003e is the default channel, and many of its changes have been tested by users of the \u003ccode\u003enightly\u003c/code\u003e and \u003ccode\u003emaster\u003c/code\u003e channels.\u003c/li\u003e\n\u003cli\u003eThe \u003ccode\u003enightly\u003c/code\u003e channel has releases scheduled to build every day around midnight UTC, for a snapshot of the project's new patches and changes. This is the \u003cstrong\u003erecommended channel for regular users\u003c/strong\u003e of yt-dlp. The \u003ccode\u003enightly\u003c/code\u003e releases are available from \u003ca href=\"https://github.com/yt-dlp/yt-dlp-nightly-builds/releases\"\u003eyt-dlp/yt-dlp-nightly-builds\u003c/a\u003e or as development releases of the \u003ccode\u003eyt-dlp\u003c/code\u003e PyPI package (which can be installed with pip's \u003ccode\u003e--pre\u003c/code\u003e flag).\u003c/li\u003e\n\u003cli\u003eThe \u003ccode\u003emaster\u003c/code\u003e channel features releases that are built after each push to the master branch, and these will have the very latest fixes and additions, but may also be more prone to regressions. They are available from \u003ca href=\"https://github.com/yt-dlp/yt-dlp-master-builds/releases\"\u003eyt-dlp/yt-dlp-master-builds\u003c/a\u003e.\u003c/li\u003e\n\u003c/ul\u003e\n\u003cp dir=\"auto\"\u003eWhen using \u003ccode\u003e--update\u003c/code\u003e/\u003ccode\u003e-U\u003c/code\u003e, a release binary will only update to its current channel.\n\u003ccode\u003e--update-to CHANNEL\u003c/code\u003e can be used to switch to a different channel when a newer version is available. \u003ccode\u003e--update-to [CHANNEL@]TAG\u003c/code\u003e can also be used to upgrade or downgrade to specific tags from a channel.\u003c/p\u003e\n\u003cp dir=\"auto\"\u003eYou may also use \u003ccode\u003e--update-to \u0026lt;repository\u0026gt;\u003c/code\u003e (\u003ccode\u003e\u0026lt;owner\u0026gt;/\u0026lt;repository\u0026gt;\u003c/code\u003e) to update to a channel on a completely different repository. Be careful with what repository you are updating to though, there is no verification done for binaries from different repositories.\u003c/p\u003e\n\u003cp dir=\"auto\"\u003eExample usage:\u003c/p\u003e\n\u003cul dir=\"auto\"\u003e\n\u003cli\u003e\u003ccode\u003eyt-dlp --update-to master\u003c/code\u003e switch to the \u003ccode\u003emaster\u003c/code\u003e channel and update to its latest release\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003eyt-dlp --update-to stable@2023.07.06\u003c/code\u003e upgrade/downgrade to release to \u003ccode\u003estable\u003c/code\u003e channel tag \u003ccode\u003e2023.07.06\u003c/code\u003e\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003eyt-dlp --update-to 2023.10.07\u003c/code\u003e upgrade/downgrade to tag \u003ccode\u003e2023.10.07\u003c/code\u003e if it exists on the current channel\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003eyt-dlp --update-to example/yt-dlp@2023.09.24\u003c/code\u003e upgrade/downgrade to the release from the \u003ccode\u003eexample/yt-dlp\u003c/code\u003e repository, tag \u003ccode\u003e2023.09.24\u003c/code\u003e\u003c/li\u003e\n\u003c/ul\u003e\n\u003cp dir=\"auto\"\u003e\u003cstrong\u003eImportant\u003c/strong\u003e: Any user experiencing an issue with the \u003ccode\u003estable\u003c/code\u003e release should install or update to the \u003ccode\u003enightly\u003c/code\u003e release before submitting a bug report:\u003c/p\u003e\n\u003cdiv class=\"snippet-clipboard-content notranslate position-relative overflow-auto\" data-snippet-clipboard-copy-content=\"# To update to nightly from stable executable/binary:\nyt-dlp --update-to nightly\n\n# To install nightly with pip:\npython3 -m pip install -U --pre \u0026quot;yt-dlp[default]\u0026quot;\"\u003e\u003cpre class=\"notranslate\"\u003e\u003ccode\u003e# To update to nightly from stable executable/binary:\nyt-dlp --update-to nightly\n\n# To install nightly with pip:\npython3 -m pip install -U --pre \"yt-dlp[default]\"\n\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch2 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eDEPENDENCIES\u003c/h2\u003e\u003ca id=\"user-content-dependencies\" class=\"anchor\" aria-label=\"Permalink: DEPENDENCIES\" href=\"#dependencies\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cp dir=\"auto\"\u003ePython versions 3.9+ (CPython) and 3.10+ (PyPy) are supported. Other versions and implementations may or may not work correctly.\u003c/p\u003e\n\n\u003cp dir=\"auto\"\u003eWhile all the other dependencies are optional, \u003ccode\u003effmpeg\u003c/code\u003e and \u003ccode\u003effprobe\u003c/code\u003e are highly recommended\u003c/p\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch3 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eStrongly recommended\u003c/h3\u003e\u003ca id=\"user-content-strongly-recommended\" class=\"anchor\" aria-label=\"Permalink: Strongly recommended\" href=\"#strongly-recommended\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cul dir=\"auto\"\u003e\n\u003cli\u003e\n\u003cp dir=\"auto\"\u003e\u003ca href=\"https://www.ffmpeg.org\" rel=\"nofollow\"\u003e\u003cstrong\u003effmpeg\u003c/strong\u003e and \u003cstrong\u003effprobe\u003c/strong\u003e\u003c/a\u003e - Required for \u003ca href=\"#format-selection\"\u003emerging separate video and audio files\u003c/a\u003e, as well as for various \u003ca href=\"#post-processing-options\"\u003epost-processing\u003c/a\u003e tasks. License \u003ca href=\"https://www.ffmpeg.org/legal.html\" rel=\"nofollow\"\u003edepends on the build\u003c/a\u003e\u003c/p\u003e\n\u003cp dir=\"auto\"\u003eThere are bugs in ffmpeg that cause various issues when used alongside yt-dlp. Since ffmpeg is such an important dependency, we provide \u003ca href=\"https://github.com/yt-dlp/FFmpeg-Builds#ffmpeg-static-auto-builds\"\u003ecustom builds\u003c/a\u003e with patches for some of these issues at \u003ca href=\"https://github.com/yt-dlp/FFmpeg-Builds\"\u003eyt-dlp/FFmpeg-Builds\u003c/a\u003e. See \u003ca href=\"https://github.com/yt-dlp/FFmpeg-Builds#patches-applied\"\u003ethe readme\u003c/a\u003e for details on the specific issues solved by these builds\u003c/p\u003e\n\u003cp dir=\"auto\"\u003e\u003cstrong\u003eImportant\u003c/strong\u003e: What you need is ffmpeg \u003cem\u003ebinary\u003c/em\u003e, \u003cstrong\u003eNOT\u003c/strong\u003e \u003ca href=\"https://pypi.org/project/ffmpeg\" rel=\"nofollow\"\u003ethe Python package of the same name\u003c/a\u003e\u003c/p\u003e\n\u003c/li\u003e\n\u003c/ul\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch3 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eNetworking\u003c/h3\u003e\u003ca id=\"user-content-networking\" class=\"anchor\" aria-label=\"Permalink: Networking\" href=\"#networking\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cul dir=\"auto\"\u003e\n\u003cli\u003e\u003ca href=\"https://github.com/certifi/python-certifi\"\u003e\u003cstrong\u003ecertifi\u003c/strong\u003e\u003c/a\u003e* - Provides Mozilla's root certificate bundle. Licensed under \u003ca href=\"https://github.com/certifi/python-certifi/blob/master/LICENSE\"\u003eMPLv2\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"https://github.com/google/brotli\"\u003e\u003cstrong\u003ebrotli\u003c/strong\u003e\u003c/a\u003e* or \u003ca href=\"https://github.com/python-hyper/brotlicffi\"\u003e\u003cstrong\u003ebrotlicffi\u003c/strong\u003e\u003c/a\u003e - \u003ca href=\"https://en.wikipedia.org/wiki/Brotli\" rel=\"nofollow\"\u003eBrotli\u003c/a\u003e content encoding support. Both licensed under MIT \u003csup\u003e\u003ca href=\"https://github.com/google/brotli/blob/master/LICENSE\"\u003e1\u003c/a\u003e \u003ca href=\"https://github.com/python-hyper/brotlicffi/blob/master/LICENSE\"\u003e2\u003c/a\u003e \u003c/sup\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"https://github.com/aaugustin/websockets\"\u003e\u003cstrong\u003ewebsockets\u003c/strong\u003e\u003c/a\u003e* - For downloading over websocket. Licensed under \u003ca href=\"https://github.com/aaugustin/websockets/blob/main/LICENSE\"\u003eBSD-3-Clause\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"https://github.com/psf/requests\"\u003e\u003cstrong\u003erequests\u003c/strong\u003e\u003c/a\u003e* - HTTP library. For HTTPS proxy and persistent connections support. Licensed under \u003ca href=\"https://github.com/psf/requests/blob/main/LICENSE\"\u003eApache-2.0\u003c/a\u003e\u003c/li\u003e\n\u003c/ul\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch4 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eImpersonation\u003c/h4\u003e\u003ca id=\"user-content-impersonation\" class=\"anchor\" aria-label=\"Permalink: Impersonation\" href=\"#impersonation\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cp dir=\"auto\"\u003eThe following provide support for impersonating browser requests. This may be required for some sites that employ TLS fingerprinting.\u003c/p\u003e\n\u003cul dir=\"auto\"\u003e\n\u003cli\u003e\u003ca href=\"https://github.com/lexiforest/curl_cffi\"\u003e\u003cstrong\u003ecurl_cffi\u003c/strong\u003e\u003c/a\u003e (recommended) - Python binding for \u003ca href=\"https://github.com/lexiforest/curl-impersonate\"\u003ecurl-impersonate\u003c/a\u003e. Provides impersonation targets for Chrome, Edge and Safari. Licensed under \u003ca href=\"https://github.com/lexiforest/curl_cffi/blob/main/LICENSE\"\u003eMIT\u003c/a\u003e\n\u003cul dir=\"auto\"\u003e\n\u003cli\u003eCan be installed with the \u003ccode\u003ecurl-cffi\u003c/code\u003e group, e.g. \u003ccode\u003epip install \"yt-dlp[default,curl-cffi]\"\u003c/code\u003e\u003c/li\u003e\n\u003cli\u003eCurrently included in \u003ccode\u003eyt-dlp.exe\u003c/code\u003e, \u003ccode\u003eyt-dlp_linux\u003c/code\u003e and \u003ccode\u003eyt-dlp_macos\u003c/code\u003e builds\u003c/li\u003e\n\u003c/ul\u003e\n\u003c/li\u003e\n\u003c/ul\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch3 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eMetadata\u003c/h3\u003e\u003ca id=\"user-content-metadata\" class=\"anchor\" aria-label=\"Permalink: Metadata\" href=\"#metadata\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cul dir=\"auto\"\u003e\n\u003cli\u003e\u003ca href=\"https://github.com/quodlibet/mutagen\"\u003e\u003cstrong\u003emutagen\u003c/strong\u003e\u003c/a\u003e* - For \u003ccode\u003e--embed-thumbnail\u003c/code\u003e in certain formats. Licensed under \u003ca href=\"https://github.com/quodlibet/mutagen/blob/master/COPYING\"\u003eGPLv2+\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"https://github.com/wez/atomicparsley\"\u003e\u003cstrong\u003eAtomicParsley\u003c/strong\u003e\u003c/a\u003e - For \u003ccode\u003e--embed-thumbnail\u003c/code\u003e in \u003ccode\u003emp4\u003c/code\u003e/\u003ccode\u003em4a\u003c/code\u003e files when \u003ccode\u003emutagen\u003c/code\u003e/\u003ccode\u003effmpeg\u003c/code\u003e cannot. Licensed under \u003ca href=\"https://github.com/wez/atomicparsley/blob/master/COPYING\"\u003eGPLv2+\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"https://github.com/xattr/xattr\"\u003e\u003cstrong\u003exattr\u003c/strong\u003e\u003c/a\u003e, \u003ca href=\"https://github.com/iustin/pyxattr\"\u003e\u003cstrong\u003epyxattr\u003c/strong\u003e\u003c/a\u003e or \u003ca href=\"http://savannah.nongnu.org/projects/attr\" rel=\"nofollow\"\u003e\u003cstrong\u003esetfattr\u003c/strong\u003e\u003c/a\u003e - For writing xattr metadata (\u003ccode\u003e--xattr\u003c/code\u003e) on \u003cstrong\u003eMac\u003c/strong\u003e and \u003cstrong\u003eBSD\u003c/strong\u003e. Licensed under \u003ca href=\"https://github.com/xattr/xattr/blob/master/LICENSE.txt\"\u003eMIT\u003c/a\u003e, \u003ca href=\"https://github.com/iustin/pyxattr/blob/master/COPYING\"\u003eLGPL2.1\u003c/a\u003e and \u003ca href=\"http://git.savannah.nongnu.org/cgit/attr.git/tree/doc/COPYING\" rel=\"nofollow\"\u003eGPLv2+\u003c/a\u003e respectively\u003c/li\u003e\n\u003c/ul\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch3 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eMisc\u003c/h3\u003e\u003ca id=\"user-content-misc-1\" class=\"anchor\" aria-label=\"Permalink: Misc\" href=\"#misc-1\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cul dir=\"auto\"\u003e\n\u003cli\u003e\u003ca href=\"https://github.com/Legrandin/pycryptodome\"\u003e\u003cstrong\u003epycryptodomex\u003c/strong\u003e\u003c/a\u003e* - For decrypting AES-128 HLS streams and various other data. Licensed under \u003ca href=\"https://github.com/Legrandin/pycryptodome/blob/master/LICENSE.rst\"\u003eBSD-2-Clause\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"https://github.com/ariya/phantomjs\"\u003e\u003cstrong\u003ephantomjs\u003c/strong\u003e\u003c/a\u003e - Used in extractors where javascript needs to be run. Licensed under \u003ca href=\"https://github.com/ariya/phantomjs/blob/master/LICENSE.BSD\"\u003eBSD-3-Clause\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"https://github.com/mitya57/secretstorage\"\u003e\u003cstrong\u003esecretstorage\u003c/strong\u003e\u003c/a\u003e* - For \u003ccode\u003e--cookies-from-browser\u003c/code\u003e to access the \u003cstrong\u003eGnome\u003c/strong\u003e keyring while decrypting cookies of \u003cstrong\u003eChromium\u003c/strong\u003e-based browsers on \u003cstrong\u003eLinux\u003c/strong\u003e. Licensed under \u003ca href=\"https://github.com/mitya57/secretstorage/blob/master/LICENSE\"\u003eBSD-3-Clause\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003eAny external downloader that you want to use with \u003ccode\u003e--downloader\u003c/code\u003e\u003c/li\u003e\n\u003c/ul\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch3 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eDeprecated\u003c/h3\u003e\u003ca id=\"user-content-deprecated\" class=\"anchor\" aria-label=\"Permalink: Deprecated\" href=\"#deprecated\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cul dir=\"auto\"\u003e\n\u003cli\u003e\u003ca href=\"https://www.libav.org\" rel=\"nofollow\"\u003e\u003cstrong\u003eavconv\u003c/strong\u003e and \u003cstrong\u003eavprobe\u003c/strong\u003e\u003c/a\u003e - Now \u003cstrong\u003edeprecated\u003c/strong\u003e alternative to ffmpeg. License \u003ca href=\"https://libav.org/legal\" rel=\"nofollow\"\u003edepends on the build\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"https://github.com/faissaloo/SponSkrub\"\u003e\u003cstrong\u003esponskrub\u003c/strong\u003e\u003c/a\u003e - For using the now \u003cstrong\u003edeprecated\u003c/strong\u003e \u003ca href=\"#sponskrub-options\"\u003esponskrub options\u003c/a\u003e. Licensed under \u003ca href=\"https://github.com/faissaloo/SponSkrub/blob/master/LICENCE.md\"\u003eGPLv3+\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"http://rtmpdump.mplayerhq.hu\" rel=\"nofollow\"\u003e\u003cstrong\u003ertmpdump\u003c/strong\u003e\u003c/a\u003e - For downloading \u003ccode\u003ertmp\u003c/code\u003e streams. ffmpeg can be used instead with \u003ccode\u003e--downloader ffmpeg\u003c/code\u003e. Licensed under \u003ca href=\"http://rtmpdump.mplayerhq.hu\" rel=\"nofollow\"\u003eGPLv2+\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"http://mplayerhq.hu/design7/info.html\" rel=\"nofollow\"\u003e\u003cstrong\u003emplayer\u003c/strong\u003e\u003c/a\u003e or \u003ca href=\"https://mpv.io\" rel=\"nofollow\"\u003e\u003cstrong\u003empv\u003c/strong\u003e\u003c/a\u003e - For downloading \u003ccode\u003erstp\u003c/code\u003e/\u003ccode\u003emms\u003c/code\u003e streams. ffmpeg can be used instead with \u003ccode\u003e--downloader ffmpeg\u003c/code\u003e. Licensed under \u003ca href=\"https://github.com/mpv-player/mpv/blob/master/Copyright\"\u003eGPLv2+\u003c/a\u003e\u003c/li\u003e\n\u003c/ul\u003e\n\u003cp dir=\"auto\"\u003eTo use or redistribute the dependencies, you must agree to their respective licensing terms.\u003c/p\u003e\n\u003cp dir=\"auto\"\u003eThe standalone release binaries are built with the Python interpreter and the packages marked with \u003cstrong\u003e*\u003c/strong\u003e included.\u003c/p\u003e\n\u003cp dir=\"auto\"\u003eIf you do not have the necessary dependencies for a task you are attempting, yt-dlp will warn you. All the currently available dependencies are visible at the top of the \u003ccode\u003e--verbose\u003c/code\u003e output\u003c/p\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch2 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eCOMPILE\u003c/h2\u003e\u003ca id=\"user-content-compile\" class=\"anchor\" aria-label=\"Permalink: COMPILE\" href=\"#compile\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch3 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eStandalone PyInstaller Builds\u003c/h3\u003e\u003ca id=\"user-content-standalone-pyinstaller-builds\" class=\"anchor\" aria-label=\"Permalink: Standalone PyInstaller Builds\" href=\"#standalone-pyinstaller-builds\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cp dir=\"auto\"\u003eTo build the standalone executable, you must have Python and \u003ccode\u003epyinstaller\u003c/code\u003e (plus any of yt-dlp's \u003ca href=\"#dependencies\"\u003eoptional dependencies\u003c/a\u003e if needed). The executable will be built for the same CPU architecture as the Python used.\u003c/p\u003e\n\u003cp dir=\"auto\"\u003eYou can run the following commands:\u003c/p\u003e\n\u003cdiv class=\"snippet-clipboard-content notranslate position-relative overflow-auto\" data-snippet-clipboard-copy-content=\"python3 devscripts/install_deps.py --include pyinstaller\npython3 devscripts/make_lazy_extractors.py\npython3 -m bundle.pyinstaller\"\u003e\u003cpre class=\"notranslate\"\u003e\u003ccode\u003epython3 devscripts/install_deps.py --include pyinstaller\npython3 devscripts/make_lazy_extractors.py\npython3 -m bundle.pyinstaller\n\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\n\u003cp dir=\"auto\"\u003eOn some systems, you may need to use \u003ccode\u003epy\u003c/code\u003e or \u003ccode\u003epython\u003c/code\u003e instead of \u003ccode\u003epython3\u003c/code\u003e.\u003c/p\u003e\n\u003cp dir=\"auto\"\u003e\u003ccode\u003epython -m bundle.pyinstaller\u003c/code\u003e accepts any arguments that can be passed to \u003ccode\u003epyinstaller\u003c/code\u003e, such as \u003ccode\u003e--onefile/-F\u003c/code\u003e or \u003ccode\u003e--onedir/-D\u003c/code\u003e, which is further \u003ca href=\"https://pyinstaller.org/en/stable/usage.html#what-to-generate\" rel=\"nofollow\"\u003edocumented here\u003c/a\u003e.\u003c/p\u003e\n\u003cp dir=\"auto\"\u003e\u003cstrong\u003eNote\u003c/strong\u003e: Pyinstaller versions below 4.4 \u003ca href=\"https://github.com/pyinstaller/pyinstaller#requirements-and-tested-platforms\"\u003edo not support\u003c/a\u003e Python installed from the Windows store without using a virtual environment.\u003c/p\u003e\n\u003cp dir=\"auto\"\u003e\u003cstrong\u003eImportant\u003c/strong\u003e: Running \u003ccode\u003epyinstaller\u003c/code\u003e directly \u003cstrong\u003einstead of\u003c/strong\u003e using \u003ccode\u003epython -m bundle.pyinstaller\u003c/code\u003e is \u003cstrong\u003enot\u003c/strong\u003e officially supported. This may or may not work correctly.\u003c/p\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch3 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003ePlatform-independent Binary (UNIX)\u003c/h3\u003e\u003ca id=\"user-content-platform-independent-binary-unix\" class=\"anchor\" aria-label=\"Permalink: Platform-independent Binary (UNIX)\" href=\"#platform-independent-binary-unix\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cp dir=\"auto\"\u003eYou will need the build tools \u003ccode\u003epython\u003c/code\u003e (3.9+), \u003ccode\u003ezip\u003c/code\u003e, \u003ccode\u003emake\u003c/code\u003e (GNU), \u003ccode\u003epandoc\u003c/code\u003e* and \u003ccode\u003epytest\u003c/code\u003e*.\u003c/p\u003e\n\u003cp dir=\"auto\"\u003eAfter installing these, simply run \u003ccode\u003emake\u003c/code\u003e.\u003c/p\u003e\n\u003cp dir=\"auto\"\u003eYou can also run \u003ccode\u003emake yt-dlp\u003c/code\u003e instead to compile only the binary without updating any of the additional files. (The build tools marked with \u003cstrong\u003e*\u003c/strong\u003e are not needed for this)\u003c/p\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch3 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eRelated scripts\u003c/h3\u003e\u003ca id=\"user-content-related-scripts\" class=\"anchor\" aria-label=\"Permalink: Related scripts\" href=\"#related-scripts\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cul dir=\"auto\"\u003e\n\u003cli\u003e\u003cstrong\u003e\u003ccode\u003edevscripts/install_deps.py\u003c/code\u003e\u003c/strong\u003e - Install dependencies for yt-dlp.\u003c/li\u003e\n\u003cli\u003e\u003cstrong\u003e\u003ccode\u003edevscripts/update-version.py\u003c/code\u003e\u003c/strong\u003e - Update the version number based on the current date.\u003c/li\u003e\n\u003cli\u003e\u003cstrong\u003e\u003ccode\u003edevscripts/set-variant.py\u003c/code\u003e\u003c/strong\u003e - Set the build variant of the executable.\u003c/li\u003e\n\u003cli\u003e\u003cstrong\u003e\u003ccode\u003edevscripts/make_changelog.py\u003c/code\u003e\u003c/strong\u003e - Create a markdown changelog using short commit messages and update \u003ccode\u003eCONTRIBUTORS\u003c/code\u003e file.\u003c/li\u003e\n\u003cli\u003e\u003cstrong\u003e\u003ccode\u003edevscripts/make_lazy_extractors.py\u003c/code\u003e\u003c/strong\u003e - Create lazy extractors. Running this before building the binaries (any variant) will improve their startup performance. Set the environment variable \u003ccode\u003eYTDLP_NO_LAZY_EXTRACTORS\u003c/code\u003e to something nonempty to forcefully disable lazy extractor loading.\u003c/li\u003e\n\u003c/ul\u003e\n\u003cp dir=\"auto\"\u003eNote: See their \u003ccode\u003e--help\u003c/code\u003e for more info.\u003c/p\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch3 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eForking the project\u003c/h3\u003e\u003ca id=\"user-content-forking-the-project\" class=\"anchor\" aria-label=\"Permalink: Forking the project\" href=\"#forking-the-project\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cp dir=\"auto\"\u003eIf you fork the project on GitHub, you can run your fork's \u003ca href=\"/yt-dlp/yt-dlp/blob/master/.github/workflows/build.yml\"\u003ebuild workflow\u003c/a\u003e to automatically build the selected version(s) as artifacts. Alternatively, you can run the \u003ca href=\"/yt-dlp/yt-dlp/blob/master/.github/workflows/release.yml\"\u003erelease workflow\u003c/a\u003e or enable the \u003ca href=\"/yt-dlp/yt-dlp/blob/master/.github/workflows/release-nightly.yml\"\u003enightly workflow\u003c/a\u003e to create full (pre-)releases.\u003c/p\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch1 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eUSAGE AND OPTIONS\u003c/h1\u003e\u003ca id=\"user-content-usage-and-options\" class=\"anchor\" aria-label=\"Permalink: USAGE AND OPTIONS\" href=\"#usage-and-options\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\n\u003cdiv class=\"snippet-clipboard-content notranslate position-relative overflow-auto\" data-snippet-clipboard-copy-content=\"yt-dlp [OPTIONS] [--] URL [URL...]\"\u003e\u003cpre class=\"notranslate\"\u003e\u003ccode\u003eyt-dlp [OPTIONS] [--] URL [URL...]\n\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\n\u003cp dir=\"auto\"\u003e\u003ccode\u003eCtrl+F\u003c/code\u003e is your friend :D\u003c/p\u003e\n\n\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch2 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eGeneral Options:\u003c/h2\u003e\u003ca id=\"user-content-general-options\" class=\"anchor\" aria-label=\"Permalink: General Options:\" href=\"#general-options\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cdiv class=\"snippet-clipboard-content notranslate position-relative overflow-auto\" data-snippet-clipboard-copy-content=\"-h, --help Print this help text and exit\n--version Print program version and exit\n-U, --update Update this program to the latest version\n--no-update Do not check for updates (default)\n--update-to [CHANNEL]@[TAG] Upgrade/downgrade to a specific version.\n CHANNEL can be a repository as well. CHANNEL\n and TAG default to \u0026quot;stable\u0026quot; and \u0026quot;latest\u0026quot;\n respectively if omitted; See \u0026quot;UPDATE\u0026quot; for\n details. Supported channels: stable,\n nightly, master\n-i, --ignore-errors Ignore download and postprocessing errors.\n The download will be considered successful\n even if the postprocessing fails\n--no-abort-on-error Continue with next video on download errors;\n e.g. to skip unavailable videos in a\n playlist (default)\n--abort-on-error Abort downloading of further videos if an\n error occurs (Alias: --no-ignore-errors)\n--dump-user-agent Display the current user-agent and exit\n--list-extractors List all supported extractors and exit\n--extractor-descriptions Output descriptions of all supported\n extractors and exit\n--use-extractors NAMES Extractor names to use separated by commas.\n You can also use regexes, \u0026quot;all\u0026quot;, \u0026quot;default\u0026quot;\n and \u0026quot;end\u0026quot; (end URL matching); e.g. --ies\n \u0026quot;holodex.*,end,youtube\u0026quot;. Prefix the name\n with a \u0026quot;-\u0026quot; to exclude it, e.g. --ies\n default,-generic. Use --list-extractors for\n a list of extractor names. (Alias: --ies)\n--default-search PREFIX Use this prefix for unqualified URLs. E.g.\n \u0026quot;gvsearch2:python\u0026quot; downloads two videos from\n google videos for the search term \u0026quot;python\u0026quot;.\n Use the value \u0026quot;auto\u0026quot; to let yt-dlp guess\n (\u0026quot;auto_warning\u0026quot; to emit a warning when\n guessing). \u0026quot;error\u0026quot; just throws an error. The\n default value \u0026quot;fixup_error\u0026quot; repairs broken\n URLs, but emits an error if this is not\n possible instead of searching\n--ignore-config Don't load any more configuration files\n except those given to --config-locations.\n For backward compatibility, if this option\n is found inside the system configuration\n file, the user configuration is not loaded.\n (Alias: --no-config)\n--no-config-locations Do not load any custom configuration files\n (default). When given inside a configuration\n file, ignore all previous --config-locations\n defined in the current file\n--config-locations PATH Location of the main configuration file;\n either the path to the config or its\n containing directory (\u0026quot;-\u0026quot; for stdin). Can be\n used multiple times and inside other\n configuration files\n--plugin-dirs PATH Path to an additional directory to search\n for plugins. This option can be used\n multiple times to add multiple directories.\n Use \u0026quot;default\u0026quot; to search the default plugin\n directories (default)\n--no-plugin-dirs Clear plugin directories to search,\n including defaults and those provided by\n previous --plugin-dirs\n--flat-playlist Do not extract a playlist's URL result\n entries; some entry metadata may be missing\n and downloading may be bypassed\n--no-flat-playlist Fully extract the videos of a playlist\n (default)\n--live-from-start Download livestreams from the start.\n Currently only supported for YouTube\n (Experimental)\n--no-live-from-start Download livestreams from the current time\n (default)\n--wait-for-video MIN[-MAX] Wait for scheduled streams to become\n available. Pass the minimum number of\n seconds (or range) to wait between retries\n--no-wait-for-video Do not wait for scheduled streams (default)\n--mark-watched Mark videos watched (even with --simulate)\n--no-mark-watched Do not mark videos watched (default)\n--color [STREAM:]POLICY Whether to emit color codes in output,\n optionally prefixed by the STREAM (stdout or\n stderr) to apply the setting to. Can be one\n of \u0026quot;always\u0026quot;, \u0026quot;auto\u0026quot; (default), \u0026quot;never\u0026quot;, or\n \u0026quot;no_color\u0026quot; (use non color terminal\n sequences). Use \u0026quot;auto-tty\u0026quot; or \u0026quot;no_color-tty\u0026quot;\n to decide based on terminal support only.\n Can be used multiple times\n--compat-options OPTS Options that can help keep compatibility\n with youtube-dl or youtube-dlc\n configurations by reverting some of the\n changes made in yt-dlp. See \u0026quot;Differences in\n default behavior\u0026quot; for details\n--alias ALIASES OPTIONS Create aliases for an option string. Unless\n an alias starts with a dash \u0026quot;-\u0026quot;, it is\n prefixed with \u0026quot;--\u0026quot;. Arguments are parsed\n according to the Python string formatting\n mini-language. E.g. --alias get-audio,-X\n \u0026quot;-S=aext:{0},abr -x --audio-format {0}\u0026quot;\n creates options \u0026quot;--get-audio\u0026quot; and \u0026quot;-X\u0026quot; that\n takes an argument (ARG0) and expands to\n \u0026quot;-S=aext:ARG0,abr -x --audio-format ARG0\u0026quot;.\n All defined aliases are listed in the --help\n output. Alias options can trigger more\n aliases; so be careful to avoid defining\n recursive options. As a safety measure, each\n alias may be triggered a maximum of 100\n times. This option can be used multiple times\"\u003e\u003cpre class=\"notranslate\"\u003e\u003ccode\u003e-h, --help Print this help text and exit\n--version Print program version and exit\n-U, --update Update this program to the latest version\n--no-update Do not check for updates (default)\n--update-to [CHANNEL]@[TAG] Upgrade/downgrade to a specific version.\n CHANNEL can be a repository as well. CHANNEL\n and TAG default to \"stable\" and \"latest\"\n respectively if omitted; See \"UPDATE\" for\n details. Supported channels: stable,\n nightly, master\n-i, --ignore-errors Ignore download and postprocessing errors.\n The download will be considered successful\n even if the postprocessing fails\n--no-abort-on-error Continue with next video on download errors;\n e.g. to skip unavailable videos in a\n playlist (default)\n--abort-on-error Abort downloading of further videos if an\n error occurs (Alias: --no-ignore-errors)\n--dump-user-agent Display the current user-agent and exit\n--list-extractors List all supported extractors and exit\n--extractor-descriptions Output descriptions of all supported\n extractors and exit\n--use-extractors NAMES Extractor names to use separated by commas.\n You can also use regexes, \"all\", \"default\"\n and \"end\" (end URL matching); e.g. --ies\n \"holodex.*,end,youtube\". Prefix the name\n with a \"-\" to exclude it, e.g. --ies\n default,-generic. Use --list-extractors for\n a list of extractor names. (Alias: --ies)\n--default-search PREFIX Use this prefix for unqualified URLs. E.g.\n \"gvsearch2:python\" downloads two videos from\n google videos for the search term \"python\".\n Use the value \"auto\" to let yt-dlp guess\n (\"auto_warning\" to emit a warning when\n guessing). \"error\" just throws an error. The\n default value \"fixup_error\" repairs broken\n URLs, but emits an error if this is not\n possible instead of searching\n--ignore-config Don't load any more configuration files\n except those given to --config-locations.\n For backward compatibility, if this option\n is found inside the system configuration\n file, the user configuration is not loaded.\n (Alias: --no-config)\n--no-config-locations Do not load any custom configuration files\n (default). When given inside a configuration\n file, ignore all previous --config-locations\n defined in the current file\n--config-locations PATH Location of the main configuration file;\n either the path to the config or its\n containing directory (\"-\" for stdin). Can be\n used multiple times and inside other\n configuration files\n--plugin-dirs PATH Path to an additional directory to search\n for plugins. This option can be used\n multiple times to add multiple directories.\n Use \"default\" to search the default plugin\n directories (default)\n--no-plugin-dirs Clear plugin directories to search,\n including defaults and those provided by\n previous --plugin-dirs\n--flat-playlist Do not extract a playlist's URL result\n entries; some entry metadata may be missing\n and downloading may be bypassed\n--no-flat-playlist Fully extract the videos of a playlist\n (default)\n--live-from-start Download livestreams from the start.\n Currently only supported for YouTube\n (Experimental)\n--no-live-from-start Download livestreams from the current time\n (default)\n--wait-for-video MIN[-MAX] Wait for scheduled streams to become\n available. Pass the minimum number of\n seconds (or range) to wait between retries\n--no-wait-for-video Do not wait for scheduled streams (default)\n--mark-watched Mark videos watched (even with --simulate)\n--no-mark-watched Do not mark videos watched (default)\n--color [STREAM:]POLICY Whether to emit color codes in output,\n optionally prefixed by the STREAM (stdout or\n stderr) to apply the setting to. Can be one\n of \"always\", \"auto\" (default), \"never\", or\n \"no_color\" (use non color terminal\n sequences). Use \"auto-tty\" or \"no_color-tty\"\n to decide based on terminal support only.\n Can be used multiple times\n--compat-options OPTS Options that can help keep compatibility\n with youtube-dl or youtube-dlc\n configurations by reverting some of the\n changes made in yt-dlp. See \"Differences in\n default behavior\" for details\n--alias ALIASES OPTIONS Create aliases for an option string. Unless\n an alias starts with a dash \"-\", it is\n prefixed with \"--\". Arguments are parsed\n according to the Python string formatting\n mini-language. E.g. --alias get-audio,-X\n \"-S=aext:{0},abr -x --audio-format {0}\"\n creates options \"--get-audio\" and \"-X\" that\n takes an argument (ARG0) and expands to\n \"-S=aext:ARG0,abr -x --audio-format ARG0\".\n All defined aliases are listed in the --help\n output. Alias options can trigger more\n aliases; so be careful to avoid defining\n recursive options. As a safety measure, each\n alias may be triggered a maximum of 100\n times. This option can be used multiple times\n\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch2 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eNetwork Options:\u003c/h2\u003e\u003ca id=\"user-content-network-options\" class=\"anchor\" aria-label=\"Permalink: Network Options:\" href=\"#network-options\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cdiv class=\"snippet-clipboard-content notranslate position-relative overflow-auto\" data-snippet-clipboard-copy-content=\"--proxy URL Use the specified HTTP/HTTPS/SOCKS proxy. To\n enable SOCKS proxy, specify a proper scheme,\n e.g. socks5://user:pass@127.0.0.1:1080/.\n Pass in an empty string (--proxy \u0026quot;\u0026quot;) for\n direct connection\n--socket-timeout SECONDS Time to wait before giving up, in seconds\n--source-address IP Client-side IP address to bind to\n--impersonate CLIENT[:OS] Client to impersonate for requests. E.g.\n chrome, chrome-110, chrome:windows-10. Pass\n --impersonate=\u0026quot;\u0026quot; to impersonate any client.\n Note that forcing impersonation for all\n requests may have a detrimental impact on\n download speed and stability\n--list-impersonate-targets List available clients to impersonate.\n-4, --force-ipv4 Make all connections via IPv4\n-6, --force-ipv6 Make all connections via IPv6\n--enable-file-urls Enable file:// URLs. This is disabled by\n default for security reasons.\"\u003e\u003cpre class=\"notranslate\"\u003e\u003ccode\u003e--proxy URL Use the specified HTTP/HTTPS/SOCKS proxy. To\n enable SOCKS proxy, specify a proper scheme,\n e.g. socks5://user:pass@127.0.0.1:1080/.\n Pass in an empty string (--proxy \"\") for\n direct connection\n--socket-timeout SECONDS Time to wait before giving up, in seconds\n--source-address IP Client-side IP address to bind to\n--impersonate CLIENT[:OS] Client to impersonate for requests. E.g.\n chrome, chrome-110, chrome:windows-10. Pass\n --impersonate=\"\" to impersonate any client.\n Note that forcing impersonation for all\n requests may have a detrimental impact on\n download speed and stability\n--list-impersonate-targets List available clients to impersonate.\n-4, --force-ipv4 Make all connections via IPv4\n-6, --force-ipv6 Make all connections via IPv6\n--enable-file-urls Enable file:// URLs. This is disabled by\n default for security reasons.\n\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch2 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eGeo-restriction:\u003c/h2\u003e\u003ca id=\"user-content-geo-restriction\" class=\"anchor\" aria-label=\"Permalink: Geo-restriction:\" href=\"#geo-restriction\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cdiv class=\"snippet-clipboard-content notranslate position-relative overflow-auto\" data-snippet-clipboard-copy-content=\"--geo-verification-proxy URL Use this proxy to verify the IP address for\n some geo-restricted sites. The default proxy\n specified by --proxy (or none, if the option\n is not present) is used for the actual\n downloading\n--xff VALUE How to fake X-Forwarded-For HTTP header to\n try bypassing geographic restriction. One of\n \u0026quot;default\u0026quot; (only when known to be useful),\n \u0026quot;never\u0026quot;, an IP block in CIDR notation, or a\n two-letter ISO 3166-2 country code\"\u003e\u003cpre class=\"notranslate\"\u003e\u003ccode\u003e--geo-verification-proxy URL Use this proxy to verify the IP address for\n some geo-restricted sites. The default proxy\n specified by --proxy (or none, if the option\n is not present) is used for the actual\n downloading\n--xff VALUE How to fake X-Forwarded-For HTTP header to\n try bypassing geographic restriction. One of\n \"default\" (only when known to be useful),\n \"never\", an IP block in CIDR notation, or a\n two-letter ISO 3166-2 country code\n\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch2 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eVideo Selection:\u003c/h2\u003e\u003ca id=\"user-content-video-selection\" class=\"anchor\" aria-label=\"Permalink: Video Selection:\" href=\"#video-selection\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cdiv class=\"snippet-clipboard-content notranslate position-relative overflow-auto\" data-snippet-clipboard-copy-content=\"-I, --playlist-items ITEM_SPEC Comma separated playlist_index of the items\n to download. You can specify a range using\n \u0026quot;[START]:[STOP][:STEP]\u0026quot;. For backward\n compatibility, START-STOP is also supported.\n Use negative indices to count from the right\n and negative STEP to download in reverse\n order. E.g. \u0026quot;-I 1:3,7,-5::2\u0026quot; used on a\n playlist of size 15 will download the items\n at index 1,2,3,7,11,13,15\n--min-filesize SIZE Abort download if filesize is smaller than\n SIZE, e.g. 50k or 44.6M\n--max-filesize SIZE Abort download if filesize is larger than\n SIZE, e.g. 50k or 44.6M\n--date DATE Download only videos uploaded on this date.\n The date can be \u0026quot;YYYYMMDD\u0026quot; or in the format \n [now|today|yesterday][-N[day|week|month|year]].\n E.g. \u0026quot;--date today-2weeks\u0026quot; downloads only\n videos uploaded on the same day two weeks ago\n--datebefore DATE Download only videos uploaded on or before\n this date. The date formats accepted are the\n same as --date\n--dateafter DATE Download only videos uploaded on or after\n this date. The date formats accepted are the\n same as --date\n--match-filters FILTER Generic video filter. Any \u0026quot;OUTPUT TEMPLATE\u0026quot;\n field can be compared with a number or a\n string using the operators defined in\n \u0026quot;Filtering Formats\u0026quot;. You can also simply\n specify a field to match if the field is\n present, use \u0026quot;!field\u0026quot; to check if the field\n is not present, and \u0026quot;\u0026amp;\u0026quot; to check multiple\n conditions. Use a \u0026quot;\\\u0026quot; to escape \u0026quot;\u0026amp;\u0026quot; or\n quotes if needed. If used multiple times,\n the filter matches if at least one of the\n conditions is met. E.g. --match-filters\n !is_live --match-filters \u0026quot;like_count\u0026gt;?100 \u0026amp;\n description~='(?i)\\bcats \\\u0026amp; dogs\\b'\u0026quot; matches\n only videos that are not live OR those that\n have a like count more than 100 (or the like\n field is not available) and also has a\n description that contains the phrase \u0026quot;cats \u0026amp;\n dogs\u0026quot; (caseless). Use \u0026quot;--match-filters -\u0026quot; to\n interactively ask whether to download each\n video\n--no-match-filters Do not use any --match-filters (default)\n--break-match-filters FILTER Same as \u0026quot;--match-filters\u0026quot; but stops the\n download process when a video is rejected\n--no-break-match-filters Do not use any --break-match-filters (default)\n--no-playlist Download only the video, if the URL refers\n to a video and a playlist\n--yes-playlist Download the playlist, if the URL refers to\n a video and a playlist\n--age-limit YEARS Download only videos suitable for the given\n age\n--download-archive FILE Download only videos not listed in the\n archive file. Record the IDs of all\n downloaded videos in it\n--no-download-archive Do not use archive file (default)\n--max-downloads NUMBER Abort after downloading NUMBER files\n--break-on-existing Stop the download process when encountering\n a file that is in the archive supplied with\n the --download-archive option\n--no-break-on-existing Do not stop the download process when\n encountering a file that is in the archive\n (default)\n--break-per-input Alters --max-downloads, --break-on-existing,\n --break-match-filters, and autonumber to\n reset per input URL\n--no-break-per-input --break-on-existing and similar options\n terminates the entire download queue\n--skip-playlist-after-errors N Number of allowed failures until the rest of\n the playlist is skipped\"\u003e\u003cpre class=\"notranslate\"\u003e\u003ccode\u003e-I, --playlist-items ITEM_SPEC Comma separated playlist_index of the items\n to download. You can specify a range using\n \"[START]:[STOP][:STEP]\". For backward\n compatibility, START-STOP is also supported.\n Use negative indices to count from the right\n and negative STEP to download in reverse\n order. E.g. \"-I 1:3,7,-5::2\" used on a\n playlist of size 15 will download the items\n at index 1,2,3,7,11,13,15\n--min-filesize SIZE Abort download if filesize is smaller than\n SIZE, e.g. 50k or 44.6M\n--max-filesize SIZE Abort download if filesize is larger than\n SIZE, e.g. 50k or 44.6M\n--date DATE Download only videos uploaded on this date.\n The date can be \"YYYYMMDD\" or in the format \n [now|today|yesterday][-N[day|week|month|year]].\n E.g. \"--date today-2weeks\" downloads only\n videos uploaded on the same day two weeks ago\n--datebefore DATE Download only videos uploaded on or before\n this date. The date formats accepted are the\n same as --date\n--dateafter DATE Download only videos uploaded on or after\n this date. The date formats accepted are the\n same as --date\n--match-filters FILTER Generic video filter. Any \"OUTPUT TEMPLATE\"\n field can be compared with a number or a\n string using the operators defined in\n \"Filtering Formats\". You can also simply\n specify a field to match if the field is\n present, use \"!field\" to check if the field\n is not present, and \"\u0026amp;\" to check multiple\n conditions. Use a \"\\\" to escape \"\u0026amp;\" or\n quotes if needed. If used multiple times,\n the filter matches if at least one of the\n conditions is met. E.g. --match-filters\n !is_live --match-filters \"like_count\u0026gt;?100 \u0026amp;\n description~='(?i)\\bcats \\\u0026amp; dogs\\b'\" matches\n only videos that are not live OR those that\n have a like count more than 100 (or the like\n field is not available) and also has a\n description that contains the phrase \"cats \u0026amp;\n dogs\" (caseless). Use \"--match-filters -\" to\n interactively ask whether to download each\n video\n--no-match-filters Do not use any --match-filters (default)\n--break-match-filters FILTER Same as \"--match-filters\" but stops the\n download process when a video is rejected\n--no-break-match-filters Do not use any --break-match-filters (default)\n--no-playlist Download only the video, if the URL refers\n to a video and a playlist\n--yes-playlist Download the playlist, if the URL refers to\n a video and a playlist\n--age-limit YEARS Download only videos suitable for the given\n age\n--download-archive FILE Download only videos not listed in the\n archive file. Record the IDs of all\n downloaded videos in it\n--no-download-archive Do not use archive file (default)\n--max-downloads NUMBER Abort after downloading NUMBER files\n--break-on-existing Stop the download process when encountering\n a file that is in the archive supplied with\n the --download-archive option\n--no-break-on-existing Do not stop the download process when\n encountering a file that is in the archive\n (default)\n--break-per-input Alters --max-downloads, --break-on-existing,\n --break-match-filters, and autonumber to\n reset per input URL\n--no-break-per-input --break-on-existing and similar options\n terminates the entire download queue\n--skip-playlist-after-errors N Number of allowed failures until the rest of\n the playlist is skipped\n\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch2 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eDownload Options:\u003c/h2\u003e\u003ca id=\"user-content-download-options\" class=\"anchor\" aria-label=\"Permalink: Download Options:\" href=\"#download-options\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cdiv class=\"snippet-clipboard-content notranslate position-relative overflow-auto\" data-snippet-clipboard-copy-content=\"-N, --concurrent-fragments N Number of fragments of a dash/hlsnative\n video that should be downloaded concurrently\n (default is 1)\n-r, --limit-rate RATE Maximum download rate in bytes per second,\n e.g. 50K or 4.2M\n--throttled-rate RATE Minimum download rate in bytes per second\n below which throttling is assumed and the\n video data is re-extracted, e.g. 100K\n-R, --retries RETRIES Number of retries (default is 10), or\n \u0026quot;infinite\u0026quot;\n--file-access-retries RETRIES Number of times to retry on file access\n error (default is 3), or \u0026quot;infinite\u0026quot;\n--fragment-retries RETRIES Number of retries for a fragment (default is\n 10), or \u0026quot;infinite\u0026quot; (DASH, hlsnative and ISM)\n--retry-sleep [TYPE:]EXPR Time to sleep between retries in seconds\n (optionally) prefixed by the type of retry\n (http (default), fragment, file_access,\n extractor) to apply the sleep to. EXPR can\n be a number, linear=START[:END[:STEP=1]] or\n exp=START[:END[:BASE=2]]. This option can be\n used multiple times to set the sleep for the\n different retry types, e.g. --retry-sleep\n linear=1::2 --retry-sleep fragment:exp=1:20\n--skip-unavailable-fragments Skip unavailable fragments for DASH,\n hlsnative and ISM downloads (default)\n (Alias: --no-abort-on-unavailable-fragments)\n--abort-on-unavailable-fragments\n Abort download if a fragment is unavailable\n (Alias: --no-skip-unavailable-fragments)\n--keep-fragments Keep downloaded fragments on disk after\n downloading is finished\n--no-keep-fragments Delete downloaded fragments after\n downloading is finished (default)\n--buffer-size SIZE Size of download buffer, e.g. 1024 or 16K\n (default is 1024)\n--resize-buffer The buffer size is automatically resized\n from an initial value of --buffer-size\n (default)\n--no-resize-buffer Do not automatically adjust the buffer size\n--http-chunk-size SIZE Size of a chunk for chunk-based HTTP\n downloading, e.g. 10485760 or 10M (default\n is disabled). May be useful for bypassing\n bandwidth throttling imposed by a webserver\n (experimental)\n--playlist-random Download playlist videos in random order\n--lazy-playlist Process entries in the playlist as they are\n received. This disables n_entries,\n --playlist-random and --playlist-reverse\n--no-lazy-playlist Process videos in the playlist only after\n the entire playlist is parsed (default)\n--xattr-set-filesize Set file xattribute ytdl.filesize with\n expected file size\n--hls-use-mpegts Use the mpegts container for HLS videos;\n allowing some players to play the video\n while downloading, and reducing the chance\n of file corruption if download is\n interrupted. This is enabled by default for\n live streams\n--no-hls-use-mpegts Do not use the mpegts container for HLS\n videos. This is default when not downloading\n live streams\n--download-sections REGEX Download only chapters that match the\n regular expression. A \u0026quot;*\u0026quot; prefix denotes\n time-range instead of chapter. Negative\n timestamps are calculated from the end.\n \u0026quot;*from-url\u0026quot; can be used to download between\n the \u0026quot;start_time\u0026quot; and \u0026quot;end_time\u0026quot; extracted\n from the URL. Needs ffmpeg. This option can\n be used multiple times to download multiple\n sections, e.g. --download-sections\n \u0026quot;*10:15-inf\u0026quot; --download-sections \u0026quot;intro\u0026quot;\n--downloader [PROTO:]NAME Name or path of the external downloader to\n use (optionally) prefixed by the protocols\n (http, ftp, m3u8, dash, rstp, rtmp, mms) to\n use it for. Currently supports native,\n aria2c, avconv, axel, curl, ffmpeg, httpie,\n wget. You can use this option multiple times\n to set different downloaders for different\n protocols. E.g. --downloader aria2c\n --downloader \u0026quot;dash,m3u8:native\u0026quot; will use\n aria2c for http/ftp downloads, and the\n native downloader for dash/m3u8 downloads\n (Alias: --external-downloader)\n--downloader-args NAME:ARGS Give these arguments to the external\n downloader. Specify the downloader name and\n the arguments separated by a colon \u0026quot;:\u0026quot;. For\n ffmpeg, arguments can be passed to different\n positions using the same syntax as\n --postprocessor-args. You can use this\n option multiple times to give different\n arguments to different downloaders (Alias:\n --external-downloader-args)\"\u003e\u003cpre class=\"notranslate\"\u003e\u003ccode\u003e-N, --concurrent-fragments N Number of fragments of a dash/hlsnative\n video that should be downloaded concurrently\n (default is 1)\n-r, --limit-rate RATE Maximum download rate in bytes per second,\n e.g. 50K or 4.2M\n--throttled-rate RATE Minimum download rate in bytes per second\n below which throttling is assumed and the\n video data is re-extracted, e.g. 100K\n-R, --retries RETRIES Number of retries (default is 10), or\n \"infinite\"\n--file-access-retries RETRIES Number of times to retry on file access\n error (default is 3), or \"infinite\"\n--fragment-retries RETRIES Number of retries for a fragment (default is\n 10), or \"infinite\" (DASH, hlsnative and ISM)\n--retry-sleep [TYPE:]EXPR Time to sleep between retries in seconds\n (optionally) prefixed by the type of retry\n (http (default), fragment, file_access,\n extractor) to apply the sleep to. EXPR can\n be a number, linear=START[:END[:STEP=1]] or\n exp=START[:END[:BASE=2]]. This option can be\n used multiple times to set the sleep for the\n different retry types, e.g. --retry-sleep\n linear=1::2 --retry-sleep fragment:exp=1:20\n--skip-unavailable-fragments Skip unavailable fragments for DASH,\n hlsnative and ISM downloads (default)\n (Alias: --no-abort-on-unavailable-fragments)\n--abort-on-unavailable-fragments\n Abort download if a fragment is unavailable\n (Alias: --no-skip-unavailable-fragments)\n--keep-fragments Keep downloaded fragments on disk after\n downloading is finished\n--no-keep-fragments Delete downloaded fragments after\n downloading is finished (default)\n--buffer-size SIZE Size of download buffer, e.g. 1024 or 16K\n (default is 1024)\n--resize-buffer The buffer size is automatically resized\n from an initial value of --buffer-size\n (default)\n--no-resize-buffer Do not automatically adjust the buffer size\n--http-chunk-size SIZE Size of a chunk for chunk-based HTTP\n downloading, e.g. 10485760 or 10M (default\n is disabled). May be useful for bypassing\n bandwidth throttling imposed by a webserver\n (experimental)\n--playlist-random Download playlist videos in random order\n--lazy-playlist Process entries in the playlist as they are\n received. This disables n_entries,\n --playlist-random and --playlist-reverse\n--no-lazy-playlist Process videos in the playlist only after\n the entire playlist is parsed (default)\n--xattr-set-filesize Set file xattribute ytdl.filesize with\n expected file size\n--hls-use-mpegts Use the mpegts container for HLS videos;\n allowing some players to play the video\n while downloading, and reducing the chance\n of file corruption if download is\n interrupted. This is enabled by default for\n live streams\n--no-hls-use-mpegts Do not use the mpegts container for HLS\n videos. This is default when not downloading\n live streams\n--download-sections REGEX Download only chapters that match the\n regular expression. A \"*\" prefix denotes\n time-range instead of chapter. Negative\n timestamps are calculated from the end.\n \"*from-url\" can be used to download between\n the \"start_time\" and \"end_time\" extracted\n from the URL. Needs ffmpeg. This option can\n be used multiple times to download multiple\n sections, e.g. --download-sections\n \"*10:15-inf\" --download-sections \"intro\"\n--downloader [PROTO:]NAME Name or path of the external downloader to\n use (optionally) prefixed by the protocols\n (http, ftp, m3u8, dash, rstp, rtmp, mms) to\n use it for. Currently supports native,\n aria2c, avconv, axel, curl, ffmpeg, httpie,\n wget. You can use this option multiple times\n to set different downloaders for different\n protocols. E.g. --downloader aria2c\n --downloader \"dash,m3u8:native\" will use\n aria2c for http/ftp downloads, and the\n native downloader for dash/m3u8 downloads\n (Alias: --external-downloader)\n--downloader-args NAME:ARGS Give these arguments to the external\n downloader. Specify the downloader name and\n the arguments separated by a colon \":\". For\n ffmpeg, arguments can be passed to different\n positions using the same syntax as\n --postprocessor-args. You can use this\n option multiple times to give different\n arguments to different downloaders (Alias:\n --external-downloader-args)\n\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch2 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eFilesystem Options:\u003c/h2\u003e\u003ca id=\"user-content-filesystem-options\" class=\"anchor\" aria-label=\"Permalink: Filesystem Options:\" href=\"#filesystem-options\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cdiv class=\"snippet-clipboard-content notranslate position-relative overflow-auto\" data-snippet-clipboard-copy-content=\"-a, --batch-file FILE File containing URLs to download (\u0026quot;-\u0026quot; for\n stdin), one URL per line. Lines starting\n with \u0026quot;#\u0026quot;, \u0026quot;;\u0026quot; or \u0026quot;]\u0026quot; are considered as\n comments and ignored\n--no-batch-file Do not read URLs from batch file (default)\n-P, --paths [TYPES:]PATH The paths where the files should be\n downloaded. Specify the type of file and the\n path separated by a colon \u0026quot;:\u0026quot;. All the same\n TYPES as --output are supported.\n Additionally, you can also provide \u0026quot;home\u0026quot;\n (default) and \u0026quot;temp\u0026quot; paths. All intermediary\n files are first downloaded to the temp path\n and then the final files are moved over to\n the home path after download is finished.\n This option is ignored if --output is an\n absolute path\n-o, --output [TYPES:]TEMPLATE Output filename template; see \u0026quot;OUTPUT\n TEMPLATE\u0026quot; for details\n--output-na-placeholder TEXT Placeholder for unavailable fields in\n --output (default: \u0026quot;NA\u0026quot;)\n--restrict-filenames Restrict filenames to only ASCII characters,\n and avoid \u0026quot;\u0026amp;\u0026quot; and spaces in filenames\n--no-restrict-filenames Allow Unicode characters, \u0026quot;\u0026amp;\u0026quot; and spaces in\n filenames (default)\n--windows-filenames Force filenames to be Windows-compatible\n--no-windows-filenames Sanitize filenames only minimally\n--trim-filenames LENGTH Limit the filename length (excluding\n extension) to the specified number of\n characters\n-w, --no-overwrites Do not overwrite any files\n--force-overwrites Overwrite all video and metadata files. This\n option includes --no-continue\n--no-force-overwrites Do not overwrite the video, but overwrite\n related files (default)\n-c, --continue Resume partially downloaded files/fragments\n (default)\n--no-continue Do not resume partially downloaded\n fragments. If the file is not fragmented,\n restart download of the entire file\n--part Use .part files instead of writing directly\n into output file (default)\n--no-part Do not use .part files - write directly into\n output file\n--mtime Use the Last-modified header to set the file\n modification time (default)\n--no-mtime Do not use the Last-modified header to set\n the file modification time\n--write-description Write video description to a .description file\n--no-write-description Do not write video description (default)\n--write-info-json Write video metadata to a .info.json file\n (this may contain personal information)\n--no-write-info-json Do not write video metadata (default)\n--write-playlist-metafiles Write playlist metadata in addition to the\n video metadata when using --write-info-json,\n --write-description etc. (default)\n--no-write-playlist-metafiles Do not write playlist metadata when using\n --write-info-json, --write-description etc.\n--clean-info-json Remove some internal metadata such as\n filenames from the infojson (default)\n--no-clean-info-json Write all fields to the infojson\n--write-comments Retrieve video comments to be placed in the\n infojson. The comments are fetched even\n without this option if the extraction is\n known to be quick (Alias: --get-comments)\n--no-write-comments Do not retrieve video comments unless the\n extraction is known to be quick (Alias:\n --no-get-comments)\n--load-info-json FILE JSON file containing the video information\n (created with the \u0026quot;--write-info-json\u0026quot; option)\n--cookies FILE Netscape formatted file to read cookies from\n and dump cookie jar in\n--no-cookies Do not read/dump cookies from/to file\n (default)\n--cookies-from-browser BROWSER[+KEYRING][:PROFILE][::CONTAINER]\n The name of the browser to load cookies\n from. Currently supported browsers are:\n brave, chrome, chromium, edge, firefox,\n opera, safari, vivaldi, whale. Optionally,\n the KEYRING used for decrypting Chromium\n cookies on Linux, the name/path of the\n PROFILE to load cookies from, and the\n CONTAINER name (if Firefox) (\u0026quot;none\u0026quot; for no\n container) can be given with their\n respective separators. By default, all\n containers of the most recently accessed\n profile are used. Currently supported\n keyrings are: basictext, gnomekeyring,\n kwallet, kwallet5, kwallet6\n--no-cookies-from-browser Do not load cookies from browser (default)\n--cache-dir DIR Location in the filesystem where yt-dlp can\n store some downloaded information (such as\n client ids and signatures) permanently. By\n default ${XDG_CACHE_HOME}/yt-dlp\n--no-cache-dir Disable filesystem caching\n--rm-cache-dir Delete all filesystem cache files\"\u003e\u003cpre class=\"notranslate\"\u003e\u003ccode\u003e-a, --batch-file FILE File containing URLs to download (\"-\" for\n stdin), one URL per line. Lines starting\n with \"#\", \";\" or \"]\" are considered as\n comments and ignored\n--no-batch-file Do not read URLs from batch file (default)\n-P, --paths [TYPES:]PATH The paths where the files should be\n downloaded. Specify the type of file and the\n path separated by a colon \":\". All the same\n TYPES as --output are supported.\n Additionally, you can also provide \"home\"\n (default) and \"temp\" paths. All intermediary\n files are first downloaded to the temp path\n and then the final files are moved over to\n the home path after download is finished.\n This option is ignored if --output is an\n absolute path\n-o, --output [TYPES:]TEMPLATE Output filename template; see \"OUTPUT\n TEMPLATE\" for details\n--output-na-placeholder TEXT Placeholder for unavailable fields in\n --output (default: \"NA\")\n--restrict-filenames Restrict filenames to only ASCII characters,\n and avoid \"\u0026amp;\" and spaces in filenames\n--no-restrict-filenames Allow Unicode characters, \"\u0026amp;\" and spaces in\n filenames (default)\n--windows-filenames Force filenames to be Windows-compatible\n--no-windows-filenames Sanitize filenames only minimally\n--trim-filenames LENGTH Limit the filename length (excluding\n extension) to the specified number of\n characters\n-w, --no-overwrites Do not overwrite any files\n--force-overwrites Overwrite all video and metadata files. This\n option includes --no-continue\n--no-force-overwrites Do not overwrite the video, but overwrite\n related files (default)\n-c, --continue Resume partially downloaded files/fragments\n (default)\n--no-continue Do not resume partially downloaded\n fragments. If the file is not fragmented,\n restart download of the entire file\n--part Use .part files instead of writing directly\n into output file (default)\n--no-part Do not use .part files - write directly into\n output file\n--mtime Use the Last-modified header to set the file\n modification time (default)\n--no-mtime Do not use the Last-modified header to set\n the file modification time\n--write-description Write video description to a .description file\n--no-write-description Do not write video description (default)\n--write-info-json Write video metadata to a .info.json file\n (this may contain personal information)\n--no-write-info-json Do not write video metadata (default)\n--write-playlist-metafiles Write playlist metadata in addition to the\n video metadata when using --write-info-json,\n --write-description etc. (default)\n--no-write-playlist-metafiles Do not write playlist metadata when using\n --write-info-json, --write-description etc.\n--clean-info-json Remove some internal metadata such as\n filenames from the infojson (default)\n--no-clean-info-json Write all fields to the infojson\n--write-comments Retrieve video comments to be placed in the\n infojson. The comments are fetched even\n without this option if the extraction is\n known to be quick (Alias: --get-comments)\n--no-write-comments Do not retrieve video comments unless the\n extraction is known to be quick (Alias:\n --no-get-comments)\n--load-info-json FILE JSON file containing the video information\n (created with the \"--write-info-json\" option)\n--cookies FILE Netscape formatted file to read cookies from\n and dump cookie jar in\n--no-cookies Do not read/dump cookies from/to file\n (default)\n--cookies-from-browser BROWSER[+KEYRING][:PROFILE][::CONTAINER]\n The name of the browser to load cookies\n from. Currently supported browsers are:\n brave, chrome, chromium, edge, firefox,\n opera, safari, vivaldi, whale. Optionally,\n the KEYRING used for decrypting Chromium\n cookies on Linux, the name/path of the\n PROFILE to load cookies from, and the\n CONTAINER name (if Firefox) (\"none\" for no\n container) can be given with their\n respective separators. By default, all\n containers of the most recently accessed\n profile are used. Currently supported\n keyrings are: basictext, gnomekeyring,\n kwallet, kwallet5, kwallet6\n--no-cookies-from-browser Do not load cookies from browser (default)\n--cache-dir DIR Location in the filesystem where yt-dlp can\n store some downloaded information (such as\n client ids and signatures) permanently. By\n default ${XDG_CACHE_HOME}/yt-dlp\n--no-cache-dir Disable filesystem caching\n--rm-cache-dir Delete all filesystem cache files\n\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch2 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eThumbnail Options:\u003c/h2\u003e\u003ca id=\"user-content-thumbnail-options\" class=\"anchor\" aria-label=\"Permalink: Thumbnail Options:\" href=\"#thumbnail-options\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cdiv class=\"snippet-clipboard-content notranslate position-relative overflow-auto\" data-snippet-clipboard-copy-content=\"--write-thumbnail Write thumbnail image to disk\n--no-write-thumbnail Do not write thumbnail image to disk (default)\n--write-all-thumbnails Write all thumbnail image formats to disk\n--list-thumbnails List available thumbnails of each video.\n Simulate unless --no-simulate is used\"\u003e\u003cpre class=\"notranslate\"\u003e\u003ccode\u003e--write-thumbnail Write thumbnail image to disk\n--no-write-thumbnail Do not write thumbnail image to disk (default)\n--write-all-thumbnails Write all thumbnail image formats to disk\n--list-thumbnails List available thumbnails of each video.\n Simulate unless --no-simulate is used\n\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch2 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eInternet Shortcut Options:\u003c/h2\u003e\u003ca id=\"user-content-internet-shortcut-options\" class=\"anchor\" aria-label=\"Permalink: Internet Shortcut Options:\" href=\"#internet-shortcut-options\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cdiv class=\"snippet-clipboard-content notranslate position-relative overflow-auto\" data-snippet-clipboard-copy-content=\"--write-link Write an internet shortcut file, depending\n on the current platform (.url, .webloc or\n .desktop). The URL may be cached by the OS\n--write-url-link Write a .url Windows internet shortcut. The\n OS caches the URL based on the file path\n--write-webloc-link Write a .webloc macOS internet shortcut\n--write-desktop-link Write a .desktop Linux internet shortcut\"\u003e\u003cpre class=\"notranslate\"\u003e\u003ccode\u003e--write-link Write an internet shortcut file, depending\n on the current platform (.url, .webloc or\n .desktop). The URL may be cached by the OS\n--write-url-link Write a .url Windows internet shortcut. The\n OS caches the URL based on the file path\n--write-webloc-link Write a .webloc macOS internet shortcut\n--write-desktop-link Write a .desktop Linux internet shortcut\n\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch2 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eVerbosity and Simulation Options:\u003c/h2\u003e\u003ca id=\"user-content-verbosity-and-simulation-options\" class=\"anchor\" aria-label=\"Permalink: Verbosity and Simulation Options:\" href=\"#verbosity-and-simulation-options\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cdiv class=\"snippet-clipboard-content notranslate position-relative overflow-auto\" data-snippet-clipboard-copy-content=\"-q, --quiet Activate quiet mode. If used with --verbose,\n print the log to stderr\n--no-quiet Deactivate quiet mode. (Default)\n--no-warnings Ignore warnings\n-s, --simulate Do not download the video and do not write\n anything to disk\n--no-simulate Download the video even if printing/listing\n options are used\n--ignore-no-formats-error Ignore \u0026quot;No video formats\u0026quot; error. Useful for\n extracting metadata even if the videos are\n not actually available for download\n (experimental)\n--no-ignore-no-formats-error Throw error when no downloadable video\n formats are found (default)\n--skip-download Do not download the video but write all\n related files (Alias: --no-download)\n-O, --print [WHEN:]TEMPLATE Field name or output template to print to\n screen, optionally prefixed with when to\n print it, separated by a \u0026quot;:\u0026quot;. Supported\n values of \u0026quot;WHEN\u0026quot; are the same as that of\n --use-postprocessor (default: video).\n Implies --quiet. Implies --simulate unless\n --no-simulate or later stages of WHEN are\n used. This option can be used multiple times\n--print-to-file [WHEN:]TEMPLATE FILE\n Append given template to the file. The\n values of WHEN and TEMPLATE are the same as\n that of --print. FILE uses the same syntax\n as the output template. This option can be\n used multiple times\n-j, --dump-json Quiet, but print JSON information for each\n video. Simulate unless --no-simulate is\n used. See \u0026quot;OUTPUT TEMPLATE\u0026quot; for a\n description of available keys\n-J, --dump-single-json Quiet, but print JSON information for each\n URL or infojson passed. Simulate unless\n --no-simulate is used. If the URL refers to\n a playlist, the whole playlist information\n is dumped in a single line\n--force-write-archive Force download archive entries to be written\n as far as no errors occur, even if -s or\n another simulation option is used (Alias:\n --force-download-archive)\n--newline Output progress bar as new lines\n--no-progress Do not print progress bar\n--progress Show progress bar, even if in quiet mode\n--console-title Display progress in console titlebar\n--progress-template [TYPES:]TEMPLATE\n Template for progress outputs, optionally\n prefixed with one of \u0026quot;download:\u0026quot; (default),\n \u0026quot;download-title:\u0026quot; (the console title),\n \u0026quot;postprocess:\u0026quot;, or \u0026quot;postprocess-title:\u0026quot;.\n The video's fields are accessible under the\n \u0026quot;info\u0026quot; key and the progress attributes are\n accessible under \u0026quot;progress\u0026quot; key. E.g.\n --console-title --progress-template\n \u0026quot;download-title:%(info.id)s-%(progress.eta)s\u0026quot;\n--progress-delta SECONDS Time between progress output (default: 0)\n-v, --verbose Print various debugging information\n--dump-pages Print downloaded pages encoded using base64\n to debug problems (very verbose)\n--write-pages Write downloaded intermediary pages to files\n in the current directory to debug problems\n--print-traffic Display sent and read HTTP traffic\"\u003e\u003cpre class=\"notranslate\"\u003e\u003ccode\u003e-q, --quiet Activate quiet mode. If used with --verbose,\n print the log to stderr\n--no-quiet Deactivate quiet mode. (Default)\n--no-warnings Ignore warnings\n-s, --simulate Do not download the video and do not write\n anything to disk\n--no-simulate Download the video even if printing/listing\n options are used\n--ignore-no-formats-error Ignore \"No video formats\" error. Useful for\n extracting metadata even if the videos are\n not actually available for download\n (experimental)\n--no-ignore-no-formats-error Throw error when no downloadable video\n formats are found (default)\n--skip-download Do not download the video but write all\n related files (Alias: --no-download)\n-O, --print [WHEN:]TEMPLATE Field name or output template to print to\n screen, optionally prefixed with when to\n print it, separated by a \":\". Supported\n values of \"WHEN\" are the same as that of\n --use-postprocessor (default: video).\n Implies --quiet. Implies --simulate unless\n --no-simulate or later stages of WHEN are\n used. This option can be used multiple times\n--print-to-file [WHEN:]TEMPLATE FILE\n Append given template to the file. The\n values of WHEN and TEMPLATE are the same as\n that of --print. FILE uses the same syntax\n as the output template. This option can be\n used multiple times\n-j, --dump-json Quiet, but print JSON information for each\n video. Simulate unless --no-simulate is\n used. See \"OUTPUT TEMPLATE\" for a\n description of available keys\n-J, --dump-single-json Quiet, but print JSON information for each\n URL or infojson passed. Simulate unless\n --no-simulate is used. If the URL refers to\n a playlist, the whole playlist information\n is dumped in a single line\n--force-write-archive Force download archive entries to be written\n as far as no errors occur, even if -s or\n another simulation option is used (Alias:\n --force-download-archive)\n--newline Output progress bar as new lines\n--no-progress Do not print progress bar\n--progress Show progress bar, even if in quiet mode\n--console-title Display progress in console titlebar\n--progress-template [TYPES:]TEMPLATE\n Template for progress outputs, optionally\n prefixed with one of \"download:\" (default),\n \"download-title:\" (the console title),\n \"postprocess:\", or \"postprocess-title:\".\n The video's fields are accessible under the\n \"info\" key and the progress attributes are\n accessible under \"progress\" key. E.g.\n --console-title --progress-template\n \"download-title:%(info.id)s-%(progress.eta)s\"\n--progress-delta SECONDS Time between progress output (default: 0)\n-v, --verbose Print various debugging information\n--dump-pages Print downloaded pages encoded using base64\n to debug problems (very verbose)\n--write-pages Write downloaded intermediary pages to files\n in the current directory to debug problems\n--print-traffic Display sent and read HTTP traffic\n\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch2 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eWorkarounds:\u003c/h2\u003e\u003ca id=\"user-content-workarounds\" class=\"anchor\" aria-label=\"Permalink: Workarounds:\" href=\"#workarounds\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cdiv class=\"snippet-clipboard-content notranslate position-relative overflow-auto\" data-snippet-clipboard-copy-content=\"--encoding ENCODING Force the specified encoding (experimental)\n--legacy-server-connect Explicitly allow HTTPS connection to servers\n that do not support RFC 5746 secure\n renegotiation\n--no-check-certificates Suppress HTTPS certificate validation\n--prefer-insecure Use an unencrypted connection to retrieve\n information about the video (Currently\n supported only for YouTube)\n--add-headers FIELD:VALUE Specify a custom HTTP header and its value,\n separated by a colon \u0026quot;:\u0026quot;. You can use this\n option multiple times\n--bidi-workaround Work around terminals that lack\n bidirectional text support. Requires bidiv\n or fribidi executable in PATH\n--sleep-requests SECONDS Number of seconds to sleep between requests\n during data extraction\n--sleep-interval SECONDS Number of seconds to sleep before each\n download. This is the minimum time to sleep\n when used along with --max-sleep-interval\n (Alias: --min-sleep-interval)\n--max-sleep-interval SECONDS Maximum number of seconds to sleep. Can only\n be used along with --min-sleep-interval\n--sleep-subtitles SECONDS Number of seconds to sleep before each\n subtitle download\"\u003e\u003cpre class=\"notranslate\"\u003e\u003ccode\u003e--encoding ENCODING Force the specified encoding (experimental)\n--legacy-server-connect Explicitly allow HTTPS connection to servers\n that do not support RFC 5746 secure\n renegotiation\n--no-check-certificates Suppress HTTPS certificate validation\n--prefer-insecure Use an unencrypted connection to retrieve\n information about the video (Currently\n supported only for YouTube)\n--add-headers FIELD:VALUE Specify a custom HTTP header and its value,\n separated by a colon \":\". You can use this\n option multiple times\n--bidi-workaround Work around terminals that lack\n bidirectional text support. Requires bidiv\n or fribidi executable in PATH\n--sleep-requests SECONDS Number of seconds to sleep between requests\n during data extraction\n--sleep-interval SECONDS Number of seconds to sleep before each\n download. This is the minimum time to sleep\n when used along with --max-sleep-interval\n (Alias: --min-sleep-interval)\n--max-sleep-interval SECONDS Maximum number of seconds to sleep. Can only\n be used along with --min-sleep-interval\n--sleep-subtitles SECONDS Number of seconds to sleep before each\n subtitle download\n\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch2 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eVideo Format Options:\u003c/h2\u003e\u003ca id=\"user-content-video-format-options\" class=\"anchor\" aria-label=\"Permalink: Video Format Options:\" href=\"#video-format-options\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cdiv class=\"snippet-clipboard-content notranslate position-relative overflow-auto\" data-snippet-clipboard-copy-content=\"-f, --format FORMAT Video format code, see \u0026quot;FORMAT SELECTION\u0026quot;\n for more details\n-S, --format-sort SORTORDER Sort the formats by the fields given, see\n \u0026quot;Sorting Formats\u0026quot; for more details\n--format-sort-force Force user specified sort order to have\n precedence over all fields, see \u0026quot;Sorting\n Formats\u0026quot; for more details (Alias: --S-force)\n--no-format-sort-force Some fields have precedence over the user\n specified sort order (default)\n--video-multistreams Allow multiple video streams to be merged\n into a single file\n--no-video-multistreams Only one video stream is downloaded for each\n output file (default)\n--audio-multistreams Allow multiple audio streams to be merged\n into a single file\n--no-audio-multistreams Only one audio stream is downloaded for each\n output file (default)\n--prefer-free-formats Prefer video formats with free containers\n over non-free ones of the same quality. Use\n with \u0026quot;-S ext\u0026quot; to strictly prefer free\n containers irrespective of quality\n--no-prefer-free-formats Don't give any special preference to free\n containers (default)\n--check-formats Make sure formats are selected only from\n those that are actually downloadable\n--check-all-formats Check all formats for whether they are\n actually downloadable\n--no-check-formats Do not check that the formats are actually\n downloadable\n-F, --list-formats List available formats of each video.\n Simulate unless --no-simulate is used\n--merge-output-format FORMAT Containers that may be used when merging\n formats, separated by \u0026quot;/\u0026quot;, e.g. \u0026quot;mp4/mkv\u0026quot;.\n Ignored if no merge is required. (currently\n supported: avi, flv, mkv, mov, mp4, webm)\"\u003e\u003cpre class=\"notranslate\"\u003e\u003ccode\u003e-f, --format FORMAT Video format code, see \"FORMAT SELECTION\"\n for more details\n-S, --format-sort SORTORDER Sort the formats by the fields given, see\n \"Sorting Formats\" for more details\n--format-sort-force Force user specified sort order to have\n precedence over all fields, see \"Sorting\n Formats\" for more details (Alias: --S-force)\n--no-format-sort-force Some fields have precedence over the user\n specified sort order (default)\n--video-multistreams Allow multiple video streams to be merged\n into a single file\n--no-video-multistreams Only one video stream is downloaded for each\n output file (default)\n--audio-multistreams Allow multiple audio streams to be merged\n into a single file\n--no-audio-multistreams Only one audio stream is downloaded for each\n output file (default)\n--prefer-free-formats Prefer video formats with free containers\n over non-free ones of the same quality. Use\n with \"-S ext\" to strictly prefer free\n containers irrespective of quality\n--no-prefer-free-formats Don't give any special preference to free\n containers (default)\n--check-formats Make sure formats are selected only from\n those that are actually downloadable\n--check-all-formats Check all formats for whether they are\n actually downloadable\n--no-check-formats Do not check that the formats are actually\n downloadable\n-F, --list-formats List available formats of each video.\n Simulate unless --no-simulate is used\n--merge-output-format FORMAT Containers that may be used when merging\n formats, separated by \"/\", e.g. \"mp4/mkv\".\n Ignored if no merge is required. (currently\n supported: avi, flv, mkv, mov, mp4, webm)\n\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch2 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eSubtitle Options:\u003c/h2\u003e\u003ca id=\"user-content-subtitle-options\" class=\"anchor\" aria-label=\"Permalink: Subtitle Options:\" href=\"#subtitle-options\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cdiv class=\"snippet-clipboard-content notranslate position-relative overflow-auto\" data-snippet-clipboard-copy-content=\"--write-subs Write subtitle file\n--no-write-subs Do not write subtitle file (default)\n--write-auto-subs Write automatically generated subtitle file\n (Alias: --write-automatic-subs)\n--no-write-auto-subs Do not write auto-generated subtitles\n (default) (Alias: --no-write-automatic-subs)\n--list-subs List available subtitles of each video.\n Simulate unless --no-simulate is used\n--sub-format FORMAT Subtitle format; accepts formats preference\n separated by \u0026quot;/\u0026quot;, e.g. \u0026quot;srt\u0026quot; or \u0026quot;ass/srt/best\u0026quot;\n--sub-langs LANGS Languages of the subtitles to download (can\n be regex) or \u0026quot;all\u0026quot; separated by commas, e.g.\n --sub-langs \u0026quot;en.*,ja\u0026quot; (where \u0026quot;en.*\u0026quot; is a\n regex pattern that matches \u0026quot;en\u0026quot; followed by\n 0 or more of any character). You can prefix\n the language code with a \u0026quot;-\u0026quot; to exclude it\n from the requested languages, e.g. --sub-\n langs all,-live_chat. Use --list-subs for a\n list of available language tags\"\u003e\u003cpre class=\"notranslate\"\u003e\u003ccode\u003e--write-subs Write subtitle file\n--no-write-subs Do not write subtitle file (default)\n--write-auto-subs Write automatically generated subtitle file\n (Alias: --write-automatic-subs)\n--no-write-auto-subs Do not write auto-generated subtitles\n (default) (Alias: --no-write-automatic-subs)\n--list-subs List available subtitles of each video.\n Simulate unless --no-simulate is used\n--sub-format FORMAT Subtitle format; accepts formats preference\n separated by \"/\", e.g. \"srt\" or \"ass/srt/best\"\n--sub-langs LANGS Languages of the subtitles to download (can\n be regex) or \"all\" separated by commas, e.g.\n --sub-langs \"en.*,ja\" (where \"en.*\" is a\n regex pattern that matches \"en\" followed by\n 0 or more of any character). You can prefix\n the language code with a \"-\" to exclude it\n from the requested languages, e.g. --sub-\n langs all,-live_chat. Use --list-subs for a\n list of available language tags\n\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch2 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eAuthentication Options:\u003c/h2\u003e\u003ca id=\"user-content-authentication-options\" class=\"anchor\" aria-label=\"Permalink: Authentication Options:\" href=\"#authentication-options\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cdiv class=\"snippet-clipboard-content notranslate position-relative overflow-auto\" data-snippet-clipboard-copy-content=\"-u, --username USERNAME Login with this account ID\n-p, --password PASSWORD Account password. If this option is left\n out, yt-dlp will ask interactively\n-2, --twofactor TWOFACTOR Two-factor authentication code\n-n, --netrc Use .netrc authentication data\n--netrc-location PATH Location of .netrc authentication data;\n either the path or its containing directory.\n Defaults to ~/.netrc\n--netrc-cmd NETRC_CMD Command to execute to get the credentials\n for an extractor.\n--video-password PASSWORD Video-specific password\n--ap-mso MSO Adobe Pass multiple-system operator (TV\n provider) identifier, use --ap-list-mso for\n a list of available MSOs\n--ap-username USERNAME Multiple-system operator account login\n--ap-password PASSWORD Multiple-system operator account password.\n If this option is left out, yt-dlp will ask\n interactively\n--ap-list-mso List all supported multiple-system operators\n--client-certificate CERTFILE Path to client certificate file in PEM\n format. May include the private key\n--client-certificate-key KEYFILE\n Path to private key file for client\n certificate\n--client-certificate-password PASSWORD\n Password for client certificate private key,\n if encrypted. If not provided, and the key\n is encrypted, yt-dlp will ask interactively\"\u003e\u003cpre class=\"notranslate\"\u003e\u003ccode\u003e-u, --username USERNAME Login with this account ID\n-p, --password PASSWORD Account password. If this option is left\n out, yt-dlp will ask interactively\n-2, --twofactor TWOFACTOR Two-factor authentication code\n-n, --netrc Use .netrc authentication data\n--netrc-location PATH Location of .netrc authentication data;\n either the path or its containing directory.\n Defaults to ~/.netrc\n--netrc-cmd NETRC_CMD Command to execute to get the credentials\n for an extractor.\n--video-password PASSWORD Video-specific password\n--ap-mso MSO Adobe Pass multiple-system operator (TV\n provider) identifier, use --ap-list-mso for\n a list of available MSOs\n--ap-username USERNAME Multiple-system operator account login\n--ap-password PASSWORD Multiple-system operator account password.\n If this option is left out, yt-dlp will ask\n interactively\n--ap-list-mso List all supported multiple-system operators\n--client-certificate CERTFILE Path to client certificate file in PEM\n format. May include the private key\n--client-certificate-key KEYFILE\n Path to private key file for client\n certificate\n--client-certificate-password PASSWORD\n Password for client certificate private key,\n if encrypted. If not provided, and the key\n is encrypted, yt-dlp will ask interactively\n\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch2 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003ePost-Processing Options:\u003c/h2\u003e\u003ca id=\"user-content-post-processing-options\" class=\"anchor\" aria-label=\"Permalink: Post-Processing Options:\" href=\"#post-processing-options\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cdiv class=\"snippet-clipboard-content notranslate position-relative overflow-auto\" data-snippet-clipboard-copy-content=\"-x, --extract-audio Convert video files to audio-only files\n (requires ffmpeg and ffprobe)\n--audio-format FORMAT Format to convert the audio to when -x is\n used. (currently supported: best (default),\n aac, alac, flac, m4a, mp3, opus, vorbis,\n wav). You can specify multiple rules using\n similar syntax as --remux-video\n--audio-quality QUALITY Specify ffmpeg audio quality to use when\n converting the audio with -x. Insert a value\n between 0 (best) and 10 (worst) for VBR or a\n specific bitrate like 128K (default 5)\n--remux-video FORMAT Remux the video into another container if\n necessary (currently supported: avi, flv,\n gif, mkv, mov, mp4, webm, aac, aiff, alac,\n flac, m4a, mka, mp3, ogg, opus, vorbis,\n wav). If the target container does not\n support the video/audio codec, remuxing will\n fail. You can specify multiple rules; e.g.\n \u0026quot;aac\u0026gt;m4a/mov\u0026gt;mp4/mkv\u0026quot; will remux aac to m4a,\n mov to mp4 and anything else to mkv\n--recode-video FORMAT Re-encode the video into another format if\n necessary. The syntax and supported formats\n are the same as --remux-video\n--postprocessor-args NAME:ARGS Give these arguments to the postprocessors.\n Specify the postprocessor/executable name\n and the arguments separated by a colon \u0026quot;:\u0026quot;\n to give the argument to the specified\n postprocessor/executable. Supported PP are:\n Merger, ModifyChapters, SplitChapters,\n ExtractAudio, VideoRemuxer, VideoConvertor,\n Metadata, EmbedSubtitle, EmbedThumbnail,\n SubtitlesConvertor, ThumbnailsConvertor,\n FixupStretched, FixupM4a, FixupM3u8,\n FixupTimestamp and FixupDuration. The\n supported executables are: AtomicParsley,\n FFmpeg and FFprobe. You can also specify\n \u0026quot;PP+EXE:ARGS\u0026quot; to give the arguments to the\n specified executable only when being used by\n the specified postprocessor. Additionally,\n for ffmpeg/ffprobe, \u0026quot;_i\u0026quot;/\u0026quot;_o\u0026quot; can be\n appended to the prefix optionally followed\n by a number to pass the argument before the\n specified input/output file, e.g. --ppa\n \u0026quot;Merger+ffmpeg_i1:-v quiet\u0026quot;. You can use\n this option multiple times to give different\n arguments to different postprocessors.\n (Alias: --ppa)\n-k, --keep-video Keep the intermediate video file on disk\n after post-processing\n--no-keep-video Delete the intermediate video file after\n post-processing (default)\n--post-overwrites Overwrite post-processed files (default)\n--no-post-overwrites Do not overwrite post-processed files\n--embed-subs Embed subtitles in the video (only for mp4,\n webm and mkv videos)\n--no-embed-subs Do not embed subtitles (default)\n--embed-thumbnail Embed thumbnail in the video as cover art\n--no-embed-thumbnail Do not embed thumbnail (default)\n--embed-metadata Embed metadata to the video file. Also\n embeds chapters/infojson if present unless\n --no-embed-chapters/--no-embed-info-json are\n used (Alias: --add-metadata)\n--no-embed-metadata Do not add metadata to file (default)\n (Alias: --no-add-metadata)\n--embed-chapters Add chapter markers to the video file\n (Alias: --add-chapters)\n--no-embed-chapters Do not add chapter markers (default) (Alias:\n --no-add-chapters)\n--embed-info-json Embed the infojson as an attachment to\n mkv/mka video files\n--no-embed-info-json Do not embed the infojson as an attachment\n to the video file\n--parse-metadata [WHEN:]FROM:TO\n Parse additional metadata like title/artist\n from other fields; see \u0026quot;MODIFYING METADATA\u0026quot;\n for details. Supported values of \u0026quot;WHEN\u0026quot; are\n the same as that of --use-postprocessor\n (default: pre_process)\n--replace-in-metadata [WHEN:]FIELDS REGEX REPLACE\n Replace text in a metadata field using the\n given regex. This option can be used\n multiple times. Supported values of \u0026quot;WHEN\u0026quot;\n are the same as that of --use-postprocessor\n (default: pre_process)\n--xattrs Write metadata to the video file's xattrs\n (using Dublin Core and XDG standards)\n--concat-playlist POLICY Concatenate videos in a playlist. One of\n \u0026quot;never\u0026quot;, \u0026quot;always\u0026quot;, or \u0026quot;multi_video\u0026quot;\n (default; only when the videos form a single\n show). All the video files must have the\n same codecs and number of streams to be\n concatenable. The \u0026quot;pl_video:\u0026quot; prefix can be\n used with \u0026quot;--paths\u0026quot; and \u0026quot;--output\u0026quot; to set\n the output filename for the concatenated\n files. See \u0026quot;OUTPUT TEMPLATE\u0026quot; for details\n--fixup POLICY Automatically correct known faults of the\n file. One of never (do nothing), warn (only\n emit a warning), detect_or_warn (the\n default; fix the file if we can, warn\n otherwise), force (try fixing even if the\n file already exists)\n--ffmpeg-location PATH Location of the ffmpeg binary; either the\n path to the binary or its containing directory\n--exec [WHEN:]CMD Execute a command, optionally prefixed with\n when to execute it, separated by a \u0026quot;:\u0026quot;.\n Supported values of \u0026quot;WHEN\u0026quot; are the same as\n that of --use-postprocessor (default:\n after_move). The same syntax as the output\n template can be used to pass any field as\n arguments to the command. If no fields are\n passed, %(filepath,_filename|)q is appended\n to the end of the command. This option can\n be used multiple times\n--no-exec Remove any previously defined --exec\n--convert-subs FORMAT Convert the subtitles to another format\n (currently supported: ass, lrc, srt, vtt).\n Use \u0026quot;--convert-subs none\u0026quot; to disable\n conversion (default) (Alias: --convert-\n subtitles)\n--convert-thumbnails FORMAT Convert the thumbnails to another format\n (currently supported: jpg, png, webp). You\n can specify multiple rules using similar\n syntax as \u0026quot;--remux-video\u0026quot;. Use \u0026quot;--convert-\n thumbnails none\u0026quot; to disable conversion\n (default)\n--split-chapters Split video into multiple files based on\n internal chapters. The \u0026quot;chapter:\u0026quot; prefix can\n be used with \u0026quot;--paths\u0026quot; and \u0026quot;--output\u0026quot; to set\n the output filename for the split files. See\n \u0026quot;OUTPUT TEMPLATE\u0026quot; for details\n--no-split-chapters Do not split video based on chapters (default)\n--remove-chapters REGEX Remove chapters whose title matches the\n given regular expression. The syntax is the\n same as --download-sections. This option can\n be used multiple times\n--no-remove-chapters Do not remove any chapters from the file\n (default)\n--force-keyframes-at-cuts Force keyframes at cuts when\n downloading/splitting/removing sections.\n This is slow due to needing a re-encode, but\n the resulting video may have fewer artifacts\n around the cuts\n--no-force-keyframes-at-cuts Do not force keyframes around the chapters\n when cutting/splitting (default)\n--use-postprocessor NAME[:ARGS]\n The (case-sensitive) name of plugin\n postprocessors to be enabled, and\n (optionally) arguments to be passed to it,\n separated by a colon \u0026quot;:\u0026quot;. ARGS are a\n semicolon \u0026quot;;\u0026quot; delimited list of NAME=VALUE.\n The \u0026quot;when\u0026quot; argument determines when the\n postprocessor is invoked. It can be one of\n \u0026quot;pre_process\u0026quot; (after video extraction),\n \u0026quot;after_filter\u0026quot; (after video passes filter),\n \u0026quot;video\u0026quot; (after --format; before\n --print/--output), \u0026quot;before_dl\u0026quot; (before each\n video download), \u0026quot;post_process\u0026quot; (after each\n video download; default), \u0026quot;after_move\u0026quot;\n (after moving the video file to its final\n location), \u0026quot;after_video\u0026quot; (after downloading\n and processing all formats of a video), or\n \u0026quot;playlist\u0026quot; (at end of playlist). This option\n can be used multiple times to add different\n postprocessors\"\u003e\u003cpre class=\"notranslate\"\u003e\u003ccode\u003e-x, --extract-audio Convert video files to audio-only files\n (requires ffmpeg and ffprobe)\n--audio-format FORMAT Format to convert the audio to when -x is\n used. (currently supported: best (default),\n aac, alac, flac, m4a, mp3, opus, vorbis,\n wav). You can specify multiple rules using\n similar syntax as --remux-video\n--audio-quality QUALITY Specify ffmpeg audio quality to use when\n converting the audio with -x. Insert a value\n between 0 (best) and 10 (worst) for VBR or a\n specific bitrate like 128K (default 5)\n--remux-video FORMAT Remux the video into another container if\n necessary (currently supported: avi, flv,\n gif, mkv, mov, mp4, webm, aac, aiff, alac,\n flac, m4a, mka, mp3, ogg, opus, vorbis,\n wav). If the target container does not\n support the video/audio codec, remuxing will\n fail. You can specify multiple rules; e.g.\n \"aac\u0026gt;m4a/mov\u0026gt;mp4/mkv\" will remux aac to m4a,\n mov to mp4 and anything else to mkv\n--recode-video FORMAT Re-encode the video into another format if\n necessary. The syntax and supported formats\n are the same as --remux-video\n--postprocessor-args NAME:ARGS Give these arguments to the postprocessors.\n Specify the postprocessor/executable name\n and the arguments separated by a colon \":\"\n to give the argument to the specified\n postprocessor/executable. Supported PP are:\n Merger, ModifyChapters, SplitChapters,\n ExtractAudio, VideoRemuxer, VideoConvertor,\n Metadata, EmbedSubtitle, EmbedThumbnail,\n SubtitlesConvertor, ThumbnailsConvertor,\n FixupStretched, FixupM4a, FixupM3u8,\n FixupTimestamp and FixupDuration. The\n supported executables are: AtomicParsley,\n FFmpeg and FFprobe. You can also specify\n \"PP+EXE:ARGS\" to give the arguments to the\n specified executable only when being used by\n the specified postprocessor. Additionally,\n for ffmpeg/ffprobe, \"_i\"/\"_o\" can be\n appended to the prefix optionally followed\n by a number to pass the argument before the\n specified input/output file, e.g. --ppa\n \"Merger+ffmpeg_i1:-v quiet\". You can use\n this option multiple times to give different\n arguments to different postprocessors.\n (Alias: --ppa)\n-k, --keep-video Keep the intermediate video file on disk\n after post-processing\n--no-keep-video Delete the intermediate video file after\n post-processing (default)\n--post-overwrites Overwrite post-processed files (default)\n--no-post-overwrites Do not overwrite post-processed files\n--embed-subs Embed subtitles in the video (only for mp4,\n webm and mkv videos)\n--no-embed-subs Do not embed subtitles (default)\n--embed-thumbnail Embed thumbnail in the video as cover art\n--no-embed-thumbnail Do not embed thumbnail (default)\n--embed-metadata Embed metadata to the video file. Also\n embeds chapters/infojson if present unless\n --no-embed-chapters/--no-embed-info-json are\n used (Alias: --add-metadata)\n--no-embed-metadata Do not add metadata to file (default)\n (Alias: --no-add-metadata)\n--embed-chapters Add chapter markers to the video file\n (Alias: --add-chapters)\n--no-embed-chapters Do not add chapter markers (default) (Alias:\n --no-add-chapters)\n--embed-info-json Embed the infojson as an attachment to\n mkv/mka video files\n--no-embed-info-json Do not embed the infojson as an attachment\n to the video file\n--parse-metadata [WHEN:]FROM:TO\n Parse additional metadata like title/artist\n from other fields; see \"MODIFYING METADATA\"\n for details. Supported values of \"WHEN\" are\n the same as that of --use-postprocessor\n (default: pre_process)\n--replace-in-metadata [WHEN:]FIELDS REGEX REPLACE\n Replace text in a metadata field using the\n given regex. This option can be used\n multiple times. Supported values of \"WHEN\"\n are the same as that of --use-postprocessor\n (default: pre_process)\n--xattrs Write metadata to the video file's xattrs\n (using Dublin Core and XDG standards)\n--concat-playlist POLICY Concatenate videos in a playlist. One of\n \"never\", \"always\", or \"multi_video\"\n (default; only when the videos form a single\n show). All the video files must have the\n same codecs and number of streams to be\n concatenable. The \"pl_video:\" prefix can be\n used with \"--paths\" and \"--output\" to set\n the output filename for the concatenated\n files. See \"OUTPUT TEMPLATE\" for details\n--fixup POLICY Automatically correct known faults of the\n file. One of never (do nothing), warn (only\n emit a warning), detect_or_warn (the\n default; fix the file if we can, warn\n otherwise), force (try fixing even if the\n file already exists)\n--ffmpeg-location PATH Location of the ffmpeg binary; either the\n path to the binary or its containing directory\n--exec [WHEN:]CMD Execute a command, optionally prefixed with\n when to execute it, separated by a \":\".\n Supported values of \"WHEN\" are the same as\n that of --use-postprocessor (default:\n after_move). The same syntax as the output\n template can be used to pass any field as\n arguments to the command. If no fields are\n passed, %(filepath,_filename|)q is appended\n to the end of the command. This option can\n be used multiple times\n--no-exec Remove any previously defined --exec\n--convert-subs FORMAT Convert the subtitles to another format\n (currently supported: ass, lrc, srt, vtt).\n Use \"--convert-subs none\" to disable\n conversion (default) (Alias: --convert-\n subtitles)\n--convert-thumbnails FORMAT Convert the thumbnails to another format\n (currently supported: jpg, png, webp). You\n can specify multiple rules using similar\n syntax as \"--remux-video\". Use \"--convert-\n thumbnails none\" to disable conversion\n (default)\n--split-chapters Split video into multiple files based on\n internal chapters. The \"chapter:\" prefix can\n be used with \"--paths\" and \"--output\" to set\n the output filename for the split files. See\n \"OUTPUT TEMPLATE\" for details\n--no-split-chapters Do not split video based on chapters (default)\n--remove-chapters REGEX Remove chapters whose title matches the\n given regular expression. The syntax is the\n same as --download-sections. This option can\n be used multiple times\n--no-remove-chapters Do not remove any chapters from the file\n (default)\n--force-keyframes-at-cuts Force keyframes at cuts when\n downloading/splitting/removing sections.\n This is slow due to needing a re-encode, but\n the resulting video may have fewer artifacts\n around the cuts\n--no-force-keyframes-at-cuts Do not force keyframes around the chapters\n when cutting/splitting (default)\n--use-postprocessor NAME[:ARGS]\n The (case-sensitive) name of plugin\n postprocessors to be enabled, and\n (optionally) arguments to be passed to it,\n separated by a colon \":\". ARGS are a\n semicolon \";\" delimited list of NAME=VALUE.\n The \"when\" argument determines when the\n postprocessor is invoked. It can be one of\n \"pre_process\" (after video extraction),\n \"after_filter\" (after video passes filter),\n \"video\" (after --format; before\n --print/--output), \"before_dl\" (before each\n video download), \"post_process\" (after each\n video download; default), \"after_move\"\n (after moving the video file to its final\n location), \"after_video\" (after downloading\n and processing all formats of a video), or\n \"playlist\" (at end of playlist). This option\n can be used multiple times to add different\n postprocessors\n\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch2 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eSponsorBlock Options:\u003c/h2\u003e\u003ca id=\"user-content-sponsorblock-options\" class=\"anchor\" aria-label=\"Permalink: SponsorBlock Options:\" href=\"#sponsorblock-options\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cp dir=\"auto\"\u003eMake chapter entries for, or remove various segments (sponsor,\nintroductions, etc.) from downloaded YouTube videos using the\n\u003ca href=\"https://sponsor.ajay.app\" rel=\"nofollow\"\u003eSponsorBlock API\u003c/a\u003e\u003c/p\u003e\n\u003cdiv class=\"snippet-clipboard-content notranslate position-relative overflow-auto\" data-snippet-clipboard-copy-content=\"--sponsorblock-mark CATS SponsorBlock categories to create chapters\n for, separated by commas. Available\n categories are sponsor, intro, outro,\n selfpromo, preview, filler, interaction,\n music_offtopic, poi_highlight, chapter, all\n and default (=all). You can prefix the\n category with a \u0026quot;-\u0026quot; to exclude it. See [1]\n for descriptions of the categories. E.g.\n --sponsorblock-mark all,-preview\n [1] https://wiki.sponsor.ajay.app/w/Segment_Categories\n--sponsorblock-remove CATS SponsorBlock categories to be removed from\n the video file, separated by commas. If a\n category is present in both mark and remove,\n remove takes precedence. The syntax and\n available categories are the same as for\n --sponsorblock-mark except that \u0026quot;default\u0026quot;\n refers to \u0026quot;all,-filler\u0026quot; and poi_highlight,\n chapter are not available\n--sponsorblock-chapter-title TEMPLATE\n An output template for the title of the\n SponsorBlock chapters created by\n --sponsorblock-mark. The only available\n fields are start_time, end_time, category,\n categories, name, category_names. Defaults\n to \u0026quot;[SponsorBlock]: %(category_names)l\u0026quot;\n--no-sponsorblock Disable both --sponsorblock-mark and\n --sponsorblock-remove\n--sponsorblock-api URL SponsorBlock API location, defaults to\n https://sponsor.ajay.app\"\u003e\u003cpre class=\"notranslate\"\u003e\u003ccode\u003e--sponsorblock-mark CATS SponsorBlock categories to create chapters\n for, separated by commas. Available\n categories are sponsor, intro, outro,\n selfpromo, preview, filler, interaction,\n music_offtopic, poi_highlight, chapter, all\n and default (=all). You can prefix the\n category with a \"-\" to exclude it. See [1]\n for descriptions of the categories. E.g.\n --sponsorblock-mark all,-preview\n [1] https://wiki.sponsor.ajay.app/w/Segment_Categories\n--sponsorblock-remove CATS SponsorBlock categories to be removed from\n the video file, separated by commas. If a\n category is present in both mark and remove,\n remove takes precedence. The syntax and\n available categories are the same as for\n --sponsorblock-mark except that \"default\"\n refers to \"all,-filler\" and poi_highlight,\n chapter are not available\n--sponsorblock-chapter-title TEMPLATE\n An output template for the title of the\n SponsorBlock chapters created by\n --sponsorblock-mark. The only available\n fields are start_time, end_time, category,\n categories, name, category_names. Defaults\n to \"[SponsorBlock]: %(category_names)l\"\n--no-sponsorblock Disable both --sponsorblock-mark and\n --sponsorblock-remove\n--sponsorblock-api URL SponsorBlock API location, defaults to\n https://sponsor.ajay.app\n\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch2 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eExtractor Options:\u003c/h2\u003e\u003ca id=\"user-content-extractor-options\" class=\"anchor\" aria-label=\"Permalink: Extractor Options:\" href=\"#extractor-options\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cdiv class=\"snippet-clipboard-content notranslate position-relative overflow-auto\" data-snippet-clipboard-copy-content=\"--extractor-retries RETRIES Number of retries for known extractor errors\n (default is 3), or \u0026quot;infinite\u0026quot;\n--allow-dynamic-mpd Process dynamic DASH manifests (default)\n (Alias: --no-ignore-dynamic-mpd)\n--ignore-dynamic-mpd Do not process dynamic DASH manifests\n (Alias: --no-allow-dynamic-mpd)\n--hls-split-discontinuity Split HLS playlists to different formats at\n discontinuities such as ad breaks\n--no-hls-split-discontinuity Do not split HLS playlists into different\n formats at discontinuities such as ad breaks\n (default)\n--extractor-args IE_KEY:ARGS Pass ARGS arguments to the IE_KEY extractor.\n See \u0026quot;EXTRACTOR ARGUMENTS\u0026quot; for details. You\n can use this option multiple times to give\n arguments for different extractors\"\u003e\u003cpre class=\"notranslate\"\u003e\u003ccode\u003e--extractor-retries RETRIES Number of retries for known extractor errors\n (default is 3), or \"infinite\"\n--allow-dynamic-mpd Process dynamic DASH manifests (default)\n (Alias: --no-ignore-dynamic-mpd)\n--ignore-dynamic-mpd Do not process dynamic DASH manifests\n (Alias: --no-allow-dynamic-mpd)\n--hls-split-discontinuity Split HLS playlists to different formats at\n discontinuities such as ad breaks\n--no-hls-split-discontinuity Do not split HLS playlists into different\n formats at discontinuities such as ad breaks\n (default)\n--extractor-args IE_KEY:ARGS Pass ARGS arguments to the IE_KEY extractor.\n See \"EXTRACTOR ARGUMENTS\" for details. You\n can use this option multiple times to give\n arguments for different extractors\n\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch1 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eCONFIGURATION\u003c/h1\u003e\u003ca id=\"user-content-configuration\" class=\"anchor\" aria-label=\"Permalink: CONFIGURATION\" href=\"#configuration\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cp dir=\"auto\"\u003eYou can configure yt-dlp by placing any supported command line option in a configuration file. The configuration is loaded from the following locations:\u003c/p\u003e\n\u003col dir=\"auto\"\u003e\n\u003cli\u003e\n\u003cp dir=\"auto\"\u003e\u003cstrong\u003eMain Configuration\u003c/strong\u003e:\u003c/p\u003e\n\u003cul dir=\"auto\"\u003e\n\u003cli\u003eThe file given to \u003ccode\u003e--config-location\u003c/code\u003e\u003c/li\u003e\n\u003c/ul\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp dir=\"auto\"\u003e\u003cstrong\u003ePortable Configuration\u003c/strong\u003e: (Recommended for portable installations)\u003c/p\u003e\n\u003cul dir=\"auto\"\u003e\n\u003cli\u003eIf using a binary, \u003ccode\u003eyt-dlp.conf\u003c/code\u003e in the same directory as the binary\u003c/li\u003e\n\u003cli\u003eIf running from source-code, \u003ccode\u003eyt-dlp.conf\u003c/code\u003e in the parent directory of \u003ccode\u003eyt_dlp\u003c/code\u003e\u003c/li\u003e\n\u003c/ul\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp dir=\"auto\"\u003e\u003cstrong\u003eHome Configuration\u003c/strong\u003e:\u003c/p\u003e\n\u003cul dir=\"auto\"\u003e\n\u003cli\u003e\u003ccode\u003eyt-dlp.conf\u003c/code\u003e in the home path given to \u003ccode\u003e-P\u003c/code\u003e\u003c/li\u003e\n\u003cli\u003eIf \u003ccode\u003e-P\u003c/code\u003e is not given, the current directory is searched\u003c/li\u003e\n\u003c/ul\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp dir=\"auto\"\u003e\u003cstrong\u003eUser Configuration\u003c/strong\u003e:\u003c/p\u003e\n\u003cul dir=\"auto\"\u003e\n\u003cli\u003e\u003ccode\u003e${XDG_CONFIG_HOME}/yt-dlp.conf\u003c/code\u003e\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003e${XDG_CONFIG_HOME}/yt-dlp/config\u003c/code\u003e (recommended on Linux/macOS)\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003e${XDG_CONFIG_HOME}/yt-dlp/config.txt\u003c/code\u003e\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003e${APPDATA}/yt-dlp.conf\u003c/code\u003e\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003e${APPDATA}/yt-dlp/config\u003c/code\u003e (recommended on Windows)\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003e${APPDATA}/yt-dlp/config.txt\u003c/code\u003e\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003e~/yt-dlp.conf\u003c/code\u003e\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003e~/yt-dlp.conf.txt\u003c/code\u003e\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003e~/.yt-dlp/config\u003c/code\u003e\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003e~/.yt-dlp/config.txt\u003c/code\u003e\u003c/li\u003e\n\u003c/ul\u003e\n\u003cp dir=\"auto\"\u003eSee also: \u003ca href=\"#notes-about-environment-variables\"\u003eNotes about environment variables\u003c/a\u003e\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp dir=\"auto\"\u003e\u003cstrong\u003eSystem Configuration\u003c/strong\u003e:\u003c/p\u003e\n\u003cul dir=\"auto\"\u003e\n\u003cli\u003e\u003ccode\u003e/etc/yt-dlp.conf\u003c/code\u003e\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003e/etc/yt-dlp/config\u003c/code\u003e\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003e/etc/yt-dlp/config.txt\u003c/code\u003e\u003c/li\u003e\n\u003c/ul\u003e\n\u003c/li\u003e\n\u003c/ol\u003e\n\u003cp dir=\"auto\"\u003eE.g. with the following configuration file, yt-dlp will always extract the audio, not copy the mtime, use a proxy and save all videos under \u003ccode\u003eYouTube\u003c/code\u003e directory in your home directory:\u003c/p\u003e\n\u003cdiv class=\"snippet-clipboard-content notranslate position-relative overflow-auto\" data-snippet-clipboard-copy-content=\"# Lines starting with # are comments\n\n# Always extract audio\n-x\n\n# Do not copy the mtime\n--no-mtime\n\n# Use this proxy\n--proxy 127.0.0.1:3128\n\n# Save all videos under YouTube directory in your home directory\n-o ~/YouTube/%(title)s.%(ext)s\"\u003e\u003cpre class=\"notranslate\"\u003e\u003ccode\u003e# Lines starting with # are comments\n\n# Always extract audio\n-x\n\n# Do not copy the mtime\n--no-mtime\n\n# Use this proxy\n--proxy 127.0.0.1:3128\n\n# Save all videos under YouTube directory in your home directory\n-o ~/YouTube/%(title)s.%(ext)s\n\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\n\u003cp dir=\"auto\"\u003e\u003cstrong\u003eNote\u003c/strong\u003e: Options in a configuration file are just the same options aka switches used in regular command line calls; thus there \u003cstrong\u003emust be no whitespace\u003c/strong\u003e after \u003ccode\u003e-\u003c/code\u003e or \u003ccode\u003e--\u003c/code\u003e, e.g. \u003ccode\u003e-o\u003c/code\u003e or \u003ccode\u003e--proxy\u003c/code\u003e but not \u003ccode\u003e- o\u003c/code\u003e or \u003ccode\u003e-- proxy\u003c/code\u003e. They must also be quoted when necessary, as if it were a UNIX shell.\u003c/p\u003e\n\u003cp dir=\"auto\"\u003eYou can use \u003ccode\u003e--ignore-config\u003c/code\u003e if you want to disable all configuration files for a particular yt-dlp run. If \u003ccode\u003e--ignore-config\u003c/code\u003e is found inside any configuration file, no further configuration will be loaded. For example, having the option in the portable configuration file prevents loading of home, user, and system configurations. Additionally, (for backward compatibility) if \u003ccode\u003e--ignore-config\u003c/code\u003e is found inside the system configuration file, the user configuration is not loaded.\u003c/p\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch3 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eConfiguration file encoding\u003c/h3\u003e\u003ca id=\"user-content-configuration-file-encoding\" class=\"anchor\" aria-label=\"Permalink: Configuration file encoding\" href=\"#configuration-file-encoding\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cp dir=\"auto\"\u003eThe configuration files are decoded according to the UTF BOM if present, and in the encoding from system locale otherwise.\u003c/p\u003e\n\u003cp dir=\"auto\"\u003eIf you want your file to be decoded differently, add \u003ccode\u003e# coding: ENCODING\u003c/code\u003e to the beginning of the file (e.g. \u003ccode\u003e# coding: shift-jis\u003c/code\u003e). There must be no characters before that, even spaces or BOM.\u003c/p\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch3 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eAuthentication with netrc\u003c/h3\u003e\u003ca id=\"user-content-authentication-with-netrc\" class=\"anchor\" aria-label=\"Permalink: Authentication with netrc\" href=\"#authentication-with-netrc\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cp dir=\"auto\"\u003eYou may also want to configure automatic credentials storage for extractors that support authentication (by providing login and password with \u003ccode\u003e--username\u003c/code\u003e and \u003ccode\u003e--password\u003c/code\u003e) in order not to pass credentials as command line arguments on every yt-dlp execution and prevent tracking plain text passwords in the shell command history. You can achieve this using a \u003ca href=\"https://stackoverflow.com/tags/.netrc/info\" rel=\"nofollow\"\u003e\u003ccode\u003e.netrc\u003c/code\u003e file\u003c/a\u003e on a per-extractor basis. For that, you will need to create a \u003ccode\u003e.netrc\u003c/code\u003e file in \u003ccode\u003e--netrc-location\u003c/code\u003e and restrict permissions to read/write by only you:\u003c/p\u003e\n\u003cdiv class=\"snippet-clipboard-content notranslate position-relative overflow-auto\" data-snippet-clipboard-copy-content=\"touch ${HOME}/.netrc\nchmod a-rwx,u+rw ${HOME}/.netrc\"\u003e\u003cpre class=\"notranslate\"\u003e\u003ccode\u003etouch ${HOME}/.netrc\nchmod a-rwx,u+rw ${HOME}/.netrc\n\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\n\u003cp dir=\"auto\"\u003eAfter that, you can add credentials for an extractor in the following format, where \u003cem\u003eextractor\u003c/em\u003e is the name of the extractor in lowercase:\u003c/p\u003e\n\u003cdiv class=\"snippet-clipboard-content notranslate position-relative overflow-auto\" data-snippet-clipboard-copy-content=\"machine \u0026lt;extractor\u0026gt; login \u0026lt;username\u0026gt; password \u0026lt;password\u0026gt;\"\u003e\u003cpre class=\"notranslate\"\u003e\u003ccode\u003emachine \u0026lt;extractor\u0026gt; login \u0026lt;username\u0026gt; password \u0026lt;password\u0026gt;\n\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\n\u003cp dir=\"auto\"\u003eE.g.\u003c/p\u003e\n\u003cdiv class=\"snippet-clipboard-content notranslate position-relative overflow-auto\" data-snippet-clipboard-copy-content=\"machine youtube login myaccount@gmail.com password my_youtube_password\nmachine twitch login my_twitch_account_name password my_twitch_password\"\u003e\u003cpre class=\"notranslate\"\u003e\u003ccode\u003emachine youtube login myaccount@gmail.com password my_youtube_password\nmachine twitch login my_twitch_account_name password my_twitch_password\n\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\n\u003cp dir=\"auto\"\u003eTo activate authentication with the \u003ccode\u003e.netrc\u003c/code\u003e file you should pass \u003ccode\u003e--netrc\u003c/code\u003e to yt-dlp or place it in the \u003ca href=\"#configuration\"\u003econfiguration file\u003c/a\u003e.\u003c/p\u003e\n\u003cp dir=\"auto\"\u003eThe default location of the .netrc file is \u003ccode\u003e~\u003c/code\u003e (see below).\u003c/p\u003e\n\u003cp dir=\"auto\"\u003eAs an alternative to using the \u003ccode\u003e.netrc\u003c/code\u003e file, which has the disadvantage of keeping your passwords in a plain text file, you can configure a custom shell command to provide the credentials for an extractor. This is done by providing the \u003ccode\u003e--netrc-cmd\u003c/code\u003e parameter, it shall output the credentials in the netrc format and return \u003ccode\u003e0\u003c/code\u003e on success, other values will be treated as an error. \u003ccode\u003e{}\u003c/code\u003e in the command will be replaced by the name of the extractor to make it possible to select the credentials for the right extractor.\u003c/p\u003e\n\u003cp dir=\"auto\"\u003eE.g. To use an encrypted \u003ccode\u003e.netrc\u003c/code\u003e file stored as \u003ccode\u003e.authinfo.gpg\u003c/code\u003e\u003c/p\u003e\n\u003cdiv class=\"snippet-clipboard-content notranslate position-relative overflow-auto\" data-snippet-clipboard-copy-content=\"yt-dlp --netrc-cmd 'gpg --decrypt ~/.authinfo.gpg' 'https://www.youtube.com/watch?v=BaW_jenozKc'\"\u003e\u003cpre class=\"notranslate\"\u003e\u003ccode\u003eyt-dlp --netrc-cmd 'gpg --decrypt ~/.authinfo.gpg' 'https://www.youtube.com/watch?v=BaW_jenozKc'\n\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch3 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eNotes about environment variables\u003c/h3\u003e\u003ca id=\"user-content-notes-about-environment-variables\" class=\"anchor\" aria-label=\"Permalink: Notes about environment variables\" href=\"#notes-about-environment-variables\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cul dir=\"auto\"\u003e\n\u003cli\u003eEnvironment variables are normally specified as \u003ccode\u003e${VARIABLE}\u003c/code\u003e/\u003ccode\u003e$VARIABLE\u003c/code\u003e on UNIX and \u003ccode\u003e%VARIABLE%\u003c/code\u003e on Windows; but is always shown as \u003ccode\u003e${VARIABLE}\u003c/code\u003e in this documentation\u003c/li\u003e\n\u003cli\u003eyt-dlp also allows using UNIX-style variables on Windows for path-like options; e.g. \u003ccode\u003e--output\u003c/code\u003e, \u003ccode\u003e--config-location\u003c/code\u003e\u003c/li\u003e\n\u003cli\u003eIf unset, \u003ccode\u003e${XDG_CONFIG_HOME}\u003c/code\u003e defaults to \u003ccode\u003e~/.config\u003c/code\u003e and \u003ccode\u003e${XDG_CACHE_HOME}\u003c/code\u003e to \u003ccode\u003e~/.cache\u003c/code\u003e\u003c/li\u003e\n\u003cli\u003eOn Windows, \u003ccode\u003e~\u003c/code\u003e points to \u003ccode\u003e${HOME}\u003c/code\u003e if present; or, \u003ccode\u003e${USERPROFILE}\u003c/code\u003e or \u003ccode\u003e${HOMEDRIVE}${HOMEPATH}\u003c/code\u003e otherwise\u003c/li\u003e\n\u003cli\u003eOn Windows, \u003ccode\u003e${USERPROFILE}\u003c/code\u003e generally points to \u003ccode\u003eC:\\Users\\\u0026lt;user name\u0026gt;\u003c/code\u003e and \u003ccode\u003e${APPDATA}\u003c/code\u003e to \u003ccode\u003e${USERPROFILE}\\AppData\\Roaming\u003c/code\u003e\u003c/li\u003e\n\u003c/ul\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch1 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eOUTPUT TEMPLATE\u003c/h1\u003e\u003ca id=\"user-content-output-template\" class=\"anchor\" aria-label=\"Permalink: OUTPUT TEMPLATE\" href=\"#output-template\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cp dir=\"auto\"\u003eThe \u003ccode\u003e-o\u003c/code\u003e option is used to indicate a template for the output file names while \u003ccode\u003e-P\u003c/code\u003e option is used to specify the path each type of file should be saved to.\u003c/p\u003e\n\n\u003cp dir=\"auto\"\u003e\u003cstrong\u003etl;dr:\u003c/strong\u003e \u003ca href=\"#output-template-examples\"\u003enavigate me to examples\u003c/a\u003e.\u003c/p\u003e\n\n\u003cp dir=\"auto\"\u003eThe simplest usage of \u003ccode\u003e-o\u003c/code\u003e is not to set any template arguments when downloading a single file, like in \u003ccode\u003eyt-dlp -o funny_video.flv \"https://some/video\"\u003c/code\u003e (hard-coding file extension like this is \u003cem\u003enot\u003c/em\u003e recommended and could break some post-processing).\u003c/p\u003e\n\u003cp dir=\"auto\"\u003eIt may however also contain special sequences that will be replaced when downloading each video. The special sequences may be formatted according to \u003ca href=\"https://docs.python.org/3/library/stdtypes.html#printf-style-string-formatting\" rel=\"nofollow\"\u003ePython string formatting operations\u003c/a\u003e, e.g. \u003ccode\u003e%(NAME)s\u003c/code\u003e or \u003ccode\u003e%(NAME)05d\u003c/code\u003e. To clarify, that is a percent symbol followed by a name in parentheses, followed by formatting operations.\u003c/p\u003e\n\u003cp dir=\"auto\"\u003eThe field names themselves (the part inside the parenthesis) can also have some special formatting:\u003c/p\u003e\n\u003col dir=\"auto\"\u003e\n\u003cli\u003e\n\u003cp dir=\"auto\"\u003e\u003cstrong\u003eObject traversal\u003c/strong\u003e: The dictionaries and lists available in metadata can be traversed by using a dot \u003ccode\u003e.\u003c/code\u003e separator; e.g. \u003ccode\u003e%(tags.0)s\u003c/code\u003e, \u003ccode\u003e%(subtitles.en.-1.ext)s\u003c/code\u003e. You can do Python slicing with colon \u003ccode\u003e:\u003c/code\u003e; E.g. \u003ccode\u003e%(id.3:7)s\u003c/code\u003e, \u003ccode\u003e%(id.6:2:-1)s\u003c/code\u003e, \u003ccode\u003e%(formats.:.format_id)s\u003c/code\u003e. Curly braces \u003ccode\u003e{}\u003c/code\u003e can be used to build dictionaries with only specific keys; e.g. \u003ccode\u003e%(formats.:.{format_id,height})#j\u003c/code\u003e. An empty field name \u003ccode\u003e%()s\u003c/code\u003e refers to the entire infodict; e.g. \u003ccode\u003e%(.{id,title})s\u003c/code\u003e. Note that all the fields that become available using this method are not listed below. Use \u003ccode\u003e-j\u003c/code\u003e to see such fields\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp dir=\"auto\"\u003e\u003cstrong\u003eArithmetic\u003c/strong\u003e: Simple arithmetic can be done on numeric fields using \u003ccode\u003e+\u003c/code\u003e, \u003ccode\u003e-\u003c/code\u003e and \u003ccode\u003e*\u003c/code\u003e. E.g. \u003ccode\u003e%(playlist_index+10)03d\u003c/code\u003e, \u003ccode\u003e%(n_entries+1-playlist_index)d\u003c/code\u003e\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp dir=\"auto\"\u003e\u003cstrong\u003eDate/time Formatting\u003c/strong\u003e: Date/time fields can be formatted according to \u003ca href=\"https://docs.python.org/3/library/datetime.html#strftime-and-strptime-format-codes\" rel=\"nofollow\"\u003estrftime formatting\u003c/a\u003e by specifying it separated from the field name using a \u003ccode\u003e\u0026gt;\u003c/code\u003e. E.g. \u003ccode\u003e%(duration\u0026gt;%H-%M-%S)s\u003c/code\u003e, \u003ccode\u003e%(upload_date\u0026gt;%Y-%m-%d)s\u003c/code\u003e, \u003ccode\u003e%(epoch-3600\u0026gt;%H-%M-%S)s\u003c/code\u003e\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp dir=\"auto\"\u003e\u003cstrong\u003eAlternatives\u003c/strong\u003e: Alternate fields can be specified separated with a \u003ccode\u003e,\u003c/code\u003e. E.g. \u003ccode\u003e%(release_date\u0026gt;%Y,upload_date\u0026gt;%Y|Unknown)s\u003c/code\u003e\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp dir=\"auto\"\u003e\u003cstrong\u003eReplacement\u003c/strong\u003e: A replacement value can be specified using a \u003ccode\u003e\u0026amp;\u003c/code\u003e separator according to the \u003ca href=\"https://docs.python.org/3/library/string.html#format-specification-mini-language\" rel=\"nofollow\"\u003e\u003ccode\u003estr.format\u003c/code\u003e mini-language\u003c/a\u003e. If the field is \u003cem\u003enot\u003c/em\u003e empty, this replacement value will be used instead of the actual field content. This is done after alternate fields are considered; thus the replacement is used if \u003cem\u003eany\u003c/em\u003e of the alternative fields is \u003cem\u003enot\u003c/em\u003e empty. E.g. \u003ccode\u003e%(chapters\u0026amp;has chapters|no chapters)s\u003c/code\u003e, \u003ccode\u003e%(title\u0026amp;TITLE={:\u0026gt;20}|NO TITLE)s\u003c/code\u003e\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp dir=\"auto\"\u003e\u003cstrong\u003eDefault\u003c/strong\u003e: A literal default value can be specified for when the field is empty using a \u003ccode\u003e|\u003c/code\u003e separator. This overrides \u003ccode\u003e--output-na-placeholder\u003c/code\u003e. E.g. \u003ccode\u003e%(uploader|Unknown)s\u003c/code\u003e\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp dir=\"auto\"\u003e\u003cstrong\u003eMore Conversions\u003c/strong\u003e: In addition to the normal format types \u003ccode\u003ediouxXeEfFgGcrs\u003c/code\u003e, yt-dlp additionally supports converting to \u003ccode\u003eB\u003c/code\u003e = \u003cstrong\u003eB\u003c/strong\u003eytes, \u003ccode\u003ej\u003c/code\u003e = \u003cstrong\u003ej\u003c/strong\u003eson (flag \u003ccode\u003e#\u003c/code\u003e for pretty-printing, \u003ccode\u003e+\u003c/code\u003e for Unicode), \u003ccode\u003eh\u003c/code\u003e = HTML escaping, \u003ccode\u003el\u003c/code\u003e = a comma separated \u003cstrong\u003el\u003c/strong\u003eist (flag \u003ccode\u003e#\u003c/code\u003e for \u003ccode\u003e\\n\u003c/code\u003e newline-separated), \u003ccode\u003eq\u003c/code\u003e = a string \u003cstrong\u003eq\u003c/strong\u003euoted for the terminal (flag \u003ccode\u003e#\u003c/code\u003e to split a list into different arguments), \u003ccode\u003eD\u003c/code\u003e = add \u003cstrong\u003eD\u003c/strong\u003eecimal suffixes (e.g. 10M) (flag \u003ccode\u003e#\u003c/code\u003e to use 1024 as factor), and \u003ccode\u003eS\u003c/code\u003e = \u003cstrong\u003eS\u003c/strong\u003eanitize as filename (flag \u003ccode\u003e#\u003c/code\u003e for restricted)\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp dir=\"auto\"\u003e\u003cstrong\u003eUnicode normalization\u003c/strong\u003e: The format type \u003ccode\u003eU\u003c/code\u003e can be used for NFC \u003ca href=\"https://docs.python.org/3/library/unicodedata.html#unicodedata.normalize\" rel=\"nofollow\"\u003eUnicode normalization\u003c/a\u003e. The alternate form flag (\u003ccode\u003e#\u003c/code\u003e) changes the normalization to NFD and the conversion flag \u003ccode\u003e+\u003c/code\u003e can be used for NFKC/NFKD compatibility equivalence normalization. E.g. \u003ccode\u003e%(title)+.100U\u003c/code\u003e is NFKC\u003c/p\u003e\n\u003c/li\u003e\n\u003c/ol\u003e\n\u003cp dir=\"auto\"\u003eTo summarize, the general syntax for a field is:\u003c/p\u003e\n\u003cdiv class=\"snippet-clipboard-content notranslate position-relative overflow-auto\" data-snippet-clipboard-copy-content=\"%(name[.keys][addition][\u0026gt;strf][,alternate][\u0026amp;replacement][|default])[flags][width][.precision][length]type\"\u003e\u003cpre class=\"notranslate\"\u003e\u003ccode\u003e%(name[.keys][addition][\u0026gt;strf][,alternate][\u0026amp;replacement][|default])[flags][width][.precision][length]type\n\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\n\u003cp dir=\"auto\"\u003eAdditionally, you can set different output templates for the various metadata files separately from the general output template by specifying the type of file followed by the template separated by a colon \u003ccode\u003e:\u003c/code\u003e. The different file types supported are \u003ccode\u003esubtitle\u003c/code\u003e, \u003ccode\u003ethumbnail\u003c/code\u003e, \u003ccode\u003edescription\u003c/code\u003e, \u003ccode\u003eannotation\u003c/code\u003e (deprecated), \u003ccode\u003einfojson\u003c/code\u003e, \u003ccode\u003elink\u003c/code\u003e, \u003ccode\u003epl_thumbnail\u003c/code\u003e, \u003ccode\u003epl_description\u003c/code\u003e, \u003ccode\u003epl_infojson\u003c/code\u003e, \u003ccode\u003echapter\u003c/code\u003e, \u003ccode\u003epl_video\u003c/code\u003e. E.g. \u003ccode\u003e-o \"%(title)s.%(ext)s\" -o \"thumbnail:%(title)s\\%(title)s.%(ext)s\"\u003c/code\u003e will put the thumbnails in a folder with the same name as the video. If any of the templates is empty, that type of file will not be written. E.g. \u003ccode\u003e--write-thumbnail -o \"thumbnail:\"\u003c/code\u003e will write thumbnails only for playlists and not for video.\u003c/p\u003e\n\u003cp dir=\"auto\"\u003e\u003ca id=\"user-content-outtmpl-postprocess-note\"\u003e\u003c/a\u003e\u003c/p\u003e\n\u003cp dir=\"auto\"\u003e\u003cstrong\u003eNote\u003c/strong\u003e: Due to post-processing (i.e. merging etc.), the actual output filename might differ. Use \u003ccode\u003e--print after_move:filepath\u003c/code\u003e to get the name after all post-processing is complete.\u003c/p\u003e\n\u003cp dir=\"auto\"\u003eThe available fields are:\u003c/p\u003e\n\u003cul dir=\"auto\"\u003e\n\u003cli\u003e\u003ccode\u003eid\u003c/code\u003e (string): Video identifier\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003etitle\u003c/code\u003e (string): Video title\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003efulltitle\u003c/code\u003e (string): Video title ignoring live timestamp and generic title\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003eext\u003c/code\u003e (string): Video filename extension\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003ealt_title\u003c/code\u003e (string): A secondary title of the video\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003edescription\u003c/code\u003e (string): The description of the video\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003edisplay_id\u003c/code\u003e (string): An alternative identifier for the video\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003euploader\u003c/code\u003e (string): Full name of the video uploader\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003euploader_id\u003c/code\u003e (string): Nickname or id of the video uploader\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003euploader_url\u003c/code\u003e (string): URL to the video uploader's profile\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003elicense\u003c/code\u003e (string): License name the video is licensed under\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003ecreators\u003c/code\u003e (list): The creators of the video\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003ecreator\u003c/code\u003e (string): The creators of the video; comma-separated\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003etimestamp\u003c/code\u003e (numeric): UNIX timestamp of the moment the video became available\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003eupload_date\u003c/code\u003e (string): Video upload date in UTC (YYYYMMDD)\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003erelease_timestamp\u003c/code\u003e (numeric): UNIX timestamp of the moment the video was released\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003erelease_date\u003c/code\u003e (string): The date (YYYYMMDD) when the video was released in UTC\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003erelease_year\u003c/code\u003e (numeric): Year (YYYY) when the video or album was released\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003emodified_timestamp\u003c/code\u003e (numeric): UNIX timestamp of the moment the video was last modified\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003emodified_date\u003c/code\u003e (string): The date (YYYYMMDD) when the video was last modified in UTC\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003echannel\u003c/code\u003e (string): Full name of the channel the video is uploaded on\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003echannel_id\u003c/code\u003e (string): Id of the channel\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003echannel_url\u003c/code\u003e (string): URL of the channel\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003echannel_follower_count\u003c/code\u003e (numeric): Number of followers of the channel\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003echannel_is_verified\u003c/code\u003e (boolean): Whether the channel is verified on the platform\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003elocation\u003c/code\u003e (string): Physical location where the video was filmed\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003eduration\u003c/code\u003e (numeric): Length of the video in seconds\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003eduration_string\u003c/code\u003e (string): Length of the video (HH:mm:ss)\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003eview_count\u003c/code\u003e (numeric): How many users have watched the video on the platform\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003econcurrent_view_count\u003c/code\u003e (numeric): How many users are currently watching the video on the platform.\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003elike_count\u003c/code\u003e (numeric): Number of positive ratings of the video\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003edislike_count\u003c/code\u003e (numeric): Number of negative ratings of the video\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003erepost_count\u003c/code\u003e (numeric): Number of reposts of the video\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003eaverage_rating\u003c/code\u003e (numeric): Average rating given by users, the scale used depends on the webpage\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003ecomment_count\u003c/code\u003e (numeric): Number of comments on the video (For some extractors, comments are only downloaded at the end, and so this field cannot be used)\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003eage_limit\u003c/code\u003e (numeric): Age restriction for the video (years)\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003elive_status\u003c/code\u003e (string): One of \"not_live\", \"is_live\", \"is_upcoming\", \"was_live\", \"post_live\" (was live, but VOD is not yet processed)\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003eis_live\u003c/code\u003e (boolean): Whether this video is a live stream or a fixed-length video\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003ewas_live\u003c/code\u003e (boolean): Whether this video was originally a live stream\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003eplayable_in_embed\u003c/code\u003e (string): Whether this video is allowed to play in embedded players on other sites\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003eavailability\u003c/code\u003e (string): Whether the video is \"private\", \"premium_only\", \"subscriber_only\", \"needs_auth\", \"unlisted\" or \"public\"\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003emedia_type\u003c/code\u003e (string): The type of media as classified by the site, e.g. \"episode\", \"clip\", \"trailer\"\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003estart_time\u003c/code\u003e (numeric): Time in seconds where the reproduction should start, as specified in the URL\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003eend_time\u003c/code\u003e (numeric): Time in seconds where the reproduction should end, as specified in the URL\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003eextractor\u003c/code\u003e (string): Name of the extractor\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003eextractor_key\u003c/code\u003e (string): Key name of the extractor\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003eepoch\u003c/code\u003e (numeric): Unix epoch of when the information extraction was completed\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003eautonumber\u003c/code\u003e (numeric): Number that will be increased with each download, starting at \u003ccode\u003e--autonumber-start\u003c/code\u003e, padded with leading zeros to 5 digits\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003evideo_autonumber\u003c/code\u003e (numeric): Number that will be increased with each video\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003en_entries\u003c/code\u003e (numeric): Total number of extracted items in the playlist\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003eplaylist_id\u003c/code\u003e (string): Identifier of the playlist that contains the video\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003eplaylist_title\u003c/code\u003e (string): Name of the playlist that contains the video\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003eplaylist\u003c/code\u003e (string): \u003ccode\u003eplaylist_title\u003c/code\u003e if available or else \u003ccode\u003eplaylist_id\u003c/code\u003e\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003eplaylist_count\u003c/code\u003e (numeric): Total number of items in the playlist. May not be known if entire playlist is not extracted\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003eplaylist_index\u003c/code\u003e (numeric): Index of the video in the playlist padded with leading zeros according the final index\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003eplaylist_autonumber\u003c/code\u003e (numeric): Position of the video in the playlist download queue padded with leading zeros according to the total length of the playlist\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003eplaylist_uploader\u003c/code\u003e (string): Full name of the playlist uploader\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003eplaylist_uploader_id\u003c/code\u003e (string): Nickname or id of the playlist uploader\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003eplaylist_channel\u003c/code\u003e (string): Display name of the channel that uploaded the playlist\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003eplaylist_channel_id\u003c/code\u003e (string): Identifier of the channel that uploaded the playlist\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003eplaylist_webpage_url\u003c/code\u003e (string): URL of the playlist webpage\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003ewebpage_url\u003c/code\u003e (string): A URL to the video webpage which, if given to yt-dlp, should yield the same result again\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003ewebpage_url_basename\u003c/code\u003e (string): The basename of the webpage URL\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003ewebpage_url_domain\u003c/code\u003e (string): The domain of the webpage URL\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003eoriginal_url\u003c/code\u003e (string): The URL given by the user (or the same as \u003ccode\u003ewebpage_url\u003c/code\u003e for playlist entries)\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003ecategories\u003c/code\u003e (list): List of categories the video belongs to\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003etags\u003c/code\u003e (list): List of tags assigned to the video\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003ecast\u003c/code\u003e (list): List of cast members\u003c/li\u003e\n\u003c/ul\u003e\n\u003cp dir=\"auto\"\u003eAll the fields in \u003ca href=\"#filtering-formats\"\u003eFiltering Formats\u003c/a\u003e can also be used\u003c/p\u003e\n\u003cp dir=\"auto\"\u003eAvailable for the video that belongs to some logical chapter or section:\u003c/p\u003e\n\u003cul dir=\"auto\"\u003e\n\u003cli\u003e\u003ccode\u003echapter\u003c/code\u003e (string): Name or title of the chapter the video belongs to\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003echapter_number\u003c/code\u003e (numeric): Number of the chapter the video belongs to\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003echapter_id\u003c/code\u003e (string): Id of the chapter the video belongs to\u003c/li\u003e\n\u003c/ul\u003e\n\u003cp dir=\"auto\"\u003eAvailable for the video that is an episode of some series or program:\u003c/p\u003e\n\u003cul dir=\"auto\"\u003e\n\u003cli\u003e\u003ccode\u003eseries\u003c/code\u003e (string): Title of the series or program the video episode belongs to\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003eseries_id\u003c/code\u003e (string): Id of the series or program the video episode belongs to\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003eseason\u003c/code\u003e (string): Title of the season the video episode belongs to\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003eseason_number\u003c/code\u003e (numeric): Number of the season the video episode belongs to\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003eseason_id\u003c/code\u003e (string): Id of the season the video episode belongs to\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003eepisode\u003c/code\u003e (string): Title of the video episode\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003eepisode_number\u003c/code\u003e (numeric): Number of the video episode within a season\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003eepisode_id\u003c/code\u003e (string): Id of the video episode\u003c/li\u003e\n\u003c/ul\u003e\n\u003cp dir=\"auto\"\u003eAvailable for the media that is a track or a part of a music album:\u003c/p\u003e\n\u003cul dir=\"auto\"\u003e\n\u003cli\u003e\u003ccode\u003etrack\u003c/code\u003e (string): Title of the track\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003etrack_number\u003c/code\u003e (numeric): Number of the track within an album or a disc\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003etrack_id\u003c/code\u003e (string): Id of the track\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003eartists\u003c/code\u003e (list): Artist(s) of the track\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003eartist\u003c/code\u003e (string): Artist(s) of the track; comma-separated\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003egenres\u003c/code\u003e (list): Genre(s) of the track\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003egenre\u003c/code\u003e (string): Genre(s) of the track; comma-separated\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003ecomposers\u003c/code\u003e (list): Composer(s) of the piece\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003ecomposer\u003c/code\u003e (string): Composer(s) of the piece; comma-separated\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003ealbum\u003c/code\u003e (string): Title of the album the track belongs to\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003ealbum_type\u003c/code\u003e (string): Type of the album\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003ealbum_artists\u003c/code\u003e (list): All artists appeared on the album\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003ealbum_artist\u003c/code\u003e (string): All artists appeared on the album; comma-separated\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003edisc_number\u003c/code\u003e (numeric): Number of the disc or other physical medium the track belongs to\u003c/li\u003e\n\u003c/ul\u003e\n\u003cp dir=\"auto\"\u003eAvailable only when using \u003ccode\u003e--download-sections\u003c/code\u003e and for \u003ccode\u003echapter:\u003c/code\u003e prefix when using \u003ccode\u003e--split-chapters\u003c/code\u003e for videos with internal chapters:\u003c/p\u003e\n\u003cul dir=\"auto\"\u003e\n\u003cli\u003e\u003ccode\u003esection_title\u003c/code\u003e (string): Title of the chapter\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003esection_number\u003c/code\u003e (numeric): Number of the chapter within the file\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003esection_start\u003c/code\u003e (numeric): Start time of the chapter in seconds\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003esection_end\u003c/code\u003e (numeric): End time of the chapter in seconds\u003c/li\u003e\n\u003c/ul\u003e\n\u003cp dir=\"auto\"\u003eAvailable only when used in \u003ccode\u003e--print\u003c/code\u003e:\u003c/p\u003e\n\u003cul dir=\"auto\"\u003e\n\u003cli\u003e\u003ccode\u003eurls\u003c/code\u003e (string): The URLs of all requested formats, one in each line\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003efilename\u003c/code\u003e (string): Name of the video file. Note that the \u003ca href=\"#outtmpl-postprocess-note\"\u003eactual filename may differ\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003eformats_table\u003c/code\u003e (table): The video format table as printed by \u003ccode\u003e--list-formats\u003c/code\u003e\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003ethumbnails_table\u003c/code\u003e (table): The thumbnail format table as printed by \u003ccode\u003e--list-thumbnails\u003c/code\u003e\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003esubtitles_table\u003c/code\u003e (table): The subtitle format table as printed by \u003ccode\u003e--list-subs\u003c/code\u003e\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003eautomatic_captions_table\u003c/code\u003e (table): The automatic subtitle format table as printed by \u003ccode\u003e--list-subs\u003c/code\u003e\u003c/li\u003e\n\u003c/ul\u003e\n\u003cp dir=\"auto\"\u003eAvailable only after the video is downloaded (\u003ccode\u003epost_process\u003c/code\u003e/\u003ccode\u003eafter_move\u003c/code\u003e):\u003c/p\u003e\n\u003cul dir=\"auto\"\u003e\n\u003cli\u003e\u003ccode\u003efilepath\u003c/code\u003e: Actual path of downloaded video file\u003c/li\u003e\n\u003c/ul\u003e\n\u003cp dir=\"auto\"\u003eAvailable only in \u003ccode\u003e--sponsorblock-chapter-title\u003c/code\u003e:\u003c/p\u003e\n\u003cul dir=\"auto\"\u003e\n\u003cli\u003e\u003ccode\u003estart_time\u003c/code\u003e (numeric): Start time of the chapter in seconds\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003eend_time\u003c/code\u003e (numeric): End time of the chapter in seconds\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003ecategories\u003c/code\u003e (list): The \u003ca href=\"https://wiki.sponsor.ajay.app/w/Types#Category\" rel=\"nofollow\"\u003eSponsorBlock categories\u003c/a\u003e the chapter belongs to\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003ecategory\u003c/code\u003e (string): The smallest SponsorBlock category the chapter belongs to\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003ecategory_names\u003c/code\u003e (list): Friendly names of the categories\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003ename\u003c/code\u003e (string): Friendly name of the smallest category\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003etype\u003c/code\u003e (string): The \u003ca href=\"https://wiki.sponsor.ajay.app/w/Types#Action_Type\" rel=\"nofollow\"\u003eSponsorBlock action type\u003c/a\u003e of the chapter\u003c/li\u003e\n\u003c/ul\u003e\n\u003cp dir=\"auto\"\u003eEach aforementioned sequence when referenced in an output template will be replaced by the actual value corresponding to the sequence name. E.g. for \u003ccode\u003e-o %(title)s-%(id)s.%(ext)s\u003c/code\u003e and an mp4 video with title \u003ccode\u003eyt-dlp test video\u003c/code\u003e and id \u003ccode\u003eBaW_jenozKc\u003c/code\u003e, this will result in a \u003ccode\u003eyt-dlp test video-BaW_jenozKc.mp4\u003c/code\u003e file created in the current directory.\u003c/p\u003e\n\u003cp dir=\"auto\"\u003e\u003cstrong\u003eNote\u003c/strong\u003e: Some of the sequences are not guaranteed to be present, since they depend on the metadata obtained by a particular extractor. Such sequences will be replaced with placeholder value provided with \u003ccode\u003e--output-na-placeholder\u003c/code\u003e (\u003ccode\u003eNA\u003c/code\u003e by default).\u003c/p\u003e\n\u003cp dir=\"auto\"\u003e\u003cstrong\u003eTip\u003c/strong\u003e: Look at the \u003ccode\u003e-j\u003c/code\u003e output to identify which fields are available for the particular URL\u003c/p\u003e\n\u003cp dir=\"auto\"\u003eFor numeric sequences, you can use \u003ca href=\"https://docs.python.org/3/library/stdtypes.html#printf-style-string-formatting\" rel=\"nofollow\"\u003enumeric related formatting\u003c/a\u003e; e.g. \u003ccode\u003e%(view_count)05d\u003c/code\u003e will result in a string with view count padded with zeros up to 5 characters, like in \u003ccode\u003e00042\u003c/code\u003e.\u003c/p\u003e\n\u003cp dir=\"auto\"\u003eOutput templates can also contain arbitrary hierarchical path, e.g. \u003ccode\u003e-o \"%(playlist)s/%(playlist_index)s - %(title)s.%(ext)s\"\u003c/code\u003e which will result in downloading each video in a directory corresponding to this path template. Any missing directory will be automatically created for you.\u003c/p\u003e\n\u003cp dir=\"auto\"\u003eTo use percent literals in an output template use \u003ccode\u003e%%\u003c/code\u003e. To output to stdout use \u003ccode\u003e-o -\u003c/code\u003e.\u003c/p\u003e\n\u003cp dir=\"auto\"\u003eThe current default template is \u003ccode\u003e%(title)s [%(id)s].%(ext)s\u003c/code\u003e.\u003c/p\u003e\n\u003cp dir=\"auto\"\u003eIn some cases, you don't want special characters such as 中, spaces, or \u0026amp;, such as when transferring the downloaded filename to a Windows system or the filename through an 8bit-unsafe channel. In these cases, add the \u003ccode\u003e--restrict-filenames\u003c/code\u003e flag to get a shorter title.\u003c/p\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch4 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eOutput template examples\u003c/h4\u003e\u003ca id=\"user-content-output-template-examples\" class=\"anchor\" aria-label=\"Permalink: Output template examples\" href=\"#output-template-examples\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cdiv class=\"highlight highlight-source-shell notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"$ yt-dlp --print filename -o \u0026quot;test video.%(ext)s\u0026quot; BaW_jenozKc\ntest video.webm # Literal name with correct extension\n\n$ yt-dlp --print filename -o \u0026quot;%(title)s.%(ext)s\u0026quot; BaW_jenozKc\nyoutube-dl test video ''_ä↭𝕐.webm # All kinds of weird characters\n\n$ yt-dlp --print filename -o \u0026quot;%(title)s.%(ext)s\u0026quot; BaW_jenozKc --restrict-filenames\nyoutube-dl_test_video_.webm # Restricted file name\n\n# Download YouTube playlist videos in separate directory indexed by video order in a playlist\n$ yt-dlp -o \u0026quot;%(playlist)s/%(playlist_index)s - %(title)s.%(ext)s\u0026quot; \u0026quot;https://www.youtube.com/playlist?list=PLwiyx1dc3P2JR9N8gQaQN_BCvlSlap7re\u0026quot;\n\n# Download YouTube playlist videos in separate directories according to their uploaded year\n$ yt-dlp -o \u0026quot;%(upload_date\u0026gt;%Y)s/%(title)s.%(ext)s\u0026quot; \u0026quot;https://www.youtube.com/playlist?list=PLwiyx1dc3P2JR9N8gQaQN_BCvlSlap7re\u0026quot;\n\n# Prefix playlist index with \u0026quot; - \u0026quot; separator, but only if it is available\n$ yt-dlp -o \u0026quot;%(playlist_index\u0026amp;{} - |)s%(title)s.%(ext)s\u0026quot; BaW_jenozKc \u0026quot;https://www.youtube.com/user/TheLinuxFoundation/playlists\u0026quot;\n\n# Download all playlists of YouTube channel/user keeping each playlist in separate directory:\n$ yt-dlp -o \u0026quot;%(uploader)s/%(playlist)s/%(playlist_index)s - %(title)s.%(ext)s\u0026quot; \u0026quot;https://www.youtube.com/user/TheLinuxFoundation/playlists\u0026quot;\n\n# Download Udemy course keeping each chapter in separate directory under MyVideos directory in your home\n$ yt-dlp -u user -p password -P \u0026quot;~/MyVideos\u0026quot; -o \u0026quot;%(playlist)s/%(chapter_number)s - %(chapter)s/%(title)s.%(ext)s\u0026quot; \u0026quot;https://www.udemy.com/java-tutorial\u0026quot;\n\n# Download entire series season keeping each series and each season in separate directory under C:/MyVideos\n$ yt-dlp -P \u0026quot;C:/MyVideos\u0026quot; -o \u0026quot;%(series)s/%(season_number)s - %(season)s/%(episode_number)s - %(episode)s.%(ext)s\u0026quot; \u0026quot;https://videomore.ru/kino_v_detalayah/5_sezon/367617\u0026quot;\n\n# Download video as \u0026quot;C:\\MyVideos\\uploader\\title.ext\u0026quot;, subtitles as \u0026quot;C:\\MyVideos\\subs\\uploader\\title.ext\u0026quot;\n# and put all temporary files in \u0026quot;C:\\MyVideos\\tmp\u0026quot;\n$ yt-dlp -P \u0026quot;C:/MyVideos\u0026quot; -P \u0026quot;temp:tmp\u0026quot; -P \u0026quot;subtitle:subs\u0026quot; -o \u0026quot;%(uploader)s/%(title)s.%(ext)s\u0026quot; BaW_jenozKc --write-subs\n\n# Download video as \u0026quot;C:\\MyVideos\\uploader\\title.ext\u0026quot; and subtitles as \u0026quot;C:\\MyVideos\\uploader\\subs\\title.ext\u0026quot;\n$ yt-dlp -P \u0026quot;C:/MyVideos\u0026quot; -o \u0026quot;%(uploader)s/%(title)s.%(ext)s\u0026quot; -o \u0026quot;subtitle:%(uploader)s/subs/%(title)s.%(ext)s\u0026quot; BaW_jenozKc --write-subs\n\n# Stream the video being downloaded to stdout\n$ yt-dlp -o - BaW_jenozKc\"\u003e\u003cpre\u003e$ yt-dlp --print filename -o \u003cspan class=\"pl-s\"\u003e\u003cspan class=\"pl-pds\"\u003e\"\u003c/span\u003etest video.%(ext)s\u003cspan class=\"pl-pds\"\u003e\"\u003c/span\u003e\u003c/span\u003e BaW_jenozKc\n\u003cspan class=\"pl-c1\"\u003etest\u003c/span\u003e video.webm \u003cspan class=\"pl-c\"\u003e\u003cspan class=\"pl-c\"\u003e#\u003c/span\u003e Literal name with correct extension\u003c/span\u003e\n\n$ yt-dlp --print filename -o \u003cspan class=\"pl-s\"\u003e\u003cspan class=\"pl-pds\"\u003e\"\u003c/span\u003e%(title)s.%(ext)s\u003cspan class=\"pl-pds\"\u003e\"\u003c/span\u003e\u003c/span\u003e BaW_jenozKc\nyoutube-dl \u003cspan class=\"pl-c1\"\u003etest\u003c/span\u003e video \u003cspan class=\"pl-s\"\u003e\u003cspan class=\"pl-pds\"\u003e'\u003c/span\u003e\u003cspan class=\"pl-pds\"\u003e'\u003c/span\u003e\u003c/span\u003e_ä↭𝕐.webm \u003cspan class=\"pl-c\"\u003e\u003cspan class=\"pl-c\"\u003e#\u003c/span\u003e All kinds of weird characters\u003c/span\u003e\n\n$ yt-dlp --print filename -o \u003cspan class=\"pl-s\"\u003e\u003cspan class=\"pl-pds\"\u003e\"\u003c/span\u003e%(title)s.%(ext)s\u003cspan class=\"pl-pds\"\u003e\"\u003c/span\u003e\u003c/span\u003e BaW_jenozKc --restrict-filenames\nyoutube-dl_test_video_.webm \u003cspan class=\"pl-c\"\u003e\u003cspan class=\"pl-c\"\u003e#\u003c/span\u003e Restricted file name\u003c/span\u003e\n\n\u003cspan class=\"pl-c\"\u003e\u003cspan class=\"pl-c\"\u003e#\u003c/span\u003e Download YouTube playlist videos in separate directory indexed by video order in a playlist\u003c/span\u003e\n$ yt-dlp -o \u003cspan class=\"pl-s\"\u003e\u003cspan class=\"pl-pds\"\u003e\"\u003c/span\u003e%(playlist)s/%(playlist_index)s - %(title)s.%(ext)s\u003cspan class=\"pl-pds\"\u003e\"\u003c/span\u003e\u003c/span\u003e \u003cspan class=\"pl-s\"\u003e\u003cspan class=\"pl-pds\"\u003e\"\u003c/span\u003ehttps://www.youtube.com/playlist?list=PLwiyx1dc3P2JR9N8gQaQN_BCvlSlap7re\u003cspan class=\"pl-pds\"\u003e\"\u003c/span\u003e\u003c/span\u003e\n\n\u003cspan class=\"pl-c\"\u003e\u003cspan class=\"pl-c\"\u003e#\u003c/span\u003e Download YouTube playlist videos in separate directories according to their uploaded year\u003c/span\u003e\n$ yt-dlp -o \u003cspan class=\"pl-s\"\u003e\u003cspan class=\"pl-pds\"\u003e\"\u003c/span\u003e%(upload_date\u0026gt;%Y)s/%(title)s.%(ext)s\u003cspan class=\"pl-pds\"\u003e\"\u003c/span\u003e\u003c/span\u003e \u003cspan class=\"pl-s\"\u003e\u003cspan class=\"pl-pds\"\u003e\"\u003c/span\u003ehttps://www.youtube.com/playlist?list=PLwiyx1dc3P2JR9N8gQaQN_BCvlSlap7re\u003cspan class=\"pl-pds\"\u003e\"\u003c/span\u003e\u003c/span\u003e\n\n\u003cspan class=\"pl-c\"\u003e\u003cspan class=\"pl-c\"\u003e#\u003c/span\u003e Prefix playlist index with \" - \" separator, but only if it is available\u003c/span\u003e\n$ yt-dlp -o \u003cspan class=\"pl-s\"\u003e\u003cspan class=\"pl-pds\"\u003e\"\u003c/span\u003e%(playlist_index\u0026amp;{} - |)s%(title)s.%(ext)s\u003cspan class=\"pl-pds\"\u003e\"\u003c/span\u003e\u003c/span\u003e BaW_jenozKc \u003cspan class=\"pl-s\"\u003e\u003cspan class=\"pl-pds\"\u003e\"\u003c/span\u003ehttps://www.youtube.com/user/TheLinuxFoundation/playlists\u003cspan class=\"pl-pds\"\u003e\"\u003c/span\u003e\u003c/span\u003e\n\n\u003cspan class=\"pl-c\"\u003e\u003cspan class=\"pl-c\"\u003e#\u003c/span\u003e Download all playlists of YouTube channel/user keeping each playlist in separate directory:\u003c/span\u003e\n$ yt-dlp -o \u003cspan class=\"pl-s\"\u003e\u003cspan class=\"pl-pds\"\u003e\"\u003c/span\u003e%(uploader)s/%(playlist)s/%(playlist_index)s - %(title)s.%(ext)s\u003cspan class=\"pl-pds\"\u003e\"\u003c/span\u003e\u003c/span\u003e \u003cspan class=\"pl-s\"\u003e\u003cspan class=\"pl-pds\"\u003e\"\u003c/span\u003ehttps://www.youtube.com/user/TheLinuxFoundation/playlists\u003cspan class=\"pl-pds\"\u003e\"\u003c/span\u003e\u003c/span\u003e\n\n\u003cspan class=\"pl-c\"\u003e\u003cspan class=\"pl-c\"\u003e#\u003c/span\u003e Download Udemy course keeping each chapter in separate directory under MyVideos directory in your home\u003c/span\u003e\n$ yt-dlp -u user -p password -P \u003cspan class=\"pl-s\"\u003e\u003cspan class=\"pl-pds\"\u003e\"\u003c/span\u003e~/MyVideos\u003cspan class=\"pl-pds\"\u003e\"\u003c/span\u003e\u003c/span\u003e -o \u003cspan class=\"pl-s\"\u003e\u003cspan class=\"pl-pds\"\u003e\"\u003c/span\u003e%(playlist)s/%(chapter_number)s - %(chapter)s/%(title)s.%(ext)s\u003cspan class=\"pl-pds\"\u003e\"\u003c/span\u003e\u003c/span\u003e \u003cspan class=\"pl-s\"\u003e\u003cspan class=\"pl-pds\"\u003e\"\u003c/span\u003ehttps://www.udemy.com/java-tutorial\u003cspan class=\"pl-pds\"\u003e\"\u003c/span\u003e\u003c/span\u003e\n\n\u003cspan class=\"pl-c\"\u003e\u003cspan class=\"pl-c\"\u003e#\u003c/span\u003e Download entire series season keeping each series and each season in separate directory under C:/MyVideos\u003c/span\u003e\n$ yt-dlp -P \u003cspan class=\"pl-s\"\u003e\u003cspan class=\"pl-pds\"\u003e\"\u003c/span\u003eC:/MyVideos\u003cspan class=\"pl-pds\"\u003e\"\u003c/span\u003e\u003c/span\u003e -o \u003cspan class=\"pl-s\"\u003e\u003cspan class=\"pl-pds\"\u003e\"\u003c/span\u003e%(series)s/%(season_number)s - %(season)s/%(episode_number)s - %(episode)s.%(ext)s\u003cspan class=\"pl-pds\"\u003e\"\u003c/span\u003e\u003c/span\u003e \u003cspan class=\"pl-s\"\u003e\u003cspan class=\"pl-pds\"\u003e\"\u003c/span\u003ehttps://videomore.ru/kino_v_detalayah/5_sezon/367617\u003cspan class=\"pl-pds\"\u003e\"\u003c/span\u003e\u003c/span\u003e\n\n\u003cspan class=\"pl-c\"\u003e\u003cspan class=\"pl-c\"\u003e#\u003c/span\u003e Download video as \"C:\\MyVideos\\uploader\\title.ext\", subtitles as \"C:\\MyVideos\\subs\\uploader\\title.ext\"\u003c/span\u003e\n\u003cspan class=\"pl-c\"\u003e\u003cspan class=\"pl-c\"\u003e#\u003c/span\u003e and put all temporary files in \"C:\\MyVideos\\tmp\"\u003c/span\u003e\n$ yt-dlp -P \u003cspan class=\"pl-s\"\u003e\u003cspan class=\"pl-pds\"\u003e\"\u003c/span\u003eC:/MyVideos\u003cspan class=\"pl-pds\"\u003e\"\u003c/span\u003e\u003c/span\u003e -P \u003cspan class=\"pl-s\"\u003e\u003cspan class=\"pl-pds\"\u003e\"\u003c/span\u003etemp:tmp\u003cspan class=\"pl-pds\"\u003e\"\u003c/span\u003e\u003c/span\u003e -P \u003cspan class=\"pl-s\"\u003e\u003cspan class=\"pl-pds\"\u003e\"\u003c/span\u003esubtitle:subs\u003cspan class=\"pl-pds\"\u003e\"\u003c/span\u003e\u003c/span\u003e -o \u003cspan class=\"pl-s\"\u003e\u003cspan class=\"pl-pds\"\u003e\"\u003c/span\u003e%(uploader)s/%(title)s.%(ext)s\u003cspan class=\"pl-pds\"\u003e\"\u003c/span\u003e\u003c/span\u003e BaW_jenozKc --write-subs\n\n\u003cspan class=\"pl-c\"\u003e\u003cspan class=\"pl-c\"\u003e#\u003c/span\u003e Download video as \"C:\\MyVideos\\uploader\\title.ext\" and subtitles as \"C:\\MyVideos\\uploader\\subs\\title.ext\"\u003c/span\u003e\n$ yt-dlp -P \u003cspan class=\"pl-s\"\u003e\u003cspan class=\"pl-pds\"\u003e\"\u003c/span\u003eC:/MyVideos\u003cspan class=\"pl-pds\"\u003e\"\u003c/span\u003e\u003c/span\u003e -o \u003cspan class=\"pl-s\"\u003e\u003cspan class=\"pl-pds\"\u003e\"\u003c/span\u003e%(uploader)s/%(title)s.%(ext)s\u003cspan class=\"pl-pds\"\u003e\"\u003c/span\u003e\u003c/span\u003e -o \u003cspan class=\"pl-s\"\u003e\u003cspan class=\"pl-pds\"\u003e\"\u003c/span\u003esubtitle:%(uploader)s/subs/%(title)s.%(ext)s\u003cspan class=\"pl-pds\"\u003e\"\u003c/span\u003e\u003c/span\u003e BaW_jenozKc --write-subs\n\n\u003cspan class=\"pl-c\"\u003e\u003cspan class=\"pl-c\"\u003e#\u003c/span\u003e Stream the video being downloaded to stdout\u003c/span\u003e\n$ yt-dlp -o - BaW_jenozKc\u003c/pre\u003e\u003c/div\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch1 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eFORMAT SELECTION\u003c/h1\u003e\u003ca id=\"user-content-format-selection\" class=\"anchor\" aria-label=\"Permalink: FORMAT SELECTION\" href=\"#format-selection\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cp dir=\"auto\"\u003eBy default, yt-dlp tries to download the best available quality if you \u003cstrong\u003edon't\u003c/strong\u003e pass any options.\nThis is generally equivalent to using \u003ccode\u003e-f bestvideo*+bestaudio/best\u003c/code\u003e. However, if multiple audiostreams is enabled (\u003ccode\u003e--audio-multistreams\u003c/code\u003e), the default format changes to \u003ccode\u003e-f bestvideo+bestaudio/best\u003c/code\u003e. Similarly, if ffmpeg is unavailable, or if you use yt-dlp to stream to \u003ccode\u003estdout\u003c/code\u003e (\u003ccode\u003e-o -\u003c/code\u003e), the default becomes \u003ccode\u003e-f best/bestvideo+bestaudio\u003c/code\u003e.\u003c/p\u003e\n\u003cp dir=\"auto\"\u003e\u003cstrong\u003eDeprecation warning\u003c/strong\u003e: Latest versions of yt-dlp can stream multiple formats to the stdout simultaneously using ffmpeg. So, in future versions, the default for this will be set to \u003ccode\u003e-f bv*+ba/b\u003c/code\u003e similar to normal downloads. If you want to preserve the \u003ccode\u003e-f b/bv+ba\u003c/code\u003e setting, it is recommended to explicitly specify it in the configuration options.\u003c/p\u003e\n\u003cp dir=\"auto\"\u003eThe general syntax for format selection is \u003ccode\u003e-f FORMAT\u003c/code\u003e (or \u003ccode\u003e--format FORMAT\u003c/code\u003e) where \u003ccode\u003eFORMAT\u003c/code\u003e is a \u003cem\u003eselector expression\u003c/em\u003e, i.e. an expression that describes format or formats you would like to download.\u003c/p\u003e\n\n\u003cp dir=\"auto\"\u003e\u003cstrong\u003etl;dr:\u003c/strong\u003e \u003ca href=\"#format-selection-examples\"\u003enavigate me to examples\u003c/a\u003e.\u003c/p\u003e\n\n\u003cp dir=\"auto\"\u003eThe simplest case is requesting a specific format; e.g. with \u003ccode\u003e-f 22\u003c/code\u003e you can download the format with format code equal to 22. You can get the list of available format codes for particular video using \u003ccode\u003e--list-formats\u003c/code\u003e or \u003ccode\u003e-F\u003c/code\u003e. Note that these format codes are extractor specific.\u003c/p\u003e\n\u003cp dir=\"auto\"\u003eYou can also use a file extension (currently \u003ccode\u003e3gp\u003c/code\u003e, \u003ccode\u003eaac\u003c/code\u003e, \u003ccode\u003eflv\u003c/code\u003e, \u003ccode\u003em4a\u003c/code\u003e, \u003ccode\u003emp3\u003c/code\u003e, \u003ccode\u003emp4\u003c/code\u003e, \u003ccode\u003eogg\u003c/code\u003e, \u003ccode\u003ewav\u003c/code\u003e, \u003ccode\u003ewebm\u003c/code\u003e are supported) to download the best quality format of a particular file extension served as a single file, e.g. \u003ccode\u003e-f webm\u003c/code\u003e will download the best quality format with the \u003ccode\u003ewebm\u003c/code\u003e extension served as a single file.\u003c/p\u003e\n\u003cp dir=\"auto\"\u003eYou can use \u003ccode\u003e-f -\u003c/code\u003e to interactively provide the format selector \u003cem\u003efor each video\u003c/em\u003e\u003c/p\u003e\n\u003cp dir=\"auto\"\u003eYou can also use special names to select particular edge case formats:\u003c/p\u003e\n\u003cul dir=\"auto\"\u003e\n\u003cli\u003e\u003ccode\u003eall\u003c/code\u003e: Select \u003cstrong\u003eall formats\u003c/strong\u003e separately\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003emergeall\u003c/code\u003e: Select and \u003cstrong\u003emerge all formats\u003c/strong\u003e (Must be used with \u003ccode\u003e--audio-multistreams\u003c/code\u003e, \u003ccode\u003e--video-multistreams\u003c/code\u003e or both)\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003eb*\u003c/code\u003e, \u003ccode\u003ebest*\u003c/code\u003e: Select the best quality format that \u003cstrong\u003econtains either\u003c/strong\u003e a video or an audio or both (i.e.; \u003ccode\u003evcodec!=none or acodec!=none\u003c/code\u003e)\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003eb\u003c/code\u003e, \u003ccode\u003ebest\u003c/code\u003e: Select the best quality format that \u003cstrong\u003econtains both\u003c/strong\u003e video and audio. Equivalent to \u003ccode\u003ebest*[vcodec!=none][acodec!=none]\u003c/code\u003e\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003ebv\u003c/code\u003e, \u003ccode\u003ebestvideo\u003c/code\u003e: Select the best quality \u003cstrong\u003evideo-only\u003c/strong\u003e format. Equivalent to \u003ccode\u003ebest*[acodec=none]\u003c/code\u003e\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003ebv*\u003c/code\u003e, \u003ccode\u003ebestvideo*\u003c/code\u003e: Select the best quality format that \u003cstrong\u003econtains video\u003c/strong\u003e. It may also contain audio. Equivalent to \u003ccode\u003ebest*[vcodec!=none]\u003c/code\u003e\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003eba\u003c/code\u003e, \u003ccode\u003ebestaudio\u003c/code\u003e: Select the best quality \u003cstrong\u003eaudio-only\u003c/strong\u003e format. Equivalent to \u003ccode\u003ebest*[vcodec=none]\u003c/code\u003e\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003eba*\u003c/code\u003e, \u003ccode\u003ebestaudio*\u003c/code\u003e: Select the best quality format that \u003cstrong\u003econtains audio\u003c/strong\u003e. It may also contain video. Equivalent to \u003ccode\u003ebest*[acodec!=none]\u003c/code\u003e (\u003ca href=\"https://github.com/yt-dlp/yt-dlp/issues/979#issuecomment-919629354\" data-hovercard-type=\"issue\" data-hovercard-url=\"/yt-dlp/yt-dlp/issues/979/hovercard\"\u003eDo not use!\u003c/a\u003e)\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003ew*\u003c/code\u003e, \u003ccode\u003eworst*\u003c/code\u003e: Select the worst quality format that contains either a video or an audio\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003ew\u003c/code\u003e, \u003ccode\u003eworst\u003c/code\u003e: Select the worst quality format that contains both video and audio. Equivalent to \u003ccode\u003eworst*[vcodec!=none][acodec!=none]\u003c/code\u003e\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003ewv\u003c/code\u003e, \u003ccode\u003eworstvideo\u003c/code\u003e: Select the worst quality video-only format. Equivalent to \u003ccode\u003eworst*[acodec=none]\u003c/code\u003e\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003ewv*\u003c/code\u003e, \u003ccode\u003eworstvideo*\u003c/code\u003e: Select the worst quality format that contains video. It may also contain audio. Equivalent to \u003ccode\u003eworst*[vcodec!=none]\u003c/code\u003e\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003ewa\u003c/code\u003e, \u003ccode\u003eworstaudio\u003c/code\u003e: Select the worst quality audio-only format. Equivalent to \u003ccode\u003eworst*[vcodec=none]\u003c/code\u003e\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003ewa*\u003c/code\u003e, \u003ccode\u003eworstaudio*\u003c/code\u003e: Select the worst quality format that contains audio. It may also contain video. Equivalent to \u003ccode\u003eworst*[acodec!=none]\u003c/code\u003e\u003c/li\u003e\n\u003c/ul\u003e\n\u003cp dir=\"auto\"\u003eFor example, to download the worst quality video-only format you can use \u003ccode\u003e-f worstvideo\u003c/code\u003e. It is, however, recommended not to use \u003ccode\u003eworst\u003c/code\u003e and related options. When your format selector is \u003ccode\u003eworst\u003c/code\u003e, the format which is worst in all respects is selected. Most of the time, what you actually want is the video with the smallest filesize instead. So it is generally better to use \u003ccode\u003e-S +size\u003c/code\u003e or more rigorously, \u003ccode\u003e-S +size,+br,+res,+fps\u003c/code\u003e instead of \u003ccode\u003e-f worst\u003c/code\u003e. See \u003ca href=\"#sorting-formats\"\u003eSorting Formats\u003c/a\u003e for more details.\u003c/p\u003e\n\u003cp dir=\"auto\"\u003eYou can select the n'th best format of a type by using \u003ccode\u003ebest\u0026lt;type\u0026gt;.\u0026lt;n\u0026gt;\u003c/code\u003e. For example, \u003ccode\u003ebest.2\u003c/code\u003e will select the 2nd best combined format. Similarly, \u003ccode\u003ebv*.3\u003c/code\u003e will select the 3rd best format that contains a video stream.\u003c/p\u003e\n\u003cp dir=\"auto\"\u003eIf you want to download multiple videos, and they don't have the same formats available, you can specify the order of preference using slashes. Note that formats on the left hand side are preferred; e.g. \u003ccode\u003e-f 22/17/18\u003c/code\u003e will download format 22 if it's available, otherwise it will download format 17 if it's available, otherwise it will download format 18 if it's available, otherwise it will complain that no suitable formats are available for download.\u003c/p\u003e\n\u003cp dir=\"auto\"\u003eIf you want to download several formats of the same video use a comma as a separator, e.g. \u003ccode\u003e-f 22,17,18\u003c/code\u003e will download all these three formats, of course if they are available. Or a more sophisticated example combined with the precedence feature: \u003ccode\u003e-f 136/137/mp4/bestvideo,140/m4a/bestaudio\u003c/code\u003e.\u003c/p\u003e\n\u003cp dir=\"auto\"\u003eYou can merge the video and audio of multiple formats into a single file using \u003ccode\u003e-f \u0026lt;format1\u0026gt;+\u0026lt;format2\u0026gt;+...\u003c/code\u003e (requires ffmpeg installed); e.g. \u003ccode\u003e-f bestvideo+bestaudio\u003c/code\u003e will download the best video-only format, the best audio-only format and mux them together with ffmpeg.\u003c/p\u003e\n\u003cp dir=\"auto\"\u003e\u003cstrong\u003eDeprecation warning\u003c/strong\u003e: Since the \u003cem\u003ebelow\u003c/em\u003e described behavior is complex and counter-intuitive, this will be removed and multistreams will be enabled by default in the future. A new operator will be instead added to limit formats to single audio/video\u003c/p\u003e\n\u003cp dir=\"auto\"\u003eUnless \u003ccode\u003e--video-multistreams\u003c/code\u003e is used, all formats with a video stream except the first one are ignored. Similarly, unless \u003ccode\u003e--audio-multistreams\u003c/code\u003e is used, all formats with an audio stream except the first one are ignored. E.g. \u003ccode\u003e-f bestvideo+best+bestaudio --video-multistreams --audio-multistreams\u003c/code\u003e will download and merge all 3 given formats. The resulting file will have 2 video streams and 2 audio streams. But \u003ccode\u003e-f bestvideo+best+bestaudio --no-video-multistreams\u003c/code\u003e will download and merge only \u003ccode\u003ebestvideo\u003c/code\u003e and \u003ccode\u003ebestaudio\u003c/code\u003e. \u003ccode\u003ebest\u003c/code\u003e is ignored since another format containing a video stream (\u003ccode\u003ebestvideo\u003c/code\u003e) has already been selected. The order of the formats is therefore important. \u003ccode\u003e-f best+bestaudio --no-audio-multistreams\u003c/code\u003e will download only \u003ccode\u003ebest\u003c/code\u003e while \u003ccode\u003e-f bestaudio+best --no-audio-multistreams\u003c/code\u003e will ignore \u003ccode\u003ebest\u003c/code\u003e and download only \u003ccode\u003ebestaudio\u003c/code\u003e.\u003c/p\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch2 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eFiltering Formats\u003c/h2\u003e\u003ca id=\"user-content-filtering-formats\" class=\"anchor\" aria-label=\"Permalink: Filtering Formats\" href=\"#filtering-formats\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cp dir=\"auto\"\u003eYou can also filter the video formats by putting a condition in brackets, as in \u003ccode\u003e-f \"best[height=720]\"\u003c/code\u003e (or \u003ccode\u003e-f \"[filesize\u0026gt;10M]\"\u003c/code\u003e since filters without a selector are interpreted as \u003ccode\u003ebest\u003c/code\u003e).\u003c/p\u003e\n\u003cp dir=\"auto\"\u003eThe following numeric meta fields can be used with comparisons \u003ccode\u003e\u0026lt;\u003c/code\u003e, \u003ccode\u003e\u0026lt;=\u003c/code\u003e, \u003ccode\u003e\u0026gt;\u003c/code\u003e, \u003ccode\u003e\u0026gt;=\u003c/code\u003e, \u003ccode\u003e=\u003c/code\u003e (equals), \u003ccode\u003e!=\u003c/code\u003e (not equals):\u003c/p\u003e\n\u003cul dir=\"auto\"\u003e\n\u003cli\u003e\u003ccode\u003efilesize\u003c/code\u003e: The number of bytes, if known in advance\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003efilesize_approx\u003c/code\u003e: An estimate for the number of bytes\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003ewidth\u003c/code\u003e: Width of the video, if known\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003eheight\u003c/code\u003e: Height of the video, if known\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003easpect_ratio\u003c/code\u003e: Aspect ratio of the video, if known\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003etbr\u003c/code\u003e: Average bitrate of audio and video in \u003ca href=\"##\" title=\"1000 bits/sec\"\u003ekbps\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003eabr\u003c/code\u003e: Average audio bitrate in \u003ca href=\"##\" title=\"1000 bits/sec\"\u003ekbps\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003evbr\u003c/code\u003e: Average video bitrate in \u003ca href=\"##\" title=\"1000 bits/sec\"\u003ekbps\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003easr\u003c/code\u003e: Audio sampling rate in Hertz\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003efps\u003c/code\u003e: Frame rate\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003eaudio_channels\u003c/code\u003e: The number of audio channels\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003estretched_ratio\u003c/code\u003e: \u003ccode\u003ewidth:height\u003c/code\u003e of the video's pixels, if not square\u003c/li\u003e\n\u003c/ul\u003e\n\u003cp dir=\"auto\"\u003eAlso filtering work for comparisons \u003ccode\u003e=\u003c/code\u003e (equals), \u003ccode\u003e^=\u003c/code\u003e (starts with), \u003ccode\u003e$=\u003c/code\u003e (ends with), \u003ccode\u003e*=\u003c/code\u003e (contains), \u003ccode\u003e~=\u003c/code\u003e (matches regex) and following string meta fields:\u003c/p\u003e\n\u003cul dir=\"auto\"\u003e\n\u003cli\u003e\u003ccode\u003eurl\u003c/code\u003e: Video URL\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003eext\u003c/code\u003e: File extension\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003eacodec\u003c/code\u003e: Name of the audio codec in use\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003evcodec\u003c/code\u003e: Name of the video codec in use\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003econtainer\u003c/code\u003e: Name of the container format\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003eprotocol\u003c/code\u003e: The protocol that will be used for the actual download, lower-case (\u003ccode\u003ehttp\u003c/code\u003e, \u003ccode\u003ehttps\u003c/code\u003e, \u003ccode\u003ertsp\u003c/code\u003e, \u003ccode\u003ertmp\u003c/code\u003e, \u003ccode\u003ertmpe\u003c/code\u003e, \u003ccode\u003emms\u003c/code\u003e, \u003ccode\u003ef4m\u003c/code\u003e, \u003ccode\u003eism\u003c/code\u003e, \u003ccode\u003ehttp_dash_segments\u003c/code\u003e, \u003ccode\u003em3u8\u003c/code\u003e, or \u003ccode\u003em3u8_native\u003c/code\u003e)\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003elanguage\u003c/code\u003e: Language code\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003edynamic_range\u003c/code\u003e: The dynamic range of the video\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003eformat_id\u003c/code\u003e: A short description of the format\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003eformat\u003c/code\u003e: A human-readable description of the format\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003eformat_note\u003c/code\u003e: Additional info about the format\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003eresolution\u003c/code\u003e: Textual description of width and height\u003c/li\u003e\n\u003c/ul\u003e\n\u003cp dir=\"auto\"\u003eAny string comparison may be prefixed with negation \u003ccode\u003e!\u003c/code\u003e in order to produce an opposite comparison, e.g. \u003ccode\u003e!*=\u003c/code\u003e (does not contain). The comparand of a string comparison needs to be quoted with either double or single quotes if it contains spaces or special characters other than \u003ccode\u003e._-\u003c/code\u003e.\u003c/p\u003e\n\u003cp dir=\"auto\"\u003e\u003cstrong\u003eNote\u003c/strong\u003e: None of the aforementioned meta fields are guaranteed to be present since this solely depends on the metadata obtained by the particular extractor, i.e. the metadata offered by the website. Any other field made available by the extractor can also be used for filtering.\u003c/p\u003e\n\u003cp dir=\"auto\"\u003eFormats for which the value is not known are excluded unless you put a question mark (\u003ccode\u003e?\u003c/code\u003e) after the operator. You can combine format filters, so \u003ccode\u003e-f \"bv[height\u0026lt;=?720][tbr\u0026gt;500]\"\u003c/code\u003e selects up to 720p videos (or videos where the height is not known) with a bitrate of at least 500 kbps. You can also use the filters with \u003ccode\u003eall\u003c/code\u003e to download all formats that satisfy the filter, e.g. \u003ccode\u003e-f \"all[vcodec=none]\"\u003c/code\u003e selects all audio-only formats.\u003c/p\u003e\n\u003cp dir=\"auto\"\u003eFormat selectors can also be grouped using parentheses; e.g. \u003ccode\u003e-f \"(mp4,webm)[height\u0026lt;480]\"\u003c/code\u003e will download the best pre-merged mp4 and webm formats with a height lower than 480.\u003c/p\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch2 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eSorting Formats\u003c/h2\u003e\u003ca id=\"user-content-sorting-formats\" class=\"anchor\" aria-label=\"Permalink: Sorting Formats\" href=\"#sorting-formats\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cp dir=\"auto\"\u003eYou can change the criteria for being considered the \u003ccode\u003ebest\u003c/code\u003e by using \u003ccode\u003e-S\u003c/code\u003e (\u003ccode\u003e--format-sort\u003c/code\u003e). The general format for this is \u003ccode\u003e--format-sort field1,field2...\u003c/code\u003e.\u003c/p\u003e\n\u003cp dir=\"auto\"\u003eThe available fields are:\u003c/p\u003e\n\u003cul dir=\"auto\"\u003e\n\u003cli\u003e\u003ccode\u003ehasvid\u003c/code\u003e: Gives priority to formats that have a video stream\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003ehasaud\u003c/code\u003e: Gives priority to formats that have an audio stream\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003eie_pref\u003c/code\u003e: The format preference\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003elang\u003c/code\u003e: The language preference as determined by the extractor (e.g. original language preferred over audio description)\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003equality\u003c/code\u003e: The quality of the format\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003esource\u003c/code\u003e: The preference of the source\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003eproto\u003c/code\u003e: Protocol used for download (\u003ccode\u003ehttps\u003c/code\u003e/\u003ccode\u003eftps\u003c/code\u003e \u0026gt; \u003ccode\u003ehttp\u003c/code\u003e/\u003ccode\u003eftp\u003c/code\u003e \u0026gt; \u003ccode\u003em3u8_native\u003c/code\u003e/\u003ccode\u003em3u8\u003c/code\u003e \u0026gt; \u003ccode\u003ehttp_dash_segments\u003c/code\u003e\u0026gt; \u003ccode\u003ewebsocket_frag\u003c/code\u003e \u0026gt; \u003ccode\u003emms\u003c/code\u003e/\u003ccode\u003ertsp\u003c/code\u003e \u0026gt; \u003ccode\u003ef4f\u003c/code\u003e/\u003ccode\u003ef4m\u003c/code\u003e)\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003evcodec\u003c/code\u003e: Video Codec (\u003ccode\u003eav01\u003c/code\u003e \u0026gt; \u003ccode\u003evp9.2\u003c/code\u003e \u0026gt; \u003ccode\u003evp9\u003c/code\u003e \u0026gt; \u003ccode\u003eh265\u003c/code\u003e \u0026gt; \u003ccode\u003eh264\u003c/code\u003e \u0026gt; \u003ccode\u003evp8\u003c/code\u003e \u0026gt; \u003ccode\u003eh263\u003c/code\u003e \u0026gt; \u003ccode\u003etheora\u003c/code\u003e \u0026gt; other)\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003eacodec\u003c/code\u003e: Audio Codec (\u003ccode\u003eflac\u003c/code\u003e/\u003ccode\u003ealac\u003c/code\u003e \u0026gt; \u003ccode\u003ewav\u003c/code\u003e/\u003ccode\u003eaiff\u003c/code\u003e \u0026gt; \u003ccode\u003eopus\u003c/code\u003e \u0026gt; \u003ccode\u003evorbis\u003c/code\u003e \u0026gt; \u003ccode\u003eaac\u003c/code\u003e \u0026gt; \u003ccode\u003emp4a\u003c/code\u003e \u0026gt; \u003ccode\u003emp3\u003c/code\u003e \u0026gt; \u003ccode\u003eac4\u003c/code\u003e \u0026gt; \u003ccode\u003eeac3\u003c/code\u003e \u0026gt; \u003ccode\u003eac3\u003c/code\u003e \u0026gt; \u003ccode\u003edts\u003c/code\u003e \u0026gt; other)\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003ecodec\u003c/code\u003e: Equivalent to \u003ccode\u003evcodec,acodec\u003c/code\u003e\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003evext\u003c/code\u003e: Video Extension (\u003ccode\u003emp4\u003c/code\u003e \u0026gt; \u003ccode\u003emov\u003c/code\u003e \u0026gt; \u003ccode\u003ewebm\u003c/code\u003e \u0026gt; \u003ccode\u003eflv\u003c/code\u003e \u0026gt; other). If \u003ccode\u003e--prefer-free-formats\u003c/code\u003e is used, \u003ccode\u003ewebm\u003c/code\u003e is preferred.\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003eaext\u003c/code\u003e: Audio Extension (\u003ccode\u003em4a\u003c/code\u003e \u0026gt; \u003ccode\u003eaac\u003c/code\u003e \u0026gt; \u003ccode\u003emp3\u003c/code\u003e \u0026gt; \u003ccode\u003eogg\u003c/code\u003e \u0026gt; \u003ccode\u003eopus\u003c/code\u003e \u0026gt; \u003ccode\u003ewebm\u003c/code\u003e \u0026gt; other). If \u003ccode\u003e--prefer-free-formats\u003c/code\u003e is used, the order changes to \u003ccode\u003eogg\u003c/code\u003e \u0026gt; \u003ccode\u003eopus\u003c/code\u003e \u0026gt; \u003ccode\u003ewebm\u003c/code\u003e \u0026gt; \u003ccode\u003emp3\u003c/code\u003e \u0026gt; \u003ccode\u003em4a\u003c/code\u003e \u0026gt; \u003ccode\u003eaac\u003c/code\u003e\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003eext\u003c/code\u003e: Equivalent to \u003ccode\u003evext,aext\u003c/code\u003e\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003efilesize\u003c/code\u003e: Exact filesize, if known in advance\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003efs_approx\u003c/code\u003e: Approximate filesize\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003esize\u003c/code\u003e: Exact filesize if available, otherwise approximate filesize\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003eheight\u003c/code\u003e: Height of video\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003ewidth\u003c/code\u003e: Width of video\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003eres\u003c/code\u003e: Video resolution, calculated as the smallest dimension.\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003efps\u003c/code\u003e: Framerate of video\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003ehdr\u003c/code\u003e: The dynamic range of the video (\u003ccode\u003eDV\u003c/code\u003e \u0026gt; \u003ccode\u003eHDR12\u003c/code\u003e \u0026gt; \u003ccode\u003eHDR10+\u003c/code\u003e \u0026gt; \u003ccode\u003eHDR10\u003c/code\u003e \u0026gt; \u003ccode\u003eHLG\u003c/code\u003e \u0026gt; \u003ccode\u003eSDR\u003c/code\u003e)\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003echannels\u003c/code\u003e: The number of audio channels\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003etbr\u003c/code\u003e: Total average bitrate in \u003ca href=\"##\" title=\"1000 bits/sec\"\u003ekbps\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003evbr\u003c/code\u003e: Average video bitrate in \u003ca href=\"##\" title=\"1000 bits/sec\"\u003ekbps\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003eabr\u003c/code\u003e: Average audio bitrate in \u003ca href=\"##\" title=\"1000 bits/sec\"\u003ekbps\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003ebr\u003c/code\u003e: Average bitrate in \u003ca href=\"##\" title=\"1000 bits/sec\"\u003ekbps\u003c/a\u003e, \u003ccode\u003etbr\u003c/code\u003e/\u003ccode\u003evbr\u003c/code\u003e/\u003ccode\u003eabr\u003c/code\u003e\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003easr\u003c/code\u003e: Audio sample rate in Hz\u003c/li\u003e\n\u003c/ul\u003e\n\u003cp dir=\"auto\"\u003e\u003cstrong\u003eDeprecation warning\u003c/strong\u003e: Many of these fields have (currently undocumented) aliases, that may be removed in a future version. It is recommended to use only the documented field names.\u003c/p\u003e\n\u003cp dir=\"auto\"\u003eAll fields, unless specified otherwise, are sorted in descending order. To reverse this, prefix the field with a \u003ccode\u003e+\u003c/code\u003e. E.g. \u003ccode\u003e+res\u003c/code\u003e prefers format with the smallest resolution. Additionally, you can suffix a preferred value for the fields, separated by a \u003ccode\u003e:\u003c/code\u003e. E.g. \u003ccode\u003eres:720\u003c/code\u003e prefers larger videos, but no larger than 720p and the smallest video if there are no videos less than 720p. For \u003ccode\u003ecodec\u003c/code\u003e and \u003ccode\u003eext\u003c/code\u003e, you can provide two preferred values, the first for video and the second for audio. E.g. \u003ccode\u003e+codec:avc:m4a\u003c/code\u003e (equivalent to \u003ccode\u003e+vcodec:avc,+acodec:m4a\u003c/code\u003e) sets the video codec preference to \u003ccode\u003eh264\u003c/code\u003e \u0026gt; \u003ccode\u003eh265\u003c/code\u003e \u0026gt; \u003ccode\u003evp9\u003c/code\u003e \u0026gt; \u003ccode\u003evp9.2\u003c/code\u003e \u0026gt; \u003ccode\u003eav01\u003c/code\u003e \u0026gt; \u003ccode\u003evp8\u003c/code\u003e \u0026gt; \u003ccode\u003eh263\u003c/code\u003e \u0026gt; \u003ccode\u003etheora\u003c/code\u003e and audio codec preference to \u003ccode\u003emp4a\u003c/code\u003e \u0026gt; \u003ccode\u003eaac\u003c/code\u003e \u0026gt; \u003ccode\u003evorbis\u003c/code\u003e \u0026gt; \u003ccode\u003eopus\u003c/code\u003e \u0026gt; \u003ccode\u003emp3\u003c/code\u003e \u0026gt; \u003ccode\u003eac3\u003c/code\u003e \u0026gt; \u003ccode\u003edts\u003c/code\u003e. You can also make the sorting prefer the nearest values to the provided by using \u003ccode\u003e~\u003c/code\u003e as the delimiter. E.g. \u003ccode\u003efilesize~1G\u003c/code\u003e prefers the format with filesize closest to 1 GiB.\u003c/p\u003e\n\u003cp dir=\"auto\"\u003eThe fields \u003ccode\u003ehasvid\u003c/code\u003e and \u003ccode\u003eie_pref\u003c/code\u003e are always given highest priority in sorting, irrespective of the user-defined order. This behavior can be changed by using \u003ccode\u003e--format-sort-force\u003c/code\u003e. Apart from these, the default order used is: \u003ccode\u003elang,quality,res,fps,hdr:12,vcodec,channels,acodec,size,br,asr,proto,ext,hasaud,source,id\u003c/code\u003e. The extractors may override this default order, but they cannot override the user-provided order.\u003c/p\u003e\n\u003cp dir=\"auto\"\u003eNote that the default for hdr is \u003ccode\u003ehdr:12\u003c/code\u003e; i.e. Dolby Vision is not preferred. This choice was made since DV formats are not yet fully compatible with most devices. This may be changed in the future.\u003c/p\u003e\n\u003cp dir=\"auto\"\u003eIf your format selector is \u003ccode\u003eworst\u003c/code\u003e, the last item is selected after sorting. This means it will select the format that is worst in all respects. Most of the time, what you actually want is the video with the smallest filesize instead. So it is generally better to use \u003ccode\u003e-f best -S +size,+br,+res,+fps\u003c/code\u003e.\u003c/p\u003e\n\u003cp dir=\"auto\"\u003e\u003cstrong\u003eTip\u003c/strong\u003e: You can use the \u003ccode\u003e-v -F\u003c/code\u003e to see how the formats have been sorted (worst to best).\u003c/p\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch2 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eFormat Selection examples\u003c/h2\u003e\u003ca id=\"user-content-format-selection-examples\" class=\"anchor\" aria-label=\"Permalink: Format Selection examples\" href=\"#format-selection-examples\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cdiv class=\"highlight highlight-source-shell notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"# Download and merge the best video-only format and the best audio-only format,\n# or download the best combined format if video-only format is not available\n$ yt-dlp -f \u0026quot;bv+ba/b\u0026quot;\n\n# Download best format that contains video,\n# and if it doesn't already have an audio stream, merge it with best audio-only format\n$ yt-dlp -f \u0026quot;bv*+ba/b\u0026quot;\n\n# Same as above\n$ yt-dlp\n\n# Download the best video-only format and the best audio-only format without merging them\n# For this case, an output template should be used since\n# by default, bestvideo and bestaudio will have the same file name.\n$ yt-dlp -f \u0026quot;bv,ba\u0026quot; -o \u0026quot;%(title)s.f%(format_id)s.%(ext)s\u0026quot;\n\n# Download and merge the best format that has a video stream,\n# and all audio-only formats into one file\n$ yt-dlp -f \u0026quot;bv*+mergeall[vcodec=none]\u0026quot; --audio-multistreams\n\n# Download and merge the best format that has a video stream,\n# and the best 2 audio-only formats into one file\n$ yt-dlp -f \u0026quot;bv*+ba+ba.2\u0026quot; --audio-multistreams\n\n\n# The following examples show the old method (without -S) of format selection\n# and how to use -S to achieve a similar but (generally) better result\n\n# Download the worst video available (old method)\n$ yt-dlp -f \u0026quot;wv*+wa/w\u0026quot;\n\n# Download the best video available but with the smallest resolution\n$ yt-dlp -S \u0026quot;+res\u0026quot;\n\n# Download the smallest video available\n$ yt-dlp -S \u0026quot;+size,+br\u0026quot;\n\n\n\n# Download the best mp4 video available, or the best video if no mp4 available\n$ yt-dlp -f \u0026quot;bv*[ext=mp4]+ba[ext=m4a]/b[ext=mp4] / bv*+ba/b\u0026quot;\n\n# Download the best video with the best extension\n# (For video, mp4 \u0026gt; mov \u0026gt; webm \u0026gt; flv. For audio, m4a \u0026gt; aac \u0026gt; mp3 ...)\n$ yt-dlp -S \u0026quot;ext\u0026quot;\n\n\n\n# Download the best video available but no better than 480p,\n# or the worst video if there is no video under 480p\n$ yt-dlp -f \u0026quot;bv*[height\u0026lt;=480]+ba/b[height\u0026lt;=480] / wv*+ba/w\u0026quot;\n\n# Download the best video available with the largest height but no better than 480p,\n# or the best video with the smallest resolution if there is no video under 480p\n$ yt-dlp -S \u0026quot;height:480\u0026quot;\n\n# Download the best video available with the largest resolution but no better than 480p,\n# or the best video with the smallest resolution if there is no video under 480p\n# Resolution is determined by using the smallest dimension.\n# So this works correctly for vertical videos as well\n$ yt-dlp -S \u0026quot;res:480\u0026quot;\n\n\n\n# Download the best video (that also has audio) but no bigger than 50 MB,\n# or the worst video (that also has audio) if there is no video under 50 MB\n$ yt-dlp -f \u0026quot;b[filesize\u0026lt;50M] / w\u0026quot;\n\n# Download the largest video (that also has audio) but no bigger than 50 MB,\n# or the smallest video (that also has audio) if there is no video under 50 MB\n$ yt-dlp -f \u0026quot;b\u0026quot; -S \u0026quot;filesize:50M\u0026quot;\n\n# Download the best video (that also has audio) that is closest in size to 50 MB\n$ yt-dlp -f \u0026quot;b\u0026quot; -S \u0026quot;filesize~50M\u0026quot;\n\n\n\n# Download best video available via direct link over HTTP/HTTPS protocol,\n# or the best video available via any protocol if there is no such video\n$ yt-dlp -f \u0026quot;(bv*+ba/b)[protocol^=http][protocol!*=dash] / (bv*+ba/b)\u0026quot;\n\n# Download best video available via the best protocol\n# (https/ftps \u0026gt; http/ftp \u0026gt; m3u8_native \u0026gt; m3u8 \u0026gt; http_dash_segments ...)\n$ yt-dlp -S \u0026quot;proto\u0026quot;\n\n\n\n# Download the best video with either h264 or h265 codec,\n# or the best video if there is no such video\n$ yt-dlp -f \u0026quot;(bv*[vcodec~='^((he|a)vc|h26[45])']+ba) / (bv*+ba/b)\u0026quot;\n\n# Download the best video with best codec no better than h264,\n# or the best video with worst codec if there is no such video\n$ yt-dlp -S \u0026quot;codec:h264\u0026quot;\n\n# Download the best video with worst codec no worse than h264,\n# or the best video with best codec if there is no such video\n$ yt-dlp -S \u0026quot;+codec:h264\u0026quot;\n\n\n\n# More complex examples\n\n# Download the best video no better than 720p preferring framerate greater than 30,\n# or the worst video (still preferring framerate greater than 30) if there is no such video\n$ yt-dlp -f \u0026quot;((bv*[fps\u0026gt;30]/bv*)[height\u0026lt;=720]/(wv*[fps\u0026gt;30]/wv*)) + ba / (b[fps\u0026gt;30]/b)[height\u0026lt;=720]/(w[fps\u0026gt;30]/w)\u0026quot;\n\n# Download the video with the largest resolution no better than 720p,\n# or the video with the smallest resolution available if there is no such video,\n# preferring larger framerate for formats with the same resolution\n$ yt-dlp -S \u0026quot;res:720,fps\u0026quot;\n\n\n\n# Download the video with smallest resolution no worse than 480p,\n# or the video with the largest resolution available if there is no such video,\n# preferring better codec and then larger total bitrate for the same resolution\n$ yt-dlp -S \u0026quot;+res:480,codec,br\u0026quot;\"\u003e\u003cpre\u003e\u003cspan class=\"pl-c\"\u003e\u003cspan class=\"pl-c\"\u003e#\u003c/span\u003e Download and merge the best video-only format and the best audio-only format,\u003c/span\u003e\n\u003cspan class=\"pl-c\"\u003e\u003cspan class=\"pl-c\"\u003e#\u003c/span\u003e or download the best combined format if video-only format is not available\u003c/span\u003e\n$ yt-dlp -f \u003cspan class=\"pl-s\"\u003e\u003cspan class=\"pl-pds\"\u003e\"\u003c/span\u003ebv+ba/b\u003cspan class=\"pl-pds\"\u003e\"\u003c/span\u003e\u003c/span\u003e\n\n\u003cspan class=\"pl-c\"\u003e\u003cspan class=\"pl-c\"\u003e#\u003c/span\u003e Download best format that contains video,\u003c/span\u003e\n\u003cspan class=\"pl-c\"\u003e\u003cspan class=\"pl-c\"\u003e#\u003c/span\u003e and if it doesn't already have an audio stream, merge it with best audio-only format\u003c/span\u003e\n$ yt-dlp -f \u003cspan class=\"pl-s\"\u003e\u003cspan class=\"pl-pds\"\u003e\"\u003c/span\u003ebv*+ba/b\u003cspan class=\"pl-pds\"\u003e\"\u003c/span\u003e\u003c/span\u003e\n\n\u003cspan class=\"pl-c\"\u003e\u003cspan class=\"pl-c\"\u003e#\u003c/span\u003e Same as above\u003c/span\u003e\n$ yt-dlp\n\n\u003cspan class=\"pl-c\"\u003e\u003cspan class=\"pl-c\"\u003e#\u003c/span\u003e Download the best video-only format and the best audio-only format without merging them\u003c/span\u003e\n\u003cspan class=\"pl-c\"\u003e\u003cspan class=\"pl-c\"\u003e#\u003c/span\u003e For this case, an output template should be used since\u003c/span\u003e\n\u003cspan class=\"pl-c\"\u003e\u003cspan class=\"pl-c\"\u003e#\u003c/span\u003e by default, bestvideo and bestaudio will have the same file name.\u003c/span\u003e\n$ yt-dlp -f \u003cspan class=\"pl-s\"\u003e\u003cspan class=\"pl-pds\"\u003e\"\u003c/span\u003ebv,ba\u003cspan class=\"pl-pds\"\u003e\"\u003c/span\u003e\u003c/span\u003e -o \u003cspan class=\"pl-s\"\u003e\u003cspan class=\"pl-pds\"\u003e\"\u003c/span\u003e%(title)s.f%(format_id)s.%(ext)s\u003cspan class=\"pl-pds\"\u003e\"\u003c/span\u003e\u003c/span\u003e\n\n\u003cspan class=\"pl-c\"\u003e\u003cspan class=\"pl-c\"\u003e#\u003c/span\u003e Download and merge the best format that has a video stream,\u003c/span\u003e\n\u003cspan class=\"pl-c\"\u003e\u003cspan class=\"pl-c\"\u003e#\u003c/span\u003e and all audio-only formats into one file\u003c/span\u003e\n$ yt-dlp -f \u003cspan class=\"pl-s\"\u003e\u003cspan class=\"pl-pds\"\u003e\"\u003c/span\u003ebv*+mergeall[vcodec=none]\u003cspan class=\"pl-pds\"\u003e\"\u003c/span\u003e\u003c/span\u003e --audio-multistreams\n\n\u003cspan class=\"pl-c\"\u003e\u003cspan class=\"pl-c\"\u003e#\u003c/span\u003e Download and merge the best format that has a video stream,\u003c/span\u003e\n\u003cspan class=\"pl-c\"\u003e\u003cspan class=\"pl-c\"\u003e#\u003c/span\u003e and the best 2 audio-only formats into one file\u003c/span\u003e\n$ yt-dlp -f \u003cspan class=\"pl-s\"\u003e\u003cspan class=\"pl-pds\"\u003e\"\u003c/span\u003ebv*+ba+ba.2\u003cspan class=\"pl-pds\"\u003e\"\u003c/span\u003e\u003c/span\u003e --audio-multistreams\n\n\n\u003cspan class=\"pl-c\"\u003e\u003cspan class=\"pl-c\"\u003e#\u003c/span\u003e The following examples show the old method (without -S) of format selection\u003c/span\u003e\n\u003cspan class=\"pl-c\"\u003e\u003cspan class=\"pl-c\"\u003e#\u003c/span\u003e and how to use -S to achieve a similar but (generally) better result\u003c/span\u003e\n\n\u003cspan class=\"pl-c\"\u003e\u003cspan class=\"pl-c\"\u003e#\u003c/span\u003e Download the worst video available (old method)\u003c/span\u003e\n$ yt-dlp -f \u003cspan class=\"pl-s\"\u003e\u003cspan class=\"pl-pds\"\u003e\"\u003c/span\u003ewv*+wa/w\u003cspan class=\"pl-pds\"\u003e\"\u003c/span\u003e\u003c/span\u003e\n\n\u003cspan class=\"pl-c\"\u003e\u003cspan class=\"pl-c\"\u003e#\u003c/span\u003e Download the best video available but with the smallest resolution\u003c/span\u003e\n$ yt-dlp -S \u003cspan class=\"pl-s\"\u003e\u003cspan class=\"pl-pds\"\u003e\"\u003c/span\u003e+res\u003cspan class=\"pl-pds\"\u003e\"\u003c/span\u003e\u003c/span\u003e\n\n\u003cspan class=\"pl-c\"\u003e\u003cspan class=\"pl-c\"\u003e#\u003c/span\u003e Download the smallest video available\u003c/span\u003e\n$ yt-dlp -S \u003cspan class=\"pl-s\"\u003e\u003cspan class=\"pl-pds\"\u003e\"\u003c/span\u003e+size,+br\u003cspan class=\"pl-pds\"\u003e\"\u003c/span\u003e\u003c/span\u003e\n\n\n\n\u003cspan class=\"pl-c\"\u003e\u003cspan class=\"pl-c\"\u003e#\u003c/span\u003e Download the best mp4 video available, or the best video if no mp4 available\u003c/span\u003e\n$ yt-dlp -f \u003cspan class=\"pl-s\"\u003e\u003cspan class=\"pl-pds\"\u003e\"\u003c/span\u003ebv*[ext=mp4]+ba[ext=m4a]/b[ext=mp4] / bv*+ba/b\u003cspan class=\"pl-pds\"\u003e\"\u003c/span\u003e\u003c/span\u003e\n\n\u003cspan class=\"pl-c\"\u003e\u003cspan class=\"pl-c\"\u003e#\u003c/span\u003e Download the best video with the best extension\u003c/span\u003e\n\u003cspan class=\"pl-c\"\u003e\u003cspan class=\"pl-c\"\u003e#\u003c/span\u003e (For video, mp4 \u0026gt; mov \u0026gt; webm \u0026gt; flv. For audio, m4a \u0026gt; aac \u0026gt; mp3 ...)\u003c/span\u003e\n$ yt-dlp -S \u003cspan class=\"pl-s\"\u003e\u003cspan class=\"pl-pds\"\u003e\"\u003c/span\u003eext\u003cspan class=\"pl-pds\"\u003e\"\u003c/span\u003e\u003c/span\u003e\n\n\n\n\u003cspan class=\"pl-c\"\u003e\u003cspan class=\"pl-c\"\u003e#\u003c/span\u003e Download the best video available but no better than 480p,\u003c/span\u003e\n\u003cspan class=\"pl-c\"\u003e\u003cspan class=\"pl-c\"\u003e#\u003c/span\u003e or the worst video if there is no video under 480p\u003c/span\u003e\n$ yt-dlp -f \u003cspan class=\"pl-s\"\u003e\u003cspan class=\"pl-pds\"\u003e\"\u003c/span\u003ebv*[height\u0026lt;=480]+ba/b[height\u0026lt;=480] / wv*+ba/w\u003cspan class=\"pl-pds\"\u003e\"\u003c/span\u003e\u003c/span\u003e\n\n\u003cspan class=\"pl-c\"\u003e\u003cspan class=\"pl-c\"\u003e#\u003c/span\u003e Download the best video available with the largest height but no better than 480p,\u003c/span\u003e\n\u003cspan class=\"pl-c\"\u003e\u003cspan class=\"pl-c\"\u003e#\u003c/span\u003e or the best video with the smallest resolution if there is no video under 480p\u003c/span\u003e\n$ yt-dlp -S \u003cspan class=\"pl-s\"\u003e\u003cspan class=\"pl-pds\"\u003e\"\u003c/span\u003eheight:480\u003cspan class=\"pl-pds\"\u003e\"\u003c/span\u003e\u003c/span\u003e\n\n\u003cspan class=\"pl-c\"\u003e\u003cspan class=\"pl-c\"\u003e#\u003c/span\u003e Download the best video available with the largest resolution but no better than 480p,\u003c/span\u003e\n\u003cspan class=\"pl-c\"\u003e\u003cspan class=\"pl-c\"\u003e#\u003c/span\u003e or the best video with the smallest resolution if there is no video under 480p\u003c/span\u003e\n\u003cspan class=\"pl-c\"\u003e\u003cspan class=\"pl-c\"\u003e#\u003c/span\u003e Resolution is determined by using the smallest dimension.\u003c/span\u003e\n\u003cspan class=\"pl-c\"\u003e\u003cspan class=\"pl-c\"\u003e#\u003c/span\u003e So this works correctly for vertical videos as well\u003c/span\u003e\n$ yt-dlp -S \u003cspan class=\"pl-s\"\u003e\u003cspan class=\"pl-pds\"\u003e\"\u003c/span\u003eres:480\u003cspan class=\"pl-pds\"\u003e\"\u003c/span\u003e\u003c/span\u003e\n\n\n\n\u003cspan class=\"pl-c\"\u003e\u003cspan class=\"pl-c\"\u003e#\u003c/span\u003e Download the best video (that also has audio) but no bigger than 50 MB,\u003c/span\u003e\n\u003cspan class=\"pl-c\"\u003e\u003cspan class=\"pl-c\"\u003e#\u003c/span\u003e or the worst video (that also has audio) if there is no video under 50 MB\u003c/span\u003e\n$ yt-dlp -f \u003cspan class=\"pl-s\"\u003e\u003cspan class=\"pl-pds\"\u003e\"\u003c/span\u003eb[filesize\u0026lt;50M] / w\u003cspan class=\"pl-pds\"\u003e\"\u003c/span\u003e\u003c/span\u003e\n\n\u003cspan class=\"pl-c\"\u003e\u003cspan class=\"pl-c\"\u003e#\u003c/span\u003e Download the largest video (that also has audio) but no bigger than 50 MB,\u003c/span\u003e\n\u003cspan class=\"pl-c\"\u003e\u003cspan class=\"pl-c\"\u003e#\u003c/span\u003e or the smallest video (that also has audio) if there is no video under 50 MB\u003c/span\u003e\n$ yt-dlp -f \u003cspan class=\"pl-s\"\u003e\u003cspan class=\"pl-pds\"\u003e\"\u003c/span\u003eb\u003cspan class=\"pl-pds\"\u003e\"\u003c/span\u003e\u003c/span\u003e -S \u003cspan class=\"pl-s\"\u003e\u003cspan class=\"pl-pds\"\u003e\"\u003c/span\u003efilesize:50M\u003cspan class=\"pl-pds\"\u003e\"\u003c/span\u003e\u003c/span\u003e\n\n\u003cspan class=\"pl-c\"\u003e\u003cspan class=\"pl-c\"\u003e#\u003c/span\u003e Download the best video (that also has audio) that is closest in size to 50 MB\u003c/span\u003e\n$ yt-dlp -f \u003cspan class=\"pl-s\"\u003e\u003cspan class=\"pl-pds\"\u003e\"\u003c/span\u003eb\u003cspan class=\"pl-pds\"\u003e\"\u003c/span\u003e\u003c/span\u003e -S \u003cspan class=\"pl-s\"\u003e\u003cspan class=\"pl-pds\"\u003e\"\u003c/span\u003efilesize~50M\u003cspan class=\"pl-pds\"\u003e\"\u003c/span\u003e\u003c/span\u003e\n\n\n\n\u003cspan class=\"pl-c\"\u003e\u003cspan class=\"pl-c\"\u003e#\u003c/span\u003e Download best video available via direct link over HTTP/HTTPS protocol,\u003c/span\u003e\n\u003cspan class=\"pl-c\"\u003e\u003cspan class=\"pl-c\"\u003e#\u003c/span\u003e or the best video available via any protocol if there is no such video\u003c/span\u003e\n$ yt-dlp -f \u003cspan class=\"pl-s\"\u003e\u003cspan class=\"pl-pds\"\u003e\"\u003c/span\u003e(bv*+ba/b)[protocol^=http][protocol!*=dash] / (bv*+ba/b)\u003cspan class=\"pl-pds\"\u003e\"\u003c/span\u003e\u003c/span\u003e\n\n\u003cspan class=\"pl-c\"\u003e\u003cspan class=\"pl-c\"\u003e#\u003c/span\u003e Download best video available via the best protocol\u003c/span\u003e\n\u003cspan class=\"pl-c\"\u003e\u003cspan class=\"pl-c\"\u003e#\u003c/span\u003e (https/ftps \u0026gt; http/ftp \u0026gt; m3u8_native \u0026gt; m3u8 \u0026gt; http_dash_segments ...)\u003c/span\u003e\n$ yt-dlp -S \u003cspan class=\"pl-s\"\u003e\u003cspan class=\"pl-pds\"\u003e\"\u003c/span\u003eproto\u003cspan class=\"pl-pds\"\u003e\"\u003c/span\u003e\u003c/span\u003e\n\n\n\n\u003cspan class=\"pl-c\"\u003e\u003cspan class=\"pl-c\"\u003e#\u003c/span\u003e Download the best video with either h264 or h265 codec,\u003c/span\u003e\n\u003cspan class=\"pl-c\"\u003e\u003cspan class=\"pl-c\"\u003e#\u003c/span\u003e or the best video if there is no such video\u003c/span\u003e\n$ yt-dlp -f \u003cspan class=\"pl-s\"\u003e\u003cspan class=\"pl-pds\"\u003e\"\u003c/span\u003e(bv*[vcodec~='^((he|a)vc|h26[45])']+ba) / (bv*+ba/b)\u003cspan class=\"pl-pds\"\u003e\"\u003c/span\u003e\u003c/span\u003e\n\n\u003cspan class=\"pl-c\"\u003e\u003cspan class=\"pl-c\"\u003e#\u003c/span\u003e Download the best video with best codec no better than h264,\u003c/span\u003e\n\u003cspan class=\"pl-c\"\u003e\u003cspan class=\"pl-c\"\u003e#\u003c/span\u003e or the best video with worst codec if there is no such video\u003c/span\u003e\n$ yt-dlp -S \u003cspan class=\"pl-s\"\u003e\u003cspan class=\"pl-pds\"\u003e\"\u003c/span\u003ecodec:h264\u003cspan class=\"pl-pds\"\u003e\"\u003c/span\u003e\u003c/span\u003e\n\n\u003cspan class=\"pl-c\"\u003e\u003cspan class=\"pl-c\"\u003e#\u003c/span\u003e Download the best video with worst codec no worse than h264,\u003c/span\u003e\n\u003cspan class=\"pl-c\"\u003e\u003cspan class=\"pl-c\"\u003e#\u003c/span\u003e or the best video with best codec if there is no such video\u003c/span\u003e\n$ yt-dlp -S \u003cspan class=\"pl-s\"\u003e\u003cspan class=\"pl-pds\"\u003e\"\u003c/span\u003e+codec:h264\u003cspan class=\"pl-pds\"\u003e\"\u003c/span\u003e\u003c/span\u003e\n\n\n\n\u003cspan class=\"pl-c\"\u003e\u003cspan class=\"pl-c\"\u003e#\u003c/span\u003e More complex examples\u003c/span\u003e\n\n\u003cspan class=\"pl-c\"\u003e\u003cspan class=\"pl-c\"\u003e#\u003c/span\u003e Download the best video no better than 720p preferring framerate greater than 30,\u003c/span\u003e\n\u003cspan class=\"pl-c\"\u003e\u003cspan class=\"pl-c\"\u003e#\u003c/span\u003e or the worst video (still preferring framerate greater than 30) if there is no such video\u003c/span\u003e\n$ yt-dlp -f \u003cspan class=\"pl-s\"\u003e\u003cspan class=\"pl-pds\"\u003e\"\u003c/span\u003e((bv*[fps\u0026gt;30]/bv*)[height\u0026lt;=720]/(wv*[fps\u0026gt;30]/wv*)) + ba / (b[fps\u0026gt;30]/b)[height\u0026lt;=720]/(w[fps\u0026gt;30]/w)\u003cspan class=\"pl-pds\"\u003e\"\u003c/span\u003e\u003c/span\u003e\n\n\u003cspan class=\"pl-c\"\u003e\u003cspan class=\"pl-c\"\u003e#\u003c/span\u003e Download the video with the largest resolution no better than 720p,\u003c/span\u003e\n\u003cspan class=\"pl-c\"\u003e\u003cspan class=\"pl-c\"\u003e#\u003c/span\u003e or the video with the smallest resolution available if there is no such video,\u003c/span\u003e\n\u003cspan class=\"pl-c\"\u003e\u003cspan class=\"pl-c\"\u003e#\u003c/span\u003e preferring larger framerate for formats with the same resolution\u003c/span\u003e\n$ yt-dlp -S \u003cspan class=\"pl-s\"\u003e\u003cspan class=\"pl-pds\"\u003e\"\u003c/span\u003eres:720,fps\u003cspan class=\"pl-pds\"\u003e\"\u003c/span\u003e\u003c/span\u003e\n\n\n\n\u003cspan class=\"pl-c\"\u003e\u003cspan class=\"pl-c\"\u003e#\u003c/span\u003e Download the video with smallest resolution no worse than 480p,\u003c/span\u003e\n\u003cspan class=\"pl-c\"\u003e\u003cspan class=\"pl-c\"\u003e#\u003c/span\u003e or the video with the largest resolution available if there is no such video,\u003c/span\u003e\n\u003cspan class=\"pl-c\"\u003e\u003cspan class=\"pl-c\"\u003e#\u003c/span\u003e preferring better codec and then larger total bitrate for the same resolution\u003c/span\u003e\n$ yt-dlp -S \u003cspan class=\"pl-s\"\u003e\u003cspan class=\"pl-pds\"\u003e\"\u003c/span\u003e+res:480,codec,br\u003cspan class=\"pl-pds\"\u003e\"\u003c/span\u003e\u003c/span\u003e\u003c/pre\u003e\u003c/div\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch1 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eMODIFYING METADATA\u003c/h1\u003e\u003ca id=\"user-content-modifying-metadata\" class=\"anchor\" aria-label=\"Permalink: MODIFYING METADATA\" href=\"#modifying-metadata\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cp dir=\"auto\"\u003eThe metadata obtained by the extractors can be modified by using \u003ccode\u003e--parse-metadata\u003c/code\u003e and \u003ccode\u003e--replace-in-metadata\u003c/code\u003e\u003c/p\u003e\n\u003cp dir=\"auto\"\u003e\u003ccode\u003e--replace-in-metadata FIELDS REGEX REPLACE\u003c/code\u003e is used to replace text in any metadata field using \u003ca href=\"https://docs.python.org/3/library/re.html#regular-expression-syntax\" rel=\"nofollow\"\u003ePython regular expression\u003c/a\u003e. \u003ca href=\"https://docs.python.org/3/library/re.html?highlight=backreferences#re.sub\" rel=\"nofollow\"\u003eBackreferences\u003c/a\u003e can be used in the replace string for advanced use.\u003c/p\u003e\n\u003cp dir=\"auto\"\u003eThe general syntax of \u003ccode\u003e--parse-metadata FROM:TO\u003c/code\u003e is to give the name of a field or an \u003ca href=\"#output-template\"\u003eoutput template\u003c/a\u003e to extract data from, and the format to interpret it as, separated by a colon \u003ccode\u003e:\u003c/code\u003e. Either a \u003ca href=\"https://docs.python.org/3/library/re.html#regular-expression-syntax\" rel=\"nofollow\"\u003ePython regular expression\u003c/a\u003e with named capture groups, a single field name, or a similar syntax to the \u003ca href=\"#output-template\"\u003eoutput template\u003c/a\u003e (only \u003ccode\u003e%(field)s\u003c/code\u003e formatting is supported) can be used for \u003ccode\u003eTO\u003c/code\u003e. The option can be used multiple times to parse and modify various fields.\u003c/p\u003e\n\u003cp dir=\"auto\"\u003eNote that these options preserve their relative order, allowing replacements to be made in parsed fields and vice versa. Also, any field thus created can be used in the \u003ca href=\"#output-template\"\u003eoutput template\u003c/a\u003e and will also affect the media file's metadata added when using \u003ccode\u003e--embed-metadata\u003c/code\u003e.\u003c/p\u003e\n\u003cp dir=\"auto\"\u003eThis option also has a few special uses:\u003c/p\u003e\n\u003cul dir=\"auto\"\u003e\n\u003cli\u003e\n\u003cp dir=\"auto\"\u003eYou can download an additional URL based on the metadata of the currently downloaded video. To do this, set the field \u003ccode\u003eadditional_urls\u003c/code\u003e to the URL that you want to download. E.g. \u003ccode\u003e--parse-metadata \"description:(?P\u0026lt;additional_urls\u0026gt;https?://www\\.vimeo\\.com/\\d+)\"\u003c/code\u003e will download the first vimeo video found in the description\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp dir=\"auto\"\u003eYou can use this to change the metadata that is embedded in the media file. To do this, set the value of the corresponding field with a \u003ccode\u003emeta_\u003c/code\u003e prefix. For example, any value you set to \u003ccode\u003emeta_description\u003c/code\u003e field will be added to the \u003ccode\u003edescription\u003c/code\u003e field in the file - you can use this to set a different \"description\" and \"synopsis\". To modify the metadata of individual streams, use the \u003ccode\u003emeta\u0026lt;n\u0026gt;_\u003c/code\u003e prefix (e.g. \u003ccode\u003emeta1_language\u003c/code\u003e). Any value set to the \u003ccode\u003emeta_\u003c/code\u003e field will overwrite all default values.\u003c/p\u003e\n\u003c/li\u003e\n\u003c/ul\u003e\n\u003cp dir=\"auto\"\u003e\u003cstrong\u003eNote\u003c/strong\u003e: Metadata modification happens before format selection, post-extraction and other post-processing operations. Some fields may be added or changed during these steps, overriding your changes.\u003c/p\u003e\n\u003cp dir=\"auto\"\u003eFor reference, these are the fields yt-dlp adds by default to the file metadata:\u003c/p\u003e\n\u003cmarkdown-accessiblity-table\u003e\u003ctable\u003e\n\u003cthead\u003e\n\u003ctr\u003e\n\u003cth align=\"left\"\u003eMetadata fields\u003c/th\u003e\n\u003cth align=\"left\"\u003eFrom\u003c/th\u003e\n\u003c/tr\u003e\n\u003c/thead\u003e\n\u003ctbody\u003e\n\u003ctr\u003e\n\u003ctd align=\"left\"\u003e\u003ccode\u003etitle\u003c/code\u003e\u003c/td\u003e\n\u003ctd align=\"left\"\u003e\u003ccode\u003etrack\u003c/code\u003e or \u003ccode\u003etitle\u003c/code\u003e\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd align=\"left\"\u003e\u003ccode\u003edate\u003c/code\u003e\u003c/td\u003e\n\u003ctd align=\"left\"\u003e\u003ccode\u003eupload_date\u003c/code\u003e\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd align=\"left\"\u003e\u003ccode\u003edescription\u003c/code\u003e, \u003ccode\u003esynopsis\u003c/code\u003e\u003c/td\u003e\n\u003ctd align=\"left\"\u003e\u003ccode\u003edescription\u003c/code\u003e\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd align=\"left\"\u003e\u003ccode\u003epurl\u003c/code\u003e, \u003ccode\u003ecomment\u003c/code\u003e\u003c/td\u003e\n\u003ctd align=\"left\"\u003e\u003ccode\u003ewebpage_url\u003c/code\u003e\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd align=\"left\"\u003e\u003ccode\u003etrack\u003c/code\u003e\u003c/td\u003e\n\u003ctd align=\"left\"\u003e\u003ccode\u003etrack_number\u003c/code\u003e\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd align=\"left\"\u003e\u003ccode\u003eartist\u003c/code\u003e\u003c/td\u003e\n\u003ctd align=\"left\"\u003e\u003ccode\u003eartist\u003c/code\u003e, \u003ccode\u003eartists\u003c/code\u003e, \u003ccode\u003ecreator\u003c/code\u003e, \u003ccode\u003ecreators\u003c/code\u003e, \u003ccode\u003euploader\u003c/code\u003e or \u003ccode\u003euploader_id\u003c/code\u003e\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd align=\"left\"\u003e\u003ccode\u003ecomposer\u003c/code\u003e\u003c/td\u003e\n\u003ctd align=\"left\"\u003e\u003ccode\u003ecomposer\u003c/code\u003e or \u003ccode\u003ecomposers\u003c/code\u003e\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd align=\"left\"\u003e\u003ccode\u003egenre\u003c/code\u003e\u003c/td\u003e\n\u003ctd align=\"left\"\u003e\u003ccode\u003egenre\u003c/code\u003e or \u003ccode\u003egenres\u003c/code\u003e\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd align=\"left\"\u003e\u003ccode\u003ealbum\u003c/code\u003e\u003c/td\u003e\n\u003ctd align=\"left\"\u003e\u003ccode\u003ealbum\u003c/code\u003e\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd align=\"left\"\u003e\u003ccode\u003ealbum_artist\u003c/code\u003e\u003c/td\u003e\n\u003ctd align=\"left\"\u003e\u003ccode\u003ealbum_artist\u003c/code\u003e or \u003ccode\u003ealbum_artists\u003c/code\u003e\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd align=\"left\"\u003e\u003ccode\u003edisc\u003c/code\u003e\u003c/td\u003e\n\u003ctd align=\"left\"\u003e\u003ccode\u003edisc_number\u003c/code\u003e\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd align=\"left\"\u003e\u003ccode\u003eshow\u003c/code\u003e\u003c/td\u003e\n\u003ctd align=\"left\"\u003e\u003ccode\u003eseries\u003c/code\u003e\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd align=\"left\"\u003e\u003ccode\u003eseason_number\u003c/code\u003e\u003c/td\u003e\n\u003ctd align=\"left\"\u003e\u003ccode\u003eseason_number\u003c/code\u003e\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd align=\"left\"\u003e\u003ccode\u003eepisode_id\u003c/code\u003e\u003c/td\u003e\n\u003ctd align=\"left\"\u003e\u003ccode\u003eepisode\u003c/code\u003e or \u003ccode\u003eepisode_id\u003c/code\u003e\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd align=\"left\"\u003e\u003ccode\u003eepisode_sort\u003c/code\u003e\u003c/td\u003e\n\u003ctd align=\"left\"\u003e\u003ccode\u003eepisode_number\u003c/code\u003e\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd align=\"left\"\u003e\u003ccode\u003elanguage\u003c/code\u003e of each stream\u003c/td\u003e\n\u003ctd align=\"left\"\u003ethe format's \u003ccode\u003elanguage\u003c/code\u003e\u003c/td\u003e\n\u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\u003c/markdown-accessiblity-table\u003e\n\u003cp dir=\"auto\"\u003e\u003cstrong\u003eNote\u003c/strong\u003e: The file format may not support some of these fields\u003c/p\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch2 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eModifying metadata examples\u003c/h2\u003e\u003ca id=\"user-content-modifying-metadata-examples\" class=\"anchor\" aria-label=\"Permalink: Modifying metadata examples\" href=\"#modifying-metadata-examples\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cdiv class=\"highlight highlight-source-shell notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"# Interpret the title as \u0026quot;Artist - Title\u0026quot;\n$ yt-dlp --parse-metadata \u0026quot;title:%(artist)s - %(title)s\u0026quot;\n\n# Regex example\n$ yt-dlp --parse-metadata \u0026quot;description:Artist - (?P\u0026lt;artist\u0026gt;.+)\u0026quot;\n\n# Set title as \u0026quot;Series name S01E05\u0026quot;\n$ yt-dlp --parse-metadata \u0026quot;%(series)s S%(season_number)02dE%(episode_number)02d:%(title)s\u0026quot;\n\n# Prioritize uploader as the \u0026quot;artist\u0026quot; field in video metadata\n$ yt-dlp --parse-metadata \u0026quot;%(uploader|)s:%(meta_artist)s\u0026quot; --embed-metadata\n\n# Set \u0026quot;comment\u0026quot; field in video metadata using description instead of webpage_url,\n# handling multiple lines correctly\n$ yt-dlp --parse-metadata \u0026quot;description:(?s)(?P\u0026lt;meta_comment\u0026gt;.+)\u0026quot; --embed-metadata\n\n# Do not set any \u0026quot;synopsis\u0026quot; in the video metadata\n$ yt-dlp --parse-metadata \u0026quot;:(?P\u0026lt;meta_synopsis\u0026gt;)\u0026quot;\n\n# Remove \u0026quot;formats\u0026quot; field from the infojson by setting it to an empty string\n$ yt-dlp --parse-metadata \u0026quot;video::(?P\u0026lt;formats\u0026gt;)\u0026quot; --write-info-json\n\n# Replace all spaces and \u0026quot;_\u0026quot; in title and uploader with a `-`\n$ yt-dlp --replace-in-metadata \u0026quot;title,uploader\u0026quot; \u0026quot;[ _]\u0026quot; \u0026quot;-\u0026quot;\n\"\u003e\u003cpre\u003e\u003cspan class=\"pl-c\"\u003e\u003cspan class=\"pl-c\"\u003e#\u003c/span\u003e Interpret the title as \"Artist - Title\"\u003c/span\u003e\n$ yt-dlp --parse-metadata \u003cspan class=\"pl-s\"\u003e\u003cspan class=\"pl-pds\"\u003e\"\u003c/span\u003etitle:%(artist)s - %(title)s\u003cspan class=\"pl-pds\"\u003e\"\u003c/span\u003e\u003c/span\u003e\n\n\u003cspan class=\"pl-c\"\u003e\u003cspan class=\"pl-c\"\u003e#\u003c/span\u003e Regex example\u003c/span\u003e\n$ yt-dlp --parse-metadata \u003cspan class=\"pl-s\"\u003e\u003cspan class=\"pl-pds\"\u003e\"\u003c/span\u003edescription:Artist - (?P\u0026lt;artist\u0026gt;.+)\u003cspan class=\"pl-pds\"\u003e\"\u003c/span\u003e\u003c/span\u003e\n\n\u003cspan class=\"pl-c\"\u003e\u003cspan class=\"pl-c\"\u003e#\u003c/span\u003e Set title as \"Series name S01E05\"\u003c/span\u003e\n$ yt-dlp --parse-metadata \u003cspan class=\"pl-s\"\u003e\u003cspan class=\"pl-pds\"\u003e\"\u003c/span\u003e%(series)s S%(season_number)02dE%(episode_number)02d:%(title)s\u003cspan class=\"pl-pds\"\u003e\"\u003c/span\u003e\u003c/span\u003e\n\n\u003cspan class=\"pl-c\"\u003e\u003cspan class=\"pl-c\"\u003e#\u003c/span\u003e Prioritize uploader as the \"artist\" field in video metadata\u003c/span\u003e\n$ yt-dlp --parse-metadata \u003cspan class=\"pl-s\"\u003e\u003cspan class=\"pl-pds\"\u003e\"\u003c/span\u003e%(uploader|)s:%(meta_artist)s\u003cspan class=\"pl-pds\"\u003e\"\u003c/span\u003e\u003c/span\u003e --embed-metadata\n\n\u003cspan class=\"pl-c\"\u003e\u003cspan class=\"pl-c\"\u003e#\u003c/span\u003e Set \"comment\" field in video metadata using description instead of webpage_url,\u003c/span\u003e\n\u003cspan class=\"pl-c\"\u003e\u003cspan class=\"pl-c\"\u003e#\u003c/span\u003e handling multiple lines correctly\u003c/span\u003e\n$ yt-dlp --parse-metadata \u003cspan class=\"pl-s\"\u003e\u003cspan class=\"pl-pds\"\u003e\"\u003c/span\u003edescription:(?s)(?P\u0026lt;meta_comment\u0026gt;.+)\u003cspan class=\"pl-pds\"\u003e\"\u003c/span\u003e\u003c/span\u003e --embed-metadata\n\n\u003cspan class=\"pl-c\"\u003e\u003cspan class=\"pl-c\"\u003e#\u003c/span\u003e Do not set any \"synopsis\" in the video metadata\u003c/span\u003e\n$ yt-dlp --parse-metadata \u003cspan class=\"pl-s\"\u003e\u003cspan class=\"pl-pds\"\u003e\"\u003c/span\u003e:(?P\u0026lt;meta_synopsis\u0026gt;)\u003cspan class=\"pl-pds\"\u003e\"\u003c/span\u003e\u003c/span\u003e\n\n\u003cspan class=\"pl-c\"\u003e\u003cspan class=\"pl-c\"\u003e#\u003c/span\u003e Remove \"formats\" field from the infojson by setting it to an empty string\u003c/span\u003e\n$ yt-dlp --parse-metadata \u003cspan class=\"pl-s\"\u003e\u003cspan class=\"pl-pds\"\u003e\"\u003c/span\u003evideo::(?P\u0026lt;formats\u0026gt;)\u003cspan class=\"pl-pds\"\u003e\"\u003c/span\u003e\u003c/span\u003e --write-info-json\n\n\u003cspan class=\"pl-c\"\u003e\u003cspan class=\"pl-c\"\u003e#\u003c/span\u003e Replace all spaces and \"_\" in title and uploader with a `-`\u003c/span\u003e\n$ yt-dlp --replace-in-metadata \u003cspan class=\"pl-s\"\u003e\u003cspan class=\"pl-pds\"\u003e\"\u003c/span\u003etitle,uploader\u003cspan class=\"pl-pds\"\u003e\"\u003c/span\u003e\u003c/span\u003e \u003cspan class=\"pl-s\"\u003e\u003cspan class=\"pl-pds\"\u003e\"\u003c/span\u003e[ _]\u003cspan class=\"pl-pds\"\u003e\"\u003c/span\u003e\u003c/span\u003e \u003cspan class=\"pl-s\"\u003e\u003cspan class=\"pl-pds\"\u003e\"\u003c/span\u003e-\u003cspan class=\"pl-pds\"\u003e\"\u003c/span\u003e\u003c/span\u003e\n\u003c/pre\u003e\u003c/div\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch1 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eEXTRACTOR ARGUMENTS\u003c/h1\u003e\u003ca id=\"user-content-extractor-arguments\" class=\"anchor\" aria-label=\"Permalink: EXTRACTOR ARGUMENTS\" href=\"#extractor-arguments\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cp dir=\"auto\"\u003eSome extractors accept additional arguments which can be passed using \u003ccode\u003e--extractor-args KEY:ARGS\u003c/code\u003e. \u003ccode\u003eARGS\u003c/code\u003e is a \u003ccode\u003e;\u003c/code\u003e (semicolon) separated string of \u003ccode\u003eARG=VAL1,VAL2\u003c/code\u003e. E.g. \u003ccode\u003e--extractor-args \"youtube:player-client=tv,mweb;formats=incomplete\" --extractor-args \"twitter:api=syndication\"\u003c/code\u003e\u003c/p\u003e\n\u003cp dir=\"auto\"\u003eNote: In CLI, \u003ccode\u003eARG\u003c/code\u003e can use \u003ccode\u003e-\u003c/code\u003e instead of \u003ccode\u003e_\u003c/code\u003e; e.g. \u003ccode\u003eyoutube:player-client\"\u003c/code\u003e becomes \u003ccode\u003eyoutube:player_client\"\u003c/code\u003e\u003c/p\u003e\n\u003cp dir=\"auto\"\u003eThe following extractors use this feature:\u003c/p\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch4 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eyoutube\u003c/h4\u003e\u003ca id=\"user-content-youtube\" class=\"anchor\" aria-label=\"Permalink: youtube\" href=\"#youtube\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cul dir=\"auto\"\u003e\n\u003cli\u003e\u003ccode\u003elang\u003c/code\u003e: Prefer translated metadata (\u003ccode\u003etitle\u003c/code\u003e, \u003ccode\u003edescription\u003c/code\u003e etc) of this language code (case-sensitive). By default, the video primary language metadata is preferred, with a fallback to \u003ccode\u003een\u003c/code\u003e translated. See \u003ca href=\"https://github.com/yt-dlp/yt-dlp/blob/c26f9b991a0681fd3ea548d535919cec1fbbd430/yt_dlp/extractor/youtube.py#L381-L390\"\u003eyoutube.py\u003c/a\u003e for list of supported content language codes\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003eskip\u003c/code\u003e: One or more of \u003ccode\u003ehls\u003c/code\u003e, \u003ccode\u003edash\u003c/code\u003e or \u003ccode\u003etranslated_subs\u003c/code\u003e to skip extraction of the m3u8 manifests, dash manifests and \u003ca href=\"https://github.com/yt-dlp/yt-dlp/issues/4090#issuecomment-1158102032\" data-hovercard-type=\"issue\" data-hovercard-url=\"/yt-dlp/yt-dlp/issues/4090/hovercard\"\u003eauto-translated subtitles\u003c/a\u003e respectively\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003eplayer_client\u003c/code\u003e: Clients to extract video data from. The currently available clients are \u003ccode\u003eweb\u003c/code\u003e, \u003ccode\u003eweb_safari\u003c/code\u003e, \u003ccode\u003eweb_embedded\u003c/code\u003e, \u003ccode\u003eweb_music\u003c/code\u003e, \u003ccode\u003eweb_creator\u003c/code\u003e, \u003ccode\u003emweb\u003c/code\u003e, \u003ccode\u003eios\u003c/code\u003e, \u003ccode\u003eandroid\u003c/code\u003e, \u003ccode\u003eandroid_vr\u003c/code\u003e, \u003ccode\u003etv\u003c/code\u003e and \u003ccode\u003etv_embedded\u003c/code\u003e. By default, \u003ccode\u003etv,ios,web\u003c/code\u003e is used, or \u003ccode\u003etv,web\u003c/code\u003e is used when authenticating with cookies. The \u003ccode\u003eweb_music\u003c/code\u003e client is added for \u003ccode\u003emusic.youtube.com\u003c/code\u003e URLs when logged-in cookies are used. The \u003ccode\u003etv_embedded\u003c/code\u003e and \u003ccode\u003eweb_creator\u003c/code\u003e clients are added for age-restricted videos if account age-verification is required. Some clients, such as \u003ccode\u003eweb\u003c/code\u003e and \u003ccode\u003eweb_music\u003c/code\u003e, require a \u003ccode\u003epo_token\u003c/code\u003e for their formats to be downloadable. Some clients, such as \u003ccode\u003eweb_creator\u003c/code\u003e, will only work with authentication. Not all clients support authentication via cookies. You can use \u003ccode\u003edefault\u003c/code\u003e for the default clients, or you can use \u003ccode\u003eall\u003c/code\u003e for all clients (not recommended). You can prefix a client with \u003ccode\u003e-\u003c/code\u003e to exclude it, e.g. \u003ccode\u003eyoutube:player_client=default,-ios\u003c/code\u003e\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003eplayer_skip\u003c/code\u003e: Skip some network requests that are generally needed for robust extraction. One or more of \u003ccode\u003econfigs\u003c/code\u003e (skip client configs), \u003ccode\u003ewebpage\u003c/code\u003e (skip initial webpage), \u003ccode\u003ejs\u003c/code\u003e (skip js player). While these options can help reduce the number of requests needed or avoid some rate-limiting, they could cause some issues. See \u003ca href=\"https://github.com/yt-dlp/yt-dlp/pull/860\" data-hovercard-type=\"pull_request\" data-hovercard-url=\"/yt-dlp/yt-dlp/pull/860/hovercard\"\u003e#860\u003c/a\u003e for more details\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003eplayer_params\u003c/code\u003e: YouTube player parameters to use for player requests. Will overwrite any default ones set by yt-dlp.\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003ecomment_sort\u003c/code\u003e: \u003ccode\u003etop\u003c/code\u003e or \u003ccode\u003enew\u003c/code\u003e (default) - choose comment sorting mode (on YouTube's side)\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003emax_comments\u003c/code\u003e: Limit the amount of comments to gather. Comma-separated list of integers representing \u003ccode\u003emax-comments,max-parents,max-replies,max-replies-per-thread\u003c/code\u003e. Default is \u003ccode\u003eall,all,all,all\u003c/code\u003e\n\u003cul dir=\"auto\"\u003e\n\u003cli\u003eE.g. \u003ccode\u003eall,all,1000,10\u003c/code\u003e will get a maximum of 1000 replies total, with up to 10 replies per thread. \u003ccode\u003e1000,all,100\u003c/code\u003e will get a maximum of 1000 comments, with a maximum of 100 replies total\u003c/li\u003e\n\u003c/ul\u003e\n\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003eformats\u003c/code\u003e: Change the types of formats to return. \u003ccode\u003edashy\u003c/code\u003e (convert HTTP to DASH), \u003ccode\u003eduplicate\u003c/code\u003e (identical content but different URLs or protocol; includes \u003ccode\u003edashy\u003c/code\u003e), \u003ccode\u003eincomplete\u003c/code\u003e (cannot be downloaded completely - live dash and post-live m3u8), \u003ccode\u003emissing_pot\u003c/code\u003e (include formats that require a PO Token but are missing one)\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003einnertube_host\u003c/code\u003e: Innertube API host to use for all API requests; e.g. \u003ccode\u003estudio.youtube.com\u003c/code\u003e, \u003ccode\u003eyoutubei.googleapis.com\u003c/code\u003e. Note that cookies exported from one subdomain will not work on others\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003einnertube_key\u003c/code\u003e: Innertube API key to use for all API requests. By default, no API key is used\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003eraise_incomplete_data\u003c/code\u003e: \u003ccode\u003eIncomplete Data Received\u003c/code\u003e raises an error instead of reporting a warning\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003edata_sync_id\u003c/code\u003e: Overrides the account Data Sync ID used in Innertube API requests. This may be needed if you are using an account with \u003ccode\u003eyoutube:player_skip=webpage,configs\u003c/code\u003e or \u003ccode\u003eyoutubetab:skip=webpage\u003c/code\u003e\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003evisitor_data\u003c/code\u003e: Overrides the Visitor Data used in Innertube API requests. This should be used with \u003ccode\u003eplayer_skip=webpage,configs\u003c/code\u003e and without cookies. Note: this may have adverse effects if used improperly. If a session from a browser is wanted, you should pass cookies instead (which contain the Visitor ID)\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003epo_token\u003c/code\u003e: Proof of Origin (PO) Token(s) to use. Comma seperated list of PO Tokens in the format \u003ccode\u003eCLIENT.CONTEXT+PO_TOKEN\u003c/code\u003e, e.g. \u003ccode\u003eyoutube:po_token=web.gvs+XXX,web.player=XXX,web_safari.gvs+YYY\u003c/code\u003e. Context can be either \u003ccode\u003egvs\u003c/code\u003e (Google Video Server URLs) or \u003ccode\u003eplayer\u003c/code\u003e (Innertube player request)\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003eplayer_js_variant\u003c/code\u003e: The player javascript variant to use for signature and nsig deciphering. The known variants are: \u003ccode\u003emain\u003c/code\u003e, \u003ccode\u003etce\u003c/code\u003e, \u003ccode\u003etv\u003c/code\u003e, \u003ccode\u003etv_es6\u003c/code\u003e, \u003ccode\u003ephone\u003c/code\u003e, \u003ccode\u003etablet\u003c/code\u003e. Only \u003ccode\u003emain\u003c/code\u003e is recommended as a possible workaround; the others are for debugging purposes. The default is to use what is prescribed by the site, and can be selected with \u003ccode\u003eactual\u003c/code\u003e\u003c/li\u003e\n\u003c/ul\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch4 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eyoutubetab (YouTube playlists, channels, feeds, etc.)\u003c/h4\u003e\u003ca id=\"user-content-youtubetab-youtube-playlists-channels-feeds-etc\" class=\"anchor\" aria-label=\"Permalink: youtubetab (YouTube playlists, channels, feeds, etc.)\" href=\"#youtubetab-youtube-playlists-channels-feeds-etc\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cul dir=\"auto\"\u003e\n\u003cli\u003e\u003ccode\u003eskip\u003c/code\u003e: One or more of \u003ccode\u003ewebpage\u003c/code\u003e (skip initial webpage download), \u003ccode\u003eauthcheck\u003c/code\u003e (allow the download of playlists requiring authentication when no initial webpage is downloaded. This may cause unwanted behavior, see \u003ca href=\"https://github.com/yt-dlp/yt-dlp/pull/1122\" data-hovercard-type=\"pull_request\" data-hovercard-url=\"/yt-dlp/yt-dlp/pull/1122/hovercard\"\u003e#1122\u003c/a\u003e for more details)\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003eapproximate_date\u003c/code\u003e: Extract approximate \u003ccode\u003eupload_date\u003c/code\u003e and \u003ccode\u003etimestamp\u003c/code\u003e in flat-playlist. This may cause date-based filters to be slightly off\u003c/li\u003e\n\u003c/ul\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch4 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003egeneric\u003c/h4\u003e\u003ca id=\"user-content-generic\" class=\"anchor\" aria-label=\"Permalink: generic\" href=\"#generic\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cul dir=\"auto\"\u003e\n\u003cli\u003e\u003ccode\u003efragment_query\u003c/code\u003e: Passthrough any query in mpd/m3u8 manifest URLs to their fragments if no value is provided, or else apply the query string given as \u003ccode\u003efragment_query=VALUE\u003c/code\u003e. Note that if the stream has an HLS AES-128 key, then the query parameters will be passed to the key URI as well, unless the \u003ccode\u003ekey_query\u003c/code\u003e extractor-arg is passed, or unless an external key URI is provided via the \u003ccode\u003ehls_key\u003c/code\u003e extractor-arg. Does not apply to ffmpeg\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003evariant_query\u003c/code\u003e: Passthrough the master m3u8 URL query to its variant playlist URLs if no value is provided, or else apply the query string given as \u003ccode\u003evariant_query=VALUE\u003c/code\u003e\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003ekey_query\u003c/code\u003e: Passthrough the master m3u8 URL query to its HLS AES-128 decryption key URI if no value is provided, or else apply the query string given as \u003ccode\u003ekey_query=VALUE\u003c/code\u003e. Note that this will have no effect if the key URI is provided via the \u003ccode\u003ehls_key\u003c/code\u003e extractor-arg. Does not apply to ffmpeg\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003ehls_key\u003c/code\u003e: An HLS AES-128 key URI \u003cem\u003eor\u003c/em\u003e key (as hex), and optionally the IV (as hex), in the form of \u003ccode\u003e(URI|KEY)[,IV]\u003c/code\u003e; e.g. \u003ccode\u003egeneric:hls_key=ABCDEF1234567980,0xFEDCBA0987654321\u003c/code\u003e. Passing any of these values will force usage of the native HLS downloader and override the corresponding values found in the m3u8 playlist\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003eis_live\u003c/code\u003e: Bypass live HLS detection and manually set \u003ccode\u003elive_status\u003c/code\u003e - a value of \u003ccode\u003efalse\u003c/code\u003e will set \u003ccode\u003enot_live\u003c/code\u003e, any other value (or no value) will set \u003ccode\u003eis_live\u003c/code\u003e\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003eimpersonate\u003c/code\u003e: Target(s) to try and impersonate with the initial webpage request; e.g. \u003ccode\u003egeneric:impersonate=safari,chrome-110\u003c/code\u003e. Use \u003ccode\u003egeneric:impersonate\u003c/code\u003e to impersonate any available target, and use \u003ccode\u003egeneric:impersonate=false\u003c/code\u003e to disable impersonation (default)\u003c/li\u003e\n\u003c/ul\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch4 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003evikichannel\u003c/h4\u003e\u003ca id=\"user-content-vikichannel\" class=\"anchor\" aria-label=\"Permalink: vikichannel\" href=\"#vikichannel\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cul dir=\"auto\"\u003e\n\u003cli\u003e\u003ccode\u003evideo_types\u003c/code\u003e: Types of videos to download - one or more of \u003ccode\u003eepisodes\u003c/code\u003e, \u003ccode\u003emovies\u003c/code\u003e, \u003ccode\u003eclips\u003c/code\u003e, \u003ccode\u003etrailers\u003c/code\u003e\u003c/li\u003e\n\u003c/ul\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch4 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eniconico\u003c/h4\u003e\u003ca id=\"user-content-niconico\" class=\"anchor\" aria-label=\"Permalink: niconico\" href=\"#niconico\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cul dir=\"auto\"\u003e\n\u003cli\u003e\u003ccode\u003esegment_duration\u003c/code\u003e: Segment duration in milliseconds for HLS-DMC formats. Use it at your own risk since this feature \u003cstrong\u003emay result in your account termination.\u003c/strong\u003e\u003c/li\u003e\n\u003c/ul\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch4 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eyoutubewebarchive\u003c/h4\u003e\u003ca id=\"user-content-youtubewebarchive\" class=\"anchor\" aria-label=\"Permalink: youtubewebarchive\" href=\"#youtubewebarchive\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cul dir=\"auto\"\u003e\n\u003cli\u003e\u003ccode\u003echeck_all\u003c/code\u003e: Try to check more at the cost of more requests. One or more of \u003ccode\u003ethumbnails\u003c/code\u003e, \u003ccode\u003ecaptures\u003c/code\u003e\u003c/li\u003e\n\u003c/ul\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch4 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003egamejolt\u003c/h4\u003e\u003ca id=\"user-content-gamejolt\" class=\"anchor\" aria-label=\"Permalink: gamejolt\" href=\"#gamejolt\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cul dir=\"auto\"\u003e\n\u003cli\u003e\u003ccode\u003ecomment_sort\u003c/code\u003e: \u003ccode\u003ehot\u003c/code\u003e (default), \u003ccode\u003eyou\u003c/code\u003e (cookies needed), \u003ccode\u003etop\u003c/code\u003e, \u003ccode\u003enew\u003c/code\u003e - choose comment sorting mode (on GameJolt's side)\u003c/li\u003e\n\u003c/ul\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch4 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003ehotstar\u003c/h4\u003e\u003ca id=\"user-content-hotstar\" class=\"anchor\" aria-label=\"Permalink: hotstar\" href=\"#hotstar\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cul dir=\"auto\"\u003e\n\u003cli\u003e\u003ccode\u003eres\u003c/code\u003e: resolution to ignore - one or more of \u003ccode\u003esd\u003c/code\u003e, \u003ccode\u003ehd\u003c/code\u003e, \u003ccode\u003efhd\u003c/code\u003e\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003evcodec\u003c/code\u003e: vcodec to ignore - one or more of \u003ccode\u003eh264\u003c/code\u003e, \u003ccode\u003eh265\u003c/code\u003e, \u003ccode\u003edvh265\u003c/code\u003e\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003edr\u003c/code\u003e: dynamic range to ignore - one or more of \u003ccode\u003esdr\u003c/code\u003e, \u003ccode\u003ehdr10\u003c/code\u003e, \u003ccode\u003edv\u003c/code\u003e\u003c/li\u003e\n\u003c/ul\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch4 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003einstagram\u003c/h4\u003e\u003ca id=\"user-content-instagram\" class=\"anchor\" aria-label=\"Permalink: instagram\" href=\"#instagram\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cul dir=\"auto\"\u003e\n\u003cli\u003e\u003ccode\u003eapp_id\u003c/code\u003e: The value of the \u003ccode\u003eX-IG-App-ID\u003c/code\u003e header used for API requests. Default is the web app ID, \u003ccode\u003e936619743392459\u003c/code\u003e\u003c/li\u003e\n\u003c/ul\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch4 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eniconicochannelplus\u003c/h4\u003e\u003ca id=\"user-content-niconicochannelplus\" class=\"anchor\" aria-label=\"Permalink: niconicochannelplus\" href=\"#niconicochannelplus\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cul dir=\"auto\"\u003e\n\u003cli\u003e\u003ccode\u003emax_comments\u003c/code\u003e: Maximum number of comments to extract - default is \u003ccode\u003e120\u003c/code\u003e\u003c/li\u003e\n\u003c/ul\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch4 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003etiktok\u003c/h4\u003e\u003ca id=\"user-content-tiktok\" class=\"anchor\" aria-label=\"Permalink: tiktok\" href=\"#tiktok\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cul dir=\"auto\"\u003e\n\u003cli\u003e\u003ccode\u003eapi_hostname\u003c/code\u003e: Hostname to use for mobile API calls, e.g. \u003ccode\u003eapi22-normal-c-alisg.tiktokv.com\u003c/code\u003e\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003eapp_name\u003c/code\u003e: Default app name to use with mobile API calls, e.g. \u003ccode\u003etrill\u003c/code\u003e\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003eapp_version\u003c/code\u003e: Default app version to use with mobile API calls - should be set along with \u003ccode\u003emanifest_app_version\u003c/code\u003e, e.g. \u003ccode\u003e34.1.2\u003c/code\u003e\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003emanifest_app_version\u003c/code\u003e: Default numeric app version to use with mobile API calls, e.g. \u003ccode\u003e2023401020\u003c/code\u003e\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003eaid\u003c/code\u003e: Default app ID to use with mobile API calls, e.g. \u003ccode\u003e1180\u003c/code\u003e\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003eapp_info\u003c/code\u003e: Enable mobile API extraction with one or more app info strings in the format of \u003ccode\u003e\u0026lt;iid\u0026gt;/[app_name]/[app_version]/[manifest_app_version]/[aid]\u003c/code\u003e, where \u003ccode\u003eiid\u003c/code\u003e is the unique app install ID. \u003ccode\u003eiid\u003c/code\u003e is the only required value; all other values and their \u003ccode\u003e/\u003c/code\u003e separators can be omitted, e.g. \u003ccode\u003etiktok:app_info=1234567890123456789\u003c/code\u003e or \u003ccode\u003etiktok:app_info=123,456/trill///1180,789//34.0.1/340001\u003c/code\u003e\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003edevice_id\u003c/code\u003e: Enable mobile API extraction with a genuine device ID to be used with mobile API calls. Default is a random 19-digit string\u003c/li\u003e\n\u003c/ul\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch4 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003erokfinchannel\u003c/h4\u003e\u003ca id=\"user-content-rokfinchannel\" class=\"anchor\" aria-label=\"Permalink: rokfinchannel\" href=\"#rokfinchannel\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cul dir=\"auto\"\u003e\n\u003cli\u003e\u003ccode\u003etab\u003c/code\u003e: Which tab to download - one of \u003ccode\u003enew\u003c/code\u003e, \u003ccode\u003etop\u003c/code\u003e, \u003ccode\u003evideos\u003c/code\u003e, \u003ccode\u003epodcasts\u003c/code\u003e, \u003ccode\u003estreams\u003c/code\u003e, \u003ccode\u003estacks\u003c/code\u003e\u003c/li\u003e\n\u003c/ul\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch4 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003etwitter\u003c/h4\u003e\u003ca id=\"user-content-twitter\" class=\"anchor\" aria-label=\"Permalink: twitter\" href=\"#twitter\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cul dir=\"auto\"\u003e\n\u003cli\u003e\u003ccode\u003eapi\u003c/code\u003e: Select one of \u003ccode\u003egraphql\u003c/code\u003e (default), \u003ccode\u003elegacy\u003c/code\u003e or \u003ccode\u003esyndication\u003c/code\u003e as the API for tweet extraction. Has no effect if logged in\u003c/li\u003e\n\u003c/ul\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch4 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003estacommu, wrestleuniverse\u003c/h4\u003e\u003ca id=\"user-content-stacommu-wrestleuniverse\" class=\"anchor\" aria-label=\"Permalink: stacommu, wrestleuniverse\" href=\"#stacommu-wrestleuniverse\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cul dir=\"auto\"\u003e\n\u003cli\u003e\u003ccode\u003edevice_id\u003c/code\u003e: UUID value assigned by the website and used to enforce device limits for paid livestream content. Can be found in browser local storage\u003c/li\u003e\n\u003c/ul\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch4 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003etwitch\u003c/h4\u003e\u003ca id=\"user-content-twitch\" class=\"anchor\" aria-label=\"Permalink: twitch\" href=\"#twitch\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cul dir=\"auto\"\u003e\n\u003cli\u003e\u003ccode\u003eclient_id\u003c/code\u003e: Client ID value to be sent with GraphQL requests, e.g. \u003ccode\u003etwitch:client_id=kimne78kx3ncx6brgo4mv6wki5h1ko\u003c/code\u003e\u003c/li\u003e\n\u003c/ul\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch4 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003enhkradirulive (NHK らじる★らじる LIVE)\u003c/h4\u003e\u003ca id=\"user-content-nhkradirulive-nhk-らじるらじる-live\" class=\"anchor\" aria-label=\"Permalink: nhkradirulive (NHK らじる★らじる LIVE)\" href=\"#nhkradirulive-nhk-らじるらじる-live\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cul dir=\"auto\"\u003e\n\u003cli\u003e\u003ccode\u003earea\u003c/code\u003e: Which regional variation to extract. Valid areas are: \u003ccode\u003esapporo\u003c/code\u003e, \u003ccode\u003esendai\u003c/code\u003e, \u003ccode\u003etokyo\u003c/code\u003e, \u003ccode\u003enagoya\u003c/code\u003e, \u003ccode\u003eosaka\u003c/code\u003e, \u003ccode\u003ehiroshima\u003c/code\u003e, \u003ccode\u003ematsuyama\u003c/code\u003e, \u003ccode\u003efukuoka\u003c/code\u003e. Defaults to \u003ccode\u003etokyo\u003c/code\u003e\u003c/li\u003e\n\u003c/ul\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch4 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003enflplusreplay\u003c/h4\u003e\u003ca id=\"user-content-nflplusreplay\" class=\"anchor\" aria-label=\"Permalink: nflplusreplay\" href=\"#nflplusreplay\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cul dir=\"auto\"\u003e\n\u003cli\u003e\u003ccode\u003etype\u003c/code\u003e: Type(s) of game replays to extract. Valid types are: \u003ccode\u003efull_game\u003c/code\u003e, \u003ccode\u003efull_game_spanish\u003c/code\u003e, \u003ccode\u003econdensed_game\u003c/code\u003e and \u003ccode\u003eall_22\u003c/code\u003e. You can use \u003ccode\u003eall\u003c/code\u003e to extract all available replay types, which is the default\u003c/li\u003e\n\u003c/ul\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch4 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003ejiocinema\u003c/h4\u003e\u003ca id=\"user-content-jiocinema\" class=\"anchor\" aria-label=\"Permalink: jiocinema\" href=\"#jiocinema\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cul dir=\"auto\"\u003e\n\u003cli\u003e\u003ccode\u003erefresh_token\u003c/code\u003e: The \u003ccode\u003erefreshToken\u003c/code\u003e UUID from browser local storage can be passed to extend the life of your login session when logging in with \u003ccode\u003etoken\u003c/code\u003e as username and the \u003ccode\u003eaccessToken\u003c/code\u003e from browser local storage as password\u003c/li\u003e\n\u003c/ul\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch4 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003ejiosaavn\u003c/h4\u003e\u003ca id=\"user-content-jiosaavn\" class=\"anchor\" aria-label=\"Permalink: jiosaavn\" href=\"#jiosaavn\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cul dir=\"auto\"\u003e\n\u003cli\u003e\u003ccode\u003ebitrate\u003c/code\u003e: Audio bitrates to request. One or more of \u003ccode\u003e16\u003c/code\u003e, \u003ccode\u003e32\u003c/code\u003e, \u003ccode\u003e64\u003c/code\u003e, \u003ccode\u003e128\u003c/code\u003e, \u003ccode\u003e320\u003c/code\u003e. Default is \u003ccode\u003e128,320\u003c/code\u003e\u003c/li\u003e\n\u003c/ul\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch4 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eafreecatvlive\u003c/h4\u003e\u003ca id=\"user-content-afreecatvlive\" class=\"anchor\" aria-label=\"Permalink: afreecatvlive\" href=\"#afreecatvlive\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cul dir=\"auto\"\u003e\n\u003cli\u003e\u003ccode\u003ecdn\u003c/code\u003e: One or more CDN IDs to use with the API call for stream URLs, e.g. \u003ccode\u003egcp_cdn\u003c/code\u003e, \u003ccode\u003egs_cdn_pc_app\u003c/code\u003e, \u003ccode\u003egs_cdn_mobile_web\u003c/code\u003e, \u003ccode\u003egs_cdn_pc_web\u003c/code\u003e\u003c/li\u003e\n\u003c/ul\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch4 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003esoundcloud\u003c/h4\u003e\u003ca id=\"user-content-soundcloud\" class=\"anchor\" aria-label=\"Permalink: soundcloud\" href=\"#soundcloud\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cul dir=\"auto\"\u003e\n\u003cli\u003e\u003ccode\u003eformats\u003c/code\u003e: Formats to request from the API. Requested values should be in the format of \u003ccode\u003e{protocol}_{codec}\u003c/code\u003e, e.g. \u003ccode\u003ehls_opus,http_aac\u003c/code\u003e. The \u003ccode\u003e*\u003c/code\u003e character functions as a wildcard, e.g. \u003ccode\u003e*_mp3\u003c/code\u003e, and can be passed by itself to request all formats. Known protocols include \u003ccode\u003ehttp\u003c/code\u003e, \u003ccode\u003ehls\u003c/code\u003e and \u003ccode\u003ehls-aes\u003c/code\u003e; known codecs include \u003ccode\u003eaac\u003c/code\u003e, \u003ccode\u003eopus\u003c/code\u003e and \u003ccode\u003emp3\u003c/code\u003e. Original \u003ccode\u003edownload\u003c/code\u003e formats are always extracted. Default is \u003ccode\u003ehttp_aac,hls_aac,http_opus,hls_opus,http_mp3,hls_mp3\u003c/code\u003e\u003c/li\u003e\n\u003c/ul\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch4 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eorfon (orf:on)\u003c/h4\u003e\u003ca id=\"user-content-orfon-orfon\" class=\"anchor\" aria-label=\"Permalink: orfon (orf:on)\" href=\"#orfon-orfon\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cul dir=\"auto\"\u003e\n\u003cli\u003e\u003ccode\u003eprefer_segments_playlist\u003c/code\u003e: Prefer a playlist of program segments instead of a single complete video when available. If individual segments are desired, use \u003ccode\u003e--concat-playlist never --extractor-args \"orfon:prefer_segments_playlist\"\u003c/code\u003e\u003c/li\u003e\n\u003c/ul\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch4 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003ebilibili\u003c/h4\u003e\u003ca id=\"user-content-bilibili\" class=\"anchor\" aria-label=\"Permalink: bilibili\" href=\"#bilibili\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cul dir=\"auto\"\u003e\n\u003cli\u003e\u003ccode\u003eprefer_multi_flv\u003c/code\u003e: Prefer extracting flv formats over mp4 for older videos that still provide legacy formats\u003c/li\u003e\n\u003c/ul\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch4 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003esonylivseries\u003c/h4\u003e\u003ca id=\"user-content-sonylivseries\" class=\"anchor\" aria-label=\"Permalink: sonylivseries\" href=\"#sonylivseries\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cul dir=\"auto\"\u003e\n\u003cli\u003e\u003ccode\u003esort_order\u003c/code\u003e: Episode sort order for series extraction - one of \u003ccode\u003easc\u003c/code\u003e (ascending, oldest first) or \u003ccode\u003edesc\u003c/code\u003e (descending, newest first). Default is \u003ccode\u003easc\u003c/code\u003e\u003c/li\u003e\n\u003c/ul\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch4 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003etver\u003c/h4\u003e\u003ca id=\"user-content-tver\" class=\"anchor\" aria-label=\"Permalink: tver\" href=\"#tver\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cul dir=\"auto\"\u003e\n\u003cli\u003e\u003ccode\u003ebackend\u003c/code\u003e: Backend API to use for extraction - one of \u003ccode\u003estreaks\u003c/code\u003e (default) or \u003ccode\u003ebrightcove\u003c/code\u003e (deprecated)\u003c/li\u003e\n\u003c/ul\u003e\n\u003cp dir=\"auto\"\u003e\u003cstrong\u003eNote\u003c/strong\u003e: These options may be changed/removed in the future without concern for backward compatibility\u003c/p\u003e\n\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch1 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003ePLUGINS\u003c/h1\u003e\u003ca id=\"user-content-plugins\" class=\"anchor\" aria-label=\"Permalink: PLUGINS\" href=\"#plugins\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cp dir=\"auto\"\u003eNote that \u003cstrong\u003eall\u003c/strong\u003e plugins are imported even if not invoked, and that \u003cstrong\u003ethere are no checks\u003c/strong\u003e performed on plugin code. \u003cstrong\u003eUse plugins at your own risk and only if you trust the code!\u003c/strong\u003e\u003c/p\u003e\n\u003cp dir=\"auto\"\u003ePlugins can be of \u003ccode\u003e\u0026lt;type\u0026gt;\u003c/code\u003es \u003ccode\u003eextractor\u003c/code\u003e or \u003ccode\u003epostprocessor\u003c/code\u003e.\u003c/p\u003e\n\u003cul dir=\"auto\"\u003e\n\u003cli\u003eExtractor plugins do not need to be enabled from the CLI and are automatically invoked when the input URL is suitable for it.\u003c/li\u003e\n\u003cli\u003eExtractor plugins take priority over built-in extractors.\u003c/li\u003e\n\u003cli\u003ePostprocessor plugins can be invoked using \u003ccode\u003e--use-postprocessor NAME\u003c/code\u003e.\u003c/li\u003e\n\u003c/ul\u003e\n\u003cp dir=\"auto\"\u003ePlugins are loaded from the namespace packages \u003ccode\u003eyt_dlp_plugins.extractor\u003c/code\u003e and \u003ccode\u003eyt_dlp_plugins.postprocessor\u003c/code\u003e.\u003c/p\u003e\n\u003cp dir=\"auto\"\u003eIn other words, the file structure on the disk looks something like:\u003c/p\u003e\n\u003cdiv class=\"snippet-clipboard-content notranslate position-relative overflow-auto\" data-snippet-clipboard-copy-content=\" yt_dlp_plugins/\n extractor/\n myplugin.py\n postprocessor/\n myplugin.py\"\u003e\u003cpre class=\"notranslate\"\u003e\u003ccode\u003e yt_dlp_plugins/\n extractor/\n myplugin.py\n postprocessor/\n myplugin.py\n\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\n\u003cp dir=\"auto\"\u003eyt-dlp looks for these \u003ccode\u003eyt_dlp_plugins\u003c/code\u003e namespace folders in many locations (see below) and loads in plugins from \u003cstrong\u003eall\u003c/strong\u003e of them.\nSet the environment variable \u003ccode\u003eYTDLP_NO_PLUGINS\u003c/code\u003e to something nonempty to disable loading plugins entirely.\u003c/p\u003e\n\u003cp dir=\"auto\"\u003eSee the \u003ca href=\"https://github.com/yt-dlp/yt-dlp/wiki/Plugins\"\u003ewiki for some known plugins\u003c/a\u003e\u003c/p\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch2 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eInstalling Plugins\u003c/h2\u003e\u003ca id=\"user-content-installing-plugins\" class=\"anchor\" aria-label=\"Permalink: Installing Plugins\" href=\"#installing-plugins\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cp dir=\"auto\"\u003ePlugins can be installed using various methods and locations.\u003c/p\u003e\n\u003col dir=\"auto\"\u003e\n\u003cli\u003e\n\u003cp dir=\"auto\"\u003e\u003cstrong\u003eConfiguration directories\u003c/strong\u003e:\nPlugin packages (containing a \u003ccode\u003eyt_dlp_plugins\u003c/code\u003e namespace folder) can be dropped into the following standard \u003ca href=\"#configuration\"\u003econfiguration locations\u003c/a\u003e:\u003c/p\u003e\n\u003cul dir=\"auto\"\u003e\n\u003cli\u003e\u003cstrong\u003eUser Plugins\u003c/strong\u003e\n\u003cul dir=\"auto\"\u003e\n\u003cli\u003e\u003ccode\u003e${XDG_CONFIG_HOME}/yt-dlp/plugins/\u0026lt;package name\u0026gt;/yt_dlp_plugins/\u003c/code\u003e (recommended on Linux/macOS)\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003e${XDG_CONFIG_HOME}/yt-dlp-plugins/\u0026lt;package name\u0026gt;/yt_dlp_plugins/\u003c/code\u003e\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003e${APPDATA}/yt-dlp/plugins/\u0026lt;package name\u0026gt;/yt_dlp_plugins/\u003c/code\u003e (recommended on Windows)\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003e${APPDATA}/yt-dlp-plugins/\u0026lt;package name\u0026gt;/yt_dlp_plugins/\u003c/code\u003e\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003e~/.yt-dlp/plugins/\u0026lt;package name\u0026gt;/yt_dlp_plugins/\u003c/code\u003e\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003e~/yt-dlp-plugins/\u0026lt;package name\u0026gt;/yt_dlp_plugins/\u003c/code\u003e\u003c/li\u003e\n\u003c/ul\u003e\n\u003c/li\u003e\n\u003cli\u003e\u003cstrong\u003eSystem Plugins\u003c/strong\u003e\n\u003cul dir=\"auto\"\u003e\n\u003cli\u003e\u003ccode\u003e/etc/yt-dlp/plugins/\u0026lt;package name\u0026gt;/yt_dlp_plugins/\u003c/code\u003e\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003e/etc/yt-dlp-plugins/\u0026lt;package name\u0026gt;/yt_dlp_plugins/\u003c/code\u003e\u003c/li\u003e\n\u003c/ul\u003e\n\u003c/li\u003e\n\u003c/ul\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp dir=\"auto\"\u003e\u003cstrong\u003eExecutable location\u003c/strong\u003e: Plugin packages can similarly be installed in a \u003ccode\u003eyt-dlp-plugins\u003c/code\u003e directory under the executable location (recommended for portable installations):\u003c/p\u003e\n\u003cul dir=\"auto\"\u003e\n\u003cli\u003eBinary: where \u003ccode\u003e\u0026lt;root-dir\u0026gt;/yt-dlp.exe\u003c/code\u003e, \u003ccode\u003e\u0026lt;root-dir\u0026gt;/yt-dlp-plugins/\u0026lt;package name\u0026gt;/yt_dlp_plugins/\u003c/code\u003e\u003c/li\u003e\n\u003cli\u003eSource: where \u003ccode\u003e\u0026lt;root-dir\u0026gt;/yt_dlp/__main__.py\u003c/code\u003e, \u003ccode\u003e\u0026lt;root-dir\u0026gt;/yt-dlp-plugins/\u0026lt;package name\u0026gt;/yt_dlp_plugins/\u003c/code\u003e\u003c/li\u003e\n\u003c/ul\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp dir=\"auto\"\u003e\u003cstrong\u003epip and other locations in \u003ccode\u003ePYTHONPATH\u003c/code\u003e\u003c/strong\u003e\u003c/p\u003e\n\u003cul dir=\"auto\"\u003e\n\u003cli\u003ePlugin packages can be installed and managed using \u003ccode\u003epip\u003c/code\u003e. See \u003ca href=\"https://github.com/yt-dlp/yt-dlp-sample-plugins\"\u003eyt-dlp-sample-plugins\u003c/a\u003e for an example.\n\u003cul dir=\"auto\"\u003e\n\u003cli\u003eNote: plugin files between plugin packages installed with pip must have unique filenames.\u003c/li\u003e\n\u003c/ul\u003e\n\u003c/li\u003e\n\u003cli\u003eAny path in \u003ccode\u003ePYTHONPATH\u003c/code\u003e is searched in for the \u003ccode\u003eyt_dlp_plugins\u003c/code\u003e namespace folder.\n\u003cul dir=\"auto\"\u003e\n\u003cli\u003eNote: This does not apply for Pyinstaller builds.\u003c/li\u003e\n\u003c/ul\u003e\n\u003c/li\u003e\n\u003c/ul\u003e\n\u003c/li\u003e\n\u003c/ol\u003e\n\u003cp dir=\"auto\"\u003e\u003ccode\u003e.zip\u003c/code\u003e, \u003ccode\u003e.egg\u003c/code\u003e and \u003ccode\u003e.whl\u003c/code\u003e archives containing a \u003ccode\u003eyt_dlp_plugins\u003c/code\u003e namespace folder in their root are also supported as plugin packages.\u003c/p\u003e\n\u003cul dir=\"auto\"\u003e\n\u003cli\u003ee.g. \u003ccode\u003e${XDG_CONFIG_HOME}/yt-dlp/plugins/mypluginpkg.zip\u003c/code\u003e where \u003ccode\u003emypluginpkg.zip\u003c/code\u003e contains \u003ccode\u003eyt_dlp_plugins/\u0026lt;type\u0026gt;/myplugin.py\u003c/code\u003e\u003c/li\u003e\n\u003c/ul\u003e\n\u003cp dir=\"auto\"\u003eRun yt-dlp with \u003ccode\u003e--verbose\u003c/code\u003e to check if the plugin has been loaded.\u003c/p\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch2 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eDeveloping Plugins\u003c/h2\u003e\u003ca id=\"user-content-developing-plugins\" class=\"anchor\" aria-label=\"Permalink: Developing Plugins\" href=\"#developing-plugins\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cp dir=\"auto\"\u003eSee the \u003ca href=\"https://github.com/yt-dlp/yt-dlp-sample-plugins\"\u003eyt-dlp-sample-plugins\u003c/a\u003e repo for a template plugin package and the \u003ca href=\"https://github.com/yt-dlp/yt-dlp/wiki/Plugin-Development\"\u003ePlugin Development\u003c/a\u003e section of the wiki for a plugin development guide.\u003c/p\u003e\n\u003cp dir=\"auto\"\u003eAll public classes with a name ending in \u003ccode\u003eIE\u003c/code\u003e/\u003ccode\u003ePP\u003c/code\u003e are imported from each file for extractors and postprocessors respectively. This respects underscore prefix (e.g. \u003ccode\u003e_MyBasePluginIE\u003c/code\u003e is private) and \u003ccode\u003e__all__\u003c/code\u003e. Modules can similarly be excluded by prefixing the module name with an underscore (e.g. \u003ccode\u003e_myplugin.py\u003c/code\u003e).\u003c/p\u003e\n\u003cp dir=\"auto\"\u003eTo replace an existing extractor with a subclass of one, set the \u003ccode\u003eplugin_name\u003c/code\u003e class keyword argument (e.g. \u003ccode\u003eclass MyPluginIE(ABuiltInIE, plugin_name='myplugin')\u003c/code\u003e will replace \u003ccode\u003eABuiltInIE\u003c/code\u003e with \u003ccode\u003eMyPluginIE\u003c/code\u003e). Since the extractor replaces the parent, you should exclude the subclass extractor from being imported separately by making it private using one of the methods described above.\u003c/p\u003e\n\u003cp dir=\"auto\"\u003eIf you are a plugin author, add \u003ca href=\"https://github.com/topics/yt-dlp-plugins\"\u003eyt-dlp-plugins\u003c/a\u003e as a topic to your repository for discoverability.\u003c/p\u003e\n\u003cp dir=\"auto\"\u003eSee the \u003ca href=\"https://github.com/yt-dlp/yt-dlp/blob/master/CONTRIBUTING.md#developer-instructions\"\u003eDeveloper Instructions\u003c/a\u003e on how to write and test an extractor.\u003c/p\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch1 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eEMBEDDING YT-DLP\u003c/h1\u003e\u003ca id=\"user-content-embedding-yt-dlp\" class=\"anchor\" aria-label=\"Permalink: EMBEDDING YT-DLP\" href=\"#embedding-yt-dlp\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cp dir=\"auto\"\u003eyt-dlp makes the best effort to be a good command-line program, and thus should be callable from any programming language.\u003c/p\u003e\n\u003cp dir=\"auto\"\u003eYour program should avoid parsing the normal stdout since they may change in future versions. Instead, they should use options such as \u003ccode\u003e-J\u003c/code\u003e, \u003ccode\u003e--print\u003c/code\u003e, \u003ccode\u003e--progress-template\u003c/code\u003e, \u003ccode\u003e--exec\u003c/code\u003e etc to create console output that you can reliably reproduce and parse.\u003c/p\u003e\n\u003cp dir=\"auto\"\u003eFrom a Python program, you can embed yt-dlp in a more powerful fashion, like this:\u003c/p\u003e\n\u003cdiv class=\"highlight highlight-source-python notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"from yt_dlp import YoutubeDL\n\nURLS = ['https://www.youtube.com/watch?v=BaW_jenozKc']\nwith YoutubeDL() as ydl:\n ydl.download(URLS)\"\u003e\u003cpre\u003e\u003cspan class=\"pl-k\"\u003efrom\u003c/span\u003e \u003cspan class=\"pl-s1\"\u003eyt_dlp\u003c/span\u003e \u003cspan class=\"pl-k\"\u003eimport\u003c/span\u003e \u003cspan class=\"pl-v\"\u003eYoutubeDL\u003c/span\u003e\n\n\u003cspan class=\"pl-c1\"\u003eURLS\u003c/span\u003e \u003cspan class=\"pl-c1\"\u003e=\u003c/span\u003e [\u003cspan class=\"pl-s\"\u003e'https://www.youtube.com/watch?v=BaW_jenozKc'\u003c/span\u003e]\n\u003cspan class=\"pl-k\"\u003ewith\u003c/span\u003e \u003cspan class=\"pl-en\"\u003eYoutubeDL\u003c/span\u003e() \u003cspan class=\"pl-k\"\u003eas\u003c/span\u003e \u003cspan class=\"pl-s1\"\u003eydl\u003c/span\u003e:\n \u003cspan class=\"pl-s1\"\u003eydl\u003c/span\u003e.\u003cspan class=\"pl-c1\"\u003edownload\u003c/span\u003e(\u003cspan class=\"pl-c1\"\u003eURLS\u003c/span\u003e)\u003c/pre\u003e\u003c/div\u003e\n\u003cp dir=\"auto\"\u003eMost likely, you'll want to use various options. For a list of options available, have a look at \u003ca href=\"/yt-dlp/yt-dlp/blob/master/yt_dlp/YoutubeDL.py#L183\"\u003e\u003ccode\u003eyt_dlp/YoutubeDL.py\u003c/code\u003e\u003c/a\u003e or \u003ccode\u003ehelp(yt_dlp.YoutubeDL)\u003c/code\u003e in a Python shell. If you are already familiar with the CLI, you can use \u003ca href=\"https://github.com/yt-dlp/yt-dlp/blob/master/devscripts/cli_to_api.py\"\u003e\u003ccode\u003edevscripts/cli_to_api.py\u003c/code\u003e\u003c/a\u003e to translate any CLI switches to \u003ccode\u003eYoutubeDL\u003c/code\u003e params.\u003c/p\u003e\n\u003cp dir=\"auto\"\u003e\u003cstrong\u003eTip\u003c/strong\u003e: If you are porting your code from youtube-dl to yt-dlp, one important point to look out for is that we do not guarantee the return value of \u003ccode\u003eYoutubeDL.extract_info\u003c/code\u003e to be json serializable, or even be a dictionary. It will be dictionary-like, but if you want to ensure it is a serializable dictionary, pass it through \u003ccode\u003eYoutubeDL.sanitize_info\u003c/code\u003e as shown in the \u003ca href=\"#extracting-information\"\u003eexample below\u003c/a\u003e\u003c/p\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch2 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eEmbedding examples\u003c/h2\u003e\u003ca id=\"user-content-embedding-examples\" class=\"anchor\" aria-label=\"Permalink: Embedding examples\" href=\"#embedding-examples\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch4 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eExtracting information\u003c/h4\u003e\u003ca id=\"user-content-extracting-information\" class=\"anchor\" aria-label=\"Permalink: Extracting information\" href=\"#extracting-information\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cdiv class=\"highlight highlight-source-python notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"import json\nimport yt_dlp\n\nURL = 'https://www.youtube.com/watch?v=BaW_jenozKc'\n\n# ℹ️ See help(yt_dlp.YoutubeDL) for a list of available options and public functions\nydl_opts = {}\nwith yt_dlp.YoutubeDL(ydl_opts) as ydl:\n info = ydl.extract_info(URL, download=False)\n\n # ℹ️ ydl.sanitize_info makes the info json-serializable\n print(json.dumps(ydl.sanitize_info(info)))\"\u003e\u003cpre\u003e\u003cspan class=\"pl-k\"\u003eimport\u003c/span\u003e \u003cspan class=\"pl-s1\"\u003ejson\u003c/span\u003e\n\u003cspan class=\"pl-k\"\u003eimport\u003c/span\u003e \u003cspan class=\"pl-s1\"\u003eyt_dlp\u003c/span\u003e\n\n\u003cspan class=\"pl-c1\"\u003eURL\u003c/span\u003e \u003cspan class=\"pl-c1\"\u003e=\u003c/span\u003e \u003cspan class=\"pl-s\"\u003e'https://www.youtube.com/watch?v=BaW_jenozKc'\u003c/span\u003e\n\n\u003cspan class=\"pl-c\"\u003e# ℹ️ See help(yt_dlp.YoutubeDL) for a list of available options and public functions\u003c/span\u003e\n\u003cspan class=\"pl-s1\"\u003eydl_opts\u003c/span\u003e \u003cspan class=\"pl-c1\"\u003e=\u003c/span\u003e {}\n\u003cspan class=\"pl-k\"\u003ewith\u003c/span\u003e \u003cspan class=\"pl-s1\"\u003eyt_dlp\u003c/span\u003e.\u003cspan class=\"pl-c1\"\u003eYoutubeDL\u003c/span\u003e(\u003cspan class=\"pl-s1\"\u003eydl_opts\u003c/span\u003e) \u003cspan class=\"pl-k\"\u003eas\u003c/span\u003e \u003cspan class=\"pl-s1\"\u003eydl\u003c/span\u003e:\n \u003cspan class=\"pl-s1\"\u003einfo\u003c/span\u003e \u003cspan class=\"pl-c1\"\u003e=\u003c/span\u003e \u003cspan class=\"pl-s1\"\u003eydl\u003c/span\u003e.\u003cspan class=\"pl-c1\"\u003eextract_info\u003c/span\u003e(\u003cspan class=\"pl-c1\"\u003eURL\u003c/span\u003e, \u003cspan class=\"pl-s1\"\u003edownload\u003c/span\u003e\u003cspan class=\"pl-c1\"\u003e=\u003c/span\u003e\u003cspan class=\"pl-c1\"\u003eFalse\u003c/span\u003e)\n\n \u003cspan class=\"pl-c\"\u003e# ℹ️ ydl.sanitize_info makes the info json-serializable\u003c/span\u003e\n \u003cspan class=\"pl-en\"\u003eprint\u003c/span\u003e(\u003cspan class=\"pl-s1\"\u003ejson\u003c/span\u003e.\u003cspan class=\"pl-c1\"\u003edumps\u003c/span\u003e(\u003cspan class=\"pl-s1\"\u003eydl\u003c/span\u003e.\u003cspan class=\"pl-c1\"\u003esanitize_info\u003c/span\u003e(\u003cspan class=\"pl-s1\"\u003einfo\u003c/span\u003e)))\u003c/pre\u003e\u003c/div\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch4 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eDownload using an info-json\u003c/h4\u003e\u003ca id=\"user-content-download-using-an-info-json\" class=\"anchor\" aria-label=\"Permalink: Download using an info-json\" href=\"#download-using-an-info-json\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cdiv class=\"highlight highlight-source-python notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"import yt_dlp\n\nINFO_FILE = 'path/to/video.info.json'\n\nwith yt_dlp.YoutubeDL() as ydl:\n error_code = ydl.download_with_info_file(INFO_FILE)\n\nprint('Some videos failed to download' if error_code\n else 'All videos successfully downloaded')\"\u003e\u003cpre\u003e\u003cspan class=\"pl-k\"\u003eimport\u003c/span\u003e \u003cspan class=\"pl-s1\"\u003eyt_dlp\u003c/span\u003e\n\n\u003cspan class=\"pl-c1\"\u003eINFO_FILE\u003c/span\u003e \u003cspan class=\"pl-c1\"\u003e=\u003c/span\u003e \u003cspan class=\"pl-s\"\u003e'path/to/video.info.json'\u003c/span\u003e\n\n\u003cspan class=\"pl-k\"\u003ewith\u003c/span\u003e \u003cspan class=\"pl-s1\"\u003eyt_dlp\u003c/span\u003e.\u003cspan class=\"pl-c1\"\u003eYoutubeDL\u003c/span\u003e() \u003cspan class=\"pl-k\"\u003eas\u003c/span\u003e \u003cspan class=\"pl-s1\"\u003eydl\u003c/span\u003e:\n \u003cspan class=\"pl-s1\"\u003eerror_code\u003c/span\u003e \u003cspan class=\"pl-c1\"\u003e=\u003c/span\u003e \u003cspan class=\"pl-s1\"\u003eydl\u003c/span\u003e.\u003cspan class=\"pl-c1\"\u003edownload_with_info_file\u003c/span\u003e(\u003cspan class=\"pl-c1\"\u003eINFO_FILE\u003c/span\u003e)\n\n\u003cspan class=\"pl-en\"\u003eprint\u003c/span\u003e(\u003cspan class=\"pl-s\"\u003e'Some videos failed to download'\u003c/span\u003e \u003cspan class=\"pl-k\"\u003eif\u003c/span\u003e \u003cspan class=\"pl-s1\"\u003eerror_code\u003c/span\u003e\n \u003cspan class=\"pl-k\"\u003eelse\u003c/span\u003e \u003cspan class=\"pl-s\"\u003e'All videos successfully downloaded'\u003c/span\u003e)\u003c/pre\u003e\u003c/div\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch4 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eExtract audio\u003c/h4\u003e\u003ca id=\"user-content-extract-audio\" class=\"anchor\" aria-label=\"Permalink: Extract audio\" href=\"#extract-audio\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cdiv class=\"highlight highlight-source-python notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"import yt_dlp\n\nURLS = ['https://www.youtube.com/watch?v=BaW_jenozKc']\n\nydl_opts = {\n 'format': 'm4a/bestaudio/best',\n # ℹ️ See help(yt_dlp.postprocessor) for a list of available Postprocessors and their arguments\n 'postprocessors': [{ # Extract audio using ffmpeg\n 'key': 'FFmpegExtractAudio',\n 'preferredcodec': 'm4a',\n }]\n}\n\nwith yt_dlp.YoutubeDL(ydl_opts) as ydl:\n error_code = ydl.download(URLS)\"\u003e\u003cpre\u003e\u003cspan class=\"pl-k\"\u003eimport\u003c/span\u003e \u003cspan class=\"pl-s1\"\u003eyt_dlp\u003c/span\u003e\n\n\u003cspan class=\"pl-c1\"\u003eURLS\u003c/span\u003e \u003cspan class=\"pl-c1\"\u003e=\u003c/span\u003e [\u003cspan class=\"pl-s\"\u003e'https://www.youtube.com/watch?v=BaW_jenozKc'\u003c/span\u003e]\n\n\u003cspan class=\"pl-s1\"\u003eydl_opts\u003c/span\u003e \u003cspan class=\"pl-c1\"\u003e=\u003c/span\u003e {\n \u003cspan class=\"pl-s\"\u003e'format'\u003c/span\u003e: \u003cspan class=\"pl-s\"\u003e'm4a/bestaudio/best'\u003c/span\u003e,\n \u003cspan class=\"pl-c\"\u003e# ℹ️ See help(yt_dlp.postprocessor) for a list of available Postprocessors and their arguments\u003c/span\u003e\n \u003cspan class=\"pl-s\"\u003e'postprocessors'\u003c/span\u003e: [{ \u003cspan class=\"pl-c\"\u003e# Extract audio using ffmpeg\u003c/span\u003e\n \u003cspan class=\"pl-s\"\u003e'key'\u003c/span\u003e: \u003cspan class=\"pl-s\"\u003e'FFmpegExtractAudio'\u003c/span\u003e,\n \u003cspan class=\"pl-s\"\u003e'preferredcodec'\u003c/span\u003e: \u003cspan class=\"pl-s\"\u003e'm4a'\u003c/span\u003e,\n }]\n}\n\n\u003cspan class=\"pl-k\"\u003ewith\u003c/span\u003e \u003cspan class=\"pl-s1\"\u003eyt_dlp\u003c/span\u003e.\u003cspan class=\"pl-c1\"\u003eYoutubeDL\u003c/span\u003e(\u003cspan class=\"pl-s1\"\u003eydl_opts\u003c/span\u003e) \u003cspan class=\"pl-k\"\u003eas\u003c/span\u003e \u003cspan class=\"pl-s1\"\u003eydl\u003c/span\u003e:\n \u003cspan class=\"pl-s1\"\u003eerror_code\u003c/span\u003e \u003cspan class=\"pl-c1\"\u003e=\u003c/span\u003e \u003cspan class=\"pl-s1\"\u003eydl\u003c/span\u003e.\u003cspan class=\"pl-c1\"\u003edownload\u003c/span\u003e(\u003cspan class=\"pl-c1\"\u003eURLS\u003c/span\u003e)\u003c/pre\u003e\u003c/div\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch4 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eFilter videos\u003c/h4\u003e\u003ca id=\"user-content-filter-videos\" class=\"anchor\" aria-label=\"Permalink: Filter videos\" href=\"#filter-videos\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cdiv class=\"highlight highlight-source-python notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"import yt_dlp\n\nURLS = ['https://www.youtube.com/watch?v=BaW_jenozKc']\n\ndef longer_than_a_minute(info, *, incomplete):\n \u0026quot;\u0026quot;\u0026quot;Download only videos longer than a minute (or with unknown duration)\u0026quot;\u0026quot;\u0026quot;\n duration = info.get('duration')\n if duration and duration \u0026lt; 60:\n return 'The video is too short'\n\nydl_opts = {\n 'match_filter': longer_than_a_minute,\n}\n\nwith yt_dlp.YoutubeDL(ydl_opts) as ydl:\n error_code = ydl.download(URLS)\"\u003e\u003cpre\u003e\u003cspan class=\"pl-k\"\u003eimport\u003c/span\u003e \u003cspan class=\"pl-s1\"\u003eyt_dlp\u003c/span\u003e\n\n\u003cspan class=\"pl-c1\"\u003eURLS\u003c/span\u003e \u003cspan class=\"pl-c1\"\u003e=\u003c/span\u003e [\u003cspan class=\"pl-s\"\u003e'https://www.youtube.com/watch?v=BaW_jenozKc'\u003c/span\u003e]\n\n\u003cspan class=\"pl-k\"\u003edef\u003c/span\u003e \u003cspan class=\"pl-en\"\u003elonger_than_a_minute\u003c/span\u003e(\u003cspan class=\"pl-s1\"\u003einfo\u003c/span\u003e, \u003cspan class=\"pl-c1\"\u003e*\u003c/span\u003e, \u003cspan class=\"pl-s1\"\u003eincomplete\u003c/span\u003e):\n \u003cspan class=\"pl-s\"\u003e\"\"\"Download only videos longer than a minute (or with unknown duration)\"\"\"\u003c/span\u003e\n \u003cspan class=\"pl-s1\"\u003eduration\u003c/span\u003e \u003cspan class=\"pl-c1\"\u003e=\u003c/span\u003e \u003cspan class=\"pl-s1\"\u003einfo\u003c/span\u003e.\u003cspan class=\"pl-c1\"\u003eget\u003c/span\u003e(\u003cspan class=\"pl-s\"\u003e'duration'\u003c/span\u003e)\n \u003cspan class=\"pl-k\"\u003eif\u003c/span\u003e \u003cspan class=\"pl-s1\"\u003eduration\u003c/span\u003e \u003cspan class=\"pl-c1\"\u003eand\u003c/span\u003e \u003cspan class=\"pl-s1\"\u003eduration\u003c/span\u003e \u003cspan class=\"pl-c1\"\u003e\u0026lt;\u003c/span\u003e \u003cspan class=\"pl-c1\"\u003e60\u003c/span\u003e:\n \u003cspan class=\"pl-k\"\u003ereturn\u003c/span\u003e \u003cspan class=\"pl-s\"\u003e'The video is too short'\u003c/span\u003e\n\n\u003cspan class=\"pl-s1\"\u003eydl_opts\u003c/span\u003e \u003cspan class=\"pl-c1\"\u003e=\u003c/span\u003e {\n \u003cspan class=\"pl-s\"\u003e'match_filter'\u003c/span\u003e: \u003cspan class=\"pl-s1\"\u003elonger_than_a_minute\u003c/span\u003e,\n}\n\n\u003cspan class=\"pl-k\"\u003ewith\u003c/span\u003e \u003cspan class=\"pl-s1\"\u003eyt_dlp\u003c/span\u003e.\u003cspan class=\"pl-c1\"\u003eYoutubeDL\u003c/span\u003e(\u003cspan class=\"pl-s1\"\u003eydl_opts\u003c/span\u003e) \u003cspan class=\"pl-k\"\u003eas\u003c/span\u003e \u003cspan class=\"pl-s1\"\u003eydl\u003c/span\u003e:\n \u003cspan class=\"pl-s1\"\u003eerror_code\u003c/span\u003e \u003cspan class=\"pl-c1\"\u003e=\u003c/span\u003e \u003cspan class=\"pl-s1\"\u003eydl\u003c/span\u003e.\u003cspan class=\"pl-c1\"\u003edownload\u003c/span\u003e(\u003cspan class=\"pl-c1\"\u003eURLS\u003c/span\u003e)\u003c/pre\u003e\u003c/div\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch4 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eAdding logger and progress hook\u003c/h4\u003e\u003ca id=\"user-content-adding-logger-and-progress-hook\" class=\"anchor\" aria-label=\"Permalink: Adding logger and progress hook\" href=\"#adding-logger-and-progress-hook\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cdiv class=\"highlight highlight-source-python notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"import yt_dlp\n\nURLS = ['https://www.youtube.com/watch?v=BaW_jenozKc']\n\nclass MyLogger:\n def debug(self, msg):\n # For compatibility with youtube-dl, both debug and info are passed into debug\n # You can distinguish them by the prefix '[debug] '\n if msg.startswith('[debug] '):\n pass\n else:\n self.info(msg)\n\n def info(self, msg):\n pass\n\n def warning(self, msg):\n pass\n\n def error(self, msg):\n print(msg)\n\n\n# ℹ️ See \u0026quot;progress_hooks\u0026quot; in help(yt_dlp.YoutubeDL)\ndef my_hook(d):\n if d['status'] == 'finished':\n print('Done downloading, now post-processing ...')\n\n\nydl_opts = {\n 'logger': MyLogger(),\n 'progress_hooks': [my_hook],\n}\n\nwith yt_dlp.YoutubeDL(ydl_opts) as ydl:\n ydl.download(URLS)\"\u003e\u003cpre\u003e\u003cspan class=\"pl-k\"\u003eimport\u003c/span\u003e \u003cspan class=\"pl-s1\"\u003eyt_dlp\u003c/span\u003e\n\n\u003cspan class=\"pl-c1\"\u003eURLS\u003c/span\u003e \u003cspan class=\"pl-c1\"\u003e=\u003c/span\u003e [\u003cspan class=\"pl-s\"\u003e'https://www.youtube.com/watch?v=BaW_jenozKc'\u003c/span\u003e]\n\n\u003cspan class=\"pl-k\"\u003eclass\u003c/span\u003e \u003cspan class=\"pl-v\"\u003eMyLogger\u003c/span\u003e:\n \u003cspan class=\"pl-k\"\u003edef\u003c/span\u003e \u003cspan class=\"pl-en\"\u003edebug\u003c/span\u003e(\u003cspan class=\"pl-s1\"\u003eself\u003c/span\u003e, \u003cspan class=\"pl-s1\"\u003emsg\u003c/span\u003e):\n \u003cspan class=\"pl-c\"\u003e# For compatibility with youtube-dl, both debug and info are passed into debug\u003c/span\u003e\n \u003cspan class=\"pl-c\"\u003e# You can distinguish them by the prefix '[debug] '\u003c/span\u003e\n \u003cspan class=\"pl-k\"\u003eif\u003c/span\u003e \u003cspan class=\"pl-s1\"\u003emsg\u003c/span\u003e.\u003cspan class=\"pl-c1\"\u003estartswith\u003c/span\u003e(\u003cspan class=\"pl-s\"\u003e'[debug] '\u003c/span\u003e):\n \u003cspan class=\"pl-k\"\u003epass\u003c/span\u003e\n \u003cspan class=\"pl-k\"\u003eelse\u003c/span\u003e:\n \u003cspan class=\"pl-s1\"\u003eself\u003c/span\u003e.\u003cspan class=\"pl-c1\"\u003einfo\u003c/span\u003e(\u003cspan class=\"pl-s1\"\u003emsg\u003c/span\u003e)\n\n \u003cspan class=\"pl-k\"\u003edef\u003c/span\u003e \u003cspan class=\"pl-en\"\u003einfo\u003c/span\u003e(\u003cspan class=\"pl-s1\"\u003eself\u003c/span\u003e, \u003cspan class=\"pl-s1\"\u003emsg\u003c/span\u003e):\n \u003cspan class=\"pl-k\"\u003epass\u003c/span\u003e\n\n \u003cspan class=\"pl-k\"\u003edef\u003c/span\u003e \u003cspan class=\"pl-en\"\u003ewarning\u003c/span\u003e(\u003cspan class=\"pl-s1\"\u003eself\u003c/span\u003e, \u003cspan class=\"pl-s1\"\u003emsg\u003c/span\u003e):\n \u003cspan class=\"pl-k\"\u003epass\u003c/span\u003e\n\n \u003cspan class=\"pl-k\"\u003edef\u003c/span\u003e \u003cspan class=\"pl-en\"\u003eerror\u003c/span\u003e(\u003cspan class=\"pl-s1\"\u003eself\u003c/span\u003e, \u003cspan class=\"pl-s1\"\u003emsg\u003c/span\u003e):\n \u003cspan class=\"pl-en\"\u003eprint\u003c/span\u003e(\u003cspan class=\"pl-s1\"\u003emsg\u003c/span\u003e)\n\n\n\u003cspan class=\"pl-c\"\u003e# ℹ️ See \"progress_hooks\" in help(yt_dlp.YoutubeDL)\u003c/span\u003e\n\u003cspan class=\"pl-k\"\u003edef\u003c/span\u003e \u003cspan class=\"pl-en\"\u003emy_hook\u003c/span\u003e(\u003cspan class=\"pl-s1\"\u003ed\u003c/span\u003e):\n \u003cspan class=\"pl-k\"\u003eif\u003c/span\u003e \u003cspan class=\"pl-s1\"\u003ed\u003c/span\u003e[\u003cspan class=\"pl-s\"\u003e'status'\u003c/span\u003e] \u003cspan class=\"pl-c1\"\u003e==\u003c/span\u003e \u003cspan class=\"pl-s\"\u003e'finished'\u003c/span\u003e:\n \u003cspan class=\"pl-en\"\u003eprint\u003c/span\u003e(\u003cspan class=\"pl-s\"\u003e'Done downloading, now post-processing ...'\u003c/span\u003e)\n\n\n\u003cspan class=\"pl-s1\"\u003eydl_opts\u003c/span\u003e \u003cspan class=\"pl-c1\"\u003e=\u003c/span\u003e {\n \u003cspan class=\"pl-s\"\u003e'logger'\u003c/span\u003e: \u003cspan class=\"pl-en\"\u003eMyLogger\u003c/span\u003e(),\n \u003cspan class=\"pl-s\"\u003e'progress_hooks'\u003c/span\u003e: [\u003cspan class=\"pl-s1\"\u003emy_hook\u003c/span\u003e],\n}\n\n\u003cspan class=\"pl-k\"\u003ewith\u003c/span\u003e \u003cspan class=\"pl-s1\"\u003eyt_dlp\u003c/span\u003e.\u003cspan class=\"pl-c1\"\u003eYoutubeDL\u003c/span\u003e(\u003cspan class=\"pl-s1\"\u003eydl_opts\u003c/span\u003e) \u003cspan class=\"pl-k\"\u003eas\u003c/span\u003e \u003cspan class=\"pl-s1\"\u003eydl\u003c/span\u003e:\n \u003cspan class=\"pl-s1\"\u003eydl\u003c/span\u003e.\u003cspan class=\"pl-c1\"\u003edownload\u003c/span\u003e(\u003cspan class=\"pl-c1\"\u003eURLS\u003c/span\u003e)\u003c/pre\u003e\u003c/div\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch4 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eAdd a custom PostProcessor\u003c/h4\u003e\u003ca id=\"user-content-add-a-custom-postprocessor\" class=\"anchor\" aria-label=\"Permalink: Add a custom PostProcessor\" href=\"#add-a-custom-postprocessor\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cdiv class=\"highlight highlight-source-python notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"import yt_dlp\n\nURLS = ['https://www.youtube.com/watch?v=BaW_jenozKc']\n\n# ℹ️ See help(yt_dlp.postprocessor.PostProcessor)\nclass MyCustomPP(yt_dlp.postprocessor.PostProcessor):\n def run(self, info):\n self.to_screen('Doing stuff')\n return [], info\n\n\nwith yt_dlp.YoutubeDL() as ydl:\n # ℹ️ \u0026quot;when\u0026quot; can take any value in yt_dlp.utils.POSTPROCESS_WHEN\n ydl.add_post_processor(MyCustomPP(), when='pre_process')\n ydl.download(URLS)\"\u003e\u003cpre\u003e\u003cspan class=\"pl-k\"\u003eimport\u003c/span\u003e \u003cspan class=\"pl-s1\"\u003eyt_dlp\u003c/span\u003e\n\n\u003cspan class=\"pl-c1\"\u003eURLS\u003c/span\u003e \u003cspan class=\"pl-c1\"\u003e=\u003c/span\u003e [\u003cspan class=\"pl-s\"\u003e'https://www.youtube.com/watch?v=BaW_jenozKc'\u003c/span\u003e]\n\n\u003cspan class=\"pl-c\"\u003e# ℹ️ See help(yt_dlp.postprocessor.PostProcessor)\u003c/span\u003e\n\u003cspan class=\"pl-k\"\u003eclass\u003c/span\u003e \u003cspan class=\"pl-v\"\u003eMyCustomPP\u003c/span\u003e(\u003cspan class=\"pl-s1\"\u003eyt_dlp\u003c/span\u003e.\u003cspan class=\"pl-c1\"\u003epostprocessor\u003c/span\u003e.\u003cspan class=\"pl-c1\"\u003ePostProcessor\u003c/span\u003e):\n \u003cspan class=\"pl-k\"\u003edef\u003c/span\u003e \u003cspan class=\"pl-en\"\u003erun\u003c/span\u003e(\u003cspan class=\"pl-s1\"\u003eself\u003c/span\u003e, \u003cspan class=\"pl-s1\"\u003einfo\u003c/span\u003e):\n \u003cspan class=\"pl-s1\"\u003eself\u003c/span\u003e.\u003cspan class=\"pl-c1\"\u003eto_screen\u003c/span\u003e(\u003cspan class=\"pl-s\"\u003e'Doing stuff'\u003c/span\u003e)\n \u003cspan class=\"pl-k\"\u003ereturn\u003c/span\u003e [], \u003cspan class=\"pl-s1\"\u003einfo\u003c/span\u003e\n\n\n\u003cspan class=\"pl-k\"\u003ewith\u003c/span\u003e \u003cspan class=\"pl-s1\"\u003eyt_dlp\u003c/span\u003e.\u003cspan class=\"pl-c1\"\u003eYoutubeDL\u003c/span\u003e() \u003cspan class=\"pl-k\"\u003eas\u003c/span\u003e \u003cspan class=\"pl-s1\"\u003eydl\u003c/span\u003e:\n \u003cspan class=\"pl-c\"\u003e# ℹ️ \"when\" can take any value in yt_dlp.utils.POSTPROCESS_WHEN\u003c/span\u003e\n \u003cspan class=\"pl-s1\"\u003eydl\u003c/span\u003e.\u003cspan class=\"pl-c1\"\u003eadd_post_processor\u003c/span\u003e(\u003cspan class=\"pl-en\"\u003eMyCustomPP\u003c/span\u003e(), \u003cspan class=\"pl-s1\"\u003ewhen\u003c/span\u003e\u003cspan class=\"pl-c1\"\u003e=\u003c/span\u003e\u003cspan class=\"pl-s\"\u003e'pre_process'\u003c/span\u003e)\n \u003cspan class=\"pl-s1\"\u003eydl\u003c/span\u003e.\u003cspan class=\"pl-c1\"\u003edownload\u003c/span\u003e(\u003cspan class=\"pl-c1\"\u003eURLS\u003c/span\u003e)\u003c/pre\u003e\u003c/div\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch4 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eUse a custom format selector\u003c/h4\u003e\u003ca id=\"user-content-use-a-custom-format-selector\" class=\"anchor\" aria-label=\"Permalink: Use a custom format selector\" href=\"#use-a-custom-format-selector\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cdiv class=\"highlight highlight-source-python notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"import yt_dlp\n\nURLS = ['https://www.youtube.com/watch?v=BaW_jenozKc']\n\ndef format_selector(ctx):\n \u0026quot;\u0026quot;\u0026quot; Select the best video and the best audio that won't result in an mkv.\n NOTE: This is just an example and does not handle all cases \u0026quot;\u0026quot;\u0026quot;\n\n # formats are already sorted worst to best\n formats = ctx.get('formats')[::-1]\n\n # acodec='none' means there is no audio\n best_video = next(f for f in formats\n if f['vcodec'] != 'none' and f['acodec'] == 'none')\n\n # find compatible audio extension\n audio_ext = {'mp4': 'm4a', 'webm': 'webm'}[best_video['ext']]\n # vcodec='none' means there is no video\n best_audio = next(f for f in formats if (\n f['acodec'] != 'none' and f['vcodec'] == 'none' and f['ext'] == audio_ext))\n\n # These are the minimum required fields for a merged format\n yield {\n 'format_id': f'{best_video[\u0026quot;format_id\u0026quot;]}+{best_audio[\u0026quot;format_id\u0026quot;]}',\n 'ext': best_video['ext'],\n 'requested_formats': [best_video, best_audio],\n # Must be + separated list of protocols\n 'protocol': f'{best_video[\u0026quot;protocol\u0026quot;]}+{best_audio[\u0026quot;protocol\u0026quot;]}'\n }\n\n\nydl_opts = {\n 'format': format_selector,\n}\n\nwith yt_dlp.YoutubeDL(ydl_opts) as ydl:\n ydl.download(URLS)\"\u003e\u003cpre\u003e\u003cspan class=\"pl-k\"\u003eimport\u003c/span\u003e \u003cspan class=\"pl-s1\"\u003eyt_dlp\u003c/span\u003e\n\n\u003cspan class=\"pl-c1\"\u003eURLS\u003c/span\u003e \u003cspan class=\"pl-c1\"\u003e=\u003c/span\u003e [\u003cspan class=\"pl-s\"\u003e'https://www.youtube.com/watch?v=BaW_jenozKc'\u003c/span\u003e]\n\n\u003cspan class=\"pl-k\"\u003edef\u003c/span\u003e \u003cspan class=\"pl-en\"\u003eformat_selector\u003c/span\u003e(\u003cspan class=\"pl-s1\"\u003ectx\u003c/span\u003e):\n \u003cspan class=\"pl-s\"\u003e\"\"\" Select the best video and the best audio that won't result in an mkv.\u003c/span\u003e\n\u003cspan class=\"pl-s\"\u003e NOTE: This is just an example and does not handle all cases \"\"\"\u003c/span\u003e\n\n \u003cspan class=\"pl-c\"\u003e# formats are already sorted worst to best\u003c/span\u003e\n \u003cspan class=\"pl-s1\"\u003eformats\u003c/span\u003e \u003cspan class=\"pl-c1\"\u003e=\u003c/span\u003e \u003cspan class=\"pl-s1\"\u003ectx\u003c/span\u003e.\u003cspan class=\"pl-c1\"\u003eget\u003c/span\u003e(\u003cspan class=\"pl-s\"\u003e'formats'\u003c/span\u003e)[::\u003cspan class=\"pl-c1\"\u003e-\u003c/span\u003e\u003cspan class=\"pl-c1\"\u003e1\u003c/span\u003e]\n\n \u003cspan class=\"pl-c\"\u003e# acodec='none' means there is no audio\u003c/span\u003e\n \u003cspan class=\"pl-s1\"\u003ebest_video\u003c/span\u003e \u003cspan class=\"pl-c1\"\u003e=\u003c/span\u003e \u003cspan class=\"pl-en\"\u003enext\u003c/span\u003e(\u003cspan class=\"pl-s1\"\u003ef\u003c/span\u003e \u003cspan class=\"pl-k\"\u003efor\u003c/span\u003e \u003cspan class=\"pl-s1\"\u003ef\u003c/span\u003e \u003cspan class=\"pl-c1\"\u003ein\u003c/span\u003e \u003cspan class=\"pl-s1\"\u003eformats\u003c/span\u003e\n \u003cspan class=\"pl-k\"\u003eif\u003c/span\u003e \u003cspan class=\"pl-s1\"\u003ef\u003c/span\u003e[\u003cspan class=\"pl-s\"\u003e'vcodec'\u003c/span\u003e] \u003cspan class=\"pl-c1\"\u003e!=\u003c/span\u003e \u003cspan class=\"pl-s\"\u003e'none'\u003c/span\u003e \u003cspan class=\"pl-c1\"\u003eand\u003c/span\u003e \u003cspan class=\"pl-s1\"\u003ef\u003c/span\u003e[\u003cspan class=\"pl-s\"\u003e'acodec'\u003c/span\u003e] \u003cspan class=\"pl-c1\"\u003e==\u003c/span\u003e \u003cspan class=\"pl-s\"\u003e'none'\u003c/span\u003e)\n\n \u003cspan class=\"pl-c\"\u003e# find compatible audio extension\u003c/span\u003e\n \u003cspan class=\"pl-s1\"\u003eaudio_ext\u003c/span\u003e \u003cspan class=\"pl-c1\"\u003e=\u003c/span\u003e {\u003cspan class=\"pl-s\"\u003e'mp4'\u003c/span\u003e: \u003cspan class=\"pl-s\"\u003e'm4a'\u003c/span\u003e, \u003cspan class=\"pl-s\"\u003e'webm'\u003c/span\u003e: \u003cspan class=\"pl-s\"\u003e'webm'\u003c/span\u003e}[\u003cspan class=\"pl-s1\"\u003ebest_video\u003c/span\u003e[\u003cspan class=\"pl-s\"\u003e'ext'\u003c/span\u003e]]\n \u003cspan class=\"pl-c\"\u003e# vcodec='none' means there is no video\u003c/span\u003e\n \u003cspan class=\"pl-s1\"\u003ebest_audio\u003c/span\u003e \u003cspan class=\"pl-c1\"\u003e=\u003c/span\u003e \u003cspan class=\"pl-en\"\u003enext\u003c/span\u003e(\u003cspan class=\"pl-s1\"\u003ef\u003c/span\u003e \u003cspan class=\"pl-k\"\u003efor\u003c/span\u003e \u003cspan class=\"pl-s1\"\u003ef\u003c/span\u003e \u003cspan class=\"pl-c1\"\u003ein\u003c/span\u003e \u003cspan class=\"pl-s1\"\u003eformats\u003c/span\u003e \u003cspan class=\"pl-k\"\u003eif\u003c/span\u003e (\n \u003cspan class=\"pl-s1\"\u003ef\u003c/span\u003e[\u003cspan class=\"pl-s\"\u003e'acodec'\u003c/span\u003e] \u003cspan class=\"pl-c1\"\u003e!=\u003c/span\u003e \u003cspan class=\"pl-s\"\u003e'none'\u003c/span\u003e \u003cspan class=\"pl-c1\"\u003eand\u003c/span\u003e \u003cspan class=\"pl-s1\"\u003ef\u003c/span\u003e[\u003cspan class=\"pl-s\"\u003e'vcodec'\u003c/span\u003e] \u003cspan class=\"pl-c1\"\u003e==\u003c/span\u003e \u003cspan class=\"pl-s\"\u003e'none'\u003c/span\u003e \u003cspan class=\"pl-c1\"\u003eand\u003c/span\u003e \u003cspan class=\"pl-s1\"\u003ef\u003c/span\u003e[\u003cspan class=\"pl-s\"\u003e'ext'\u003c/span\u003e] \u003cspan class=\"pl-c1\"\u003e==\u003c/span\u003e \u003cspan class=\"pl-s1\"\u003eaudio_ext\u003c/span\u003e))\n\n \u003cspan class=\"pl-c\"\u003e# These are the minimum required fields for a merged format\u003c/span\u003e\n \u003cspan class=\"pl-k\"\u003eyield\u003c/span\u003e {\n \u003cspan class=\"pl-s\"\u003e'format_id'\u003c/span\u003e: \u003cspan class=\"pl-s\"\u003ef'\u003cspan class=\"pl-s1\"\u003e\u003cspan class=\"pl-kos\"\u003e{\u003c/span\u003e\u003cspan class=\"pl-s1\"\u003ebest_video\u003c/span\u003e[\u003cspan class=\"pl-s\"\u003e\"format_id\"\u003c/span\u003e]\u003cspan class=\"pl-kos\"\u003e}\u003c/span\u003e\u003c/span\u003e+\u003cspan class=\"pl-s1\"\u003e\u003cspan class=\"pl-kos\"\u003e{\u003c/span\u003e\u003cspan class=\"pl-s1\"\u003ebest_audio\u003c/span\u003e[\u003cspan class=\"pl-s\"\u003e\"format_id\"\u003c/span\u003e]\u003cspan class=\"pl-kos\"\u003e}\u003c/span\u003e\u003c/span\u003e'\u003c/span\u003e,\n \u003cspan class=\"pl-s\"\u003e'ext'\u003c/span\u003e: \u003cspan class=\"pl-s1\"\u003ebest_video\u003c/span\u003e[\u003cspan class=\"pl-s\"\u003e'ext'\u003c/span\u003e],\n \u003cspan class=\"pl-s\"\u003e'requested_formats'\u003c/span\u003e: [\u003cspan class=\"pl-s1\"\u003ebest_video\u003c/span\u003e, \u003cspan class=\"pl-s1\"\u003ebest_audio\u003c/span\u003e],\n \u003cspan class=\"pl-c\"\u003e# Must be + separated list of protocols\u003c/span\u003e\n \u003cspan class=\"pl-s\"\u003e'protocol'\u003c/span\u003e: \u003cspan class=\"pl-s\"\u003ef'\u003cspan class=\"pl-s1\"\u003e\u003cspan class=\"pl-kos\"\u003e{\u003c/span\u003e\u003cspan class=\"pl-s1\"\u003ebest_video\u003c/span\u003e[\u003cspan class=\"pl-s\"\u003e\"protocol\"\u003c/span\u003e]\u003cspan class=\"pl-kos\"\u003e}\u003c/span\u003e\u003c/span\u003e+\u003cspan class=\"pl-s1\"\u003e\u003cspan class=\"pl-kos\"\u003e{\u003c/span\u003e\u003cspan class=\"pl-s1\"\u003ebest_audio\u003c/span\u003e[\u003cspan class=\"pl-s\"\u003e\"protocol\"\u003c/span\u003e]\u003cspan class=\"pl-kos\"\u003e}\u003c/span\u003e\u003c/span\u003e'\u003c/span\u003e\n }\n\n\n\u003cspan class=\"pl-s1\"\u003eydl_opts\u003c/span\u003e \u003cspan class=\"pl-c1\"\u003e=\u003c/span\u003e {\n \u003cspan class=\"pl-s\"\u003e'format'\u003c/span\u003e: \u003cspan class=\"pl-s1\"\u003eformat_selector\u003c/span\u003e,\n}\n\n\u003cspan class=\"pl-k\"\u003ewith\u003c/span\u003e \u003cspan class=\"pl-s1\"\u003eyt_dlp\u003c/span\u003e.\u003cspan class=\"pl-c1\"\u003eYoutubeDL\u003c/span\u003e(\u003cspan class=\"pl-s1\"\u003eydl_opts\u003c/span\u003e) \u003cspan class=\"pl-k\"\u003eas\u003c/span\u003e \u003cspan class=\"pl-s1\"\u003eydl\u003c/span\u003e:\n \u003cspan class=\"pl-s1\"\u003eydl\u003c/span\u003e.\u003cspan class=\"pl-c1\"\u003edownload\u003c/span\u003e(\u003cspan class=\"pl-c1\"\u003eURLS\u003c/span\u003e)\u003c/pre\u003e\u003c/div\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch1 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eCHANGES FROM YOUTUBE-DL\u003c/h1\u003e\u003ca id=\"user-content-changes-from-youtube-dl\" class=\"anchor\" aria-label=\"Permalink: CHANGES FROM YOUTUBE-DL\" href=\"#changes-from-youtube-dl\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch3 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eNew features\u003c/h3\u003e\u003ca id=\"user-content-new-features\" class=\"anchor\" aria-label=\"Permalink: New features\" href=\"#new-features\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cul dir=\"auto\"\u003e\n\u003cli\u003e\n\u003cp dir=\"auto\"\u003eForked from \u003ca href=\"https://github.com/blackjack4494/yt-dlc/commit/f9401f2a91987068139c5f757b12fc711d4c0cee\"\u003e\u003cstrong\u003eyt-dlc@f9401f2\u003c/strong\u003e\u003c/a\u003e and merged with \u003ca href=\"https://github.com/ytdl-org/youtube-dl/commit/a08f2b7e4567cdc50c0614ee0a4ffdff49b8b6e6\"\u003e\u003cstrong\u003eyoutube-dl@a08f2b7\u003c/strong\u003e\u003c/a\u003e (\u003ca href=\"https://github.com/yt-dlp/yt-dlp/issues/21\" data-hovercard-type=\"issue\" data-hovercard-url=\"/yt-dlp/yt-dlp/issues/21/hovercard\"\u003eexceptions\u003c/a\u003e)\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp dir=\"auto\"\u003e\u003cstrong\u003e\u003ca href=\"#sponsorblock-options\"\u003eSponsorBlock Integration\u003c/a\u003e\u003c/strong\u003e: You can mark/remove sponsor sections in YouTube videos by utilizing the \u003ca href=\"https://sponsor.ajay.app\" rel=\"nofollow\"\u003eSponsorBlock\u003c/a\u003e API\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp dir=\"auto\"\u003e\u003cstrong\u003e\u003ca href=\"#sorting-formats\"\u003eFormat Sorting\u003c/a\u003e\u003c/strong\u003e: The default format sorting options have been changed so that higher resolution and better codecs will be now preferred instead of simply using larger bitrate. Furthermore, you can now specify the sort order using \u003ccode\u003e-S\u003c/code\u003e. This allows for much easier format selection than what is possible by simply using \u003ccode\u003e--format\u003c/code\u003e (\u003ca href=\"#format-selection-examples\"\u003eexamples\u003c/a\u003e)\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp dir=\"auto\"\u003e\u003cstrong\u003eMerged with animelover1984/youtube-dl\u003c/strong\u003e: You get most of the features and improvements from \u003ca href=\"https://github.com/animelover1984/youtube-dl\"\u003eanimelover1984/youtube-dl\u003c/a\u003e including \u003ccode\u003e--write-comments\u003c/code\u003e, \u003ccode\u003eBiliBiliSearch\u003c/code\u003e, \u003ccode\u003eBilibiliChannel\u003c/code\u003e, Embedding thumbnail in mp4/ogg/opus, playlist infojson etc. Note that NicoNico livestreams are not available. See \u003ca href=\"https://github.com/yt-dlp/yt-dlp/pull/31\" data-hovercard-type=\"pull_request\" data-hovercard-url=\"/yt-dlp/yt-dlp/pull/31/hovercard\"\u003e#31\u003c/a\u003e for details.\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp dir=\"auto\"\u003e\u003cstrong\u003eYouTube improvements\u003c/strong\u003e:\u003c/p\u003e\n\u003cul dir=\"auto\"\u003e\n\u003cli\u003eSupports Clips, Stories (\u003ccode\u003eytstories:\u0026lt;channel UCID\u0026gt;\u003c/code\u003e), Search (including filters)\u003cstrong\u003e*\u003c/strong\u003e, YouTube Music Search, Channel-specific search, Search prefixes (\u003ccode\u003eytsearch:\u003c/code\u003e, \u003ccode\u003eytsearchdate:\u003c/code\u003e)\u003cstrong\u003e*\u003c/strong\u003e, Mixes, and Feeds (\u003ccode\u003e:ytfav\u003c/code\u003e, \u003ccode\u003e:ytwatchlater\u003c/code\u003e, \u003ccode\u003e:ytsubs\u003c/code\u003e, \u003ccode\u003e:ythistory\u003c/code\u003e, \u003ccode\u003e:ytrec\u003c/code\u003e, \u003ccode\u003e:ytnotif\u003c/code\u003e)\u003c/li\u003e\n\u003cli\u003eFix for \u003ca href=\"https://github.com/ytdl-org/youtube-dl/issues/29326\" data-hovercard-type=\"issue\" data-hovercard-url=\"/ytdl-org/youtube-dl/issues/29326/hovercard\"\u003en-sig based throttling\u003c/a\u003e \u003cstrong\u003e*\u003c/strong\u003e\u003c/li\u003e\n\u003cli\u003eDownload livestreams from the start using \u003ccode\u003e--live-from-start\u003c/code\u003e (\u003cem\u003eexperimental\u003c/em\u003e)\u003c/li\u003e\n\u003cli\u003eChannel URLs download all uploads of the channel, including shorts and live\u003c/li\u003e\n\u003cli\u003eSupport for \u003ca href=\"https://github.com/yt-dlp/yt-dlp/wiki/Extractors#logging-in-with-oauth\"\u003elogging in with OAuth\u003c/a\u003e\u003c/li\u003e\n\u003c/ul\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp dir=\"auto\"\u003e\u003cstrong\u003eCookies from browser\u003c/strong\u003e: Cookies can be automatically extracted from all major web browsers using \u003ccode\u003e--cookies-from-browser BROWSER[+KEYRING][:PROFILE][::CONTAINER]\u003c/code\u003e\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp dir=\"auto\"\u003e\u003cstrong\u003eDownload time range\u003c/strong\u003e: Videos can be downloaded partially based on either timestamps or chapters using \u003ccode\u003e--download-sections\u003c/code\u003e\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp dir=\"auto\"\u003e\u003cstrong\u003eSplit video by chapters\u003c/strong\u003e: Videos can be split into multiple files based on chapters using \u003ccode\u003e--split-chapters\u003c/code\u003e\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp dir=\"auto\"\u003e\u003cstrong\u003eMulti-threaded fragment downloads\u003c/strong\u003e: Download multiple fragments of m3u8/mpd videos in parallel. Use \u003ccode\u003e--concurrent-fragments\u003c/code\u003e (\u003ccode\u003e-N\u003c/code\u003e) option to set the number of threads used\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp dir=\"auto\"\u003e\u003cstrong\u003eAria2c with HLS/DASH\u003c/strong\u003e: You can use \u003ccode\u003earia2c\u003c/code\u003e as the external downloader for DASH(mpd) and HLS(m3u8) formats\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp dir=\"auto\"\u003e\u003cstrong\u003eNew and fixed extractors\u003c/strong\u003e: Many new extractors have been added and a lot of existing ones have been fixed. See the \u003ca href=\"/yt-dlp/yt-dlp/blob/master/Changelog.md\"\u003echangelog\u003c/a\u003e or the \u003ca href=\"/yt-dlp/yt-dlp/blob/master/supportedsites.md\"\u003elist of supported sites\u003c/a\u003e\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp dir=\"auto\"\u003e\u003cstrong\u003eNew MSOs\u003c/strong\u003e: Philo, Spectrum, SlingTV, Cablevision, RCN etc.\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp dir=\"auto\"\u003e\u003cstrong\u003eSubtitle extraction from manifests\u003c/strong\u003e: Subtitles can be extracted from streaming media manifests. See \u003ca href=\"https://github.com/yt-dlp/yt-dlp/commit/be6202f12b97858b9d716e608394b51065d0419f\"\u003ecommit/be6202f\u003c/a\u003e for details\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp dir=\"auto\"\u003e\u003cstrong\u003eMultiple paths and output templates\u003c/strong\u003e: You can give different \u003ca href=\"#output-template\"\u003eoutput templates\u003c/a\u003e and download paths for different types of files. You can also set a temporary path where intermediary files are downloaded to using \u003ccode\u003e--paths\u003c/code\u003e (\u003ccode\u003e-P\u003c/code\u003e)\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp dir=\"auto\"\u003e\u003cstrong\u003ePortable Configuration\u003c/strong\u003e: Configuration files are automatically loaded from the home and root directories. See \u003ca href=\"#configuration\"\u003eCONFIGURATION\u003c/a\u003e for details\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp dir=\"auto\"\u003e\u003cstrong\u003eOutput template improvements\u003c/strong\u003e: Output templates can now have date-time formatting, numeric offsets, object traversal etc. See \u003ca href=\"#output-template\"\u003eoutput template\u003c/a\u003e for details. Even more advanced operations can also be done with the help of \u003ccode\u003e--parse-metadata\u003c/code\u003e and \u003ccode\u003e--replace-in-metadata\u003c/code\u003e\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp dir=\"auto\"\u003e\u003cstrong\u003eOther new options\u003c/strong\u003e: Many new options have been added such as \u003ccode\u003e--alias\u003c/code\u003e, \u003ccode\u003e--print\u003c/code\u003e, \u003ccode\u003e--concat-playlist\u003c/code\u003e, \u003ccode\u003e--wait-for-video\u003c/code\u003e, \u003ccode\u003e--retry-sleep\u003c/code\u003e, \u003ccode\u003e--sleep-requests\u003c/code\u003e, \u003ccode\u003e--convert-thumbnails\u003c/code\u003e, \u003ccode\u003e--force-download-archive\u003c/code\u003e, \u003ccode\u003e--force-overwrites\u003c/code\u003e, \u003ccode\u003e--break-match-filters\u003c/code\u003e etc\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp dir=\"auto\"\u003e\u003cstrong\u003eImprovements\u003c/strong\u003e: Regex and other operators in \u003ccode\u003e--format\u003c/code\u003e/\u003ccode\u003e--match-filters\u003c/code\u003e, multiple \u003ccode\u003e--postprocessor-args\u003c/code\u003e and \u003ccode\u003e--downloader-args\u003c/code\u003e, faster archive checking, more \u003ca href=\"#format-selection\"\u003eformat selection options\u003c/a\u003e, merge multi-video/audio, multiple \u003ccode\u003e--config-locations\u003c/code\u003e, \u003ccode\u003e--exec\u003c/code\u003e at different stages, etc\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp dir=\"auto\"\u003e\u003cstrong\u003ePlugins\u003c/strong\u003e: Extractors and PostProcessors can be loaded from an external file. See \u003ca href=\"#plugins\"\u003eplugins\u003c/a\u003e for details\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp dir=\"auto\"\u003e\u003cstrong\u003eSelf updater\u003c/strong\u003e: The releases can be updated using \u003ccode\u003eyt-dlp -U\u003c/code\u003e, and downgraded using \u003ccode\u003e--update-to\u003c/code\u003e if required\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp dir=\"auto\"\u003e\u003cstrong\u003eAutomated builds\u003c/strong\u003e: \u003ca href=\"#update-channels\"\u003eNightly/master builds\u003c/a\u003e can be used with \u003ccode\u003e--update-to nightly\u003c/code\u003e and \u003ccode\u003e--update-to master\u003c/code\u003e\u003c/p\u003e\n\u003c/li\u003e\n\u003c/ul\u003e\n\u003cp dir=\"auto\"\u003eSee \u003ca href=\"/yt-dlp/yt-dlp/blob/master/Changelog.md\"\u003echangelog\u003c/a\u003e or \u003ca href=\"https://github.com/yt-dlp/yt-dlp/commits\"\u003ecommits\u003c/a\u003e for the full list of changes\u003c/p\u003e\n\u003cp dir=\"auto\"\u003eFeatures marked with a \u003cstrong\u003e*\u003c/strong\u003e have been back-ported to youtube-dl\u003c/p\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch3 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eDifferences in default behavior\u003c/h3\u003e\u003ca id=\"user-content-differences-in-default-behavior\" class=\"anchor\" aria-label=\"Permalink: Differences in default behavior\" href=\"#differences-in-default-behavior\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cp dir=\"auto\"\u003eSome of yt-dlp's default options are different from that of youtube-dl and youtube-dlc:\u003c/p\u003e\n\u003cul dir=\"auto\"\u003e\n\u003cli\u003eyt-dlp supports only \u003ca href=\"##\" title=\"Windows 8\"\u003ePython 3.9+\u003c/a\u003e, and will remove support for more versions as they \u003ca href=\"https://devguide.python.org/versions/#python-release-cycle\" rel=\"nofollow\"\u003ebecome EOL\u003c/a\u003e; while \u003ca href=\"https://github.com/ytdl-org/youtube-dl/issues/30568#issue-1118238743\" data-hovercard-type=\"issue\" data-hovercard-url=\"/ytdl-org/youtube-dl/issues/30568/hovercard\"\u003eyoutube-dl still supports Python 2.6+ and 3.2+\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003eThe options \u003ccode\u003e--auto-number\u003c/code\u003e (\u003ccode\u003e-A\u003c/code\u003e), \u003ccode\u003e--title\u003c/code\u003e (\u003ccode\u003e-t\u003c/code\u003e) and \u003ccode\u003e--literal\u003c/code\u003e (\u003ccode\u003e-l\u003c/code\u003e), no longer work. See \u003ca href=\"#Removed\"\u003eremoved options\u003c/a\u003e for details\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003eavconv\u003c/code\u003e is not supported as an alternative to \u003ccode\u003effmpeg\u003c/code\u003e\u003c/li\u003e\n\u003cli\u003eyt-dlp stores config files in slightly different locations to youtube-dl. See \u003ca href=\"#configuration\"\u003eCONFIGURATION\u003c/a\u003e for a list of correct locations\u003c/li\u003e\n\u003cli\u003eThe default \u003ca href=\"#output-template\"\u003eoutput template\u003c/a\u003e is \u003ccode\u003e%(title)s [%(id)s].%(ext)s\u003c/code\u003e. There is no real reason for this change. This was changed before yt-dlp was ever made public and now there are no plans to change it back to \u003ccode\u003e%(title)s-%(id)s.%(ext)s\u003c/code\u003e. Instead, you may use \u003ccode\u003e--compat-options filename\u003c/code\u003e\u003c/li\u003e\n\u003cli\u003eThe default \u003ca href=\"#sorting-formats\"\u003eformat sorting\u003c/a\u003e is different from youtube-dl and prefers higher resolution and better codecs rather than higher bitrates. You can use the \u003ccode\u003e--format-sort\u003c/code\u003e option to change this to any order you prefer, or use \u003ccode\u003e--compat-options format-sort\u003c/code\u003e to use youtube-dl's sorting order. Older versions of yt-dlp preferred VP9 due to its broader compatibility; you can use \u003ccode\u003e--compat-options prefer-vp9-sort\u003c/code\u003e to revert to that format sorting preference. These two compat options cannot be used together\u003c/li\u003e\n\u003cli\u003eThe default format selector is \u003ccode\u003ebv*+ba/b\u003c/code\u003e. This means that if a combined video + audio format that is better than the best video-only format is found, the former will be preferred. Use \u003ccode\u003e-f bv+ba/b\u003c/code\u003e or \u003ccode\u003e--compat-options format-spec\u003c/code\u003e to revert this\u003c/li\u003e\n\u003cli\u003eUnlike youtube-dlc, yt-dlp does not allow merging multiple audio/video streams into one file by default (since this conflicts with the use of \u003ccode\u003e-f bv*+ba\u003c/code\u003e). If needed, this feature must be enabled using \u003ccode\u003e--audio-multistreams\u003c/code\u003e and \u003ccode\u003e--video-multistreams\u003c/code\u003e. You can also use \u003ccode\u003e--compat-options multistreams\u003c/code\u003e to enable both\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003e--no-abort-on-error\u003c/code\u003e is enabled by default. Use \u003ccode\u003e--abort-on-error\u003c/code\u003e or \u003ccode\u003e--compat-options abort-on-error\u003c/code\u003e to abort on errors instead\u003c/li\u003e\n\u003cli\u003eWhen writing metadata files such as thumbnails, description or infojson, the same information (if available) is also written for playlists. Use \u003ccode\u003e--no-write-playlist-metafiles\u003c/code\u003e or \u003ccode\u003e--compat-options no-playlist-metafiles\u003c/code\u003e to not write these files\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003e--add-metadata\u003c/code\u003e attaches the \u003ccode\u003einfojson\u003c/code\u003e to \u003ccode\u003emkv\u003c/code\u003e files in addition to writing the metadata when used with \u003ccode\u003e--write-info-json\u003c/code\u003e. Use \u003ccode\u003e--no-embed-info-json\u003c/code\u003e or \u003ccode\u003e--compat-options no-attach-info-json\u003c/code\u003e to revert this\u003c/li\u003e\n\u003cli\u003eSome metadata are embedded into different fields when using \u003ccode\u003e--add-metadata\u003c/code\u003e as compared to youtube-dl. Most notably, \u003ccode\u003ecomment\u003c/code\u003e field contains the \u003ccode\u003ewebpage_url\u003c/code\u003e and \u003ccode\u003esynopsis\u003c/code\u003e contains the \u003ccode\u003edescription\u003c/code\u003e. You can \u003ca href=\"#modifying-metadata\"\u003euse \u003ccode\u003e--parse-metadata\u003c/code\u003e\u003c/a\u003e to modify this to your liking or use \u003ccode\u003e--compat-options embed-metadata\u003c/code\u003e to revert this\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003eplaylist_index\u003c/code\u003e behaves differently when used with options like \u003ccode\u003e--playlist-reverse\u003c/code\u003e and \u003ccode\u003e--playlist-items\u003c/code\u003e. See \u003ca href=\"https://github.com/yt-dlp/yt-dlp/issues/302\" data-hovercard-type=\"pull_request\" data-hovercard-url=\"/yt-dlp/yt-dlp/pull/302/hovercard\"\u003e#302\u003c/a\u003e for details. You can use \u003ccode\u003e--compat-options playlist-index\u003c/code\u003e if you want to keep the earlier behavior\u003c/li\u003e\n\u003cli\u003eThe output of \u003ccode\u003e-F\u003c/code\u003e is listed in a new format. Use \u003ccode\u003e--compat-options list-formats\u003c/code\u003e to revert this\u003c/li\u003e\n\u003cli\u003eLive chats (if available) are considered as subtitles. Use \u003ccode\u003e--sub-langs all,-live_chat\u003c/code\u003e to download all subtitles except live chat. You can also use \u003ccode\u003e--compat-options no-live-chat\u003c/code\u003e to prevent any live chat/danmaku from downloading\u003c/li\u003e\n\u003cli\u003eYouTube channel URLs download all uploads of the channel. To download only the videos in a specific tab, pass the tab's URL. If the channel does not show the requested tab, an error will be raised. Also, \u003ccode\u003e/live\u003c/code\u003e URLs raise an error if there are no live videos instead of silently downloading the entire channel. You may use \u003ccode\u003e--compat-options no-youtube-channel-redirect\u003c/code\u003e to revert all these redirections\u003c/li\u003e\n\u003cli\u003eUnavailable videos are also listed for YouTube playlists. Use \u003ccode\u003e--compat-options no-youtube-unavailable-videos\u003c/code\u003e to remove this\u003c/li\u003e\n\u003cli\u003eThe upload dates extracted from YouTube are in UTC.\u003c/li\u003e\n\u003cli\u003eIf \u003ccode\u003effmpeg\u003c/code\u003e is used as the downloader, the downloading and merging of formats happen in a single step when possible. Use \u003ccode\u003e--compat-options no-direct-merge\u003c/code\u003e to revert this\u003c/li\u003e\n\u003cli\u003eThumbnail embedding in \u003ccode\u003emp4\u003c/code\u003e is done with mutagen if possible. Use \u003ccode\u003e--compat-options embed-thumbnail-atomicparsley\u003c/code\u003e to force the use of AtomicParsley instead\u003c/li\u003e\n\u003cli\u003eSome internal metadata such as filenames are removed by default from the infojson. Use \u003ccode\u003e--no-clean-infojson\u003c/code\u003e or \u003ccode\u003e--compat-options no-clean-infojson\u003c/code\u003e to revert this\u003c/li\u003e\n\u003cli\u003eWhen \u003ccode\u003e--embed-subs\u003c/code\u003e and \u003ccode\u003e--write-subs\u003c/code\u003e are used together, the subtitles are written to disk and also embedded in the media file. You can use just \u003ccode\u003e--embed-subs\u003c/code\u003e to embed the subs and automatically delete the separate file. See \u003ca href=\"https://github.com/yt-dlp/yt-dlp/issues/630#issuecomment-893659460\" data-hovercard-type=\"issue\" data-hovercard-url=\"/yt-dlp/yt-dlp/issues/630/hovercard\"\u003e#630 (comment)\u003c/a\u003e for more info. \u003ccode\u003e--compat-options no-keep-subs\u003c/code\u003e can be used to revert this\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003ecertifi\u003c/code\u003e will be used for SSL root certificates, if installed. If you want to use system certificates (e.g. self-signed), use \u003ccode\u003e--compat-options no-certifi\u003c/code\u003e\u003c/li\u003e\n\u003cli\u003eyt-dlp's sanitization of invalid characters in filenames is different/smarter than in youtube-dl. You can use \u003ccode\u003e--compat-options filename-sanitization\u003c/code\u003e to revert to youtube-dl's behavior\u003c/li\u003e\n\u003cli\u003e\u003cdel\u003eyt-dlp tries to parse the external downloader outputs into the standard progress output if possible (Currently implemented: \u003ca href=\"https://github.com/yt-dlp/yt-dlp/issues/5931\" data-hovercard-type=\"issue\" data-hovercard-url=\"/yt-dlp/yt-dlp/issues/5931/hovercard\"\u003earia2c\u003c/a\u003e). You can use \u003ccode\u003e--compat-options no-external-downloader-progress\u003c/code\u003e to get the downloader output as-is\u003c/del\u003e\u003c/li\u003e\n\u003cli\u003eyt-dlp versions between 2021.09.01 and 2023.01.02 applies \u003ccode\u003e--match-filters\u003c/code\u003e to nested playlists. This was an unintentional side-effect of \u003ca href=\"https://github.com/yt-dlp/yt-dlp/commit/8f18aca8717bb0dd49054555af8d386e5eda3a88\"\u003e8f18ac\u003c/a\u003e and is fixed in \u003ca href=\"https://github.com/yt-dlp/yt-dlp/commit/d7b460d0e5fc710950582baed2e3fc616ed98a80\"\u003ed7b460\u003c/a\u003e. Use \u003ccode\u003e--compat-options playlist-match-filter\u003c/code\u003e to revert this\u003c/li\u003e\n\u003cli\u003eyt-dlp versions between 2021.11.10 and 2023.06.21 estimated \u003ccode\u003efilesize_approx\u003c/code\u003e values for fragmented/manifest formats. This was added for convenience in \u003ca href=\"https://github.com/yt-dlp/yt-dlp/commit/f2fe69c7b0d208bdb1f6292b4ae92bc1e1a7444a\"\u003ef2fe69\u003c/a\u003e, but was reverted in \u003ca href=\"https://github.com/yt-dlp/yt-dlp/commit/0dff8e4d1e6e9fb938f4256ea9af7d81f42fd54f\"\u003e0dff8e\u003c/a\u003e due to the potentially extreme inaccuracy of the estimated values. Use \u003ccode\u003e--compat-options manifest-filesize-approx\u003c/code\u003e to keep extracting the estimated values\u003c/li\u003e\n\u003cli\u003eyt-dlp uses modern http client backends such as \u003ccode\u003erequests\u003c/code\u003e. Use \u003ccode\u003e--compat-options prefer-legacy-http-handler\u003c/code\u003e to prefer the legacy http handler (\u003ccode\u003eurllib\u003c/code\u003e) to be used for standard http requests.\u003c/li\u003e\n\u003cli\u003eThe sub-modules \u003ccode\u003eswfinterp\u003c/code\u003e, \u003ccode\u003ecasefold\u003c/code\u003e are removed.\u003c/li\u003e\n\u003cli\u003ePassing \u003ccode\u003e--simulate\u003c/code\u003e (or calling \u003ccode\u003eextract_info\u003c/code\u003e with \u003ccode\u003edownload=False\u003c/code\u003e) no longer alters the default format selection. See \u003ca href=\"https://github.com/yt-dlp/yt-dlp/issues/9843\" data-hovercard-type=\"issue\" data-hovercard-url=\"/yt-dlp/yt-dlp/issues/9843/hovercard\"\u003e#9843\u003c/a\u003e for details.\u003c/li\u003e\n\u003c/ul\u003e\n\u003cp dir=\"auto\"\u003eFor ease of use, a few more compat options are available:\u003c/p\u003e\n\u003cul dir=\"auto\"\u003e\n\u003cli\u003e\u003ccode\u003e--compat-options all\u003c/code\u003e: Use all compat options (\u003cstrong\u003eDo NOT use this!\u003c/strong\u003e)\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003e--compat-options youtube-dl\u003c/code\u003e: Same as \u003ccode\u003e--compat-options all,-multistreams,-playlist-match-filter,-manifest-filesize-approx,-allow-unsafe-ext,-prefer-vp9-sort\u003c/code\u003e\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003e--compat-options youtube-dlc\u003c/code\u003e: Same as \u003ccode\u003e--compat-options all,-no-live-chat,-no-youtube-channel-redirect,-playlist-match-filter,-manifest-filesize-approx,-allow-unsafe-ext,-prefer-vp9-sort\u003c/code\u003e\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003e--compat-options 2021\u003c/code\u003e: Same as \u003ccode\u003e--compat-options 2022,no-certifi,filename-sanitization\u003c/code\u003e\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003e--compat-options 2022\u003c/code\u003e: Same as \u003ccode\u003e--compat-options 2023,playlist-match-filter,no-external-downloader-progress,prefer-legacy-http-handler,manifest-filesize-approx\u003c/code\u003e\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003e--compat-options 2023\u003c/code\u003e: Same as \u003ccode\u003e--compat-options 2024,prefer-vp9-sort\u003c/code\u003e\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003e--compat-options 2024\u003c/code\u003e: Currently does nothing. Use this to enable all future compat options\u003c/li\u003e\n\u003c/ul\u003e\n\u003cp dir=\"auto\"\u003eThe following compat options restore vulnerable behavior from before security patches:\u003c/p\u003e\n\u003cul dir=\"auto\"\u003e\n\u003cli\u003e\n\u003cp dir=\"auto\"\u003e\u003ccode\u003e--compat-options allow-unsafe-ext\u003c/code\u003e: Allow files with any extension (including unsafe ones) to be downloaded (\u003ca href=\"https://github.com/yt-dlp/yt-dlp/security/advisories/GHSA-79w7-vh3h-8g4j\"\u003eGHSA-79w7-vh3h-8g4j\u003c/a\u003e)\u003c/p\u003e\n\u003cblockquote\u003e\n\u003cp dir=\"auto\"\u003e\u003cg-emoji class=\"g-emoji\" alias=\"warning\"\u003e⚠️\u003c/g-emoji\u003e Only use if a valid file download is rejected because its extension is detected as uncommon\u003c/p\u003e\n\u003cp dir=\"auto\"\u003e\u003cstrong\u003eThis option can enable remote code execution! Consider \u003ca href=\"https://github.com/yt-dlp/yt-dlp/issues/new/choose\"\u003eopening an issue\u003c/a\u003e instead!\u003c/strong\u003e\u003c/p\u003e\n\u003c/blockquote\u003e\n\u003c/li\u003e\n\u003c/ul\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch3 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eDeprecated options\u003c/h3\u003e\u003ca id=\"user-content-deprecated-options\" class=\"anchor\" aria-label=\"Permalink: Deprecated options\" href=\"#deprecated-options\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cp dir=\"auto\"\u003eThese are all the deprecated options and the current alternative to achieve the same effect\u003c/p\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch4 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eAlmost redundant options\u003c/h4\u003e\u003ca id=\"user-content-almost-redundant-options\" class=\"anchor\" aria-label=\"Permalink: Almost redundant options\" href=\"#almost-redundant-options\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cp dir=\"auto\"\u003eWhile these options are almost the same as their new counterparts, there are some differences that prevents them being redundant\u003c/p\u003e\n\u003cdiv class=\"snippet-clipboard-content notranslate position-relative overflow-auto\" data-snippet-clipboard-copy-content=\"-j, --dump-json --print \u0026quot;%()j\u0026quot;\n-F, --list-formats --print formats_table\n--list-thumbnails --print thumbnails_table --print playlist:thumbnails_table\n--list-subs --print automatic_captions_table --print subtitles_table\"\u003e\u003cpre class=\"notranslate\"\u003e\u003ccode\u003e-j, --dump-json --print \"%()j\"\n-F, --list-formats --print formats_table\n--list-thumbnails --print thumbnails_table --print playlist:thumbnails_table\n--list-subs --print automatic_captions_table --print subtitles_table\n\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch4 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eRedundant options\u003c/h4\u003e\u003ca id=\"user-content-redundant-options\" class=\"anchor\" aria-label=\"Permalink: Redundant options\" href=\"#redundant-options\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cp dir=\"auto\"\u003eWhile these options are redundant, they are still expected to be used due to their ease of use\u003c/p\u003e\n\u003cdiv class=\"snippet-clipboard-content notranslate position-relative overflow-auto\" data-snippet-clipboard-copy-content=\"--get-description --print description\n--get-duration --print duration_string\n--get-filename --print filename\n--get-format --print format\n--get-id --print id\n--get-thumbnail --print thumbnail\n-e, --get-title --print title\n-g, --get-url --print urls\n--match-title REGEX --match-filters \u0026quot;title ~= (?i)REGEX\u0026quot;\n--reject-title REGEX --match-filters \u0026quot;title !~= (?i)REGEX\u0026quot;\n--min-views COUNT --match-filters \u0026quot;view_count \u0026gt;=? COUNT\u0026quot;\n--max-views COUNT --match-filters \u0026quot;view_count \u0026lt;=? COUNT\u0026quot;\n--break-on-reject Use --break-match-filters\n--user-agent UA --add-headers \u0026quot;User-Agent:UA\u0026quot;\n--referer URL --add-headers \u0026quot;Referer:URL\u0026quot;\n--playlist-start NUMBER -I NUMBER:\n--playlist-end NUMBER -I :NUMBER\n--playlist-reverse -I ::-1\n--no-playlist-reverse Default\n--no-colors --color no_color\"\u003e\u003cpre class=\"notranslate\"\u003e\u003ccode\u003e--get-description --print description\n--get-duration --print duration_string\n--get-filename --print filename\n--get-format --print format\n--get-id --print id\n--get-thumbnail --print thumbnail\n-e, --get-title --print title\n-g, --get-url --print urls\n--match-title REGEX --match-filters \"title ~= (?i)REGEX\"\n--reject-title REGEX --match-filters \"title !~= (?i)REGEX\"\n--min-views COUNT --match-filters \"view_count \u0026gt;=? COUNT\"\n--max-views COUNT --match-filters \"view_count \u0026lt;=? COUNT\"\n--break-on-reject Use --break-match-filters\n--user-agent UA --add-headers \"User-Agent:UA\"\n--referer URL --add-headers \"Referer:URL\"\n--playlist-start NUMBER -I NUMBER:\n--playlist-end NUMBER -I :NUMBER\n--playlist-reverse -I ::-1\n--no-playlist-reverse Default\n--no-colors --color no_color\n\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch4 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eNot recommended\u003c/h4\u003e\u003ca id=\"user-content-not-recommended\" class=\"anchor\" aria-label=\"Permalink: Not recommended\" href=\"#not-recommended\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cp dir=\"auto\"\u003eWhile these options still work, their use is not recommended since there are other alternatives to achieve the same\u003c/p\u003e\n\u003cdiv class=\"snippet-clipboard-content notranslate position-relative overflow-auto\" data-snippet-clipboard-copy-content=\"--force-generic-extractor --ies generic,default\n--exec-before-download CMD --exec \u0026quot;before_dl:CMD\u0026quot;\n--no-exec-before-download --no-exec\n--all-formats -f all\n--all-subs --sub-langs all --write-subs\n--print-json -j --no-simulate\n--autonumber-size NUMBER Use string formatting, e.g. %(autonumber)03d\n--autonumber-start NUMBER Use internal field formatting like %(autonumber+NUMBER)s\n--id -o \u0026quot;%(id)s.%(ext)s\u0026quot;\n--metadata-from-title FORMAT --parse-metadata \u0026quot;%(title)s:FORMAT\u0026quot;\n--hls-prefer-native --downloader \u0026quot;m3u8:native\u0026quot;\n--hls-prefer-ffmpeg --downloader \u0026quot;m3u8:ffmpeg\u0026quot;\n--list-formats-old --compat-options list-formats (Alias: --no-list-formats-as-table)\n--list-formats-as-table --compat-options -list-formats [Default] (Alias: --no-list-formats-old)\n--youtube-skip-dash-manifest --extractor-args \u0026quot;youtube:skip=dash\u0026quot; (Alias: --no-youtube-include-dash-manifest)\n--youtube-skip-hls-manifest --extractor-args \u0026quot;youtube:skip=hls\u0026quot; (Alias: --no-youtube-include-hls-manifest)\n--youtube-include-dash-manifest Default (Alias: --no-youtube-skip-dash-manifest)\n--youtube-include-hls-manifest Default (Alias: --no-youtube-skip-hls-manifest)\n--geo-bypass --xff \u0026quot;default\u0026quot;\n--no-geo-bypass --xff \u0026quot;never\u0026quot;\n--geo-bypass-country CODE --xff CODE\n--geo-bypass-ip-block IP_BLOCK --xff IP_BLOCK\"\u003e\u003cpre class=\"notranslate\"\u003e\u003ccode\u003e--force-generic-extractor --ies generic,default\n--exec-before-download CMD --exec \"before_dl:CMD\"\n--no-exec-before-download --no-exec\n--all-formats -f all\n--all-subs --sub-langs all --write-subs\n--print-json -j --no-simulate\n--autonumber-size NUMBER Use string formatting, e.g. %(autonumber)03d\n--autonumber-start NUMBER Use internal field formatting like %(autonumber+NUMBER)s\n--id -o \"%(id)s.%(ext)s\"\n--metadata-from-title FORMAT --parse-metadata \"%(title)s:FORMAT\"\n--hls-prefer-native --downloader \"m3u8:native\"\n--hls-prefer-ffmpeg --downloader \"m3u8:ffmpeg\"\n--list-formats-old --compat-options list-formats (Alias: --no-list-formats-as-table)\n--list-formats-as-table --compat-options -list-formats [Default] (Alias: --no-list-formats-old)\n--youtube-skip-dash-manifest --extractor-args \"youtube:skip=dash\" (Alias: --no-youtube-include-dash-manifest)\n--youtube-skip-hls-manifest --extractor-args \"youtube:skip=hls\" (Alias: --no-youtube-include-hls-manifest)\n--youtube-include-dash-manifest Default (Alias: --no-youtube-skip-dash-manifest)\n--youtube-include-hls-manifest Default (Alias: --no-youtube-skip-hls-manifest)\n--geo-bypass --xff \"default\"\n--no-geo-bypass --xff \"never\"\n--geo-bypass-country CODE --xff CODE\n--geo-bypass-ip-block IP_BLOCK --xff IP_BLOCK\n\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch4 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eDeveloper options\u003c/h4\u003e\u003ca id=\"user-content-developer-options\" class=\"anchor\" aria-label=\"Permalink: Developer options\" href=\"#developer-options\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cp dir=\"auto\"\u003eThese options are not intended to be used by the end-user\u003c/p\u003e\n\u003cdiv class=\"snippet-clipboard-content notranslate position-relative overflow-auto\" data-snippet-clipboard-copy-content=\"--test Download only part of video for testing extractors\n--load-pages Load pages dumped by --write-pages\n--youtube-print-sig-code For testing youtube signatures\n--allow-unplayable-formats List unplayable formats also\n--no-allow-unplayable-formats Default\"\u003e\u003cpre class=\"notranslate\"\u003e\u003ccode\u003e--test Download only part of video for testing extractors\n--load-pages Load pages dumped by --write-pages\n--youtube-print-sig-code For testing youtube signatures\n--allow-unplayable-formats List unplayable formats also\n--no-allow-unplayable-formats Default\n\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch4 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eOld aliases\u003c/h4\u003e\u003ca id=\"user-content-old-aliases\" class=\"anchor\" aria-label=\"Permalink: Old aliases\" href=\"#old-aliases\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cp dir=\"auto\"\u003eThese are aliases that are no longer documented for various reasons\u003c/p\u003e\n\u003cdiv class=\"snippet-clipboard-content notranslate position-relative overflow-auto\" data-snippet-clipboard-copy-content=\"--avconv-location --ffmpeg-location\n--clean-infojson --clean-info-json\n--cn-verification-proxy URL --geo-verification-proxy URL\n--dump-headers --print-traffic\n--dump-intermediate-pages --dump-pages\n--force-write-download-archive --force-write-archive\n--load-info --load-info-json\n--no-clean-infojson --no-clean-info-json\n--no-split-tracks --no-split-chapters\n--no-write-srt --no-write-subs\n--prefer-unsecure --prefer-insecure\n--rate-limit RATE --limit-rate RATE\n--split-tracks --split-chapters\n--srt-lang LANGS --sub-langs LANGS\n--trim-file-names LENGTH --trim-filenames LENGTH\n--write-srt --write-subs\n--yes-overwrites --force-overwrites\"\u003e\u003cpre class=\"notranslate\"\u003e\u003ccode\u003e--avconv-location --ffmpeg-location\n--clean-infojson --clean-info-json\n--cn-verification-proxy URL --geo-verification-proxy URL\n--dump-headers --print-traffic\n--dump-intermediate-pages --dump-pages\n--force-write-download-archive --force-write-archive\n--load-info --load-info-json\n--no-clean-infojson --no-clean-info-json\n--no-split-tracks --no-split-chapters\n--no-write-srt --no-write-subs\n--prefer-unsecure --prefer-insecure\n--rate-limit RATE --limit-rate RATE\n--split-tracks --split-chapters\n--srt-lang LANGS --sub-langs LANGS\n--trim-file-names LENGTH --trim-filenames LENGTH\n--write-srt --write-subs\n--yes-overwrites --force-overwrites\n\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch4 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eSponskrub Options\u003c/h4\u003e\u003ca id=\"user-content-sponskrub-options\" class=\"anchor\" aria-label=\"Permalink: Sponskrub Options\" href=\"#sponskrub-options\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cp dir=\"auto\"\u003eSupport for \u003ca href=\"https://github.com/faissaloo/SponSkrub\"\u003eSponSkrub\u003c/a\u003e has been deprecated in favor of the \u003ccode\u003e--sponsorblock\u003c/code\u003e options\u003c/p\u003e\n\u003cdiv class=\"snippet-clipboard-content notranslate position-relative overflow-auto\" data-snippet-clipboard-copy-content=\"--sponskrub --sponsorblock-mark all\n--no-sponskrub --no-sponsorblock\n--sponskrub-cut --sponsorblock-remove all\n--no-sponskrub-cut --sponsorblock-remove -all\n--sponskrub-force Not applicable\n--no-sponskrub-force Not applicable\n--sponskrub-location Not applicable\n--sponskrub-args Not applicable\"\u003e\u003cpre class=\"notranslate\"\u003e\u003ccode\u003e--sponskrub --sponsorblock-mark all\n--no-sponskrub --no-sponsorblock\n--sponskrub-cut --sponsorblock-remove all\n--no-sponskrub-cut --sponsorblock-remove -all\n--sponskrub-force Not applicable\n--no-sponskrub-force Not applicable\n--sponskrub-location Not applicable\n--sponskrub-args Not applicable\n\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch4 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eNo longer supported\u003c/h4\u003e\u003ca id=\"user-content-no-longer-supported\" class=\"anchor\" aria-label=\"Permalink: No longer supported\" href=\"#no-longer-supported\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cp dir=\"auto\"\u003eThese options may no longer work as intended\u003c/p\u003e\n\u003cdiv class=\"snippet-clipboard-content notranslate position-relative overflow-auto\" data-snippet-clipboard-copy-content=\"--prefer-avconv avconv is not officially supported by yt-dlp (Alias: --no-prefer-ffmpeg)\n--prefer-ffmpeg Default (Alias: --no-prefer-avconv)\n-C, --call-home Not implemented\n--no-call-home Default\n--include-ads No longer supported\n--no-include-ads Default\n--write-annotations No supported site has annotations now\n--no-write-annotations Default\n--compat-options seperate-video-versions No longer needed\n--compat-options no-youtube-prefer-utc-upload-date No longer supported\"\u003e\u003cpre class=\"notranslate\"\u003e\u003ccode\u003e--prefer-avconv avconv is not officially supported by yt-dlp (Alias: --no-prefer-ffmpeg)\n--prefer-ffmpeg Default (Alias: --no-prefer-avconv)\n-C, --call-home Not implemented\n--no-call-home Default\n--include-ads No longer supported\n--no-include-ads Default\n--write-annotations No supported site has annotations now\n--no-write-annotations Default\n--compat-options seperate-video-versions No longer needed\n--compat-options no-youtube-prefer-utc-upload-date No longer supported\n\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch4 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eRemoved\u003c/h4\u003e\u003ca id=\"user-content-removed\" class=\"anchor\" aria-label=\"Permalink: Removed\" href=\"#removed\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cp dir=\"auto\"\u003eThese options were deprecated since 2014 and have now been entirely removed\u003c/p\u003e\n\u003cdiv class=\"snippet-clipboard-content notranslate position-relative overflow-auto\" data-snippet-clipboard-copy-content=\"-A, --auto-number -o \u0026quot;%(autonumber)s-%(id)s.%(ext)s\u0026quot;\n-t, -l, --title, --literal -o \u0026quot;%(title)s-%(id)s.%(ext)s\u0026quot;\"\u003e\u003cpre class=\"notranslate\"\u003e\u003ccode\u003e-A, --auto-number -o \"%(autonumber)s-%(id)s.%(ext)s\"\n-t, -l, --title, --literal -o \"%(title)s-%(id)s.%(ext)s\"\n\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch1 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eCONTRIBUTING\u003c/h1\u003e\u003ca id=\"user-content-contributing\" class=\"anchor\" aria-label=\"Permalink: CONTRIBUTING\" href=\"#contributing\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cp dir=\"auto\"\u003eSee \u003ca href=\"/yt-dlp/yt-dlp/blob/master/CONTRIBUTING.md#contributing-to-yt-dlp\"\u003eCONTRIBUTING.md\u003c/a\u003e for instructions on \u003ca href=\"/yt-dlp/yt-dlp/blob/master/CONTRIBUTING.md#opening-an-issue\"\u003eOpening an Issue\u003c/a\u003e and \u003ca href=\"/yt-dlp/yt-dlp/blob/master/CONTRIBUTING.md#developer-instructions\"\u003eContributing code to the project\u003c/a\u003e\u003c/p\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch1 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eWIKI\u003c/h1\u003e\u003ca id=\"user-content-wiki\" class=\"anchor\" aria-label=\"Permalink: WIKI\" href=\"#wiki\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cp dir=\"auto\"\u003eSee the \u003ca href=\"https://github.com/yt-dlp/yt-dlp/wiki\"\u003eWiki\u003c/a\u003e for more information\u003c/p\u003e\n\u003c/article\u003e","loaded":true,"timedOut":false,"errorMessage":null,"headerInfo":{"toc":[{"level":1,"text":"INSTALLATION","anchor":"installation","htmlText":"INSTALLATION"},{"level":2,"text":"RELEASE FILES","anchor":"release-files","htmlText":"RELEASE FILES"},{"level":4,"text":"Recommended","anchor":"recommended","htmlText":"Recommended"},{"level":4,"text":"Alternatives","anchor":"alternatives","htmlText":"Alternatives"},{"level":4,"text":"Misc","anchor":"misc","htmlText":"Misc"},{"level":2,"text":"UPDATE","anchor":"update","htmlText":"UPDATE"},{"level":2,"text":"DEPENDENCIES","anchor":"dependencies","htmlText":"DEPENDENCIES"},{"level":3,"text":"Strongly recommended","anchor":"strongly-recommended","htmlText":"Strongly recommended"},{"level":3,"text":"Networking","anchor":"networking","htmlText":"Networking"},{"level":4,"text":"Impersonation","anchor":"impersonation","htmlText":"Impersonation"},{"level":3,"text":"Metadata","anchor":"metadata","htmlText":"Metadata"},{"level":3,"text":"Misc","anchor":"misc-1","htmlText":"Misc"},{"level":3,"text":"Deprecated","anchor":"deprecated","htmlText":"Deprecated"},{"level":2,"text":"COMPILE","anchor":"compile","htmlText":"COMPILE"},{"level":3,"text":"Standalone PyInstaller Builds","anchor":"standalone-pyinstaller-builds","htmlText":"Standalone PyInstaller Builds"},{"level":3,"text":"Platform-independent Binary (UNIX)","anchor":"platform-independent-binary-unix","htmlText":"Platform-independent Binary (UNIX)"},{"level":3,"text":"Related scripts","anchor":"related-scripts","htmlText":"Related scripts"},{"level":3,"text":"Forking the project","anchor":"forking-the-project","htmlText":"Forking the project"},{"level":1,"text":"USAGE AND OPTIONS","anchor":"usage-and-options","htmlText":"USAGE AND OPTIONS"},{"level":2,"text":"General Options:","anchor":"general-options","htmlText":"General Options:"},{"level":2,"text":"Network Options:","anchor":"network-options","htmlText":"Network Options:"},{"level":2,"text":"Geo-restriction:","anchor":"geo-restriction","htmlText":"Geo-restriction:"},{"level":2,"text":"Video Selection:","anchor":"video-selection","htmlText":"Video Selection:"},{"level":2,"text":"Download Options:","anchor":"download-options","htmlText":"Download Options:"},{"level":2,"text":"Filesystem Options:","anchor":"filesystem-options","htmlText":"Filesystem Options:"},{"level":2,"text":"Thumbnail Options:","anchor":"thumbnail-options","htmlText":"Thumbnail Options:"},{"level":2,"text":"Internet Shortcut Options:","anchor":"internet-shortcut-options","htmlText":"Internet Shortcut Options:"},{"level":2,"text":"Verbosity and Simulation Options:","anchor":"verbosity-and-simulation-options","htmlText":"Verbosity and Simulation Options:"},{"level":2,"text":"Workarounds:","anchor":"workarounds","htmlText":"Workarounds:"},{"level":2,"text":"Video Format Options:","anchor":"video-format-options","htmlText":"Video Format Options:"},{"level":2,"text":"Subtitle Options:","anchor":"subtitle-options","htmlText":"Subtitle Options:"},{"level":2,"text":"Authentication Options:","anchor":"authentication-options","htmlText":"Authentication Options:"},{"level":2,"text":"Post-Processing Options:","anchor":"post-processing-options","htmlText":"Post-Processing Options:"},{"level":2,"text":"SponsorBlock Options:","anchor":"sponsorblock-options","htmlText":"SponsorBlock Options:"},{"level":2,"text":"Extractor Options:","anchor":"extractor-options","htmlText":"Extractor Options:"},{"level":1,"text":"CONFIGURATION","anchor":"configuration","htmlText":"CONFIGURATION"},{"level":3,"text":"Configuration file encoding","anchor":"configuration-file-encoding","htmlText":"Configuration file encoding"},{"level":3,"text":"Authentication with netrc","anchor":"authentication-with-netrc","htmlText":"Authentication with netrc"},{"level":3,"text":"Notes about environment variables","anchor":"notes-about-environment-variables","htmlText":"Notes about environment variables"},{"level":1,"text":"OUTPUT TEMPLATE","anchor":"output-template","htmlText":"OUTPUT TEMPLATE"},{"level":4,"text":"Output template examples","anchor":"output-template-examples","htmlText":"Output template examples"},{"level":1,"text":"FORMAT SELECTION","anchor":"format-selection","htmlText":"FORMAT SELECTION"},{"level":2,"text":"Filtering Formats","anchor":"filtering-formats","htmlText":"Filtering Formats"},{"level":2,"text":"Sorting Formats","anchor":"sorting-formats","htmlText":"Sorting Formats"},{"level":2,"text":"Format Selection examples","anchor":"format-selection-examples","htmlText":"Format Selection examples"},{"level":1,"text":"MODIFYING METADATA","anchor":"modifying-metadata","htmlText":"MODIFYING METADATA"},{"level":2,"text":"Modifying metadata examples","anchor":"modifying-metadata-examples","htmlText":"Modifying metadata examples"},{"level":1,"text":"EXTRACTOR ARGUMENTS","anchor":"extractor-arguments","htmlText":"EXTRACTOR ARGUMENTS"},{"level":4,"text":"youtube","anchor":"youtube","htmlText":"youtube"},{"level":4,"text":"youtubetab (YouTube playlists, channels, feeds, etc.)","anchor":"youtubetab-youtube-playlists-channels-feeds-etc","htmlText":"youtubetab (YouTube playlists, channels, feeds, etc.)"},{"level":4,"text":"generic","anchor":"generic","htmlText":"generic"},{"level":4,"text":"vikichannel","anchor":"vikichannel","htmlText":"vikichannel"},{"level":4,"text":"niconico","anchor":"niconico","htmlText":"niconico"},{"level":4,"text":"youtubewebarchive","anchor":"youtubewebarchive","htmlText":"youtubewebarchive"},{"level":4,"text":"gamejolt","anchor":"gamejolt","htmlText":"gamejolt"},{"level":4,"text":"hotstar","anchor":"hotstar","htmlText":"hotstar"},{"level":4,"text":"instagram","anchor":"instagram","htmlText":"instagram"},{"level":4,"text":"niconicochannelplus","anchor":"niconicochannelplus","htmlText":"niconicochannelplus"},{"level":4,"text":"tiktok","anchor":"tiktok","htmlText":"tiktok"},{"level":4,"text":"rokfinchannel","anchor":"rokfinchannel","htmlText":"rokfinchannel"},{"level":4,"text":"twitter","anchor":"twitter","htmlText":"twitter"},{"level":4,"text":"stacommu, wrestleuniverse","anchor":"stacommu-wrestleuniverse","htmlText":"stacommu, wrestleuniverse"},{"level":4,"text":"twitch","anchor":"twitch","htmlText":"twitch"},{"level":4,"text":"nhkradirulive (NHK らじる★らじる LIVE)","anchor":"nhkradirulive-nhk-らじるらじる-live","htmlText":"nhkradirulive (NHK らじる★らじる LIVE)"},{"level":4,"text":"nflplusreplay","anchor":"nflplusreplay","htmlText":"nflplusreplay"},{"level":4,"text":"jiocinema","anchor":"jiocinema","htmlText":"jiocinema"},{"level":4,"text":"jiosaavn","anchor":"jiosaavn","htmlText":"jiosaavn"},{"level":4,"text":"afreecatvlive","anchor":"afreecatvlive","htmlText":"afreecatvlive"},{"level":4,"text":"soundcloud","anchor":"soundcloud","htmlText":"soundcloud"},{"level":4,"text":"orfon (orf:on)","anchor":"orfon-orfon","htmlText":"orfon (orf:on)"},{"level":4,"text":"bilibili","anchor":"bilibili","htmlText":"bilibili"},{"level":4,"text":"sonylivseries","anchor":"sonylivseries","htmlText":"sonylivseries"},{"level":4,"text":"tver","anchor":"tver","htmlText":"tver"},{"level":1,"text":"PLUGINS","anchor":"plugins","htmlText":"PLUGINS"},{"level":2,"text":"Installing Plugins","anchor":"installing-plugins","htmlText":"Installing Plugins"},{"level":2,"text":"Developing Plugins","anchor":"developing-plugins","htmlText":"Developing Plugins"},{"level":1,"text":"EMBEDDING YT-DLP","anchor":"embedding-yt-dlp","htmlText":"EMBEDDING YT-DLP"},{"level":2,"text":"Embedding examples","anchor":"embedding-examples","htmlText":"Embedding examples"},{"level":4,"text":"Extracting information","anchor":"extracting-information","htmlText":"Extracting information"},{"level":4,"text":"Download using an info-json","anchor":"download-using-an-info-json","htmlText":"Download using an info-json"},{"level":4,"text":"Extract audio","anchor":"extract-audio","htmlText":"Extract audio"},{"level":4,"text":"Filter videos","anchor":"filter-videos","htmlText":"Filter videos"},{"level":4,"text":"Adding logger and progress hook","anchor":"adding-logger-and-progress-hook","htmlText":"Adding logger and progress hook"},{"level":4,"text":"Add a custom PostProcessor","anchor":"add-a-custom-postprocessor","htmlText":"Add a custom PostProcessor"},{"level":4,"text":"Use a custom format selector","anchor":"use-a-custom-format-selector","htmlText":"Use a custom format selector"},{"level":1,"text":"CHANGES FROM YOUTUBE-DL","anchor":"changes-from-youtube-dl","htmlText":"CHANGES FROM YOUTUBE-DL"},{"level":3,"text":"New features","anchor":"new-features","htmlText":"New features"},{"level":3,"text":"Differences in default behavior","anchor":"differences-in-default-behavior","htmlText":"Differences in default behavior"},{"level":3,"text":"Deprecated options","anchor":"deprecated-options","htmlText":"Deprecated options"},{"level":4,"text":"Almost redundant options","anchor":"almost-redundant-options","htmlText":"Almost redundant options"},{"level":4,"text":"Redundant options","anchor":"redundant-options","htmlText":"Redundant options"},{"level":4,"text":"Not recommended","anchor":"not-recommended","htmlText":"Not recommended"},{"level":4,"text":"Developer options","anchor":"developer-options","htmlText":"Developer options"},{"level":4,"text":"Old aliases","anchor":"old-aliases","htmlText":"Old aliases"},{"level":4,"text":"Sponskrub Options","anchor":"sponskrub-options","htmlText":"Sponskrub Options"},{"level":4,"text":"No longer supported","anchor":"no-longer-supported","htmlText":"No longer supported"},{"level":4,"text":"Removed","anchor":"removed","htmlText":"Removed"},{"level":1,"text":"CONTRIBUTING","anchor":"contributing","htmlText":"CONTRIBUTING"},{"level":1,"text":"WIKI","anchor":"wiki","htmlText":"WIKI"}],"siteNavLoginPath":"/login?return_to=https%3A%2F%2Fgithub.com%2Fyt-dlp%2Fyt-dlp"}},{"displayName":"LICENSE","repoName":"yt-dlp","refName":"master","path":"LICENSE","preferredFileType":"license","tabName":"Unlicense","richText":null,"loaded":false,"timedOut":false,"errorMessage":null,"headerInfo":{"toc":null,"siteNavLoginPath":"/login?return_to=https%3A%2F%2Fgithub.com%2Fyt-dlp%2Fyt-dlp"}}],"overviewFilesProcessingTime":0}},"appPayload":{"helpUrl":"https://docs.github.com","findFileWorkerPath":"/assets-cdn/worker/find-file-worker-7d7eb7c71814.js","findInFileWorkerPath":"/assets-cdn/worker/find-in-file-worker-96e76d5fdb2c.js","githubDevUrl":null,"enabled_features":{"copilot_workspace":null,"code_nav_ui_events":false,"overview_shared_code_dropdown_button":false,"react_blob_overlay":false,"accessible_code_button":true,"github_models_repo_integration":false}}}}</script> <div data-target="react-partial.reactRoot"><style data-styled="true" data-styled-version="5.3.11">.iVEunk{margin-top:16px;margin-bottom:16px;}/*!sc*/ .jzuOtQ{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;}/*!sc*/ .bGojzy{margin-bottom:0;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;row-gap:16px;}/*!sc*/ .iNSVHo{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-flex:1;-webkit-flex-grow:1;-ms-flex-positive:1;flex-grow:1;padding-bottom:16px;padding-top:8px;}/*!sc*/ .bVgnfw{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;gap:8px;}/*!sc*/ @media screen and (max-width:320px){.bVgnfw{-webkit-box-flex:1;-webkit-flex-grow:1;-ms-flex-positive:1;flex-grow:1;}}/*!sc*/ .CEgMp{position:relative;}/*!sc*/ @media screen and (max-width:380px){.CEgMp .ref-selector-button-text-container{max-width:80px;}}/*!sc*/ @media screen and (max-width:320px){.CEgMp{-webkit-box-flex:1;-webkit-flex-grow:1;-ms-flex-positive:1;flex-grow:1;}.CEgMp .overview-ref-selector{width:100%;}.CEgMp .overview-ref-selector > span{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:start;-webkit-justify-content:flex-start;-ms-flex-pack:start;justify-content:flex-start;}.CEgMp .overview-ref-selector > span > span[data-component="text"]{-webkit-box-flex:1;-webkit-flex-grow:1;-ms-flex-positive:1;flex-grow:1;}}/*!sc*/ .gMOVLe[data-size="medium"]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;min-width:0;}/*!sc*/ .gMOVLe[data-size="medium"] svg{color:var(--fgColor-muted,var(--color-fg-muted,#656d76));}/*!sc*/ .gMOVLe[data-size="medium"] > span{width:inherit;}/*!sc*/ .gUkoLg{-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;}/*!sc*/ .bZBlpz{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;width:100%;}/*!sc*/ .lhTYNA{margin-right:4px;color:var(--fgColor-muted,var(--color-fg-muted,#656d76));}/*!sc*/ .ffLUq{font-size:14px;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}/*!sc*/ .bmcJak{min-width:0;}/*!sc*/ .fLXEGX{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;}/*!sc*/ @media screen and (max-width:1079px){.fLXEGX{display:none;}}/*!sc*/ .lmSMZJ[data-size="medium"]{color:var(--fgColor-muted,var(--color-fg-muted,#656d76));padding-left:4px;padding-right:4px;}/*!sc*/ .lmSMZJ[data-size="medium"] span[data-component="leadingVisual"]{margin-right:4px !important;}/*!sc*/ .dqfxud{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;}/*!sc*/ @media screen and (min-width:1080px){.dqfxud{display:none;}}/*!sc*/ @media screen and (max-width:543px){.dqfxud{display:none;}}/*!sc*/ .fGwBZA[data-size="medium"][data-no-visuals]{color:var(--fgColor-muted,var(--color-fg-muted,#656d76));}/*!sc*/ .jxTzTd{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;padding-left:8px;gap:8px;}/*!sc*/ .gqqBXN{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;gap:8px;}/*!sc*/ @media screen and (max-width:543px){.gqqBXN{display:none;}}/*!sc*/ .dzXgxt{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;}/*!sc*/ @media screen and (max-width:1011px){.dzXgxt{display:none;}}/*!sc*/ .iWFGlI{margin-left:8px;margin-right:8px;margin:0;}/*!sc*/ .vcvyP{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;min-width:160px;}/*!sc*/ .YUPas{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;}/*!sc*/ @media screen and (min-width:1012px){.YUPas{display:none;}}/*!sc*/ .izFOf{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;}/*!sc*/ @media screen and (min-width:544px){.izFOf{display:none;}}/*!sc*/ .vIPPs{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;gap:16px;}/*!sc*/ .fdROMU{width:100%;border-collapse:separate;border-spacing:0;border:1px solid;border-color:var(--borderColor-default,var(--color-border-default,#d0d7de));border-radius:6px;table-layout:fixed;overflow:unset;}/*!sc*/ .jGKpsv{height:0px;line-height:0px;}/*!sc*/ .jGKpsv tr{height:0px;font-size:0px;}/*!sc*/ .jdgHnn{padding:16px;color:var(--fgColor-muted,var(--color-fg-muted,#656d76));font-size:12px;text-align:left;height:40px;}/*!sc*/ .jdgHnn th{padding-left:16px;background-color:var(--bgColor-muted,var(--color-canvas-subtle,#f6f8fa));}/*!sc*/ .bQivRW{width:100%;border-top-left-radius:6px;}/*!sc*/ @media screen and (min-width:544px){.bQivRW{display:none;}}/*!sc*/ .ldkMIO{width:40%;border-top-left-radius:6px;}/*!sc*/ @media screen and (max-width:543px){.ldkMIO{display:none;}}/*!sc*/ .jMbWeI{text-align:right;padding-right:16px;width:136px;border-top-right-radius:6px;}/*!sc*/ .gpqjiB{color:var(--fgColor-muted,var(--color-fg-muted,#656d76));font-size:12px;height:40px;}/*!sc*/ .dzCJzi{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:8px;min-width:273px;padding:8px;}/*!sc*/ @media screen and (min-width:544px){.dzCJzi{-webkit-flex-wrap:nowrap;-ms-flex-wrap:nowrap;flex-wrap:nowrap;}}/*!sc*/ .eNCcrz{text-align:center;vertical-align:center;height:40px;border-top:1px solid;border-color:var(--borderColor-default,var(--color-border-default,#d0d7de));}/*!sc*/ .bHTcCe{border-top:1px solid var(--borderColor-default,var(--color-border-default));cursor:pointer;}/*!sc*/ .csrIcr{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-flex:1;-webkit-flex-grow:1;-ms-flex-positive:1;flex-grow:1;gap:16px;}/*!sc*/ .bUQNHB{border:1px solid;border-color:var(--borderColor-default,var(--color-border-default,#d0d7de));border-radius:6px;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-box-flex:1;-webkit-flex-grow:1;-ms-flex-positive:1;flex-grow:1;}/*!sc*/ @media screen and (max-width:543px){.bUQNHB{margin-left:-16px;margin-right:-16px;max-width:calc(100% + 32px);}}/*!sc*/ @media screen and (min-width:544px){.bUQNHB{max-width:100%;}}/*!sc*/ .jPdcfu{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;border-bottom:1px solid;border-bottom-color:var(--borderColor-default,var(--color-border-default,#d0d7de));-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;padding-right:8px;position:-webkit-sticky;position:sticky;top:0;background-color:var(--bgColor-default,var(--color-canvas-default,#ffffff));z-index:1;border-top-left-radius:6px;border-top-right-radius:6px;}/*!sc*/ .iphEWz{-webkit-box-flex:1;-webkit-flex-grow:1;-ms-flex-positive:1;flex-grow:1;border-bottom:none;max-width:100%;padding-left:8px;padding-right:8px;}/*!sc*/ .hUCRAk{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}/*!sc*/ .cwoBXV[data-size="medium"]{color:var(--fgColor-muted,var(--color-fg-subtle,#6e7781));padding-left:8px;padding-right:8px;}/*!sc*/ .QkQOb{padding:32px;overflow:auto;}/*!sc*/ data-styled.g1[id="Box-sc-g0xbh4-0"]{content:"iVEunk,jzuOtQ,bGojzy,iNSVHo,bVgnfw,CEgMp,gMOVLe,gUkoLg,bZBlpz,lhTYNA,ffLUq,bmcJak,fLXEGX,lmSMZJ,dqfxud,fGwBZA,jxTzTd,gqqBXN,dzXgxt,iWFGlI,vcvyP,YUPas,izFOf,vIPPs,fdROMU,jGKpsv,jdgHnn,bQivRW,ldkMIO,jMbWeI,gpqjiB,dzCJzi,eNCcrz,bHTcCe,csrIcr,bUQNHB,jPdcfu,iphEWz,hUCRAk,cwoBXV,QkQOb,"}/*!sc*/ .brGdpi{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;-webkit-clip:rect(0,0,0,0);clip:rect(0,0,0,0);white-space:nowrap;border-width:0;}/*!sc*/ data-styled.g5[id="_VisuallyHidden__VisuallyHidden-sc-11jhm7a-0"]{content:"brGdpi,"}/*!sc*/ .hWlpPn{position:relative;display:inline-block;}/*!sc*/ .hWlpPn::after{position:absolute;z-index:1000000;display:none;padding:0.5em 0.75em;font:normal normal 11px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";-webkit-font-smoothing:subpixel-antialiased;color:var(--tooltip-fgColor,var(--fgColor-onEmphasis,var(--color-fg-on-emphasis,#ffffff)));text-align:center;-webkit-text-decoration:none;text-decoration:none;text-shadow:none;text-transform:none;-webkit-letter-spacing:normal;-moz-letter-spacing:normal;-ms-letter-spacing:normal;letter-spacing:normal;word-wrap:break-word;white-space:pre;pointer-events:none;content:attr(aria-label);background:var(--tooltip-bgColor,var(--bgColor-emphasis,var(--color-neutral-emphasis-plus,#24292f)));border-radius:6px;opacity:0;}/*!sc*/ @-webkit-keyframes tooltip-appear{from{opacity:0;}to{opacity:1;}}/*!sc*/ @keyframes tooltip-appear{from{opacity:0;}to{opacity:1;}}/*!sc*/ .hWlpPn:hover::after,.hWlpPn:active::after,.hWlpPn:focus::after,.hWlpPn:focus-within::after{display:inline-block;-webkit-text-decoration:none;text-decoration:none;-webkit-animation-name:tooltip-appear;animation-name:tooltip-appear;-webkit-animation-duration:0.1s;animation-duration:0.1s;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards;-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in;-webkit-animation-delay:0s;animation-delay:0s;}/*!sc*/ .hWlpPn.tooltipped-no-delay:hover::after,.hWlpPn.tooltipped-no-delay:active::after,.hWlpPn.tooltipped-no-delay:focus::after,.hWlpPn.tooltipped-no-delay:focus-within::after{-webkit-animation-delay:0s;animation-delay:0s;}/*!sc*/ .hWlpPn.tooltipped-multiline:hover::after,.hWlpPn.tooltipped-multiline:active::after,.hWlpPn.tooltipped-multiline:focus::after,.hWlpPn.tooltipped-multiline:focus-within::after{display:table-cell;}/*!sc*/ .hWlpPn.tooltipped-s::after,.hWlpPn.tooltipped-se::after,.hWlpPn.tooltipped-sw::after{top:100%;right:50%;margin-top:6px;}/*!sc*/ .hWlpPn.tooltipped-se::after{right:auto;left:50%;margin-left:-16px;}/*!sc*/ .hWlpPn.tooltipped-sw::after{margin-right:-16px;}/*!sc*/ .hWlpPn.tooltipped-n::after,.hWlpPn.tooltipped-ne::after,.hWlpPn.tooltipped-nw::after{right:50%;bottom:100%;margin-bottom:6px;}/*!sc*/ .hWlpPn.tooltipped-ne::after{right:auto;left:50%;margin-left:-16px;}/*!sc*/ .hWlpPn.tooltipped-nw::after{margin-right:-16px;}/*!sc*/ .hWlpPn.tooltipped-s::after,.hWlpPn.tooltipped-n::after{-webkit-transform:translateX(50%);-ms-transform:translateX(50%);transform:translateX(50%);}/*!sc*/ .hWlpPn.tooltipped-w::after{right:100%;bottom:50%;margin-right:6px;-webkit-transform:translateY(50%);-ms-transform:translateY(50%);transform:translateY(50%);}/*!sc*/ .hWlpPn.tooltipped-e::after{bottom:50%;left:100%;margin-left:6px;-webkit-transform:translateY(50%);-ms-transform:translateY(50%);transform:translateY(50%);}/*!sc*/ .hWlpPn.tooltipped-multiline::after{width:-webkit-max-content;width:-moz-max-content;width:max-content;max-width:250px;word-wrap:break-word;white-space:pre-line;border-collapse:separate;}/*!sc*/ .hWlpPn.tooltipped-multiline.tooltipped-s::after,.hWlpPn.tooltipped-multiline.tooltipped-n::after{right:auto;left:50%;-webkit-transform:translateX(-50%);-ms-transform:translateX(-50%);transform:translateX(-50%);}/*!sc*/ .hWlpPn.tooltipped-multiline.tooltipped-w::after,.hWlpPn.tooltipped-multiline.tooltipped-e::after{right:100%;}/*!sc*/ .hWlpPn.tooltipped-align-right-2::after{right:0;margin-right:0;}/*!sc*/ .hWlpPn.tooltipped-align-left-2::after{left:0;margin-left:0;}/*!sc*/ data-styled.g16[id="Tooltip__TooltipBase-sc-17tf59c-0"]{content:"hWlpPn,"}/*!sc*/ .liVpTx{display:inline-block;overflow:hidden;text-overflow:ellipsis;vertical-align:top;white-space:nowrap;max-width:125px;}/*!sc*/ data-styled.g18[id="Truncate__StyledTruncate-sc-23o1d2-0"]{content:"liVpTx,"}/*!sc*/ </style> <!-- --> <!-- --> <div class="Box-sc-g0xbh4-0 iVEunk"><div class="Box-sc-g0xbh4-0 jzuOtQ"><div class="Box-sc-g0xbh4-0 bGojzy"></div></div><div class="Box-sc-g0xbh4-0 iNSVHo"><div class="Box-sc-g0xbh4-0 bVgnfw"><div class="Box-sc-g0xbh4-0 CEgMp"><button type="button" aria-haspopup="true" aria-expanded="false" tabindex="0" aria-label="master branch" data-testid="anchor-button" class="Box-sc-g0xbh4-0 gMOVLe prc-Button-ButtonBase-c50BI overview-ref-selector width-full" data-loading="false" data-size="medium" data-variant="default" aria-describedby="branch-picker-repos-header-ref-selector-loading-announcement" id="branch-picker-repos-header-ref-selector"><span data-component="buttonContent" class="Box-sc-g0xbh4-0 gUkoLg prc-Button-ButtonContent-HKbr-"><span data-component="text" class="prc-Button-Label-pTQ3x"><div class="Box-sc-g0xbh4-0 bZBlpz"><div class="Box-sc-g0xbh4-0 lhTYNA"><svg aria-hidden="true" focusable="false" class="octicon octicon-git-branch" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" display="inline-block" overflow="visible" style="vertical-align:text-bottom"><path d="M9.5 3.25a2.25 2.25 0 1 1 3 2.122V6A2.5 2.5 0 0 1 10 8.5H6a1 1 0 0 0-1 1v1.128a2.251 2.251 0 1 1-1.5 0V5.372a2.25 2.25 0 1 1 1.5 0v1.836A2.493 2.493 0 0 1 6 7h4a1 1 0 0 0 1-1v-.628A2.25 2.25 0 0 1 9.5 3.25Zm-6 0a.75.75 0 1 0 1.5 0 .75.75 0 0 0-1.5 0Zm8.25-.75a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5ZM4.25 12a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5Z"></path></svg></div><div class="Box-sc-g0xbh4-0 ffLUq ref-selector-button-text-container"><span class="Box-sc-g0xbh4-0 bmcJak prc-Text-Text-0ima0"> <!-- -->master</span></div></div></span><span data-component="trailingVisual" class="prc-Button-Visual-2epfX prc-Button-VisualWrap-Db-eB"><svg aria-hidden="true" focusable="false" class="octicon octicon-triangle-down" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" display="inline-block" overflow="visible" style="vertical-align:text-bottom"><path d="m4.427 7.427 3.396 3.396a.25.25 0 0 0 .354 0l3.396-3.396A.25.25 0 0 0 11.396 7H4.604a.25.25 0 0 0-.177.427Z"></path></svg></span></span></button><button hidden="" data-hotkey-scope="read-only-cursor-text-area"></button></div><div class="Box-sc-g0xbh4-0 fLXEGX"><a style="--button-color:fg.muted" type="button" href="/yt-dlp/yt-dlp/branches" class="Box-sc-g0xbh4-0 lmSMZJ prc-Button-ButtonBase-c50BI" data-loading="false" data-size="medium" data-variant="invisible" aria-describedby=":Rclab:-loading-announcement"><span data-component="buttonContent" class="Box-sc-g0xbh4-0 gUkoLg prc-Button-ButtonContent-HKbr-"><span data-component="leadingVisual" class="prc-Button-Visual-2epfX prc-Button-VisualWrap-Db-eB"><svg aria-hidden="true" focusable="false" class="octicon octicon-git-branch" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" display="inline-block" overflow="visible" style="vertical-align:text-bottom"><path d="M9.5 3.25a2.25 2.25 0 1 1 3 2.122V6A2.5 2.5 0 0 1 10 8.5H6a1 1 0 0 0-1 1v1.128a2.251 2.251 0 1 1-1.5 0V5.372a2.25 2.25 0 1 1 1.5 0v1.836A2.493 2.493 0 0 1 6 7h4a1 1 0 0 0 1-1v-.628A2.25 2.25 0 0 1 9.5 3.25Zm-6 0a.75.75 0 1 0 1.5 0 .75.75 0 0 0-1.5 0Zm8.25-.75a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5ZM4.25 12a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5Z"></path></svg></span><span data-component="text" class="prc-Button-Label-pTQ3x">Branches</span></span></a><a style="--button-color:fg.muted" type="button" href="/yt-dlp/yt-dlp/tags" class="Box-sc-g0xbh4-0 lmSMZJ prc-Button-ButtonBase-c50BI" data-loading="false" data-size="medium" data-variant="invisible" aria-describedby=":Rklab:-loading-announcement"><span data-component="buttonContent" class="Box-sc-g0xbh4-0 gUkoLg prc-Button-ButtonContent-HKbr-"><span data-component="leadingVisual" class="prc-Button-Visual-2epfX prc-Button-VisualWrap-Db-eB"><svg aria-hidden="true" focusable="false" class="octicon octicon-tag" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" display="inline-block" overflow="visible" style="vertical-align:text-bottom"><path d="M1 7.775V2.75C1 1.784 1.784 1 2.75 1h5.025c.464 0 .91.184 1.238.513l6.25 6.25a1.75 1.75 0 0 1 0 2.474l-5.026 5.026a1.75 1.75 0 0 1-2.474 0l-6.25-6.25A1.752 1.752 0 0 1 1 7.775Zm1.5 0c0 .066.026.13.073.177l6.25 6.25a.25.25 0 0 0 .354 0l5.025-5.025a.25.25 0 0 0 0-.354l-6.25-6.25a.25.25 0 0 0-.177-.073H2.75a.25.25 0 0 0-.25.25ZM6 5a1 1 0 1 1 0 2 1 1 0 0 1 0-2Z"></path></svg></span><span data-component="text" class="prc-Button-Label-pTQ3x">Tags</span></span></a></div><div class="Box-sc-g0xbh4-0 dqfxud"><a style="--button-color:fg.muted" type="button" aria-label="Go to Branches page" href="/yt-dlp/yt-dlp/branches" class="Box-sc-g0xbh4-0 fGwBZA prc-Button-ButtonBase-c50BI" data-loading="false" data-no-visuals="true" data-size="medium" data-variant="invisible" aria-describedby=":Relab:-loading-announcement"><svg aria-hidden="true" focusable="false" class="octicon octicon-git-branch" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" display="inline-block" overflow="visible" style="vertical-align:text-bottom"><path d="M9.5 3.25a2.25 2.25 0 1 1 3 2.122V6A2.5 2.5 0 0 1 10 8.5H6a1 1 0 0 0-1 1v1.128a2.251 2.251 0 1 1-1.5 0V5.372a2.25 2.25 0 1 1 1.5 0v1.836A2.493 2.493 0 0 1 6 7h4a1 1 0 0 0 1-1v-.628A2.25 2.25 0 0 1 9.5 3.25Zm-6 0a.75.75 0 1 0 1.5 0 .75.75 0 0 0-1.5 0Zm8.25-.75a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5ZM4.25 12a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5Z"></path></svg></a><a style="--button-color:fg.muted" type="button" aria-label="Go to Tags page" href="/yt-dlp/yt-dlp/tags" class="Box-sc-g0xbh4-0 fGwBZA prc-Button-ButtonBase-c50BI" data-loading="false" data-no-visuals="true" data-size="medium" data-variant="invisible" aria-describedby=":Rmlab:-loading-announcement"><svg aria-hidden="true" focusable="false" class="octicon octicon-tag" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" display="inline-block" overflow="visible" style="vertical-align:text-bottom"><path d="M1 7.775V2.75C1 1.784 1.784 1 2.75 1h5.025c.464 0 .91.184 1.238.513l6.25 6.25a1.75 1.75 0 0 1 0 2.474l-5.026 5.026a1.75 1.75 0 0 1-2.474 0l-6.25-6.25A1.752 1.752 0 0 1 1 7.775Zm1.5 0c0 .066.026.13.073.177l6.25 6.25a.25.25 0 0 0 .354 0l5.025-5.025a.25.25 0 0 0 0-.354l-6.25-6.25a.25.25 0 0 0-.177-.073H2.75a.25.25 0 0 0-.25.25ZM6 5a1 1 0 1 1 0 2 1 1 0 0 1 0-2Z"></path></svg></a></div></div><div class="Box-sc-g0xbh4-0 jxTzTd"><div class="Box-sc-g0xbh4-0 gqqBXN"><div class="Box-sc-g0xbh4-0 dzXgxt"><!--$--><div class="Box-sc-g0xbh4-0 iWFGlI"><span class="Box-sc-g0xbh4-0 vcvyP TextInput-wrapper prc-components-TextInputWrapper-i1ofR prc-components-TextInputBaseWrapper-ueK9q" data-leading-visual="true" data-trailing-visual="true" aria-busy="false"><span class="TextInput-icon" id=":R2j5ab:" aria-hidden="true"><svg aria-hidden="true" focusable="false" class="octicon octicon-search" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" display="inline-block" overflow="visible" style="vertical-align:text-bottom"><path d="M10.68 11.74a6 6 0 0 1-7.922-8.982 6 6 0 0 1 8.982 7.922l3.04 3.04a.749.749 0 0 1-.326 1.275.749.749 0 0 1-.734-.215ZM11.5 7a4.499 4.499 0 1 0-8.997 0A4.499 4.499 0 0 0 11.5 7Z"></path></svg></span><input type="text" aria-label="Go to file" role="combobox" aria-controls="file-results-list" aria-expanded="false" aria-haspopup="dialog" autoCorrect="off" spellcheck="false" placeholder="Go to file" aria-describedby=":R2j5ab: :R2j5abH1:" data-component="input" class="prc-components-Input-Ic-y8" value=""/><span class="TextInput-icon" id=":R2j5abH1:" aria-hidden="true"></span></span></div><!--/$--></div><div class="Box-sc-g0xbh4-0 YUPas"><button type="button" class="prc-Button-ButtonBase-c50BI" data-loading="false" data-no-visuals="true" data-size="medium" data-variant="default" aria-describedby=":Rr5ab:-loading-announcement"><span data-component="buttonContent" data-align="center" class="prc-Button-ButtonContent-HKbr-"><span data-component="text" class="prc-Button-Label-pTQ3x">Go to file</span></span></button></div><div class="react-directory-add-file-icon"></div><div class="react-directory-remove-file-icon"></div></div><button type="button" aria-haspopup="true" aria-expanded="false" tabindex="0" class="prc-Button-ButtonBase-c50BI" data-loading="false" data-size="medium" data-variant="primary" aria-describedby=":R55ab:-loading-announcement" id=":R55ab:"><span data-component="buttonContent" data-align="center" class="prc-Button-ButtonContent-HKbr-"><span data-component="leadingVisual" class="prc-Button-Visual-2epfX prc-Button-VisualWrap-Db-eB"><svg aria-hidden="true" focusable="false" class="octicon octicon-code hide-sm" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" display="inline-block" overflow="visible" style="vertical-align:text-bottom"><path d="m11.28 3.22 4.25 4.25a.75.75 0 0 1 0 1.06l-4.25 4.25a.749.749 0 0 1-1.275-.326.749.749 0 0 1 .215-.734L13.94 8l-3.72-3.72a.749.749 0 0 1 .326-1.275.749.749 0 0 1 .734.215Zm-6.56 0a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042L2.06 8l3.72 3.72a.749.749 0 0 1-.326 1.275.749.749 0 0 1-.734-.215L.47 8.53a.75.75 0 0 1 0-1.06Z"></path></svg></span><span data-component="text" class="prc-Button-Label-pTQ3x">Code</span><span data-component="trailingVisual" class="prc-Button-Visual-2epfX prc-Button-VisualWrap-Db-eB"><svg aria-hidden="true" focusable="false" class="octicon octicon-triangle-down" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" display="inline-block" overflow="visible" style="vertical-align:text-bottom"><path d="m4.427 7.427 3.396 3.396a.25.25 0 0 0 .354 0l3.396-3.396A.25.25 0 0 0 11.396 7H4.604a.25.25 0 0 0-.177.427Z"></path></svg></span></span></button><div class="Box-sc-g0xbh4-0 izFOf"><button data-component="IconButton" type="button" aria-label="Open more actions menu" aria-haspopup="true" aria-expanded="false" tabindex="0" class="prc-Button-ButtonBase-c50BI prc-Button-IconButton-szpyj" data-loading="false" data-no-visuals="true" data-size="medium" data-variant="default" aria-describedby=":R75ab:-loading-announcement" id=":R75ab:"><svg aria-hidden="true" focusable="false" class="octicon octicon-kebab-horizontal" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" display="inline-block" overflow="visible" style="vertical-align:text-bottom"><path d="M8 9a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3ZM1.5 9a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Zm13 0a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Z"></path></svg></button></div></div></div><div class="Box-sc-g0xbh4-0 vIPPs"><div data-hpc="true"><button hidden="" data-testid="focus-next-element-button" data-hotkey="j"></button><button hidden="" data-testid="focus-previous-element-button" data-hotkey="k"></button><h2 class="sr-only ScreenReaderHeading-module__userSelectNone--vW4Cq prc-Heading-Heading-6CmGO" data-testid="screen-reader-heading" id="folders-and-files">Folders and files</h2><table aria-labelledby="folders-and-files" class="Box-sc-g0xbh4-0 fdROMU"><thead class="Box-sc-g0xbh4-0 jGKpsv"><tr class="Box-sc-g0xbh4-0 jdgHnn"><th colSpan="2" class="Box-sc-g0xbh4-0 bQivRW"><span class="text-bold">Name</span></th><th colSpan="1" class="Box-sc-g0xbh4-0 ldkMIO"><span class="text-bold">Name</span></th><th class="hide-sm"><div title="Last commit message" class="Truncate__StyledTruncate-sc-23o1d2-0 liVpTx width-fit"><span class="text-bold">Last commit message</span></div></th><th colSpan="1" class="Box-sc-g0xbh4-0 jMbWeI"><div title="Last commit date" class="Truncate__StyledTruncate-sc-23o1d2-0 liVpTx width-fit"><span class="text-bold">Last commit date</span></div></th></tr></thead><tbody><tr class="Box-sc-g0xbh4-0 gpqjiB"><td colSpan="3" class="bgColor-muted p-1 rounded-top-2"><div class="Box-sc-g0xbh4-0 dzCJzi"><h2 class="sr-only ScreenReaderHeading-module__userSelectNone--vW4Cq prc-Heading-Heading-6CmGO" data-testid="screen-reader-heading">Latest commit</h2><div style="width:120px" class="Skeleton Skeleton--text" data-testid="loading"> </div><div class="d-flex flex-shrink-0 gap-2"><div data-testid="latest-commit-details" class="d-none d-sm-flex flex-items-center"></div><div class="d-flex gap-2"><h2 class="sr-only ScreenReaderHeading-module__userSelectNone--vW4Cq prc-Heading-Heading-6CmGO" data-testid="screen-reader-heading">History</h2><a href="/yt-dlp/yt-dlp/commits/master/" class="prc-Button-ButtonBase-c50BI d-none d-lg-flex LinkButton-module__code-view-link-button--xvCGA flex-items-center fgColor-default" data-loading="false" data-size="small" data-variant="invisible" aria-describedby=":Raqj8pab:-loading-announcement"><span data-component="buttonContent" data-align="center" class="prc-Button-ButtonContent-HKbr-"><span data-component="leadingVisual" class="prc-Button-Visual-2epfX prc-Button-VisualWrap-Db-eB"><svg aria-hidden="true" focusable="false" class="octicon octicon-history" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" display="inline-block" overflow="visible" style="vertical-align:text-bottom"><path d="m.427 1.927 1.215 1.215a8.002 8.002 0 1 1-1.6 5.685.75.75 0 1 1 1.493-.154 6.5 6.5 0 1 0 1.18-4.458l1.358 1.358A.25.25 0 0 1 3.896 6H.25A.25.25 0 0 1 0 5.75V2.104a.25.25 0 0 1 .427-.177ZM7.75 4a.75.75 0 0 1 .75.75v2.992l2.028.812a.75.75 0 0 1-.557 1.392l-2.5-1A.751.751 0 0 1 7 8.25v-3.5A.75.75 0 0 1 7.75 4Z"></path></svg></span><span data-component="text" class="prc-Button-Label-pTQ3x"><span class="fgColor-default">23,103 Commits</span></span></span></a><div class="d-sm-none"></div><div class="d-flex d-lg-none"><span role="tooltip" aria-label="23,103 Commits" id="history-icon-button-tooltip" class="Tooltip__TooltipBase-sc-17tf59c-0 hWlpPn tooltipped-n"><a href="/yt-dlp/yt-dlp/commits/master/" class="prc-Button-ButtonBase-c50BI LinkButton-module__code-view-link-button--xvCGA flex-items-center fgColor-default" data-loading="false" data-size="small" data-variant="invisible" aria-describedby=":R1iqj8pab:-loading-announcement history-icon-button-tooltip"><span data-component="buttonContent" data-align="center" class="prc-Button-ButtonContent-HKbr-"><span data-component="leadingVisual" class="prc-Button-Visual-2epfX prc-Button-VisualWrap-Db-eB"><svg aria-hidden="true" focusable="false" class="octicon octicon-history" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" display="inline-block" overflow="visible" style="vertical-align:text-bottom"><path d="m.427 1.927 1.215 1.215a8.002 8.002 0 1 1-1.6 5.685.75.75 0 1 1 1.493-.154 6.5 6.5 0 1 0 1.18-4.458l1.358 1.358A.25.25 0 0 1 3.896 6H.25A.25.25 0 0 1 0 5.75V2.104a.25.25 0 0 1 .427-.177ZM7.75 4a.75.75 0 0 1 .75.75v2.992l2.028.812a.75.75 0 0 1-.557 1.392l-2.5-1A.751.751 0 0 1 7 8.25v-3.5A.75.75 0 0 1 7.75 4Z"></path></svg></span></span></a></span></div></div></div></div></td></tr><tr class="react-directory-row undefined" id="folder-row-0"><td class="react-directory-row-name-cell-small-screen" colSpan="2"><div class="react-directory-filename-column"><svg aria-hidden="true" focusable="false" class="octicon octicon-file-directory-fill icon-directory" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" display="inline-block" overflow="visible" style="vertical-align:text-bottom"><path d="M1.75 1A1.75 1.75 0 0 0 0 2.75v10.5C0 14.216.784 15 1.75 15h12.5A1.75 1.75 0 0 0 16 13.25v-8.5A1.75 1.75 0 0 0 14.25 3H7.5a.25.25 0 0 1-.2-.1l-.9-1.2C6.07 1.26 5.55 1 5 1H1.75Z"></path></svg><div class="overflow-hidden"><div class="react-directory-filename-cell"><div class="react-directory-truncate"><a title=".github" aria-label=".github, (Directory)" class="Link--primary" href="/yt-dlp/yt-dlp/tree/master/.github">.github</a></div></div></div></div></td><td class="react-directory-row-name-cell-large-screen" colSpan="1"><div class="react-directory-filename-column"><svg aria-hidden="true" focusable="false" class="octicon octicon-file-directory-fill icon-directory" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" display="inline-block" overflow="visible" style="vertical-align:text-bottom"><path d="M1.75 1A1.75 1.75 0 0 0 0 2.75v10.5C0 14.216.784 15 1.75 15h12.5A1.75 1.75 0 0 0 16 13.25v-8.5A1.75 1.75 0 0 0 14.25 3H7.5a.25.25 0 0 1-.2-.1l-.9-1.2C6.07 1.26 5.55 1 5 1H1.75Z"></path></svg><div class="overflow-hidden"><div class="react-directory-filename-cell"><div class="react-directory-truncate"><a title=".github" aria-label=".github, (Directory)" class="Link--primary" href="/yt-dlp/yt-dlp/tree/master/.github">.github</a></div></div></div></div></td><td class="react-directory-row-commit-cell"><div class="Skeleton Skeleton--text"> </div></td><td><div class="Skeleton Skeleton--text"> </div></td></tr><tr class="react-directory-row undefined" id="folder-row-1"><td class="react-directory-row-name-cell-small-screen" colSpan="2"><div class="react-directory-filename-column"><svg aria-hidden="true" focusable="false" class="octicon octicon-file-directory-fill icon-directory" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" display="inline-block" overflow="visible" style="vertical-align:text-bottom"><path d="M1.75 1A1.75 1.75 0 0 0 0 2.75v10.5C0 14.216.784 15 1.75 15h12.5A1.75 1.75 0 0 0 16 13.25v-8.5A1.75 1.75 0 0 0 14.25 3H7.5a.25.25 0 0 1-.2-.1l-.9-1.2C6.07 1.26 5.55 1 5 1H1.75Z"></path></svg><div class="overflow-hidden"><div class="react-directory-filename-cell"><div class="react-directory-truncate"><a title="bundle" aria-label="bundle, (Directory)" class="Link--primary" href="/yt-dlp/yt-dlp/tree/master/bundle">bundle</a></div></div></div></div></td><td class="react-directory-row-name-cell-large-screen" colSpan="1"><div class="react-directory-filename-column"><svg aria-hidden="true" focusable="false" class="octicon octicon-file-directory-fill icon-directory" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" display="inline-block" overflow="visible" style="vertical-align:text-bottom"><path d="M1.75 1A1.75 1.75 0 0 0 0 2.75v10.5C0 14.216.784 15 1.75 15h12.5A1.75 1.75 0 0 0 16 13.25v-8.5A1.75 1.75 0 0 0 14.25 3H7.5a.25.25 0 0 1-.2-.1l-.9-1.2C6.07 1.26 5.55 1 5 1H1.75Z"></path></svg><div class="overflow-hidden"><div class="react-directory-filename-cell"><div class="react-directory-truncate"><a title="bundle" aria-label="bundle, (Directory)" class="Link--primary" href="/yt-dlp/yt-dlp/tree/master/bundle">bundle</a></div></div></div></div></td><td class="react-directory-row-commit-cell"><div class="Skeleton Skeleton--text"> </div></td><td><div class="Skeleton Skeleton--text"> </div></td></tr><tr class="react-directory-row undefined" id="folder-row-2"><td class="react-directory-row-name-cell-small-screen" colSpan="2"><div class="react-directory-filename-column"><svg aria-hidden="true" focusable="false" class="octicon octicon-file-directory-fill icon-directory" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" display="inline-block" overflow="visible" style="vertical-align:text-bottom"><path d="M1.75 1A1.75 1.75 0 0 0 0 2.75v10.5C0 14.216.784 15 1.75 15h12.5A1.75 1.75 0 0 0 16 13.25v-8.5A1.75 1.75 0 0 0 14.25 3H7.5a.25.25 0 0 1-.2-.1l-.9-1.2C6.07 1.26 5.55 1 5 1H1.75Z"></path></svg><div class="overflow-hidden"><div class="react-directory-filename-cell"><div class="react-directory-truncate"><a title="devscripts" aria-label="devscripts, (Directory)" class="Link--primary" href="/yt-dlp/yt-dlp/tree/master/devscripts">devscripts</a></div></div></div></div></td><td class="react-directory-row-name-cell-large-screen" colSpan="1"><div class="react-directory-filename-column"><svg aria-hidden="true" focusable="false" class="octicon octicon-file-directory-fill icon-directory" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" display="inline-block" overflow="visible" style="vertical-align:text-bottom"><path d="M1.75 1A1.75 1.75 0 0 0 0 2.75v10.5C0 14.216.784 15 1.75 15h12.5A1.75 1.75 0 0 0 16 13.25v-8.5A1.75 1.75 0 0 0 14.25 3H7.5a.25.25 0 0 1-.2-.1l-.9-1.2C6.07 1.26 5.55 1 5 1H1.75Z"></path></svg><div class="overflow-hidden"><div class="react-directory-filename-cell"><div class="react-directory-truncate"><a title="devscripts" aria-label="devscripts, (Directory)" class="Link--primary" href="/yt-dlp/yt-dlp/tree/master/devscripts">devscripts</a></div></div></div></div></td><td class="react-directory-row-commit-cell"><div class="Skeleton Skeleton--text"> </div></td><td><div class="Skeleton Skeleton--text"> </div></td></tr><tr class="react-directory-row undefined" id="folder-row-3"><td class="react-directory-row-name-cell-small-screen" colSpan="2"><div class="react-directory-filename-column"><svg aria-hidden="true" focusable="false" class="octicon octicon-file-directory-fill icon-directory" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" display="inline-block" overflow="visible" style="vertical-align:text-bottom"><path d="M1.75 1A1.75 1.75 0 0 0 0 2.75v10.5C0 14.216.784 15 1.75 15h12.5A1.75 1.75 0 0 0 16 13.25v-8.5A1.75 1.75 0 0 0 14.25 3H7.5a.25.25 0 0 1-.2-.1l-.9-1.2C6.07 1.26 5.55 1 5 1H1.75Z"></path></svg><div class="overflow-hidden"><div class="react-directory-filename-cell"><div class="react-directory-truncate"><a title="test" aria-label="test, (Directory)" class="Link--primary" href="/yt-dlp/yt-dlp/tree/master/test">test</a></div></div></div></div></td><td class="react-directory-row-name-cell-large-screen" colSpan="1"><div class="react-directory-filename-column"><svg aria-hidden="true" focusable="false" class="octicon octicon-file-directory-fill icon-directory" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" display="inline-block" overflow="visible" style="vertical-align:text-bottom"><path d="M1.75 1A1.75 1.75 0 0 0 0 2.75v10.5C0 14.216.784 15 1.75 15h12.5A1.75 1.75 0 0 0 16 13.25v-8.5A1.75 1.75 0 0 0 14.25 3H7.5a.25.25 0 0 1-.2-.1l-.9-1.2C6.07 1.26 5.55 1 5 1H1.75Z"></path></svg><div class="overflow-hidden"><div class="react-directory-filename-cell"><div class="react-directory-truncate"><a title="test" aria-label="test, (Directory)" class="Link--primary" href="/yt-dlp/yt-dlp/tree/master/test">test</a></div></div></div></div></td><td class="react-directory-row-commit-cell"><div class="Skeleton Skeleton--text"> </div></td><td><div class="Skeleton Skeleton--text"> </div></td></tr><tr class="react-directory-row undefined" id="folder-row-4"><td class="react-directory-row-name-cell-small-screen" colSpan="2"><div class="react-directory-filename-column"><svg aria-hidden="true" focusable="false" class="octicon octicon-file-directory-fill icon-directory" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" display="inline-block" overflow="visible" style="vertical-align:text-bottom"><path d="M1.75 1A1.75 1.75 0 0 0 0 2.75v10.5C0 14.216.784 15 1.75 15h12.5A1.75 1.75 0 0 0 16 13.25v-8.5A1.75 1.75 0 0 0 14.25 3H7.5a.25.25 0 0 1-.2-.1l-.9-1.2C6.07 1.26 5.55 1 5 1H1.75Z"></path></svg><div class="overflow-hidden"><div class="react-directory-filename-cell"><div class="react-directory-truncate"><a title="yt_dlp" aria-label="yt_dlp, (Directory)" class="Link--primary" href="/yt-dlp/yt-dlp/tree/master/yt_dlp">yt_dlp</a></div></div></div></div></td><td class="react-directory-row-name-cell-large-screen" colSpan="1"><div class="react-directory-filename-column"><svg aria-hidden="true" focusable="false" class="octicon octicon-file-directory-fill icon-directory" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" display="inline-block" overflow="visible" style="vertical-align:text-bottom"><path d="M1.75 1A1.75 1.75 0 0 0 0 2.75v10.5C0 14.216.784 15 1.75 15h12.5A1.75 1.75 0 0 0 16 13.25v-8.5A1.75 1.75 0 0 0 14.25 3H7.5a.25.25 0 0 1-.2-.1l-.9-1.2C6.07 1.26 5.55 1 5 1H1.75Z"></path></svg><div class="overflow-hidden"><div class="react-directory-filename-cell"><div class="react-directory-truncate"><a title="yt_dlp" aria-label="yt_dlp, (Directory)" class="Link--primary" href="/yt-dlp/yt-dlp/tree/master/yt_dlp">yt_dlp</a></div></div></div></div></td><td class="react-directory-row-commit-cell"><div class="Skeleton Skeleton--text"> </div></td><td><div class="Skeleton Skeleton--text"> </div></td></tr><tr class="react-directory-row undefined" id="folder-row-5"><td class="react-directory-row-name-cell-small-screen" colSpan="2"><div class="react-directory-filename-column"><svg aria-hidden="true" focusable="false" class="octicon octicon-file color-fg-muted" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" display="inline-block" overflow="visible" style="vertical-align:text-bottom"><path d="M2 1.75C2 .784 2.784 0 3.75 0h6.586c.464 0 .909.184 1.237.513l2.914 2.914c.329.328.513.773.513 1.237v9.586A1.75 1.75 0 0 1 13.25 16h-9.5A1.75 1.75 0 0 1 2 14.25Zm1.75-.25a.25.25 0 0 0-.25.25v12.5c0 .138.112.25.25.25h9.5a.25.25 0 0 0 .25-.25V6h-2.75A1.75 1.75 0 0 1 9 4.25V1.5Zm6.75.062V4.25c0 .138.112.25.25.25h2.688l-.011-.013-2.914-2.914-.013-.011Z"></path></svg><div class="overflow-hidden"><div class="react-directory-filename-cell"><div class="react-directory-truncate"><a title=".editorconfig" aria-label=".editorconfig, (File)" class="Link--primary" href="/yt-dlp/yt-dlp/blob/master/.editorconfig">.editorconfig</a></div></div></div></div></td><td class="react-directory-row-name-cell-large-screen" colSpan="1"><div class="react-directory-filename-column"><svg aria-hidden="true" focusable="false" class="octicon octicon-file color-fg-muted" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" display="inline-block" overflow="visible" style="vertical-align:text-bottom"><path d="M2 1.75C2 .784 2.784 0 3.75 0h6.586c.464 0 .909.184 1.237.513l2.914 2.914c.329.328.513.773.513 1.237v9.586A1.75 1.75 0 0 1 13.25 16h-9.5A1.75 1.75 0 0 1 2 14.25Zm1.75-.25a.25.25 0 0 0-.25.25v12.5c0 .138.112.25.25.25h9.5a.25.25 0 0 0 .25-.25V6h-2.75A1.75 1.75 0 0 1 9 4.25V1.5Zm6.75.062V4.25c0 .138.112.25.25.25h2.688l-.011-.013-2.914-2.914-.013-.011Z"></path></svg><div class="overflow-hidden"><div class="react-directory-filename-cell"><div class="react-directory-truncate"><a title=".editorconfig" aria-label=".editorconfig, (File)" class="Link--primary" href="/yt-dlp/yt-dlp/blob/master/.editorconfig">.editorconfig</a></div></div></div></div></td><td class="react-directory-row-commit-cell"><div class="Skeleton Skeleton--text"> </div></td><td><div class="Skeleton Skeleton--text"> </div></td></tr><tr class="react-directory-row undefined" id="folder-row-6"><td class="react-directory-row-name-cell-small-screen" colSpan="2"><div class="react-directory-filename-column"><svg aria-hidden="true" focusable="false" class="octicon octicon-file color-fg-muted" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" display="inline-block" overflow="visible" style="vertical-align:text-bottom"><path d="M2 1.75C2 .784 2.784 0 3.75 0h6.586c.464 0 .909.184 1.237.513l2.914 2.914c.329.328.513.773.513 1.237v9.586A1.75 1.75 0 0 1 13.25 16h-9.5A1.75 1.75 0 0 1 2 14.25Zm1.75-.25a.25.25 0 0 0-.25.25v12.5c0 .138.112.25.25.25h9.5a.25.25 0 0 0 .25-.25V6h-2.75A1.75 1.75 0 0 1 9 4.25V1.5Zm6.75.062V4.25c0 .138.112.25.25.25h2.688l-.011-.013-2.914-2.914-.013-.011Z"></path></svg><div class="overflow-hidden"><div class="react-directory-filename-cell"><div class="react-directory-truncate"><a title=".gitattributes" aria-label=".gitattributes, (File)" class="Link--primary" href="/yt-dlp/yt-dlp/blob/master/.gitattributes">.gitattributes</a></div></div></div></div></td><td class="react-directory-row-name-cell-large-screen" colSpan="1"><div class="react-directory-filename-column"><svg aria-hidden="true" focusable="false" class="octicon octicon-file color-fg-muted" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" display="inline-block" overflow="visible" style="vertical-align:text-bottom"><path d="M2 1.75C2 .784 2.784 0 3.75 0h6.586c.464 0 .909.184 1.237.513l2.914 2.914c.329.328.513.773.513 1.237v9.586A1.75 1.75 0 0 1 13.25 16h-9.5A1.75 1.75 0 0 1 2 14.25Zm1.75-.25a.25.25 0 0 0-.25.25v12.5c0 .138.112.25.25.25h9.5a.25.25 0 0 0 .25-.25V6h-2.75A1.75 1.75 0 0 1 9 4.25V1.5Zm6.75.062V4.25c0 .138.112.25.25.25h2.688l-.011-.013-2.914-2.914-.013-.011Z"></path></svg><div class="overflow-hidden"><div class="react-directory-filename-cell"><div class="react-directory-truncate"><a title=".gitattributes" aria-label=".gitattributes, (File)" class="Link--primary" href="/yt-dlp/yt-dlp/blob/master/.gitattributes">.gitattributes</a></div></div></div></div></td><td class="react-directory-row-commit-cell"><div class="Skeleton Skeleton--text"> </div></td><td><div class="Skeleton Skeleton--text"> </div></td></tr><tr class="react-directory-row undefined" id="folder-row-7"><td class="react-directory-row-name-cell-small-screen" colSpan="2"><div class="react-directory-filename-column"><svg aria-hidden="true" focusable="false" class="octicon octicon-file color-fg-muted" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" display="inline-block" overflow="visible" style="vertical-align:text-bottom"><path d="M2 1.75C2 .784 2.784 0 3.75 0h6.586c.464 0 .909.184 1.237.513l2.914 2.914c.329.328.513.773.513 1.237v9.586A1.75 1.75 0 0 1 13.25 16h-9.5A1.75 1.75 0 0 1 2 14.25Zm1.75-.25a.25.25 0 0 0-.25.25v12.5c0 .138.112.25.25.25h9.5a.25.25 0 0 0 .25-.25V6h-2.75A1.75 1.75 0 0 1 9 4.25V1.5Zm6.75.062V4.25c0 .138.112.25.25.25h2.688l-.011-.013-2.914-2.914-.013-.011Z"></path></svg><div class="overflow-hidden"><div class="react-directory-filename-cell"><div class="react-directory-truncate"><a title=".gitignore" aria-label=".gitignore, (File)" class="Link--primary" href="/yt-dlp/yt-dlp/blob/master/.gitignore">.gitignore</a></div></div></div></div></td><td class="react-directory-row-name-cell-large-screen" colSpan="1"><div class="react-directory-filename-column"><svg aria-hidden="true" focusable="false" class="octicon octicon-file color-fg-muted" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" display="inline-block" overflow="visible" style="vertical-align:text-bottom"><path d="M2 1.75C2 .784 2.784 0 3.75 0h6.586c.464 0 .909.184 1.237.513l2.914 2.914c.329.328.513.773.513 1.237v9.586A1.75 1.75 0 0 1 13.25 16h-9.5A1.75 1.75 0 0 1 2 14.25Zm1.75-.25a.25.25 0 0 0-.25.25v12.5c0 .138.112.25.25.25h9.5a.25.25 0 0 0 .25-.25V6h-2.75A1.75 1.75 0 0 1 9 4.25V1.5Zm6.75.062V4.25c0 .138.112.25.25.25h2.688l-.011-.013-2.914-2.914-.013-.011Z"></path></svg><div class="overflow-hidden"><div class="react-directory-filename-cell"><div class="react-directory-truncate"><a title=".gitignore" aria-label=".gitignore, (File)" class="Link--primary" href="/yt-dlp/yt-dlp/blob/master/.gitignore">.gitignore</a></div></div></div></div></td><td class="react-directory-row-commit-cell"><div class="Skeleton Skeleton--text"> </div></td><td><div class="Skeleton Skeleton--text"> </div></td></tr><tr class="react-directory-row undefined" id="folder-row-8"><td class="react-directory-row-name-cell-small-screen" colSpan="2"><div class="react-directory-filename-column"><svg aria-hidden="true" focusable="false" class="octicon octicon-file color-fg-muted" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" display="inline-block" overflow="visible" style="vertical-align:text-bottom"><path d="M2 1.75C2 .784 2.784 0 3.75 0h6.586c.464 0 .909.184 1.237.513l2.914 2.914c.329.328.513.773.513 1.237v9.586A1.75 1.75 0 0 1 13.25 16h-9.5A1.75 1.75 0 0 1 2 14.25Zm1.75-.25a.25.25 0 0 0-.25.25v12.5c0 .138.112.25.25.25h9.5a.25.25 0 0 0 .25-.25V6h-2.75A1.75 1.75 0 0 1 9 4.25V1.5Zm6.75.062V4.25c0 .138.112.25.25.25h2.688l-.011-.013-2.914-2.914-.013-.011Z"></path></svg><div class="overflow-hidden"><div class="react-directory-filename-cell"><div class="react-directory-truncate"><a title=".pre-commit-config.yaml" aria-label=".pre-commit-config.yaml, (File)" class="Link--primary" href="/yt-dlp/yt-dlp/blob/master/.pre-commit-config.yaml">.pre-commit-config.yaml</a></div></div></div></div></td><td class="react-directory-row-name-cell-large-screen" colSpan="1"><div class="react-directory-filename-column"><svg aria-hidden="true" focusable="false" class="octicon octicon-file color-fg-muted" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" display="inline-block" overflow="visible" style="vertical-align:text-bottom"><path d="M2 1.75C2 .784 2.784 0 3.75 0h6.586c.464 0 .909.184 1.237.513l2.914 2.914c.329.328.513.773.513 1.237v9.586A1.75 1.75 0 0 1 13.25 16h-9.5A1.75 1.75 0 0 1 2 14.25Zm1.75-.25a.25.25 0 0 0-.25.25v12.5c0 .138.112.25.25.25h9.5a.25.25 0 0 0 .25-.25V6h-2.75A1.75 1.75 0 0 1 9 4.25V1.5Zm6.75.062V4.25c0 .138.112.25.25.25h2.688l-.011-.013-2.914-2.914-.013-.011Z"></path></svg><div class="overflow-hidden"><div class="react-directory-filename-cell"><div class="react-directory-truncate"><a title=".pre-commit-config.yaml" aria-label=".pre-commit-config.yaml, (File)" class="Link--primary" href="/yt-dlp/yt-dlp/blob/master/.pre-commit-config.yaml">.pre-commit-config.yaml</a></div></div></div></div></td><td class="react-directory-row-commit-cell"><div class="Skeleton Skeleton--text"> </div></td><td><div class="Skeleton Skeleton--text"> </div></td></tr><tr class="react-directory-row undefined" id="folder-row-9"><td class="react-directory-row-name-cell-small-screen" colSpan="2"><div class="react-directory-filename-column"><svg aria-hidden="true" focusable="false" class="octicon octicon-file color-fg-muted" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" display="inline-block" overflow="visible" style="vertical-align:text-bottom"><path d="M2 1.75C2 .784 2.784 0 3.75 0h6.586c.464 0 .909.184 1.237.513l2.914 2.914c.329.328.513.773.513 1.237v9.586A1.75 1.75 0 0 1 13.25 16h-9.5A1.75 1.75 0 0 1 2 14.25Zm1.75-.25a.25.25 0 0 0-.25.25v12.5c0 .138.112.25.25.25h9.5a.25.25 0 0 0 .25-.25V6h-2.75A1.75 1.75 0 0 1 9 4.25V1.5Zm6.75.062V4.25c0 .138.112.25.25.25h2.688l-.011-.013-2.914-2.914-.013-.011Z"></path></svg><div class="overflow-hidden"><div class="react-directory-filename-cell"><div class="react-directory-truncate"><a title=".pre-commit-hatch.yaml" aria-label=".pre-commit-hatch.yaml, (File)" class="Link--primary" href="/yt-dlp/yt-dlp/blob/master/.pre-commit-hatch.yaml">.pre-commit-hatch.yaml</a></div></div></div></div></td><td class="react-directory-row-name-cell-large-screen" colSpan="1"><div class="react-directory-filename-column"><svg aria-hidden="true" focusable="false" class="octicon octicon-file color-fg-muted" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" display="inline-block" overflow="visible" style="vertical-align:text-bottom"><path d="M2 1.75C2 .784 2.784 0 3.75 0h6.586c.464 0 .909.184 1.237.513l2.914 2.914c.329.328.513.773.513 1.237v9.586A1.75 1.75 0 0 1 13.25 16h-9.5A1.75 1.75 0 0 1 2 14.25Zm1.75-.25a.25.25 0 0 0-.25.25v12.5c0 .138.112.25.25.25h9.5a.25.25 0 0 0 .25-.25V6h-2.75A1.75 1.75 0 0 1 9 4.25V1.5Zm6.75.062V4.25c0 .138.112.25.25.25h2.688l-.011-.013-2.914-2.914-.013-.011Z"></path></svg><div class="overflow-hidden"><div class="react-directory-filename-cell"><div class="react-directory-truncate"><a title=".pre-commit-hatch.yaml" aria-label=".pre-commit-hatch.yaml, (File)" class="Link--primary" href="/yt-dlp/yt-dlp/blob/master/.pre-commit-hatch.yaml">.pre-commit-hatch.yaml</a></div></div></div></div></td><td class="react-directory-row-commit-cell"><div class="Skeleton Skeleton--text"> </div></td><td><div class="Skeleton Skeleton--text"> </div></td></tr><tr class="react-directory-row truncate-for-mobile" id="folder-row-10"><td class="react-directory-row-name-cell-small-screen" colSpan="2"><div class="react-directory-filename-column"><svg aria-hidden="true" focusable="false" class="octicon octicon-file color-fg-muted" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" display="inline-block" overflow="visible" style="vertical-align:text-bottom"><path d="M2 1.75C2 .784 2.784 0 3.75 0h6.586c.464 0 .909.184 1.237.513l2.914 2.914c.329.328.513.773.513 1.237v9.586A1.75 1.75 0 0 1 13.25 16h-9.5A1.75 1.75 0 0 1 2 14.25Zm1.75-.25a.25.25 0 0 0-.25.25v12.5c0 .138.112.25.25.25h9.5a.25.25 0 0 0 .25-.25V6h-2.75A1.75 1.75 0 0 1 9 4.25V1.5Zm6.75.062V4.25c0 .138.112.25.25.25h2.688l-.011-.013-2.914-2.914-.013-.011Z"></path></svg><div class="overflow-hidden"><div class="react-directory-filename-cell"><div class="react-directory-truncate"><a title="CONTRIBUTING.md" aria-label="CONTRIBUTING.md, (File)" class="Link--primary" href="/yt-dlp/yt-dlp/blob/master/CONTRIBUTING.md">CONTRIBUTING.md</a></div></div></div></div></td><td class="react-directory-row-name-cell-large-screen" colSpan="1"><div class="react-directory-filename-column"><svg aria-hidden="true" focusable="false" class="octicon octicon-file color-fg-muted" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" display="inline-block" overflow="visible" style="vertical-align:text-bottom"><path d="M2 1.75C2 .784 2.784 0 3.75 0h6.586c.464 0 .909.184 1.237.513l2.914 2.914c.329.328.513.773.513 1.237v9.586A1.75 1.75 0 0 1 13.25 16h-9.5A1.75 1.75 0 0 1 2 14.25Zm1.75-.25a.25.25 0 0 0-.25.25v12.5c0 .138.112.25.25.25h9.5a.25.25 0 0 0 .25-.25V6h-2.75A1.75 1.75 0 0 1 9 4.25V1.5Zm6.75.062V4.25c0 .138.112.25.25.25h2.688l-.011-.013-2.914-2.914-.013-.011Z"></path></svg><div class="overflow-hidden"><div class="react-directory-filename-cell"><div class="react-directory-truncate"><a title="CONTRIBUTING.md" aria-label="CONTRIBUTING.md, (File)" class="Link--primary" href="/yt-dlp/yt-dlp/blob/master/CONTRIBUTING.md">CONTRIBUTING.md</a></div></div></div></div></td><td class="react-directory-row-commit-cell"><div class="Skeleton Skeleton--text"> </div></td><td><div class="Skeleton Skeleton--text"> </div></td></tr><tr class="react-directory-row truncate-for-mobile" id="folder-row-11"><td class="react-directory-row-name-cell-small-screen" colSpan="2"><div class="react-directory-filename-column"><svg aria-hidden="true" focusable="false" class="octicon octicon-file color-fg-muted" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" display="inline-block" overflow="visible" style="vertical-align:text-bottom"><path d="M2 1.75C2 .784 2.784 0 3.75 0h6.586c.464 0 .909.184 1.237.513l2.914 2.914c.329.328.513.773.513 1.237v9.586A1.75 1.75 0 0 1 13.25 16h-9.5A1.75 1.75 0 0 1 2 14.25Zm1.75-.25a.25.25 0 0 0-.25.25v12.5c0 .138.112.25.25.25h9.5a.25.25 0 0 0 .25-.25V6h-2.75A1.75 1.75 0 0 1 9 4.25V1.5Zm6.75.062V4.25c0 .138.112.25.25.25h2.688l-.011-.013-2.914-2.914-.013-.011Z"></path></svg><div class="overflow-hidden"><div class="react-directory-filename-cell"><div class="react-directory-truncate"><a title="CONTRIBUTORS" aria-label="CONTRIBUTORS, (File)" class="Link--primary" href="/yt-dlp/yt-dlp/blob/master/CONTRIBUTORS">CONTRIBUTORS</a></div></div></div></div></td><td class="react-directory-row-name-cell-large-screen" colSpan="1"><div class="react-directory-filename-column"><svg aria-hidden="true" focusable="false" class="octicon octicon-file color-fg-muted" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" display="inline-block" overflow="visible" style="vertical-align:text-bottom"><path d="M2 1.75C2 .784 2.784 0 3.75 0h6.586c.464 0 .909.184 1.237.513l2.914 2.914c.329.328.513.773.513 1.237v9.586A1.75 1.75 0 0 1 13.25 16h-9.5A1.75 1.75 0 0 1 2 14.25Zm1.75-.25a.25.25 0 0 0-.25.25v12.5c0 .138.112.25.25.25h9.5a.25.25 0 0 0 .25-.25V6h-2.75A1.75 1.75 0 0 1 9 4.25V1.5Zm6.75.062V4.25c0 .138.112.25.25.25h2.688l-.011-.013-2.914-2.914-.013-.011Z"></path></svg><div class="overflow-hidden"><div class="react-directory-filename-cell"><div class="react-directory-truncate"><a title="CONTRIBUTORS" aria-label="CONTRIBUTORS, (File)" class="Link--primary" href="/yt-dlp/yt-dlp/blob/master/CONTRIBUTORS">CONTRIBUTORS</a></div></div></div></div></td><td class="react-directory-row-commit-cell"><div class="Skeleton Skeleton--text"> </div></td><td><div class="Skeleton Skeleton--text"> </div></td></tr><tr class="react-directory-row truncate-for-mobile" id="folder-row-12"><td class="react-directory-row-name-cell-small-screen" colSpan="2"><div class="react-directory-filename-column"><svg aria-hidden="true" focusable="false" class="octicon octicon-file color-fg-muted" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" display="inline-block" overflow="visible" style="vertical-align:text-bottom"><path d="M2 1.75C2 .784 2.784 0 3.75 0h6.586c.464 0 .909.184 1.237.513l2.914 2.914c.329.328.513.773.513 1.237v9.586A1.75 1.75 0 0 1 13.25 16h-9.5A1.75 1.75 0 0 1 2 14.25Zm1.75-.25a.25.25 0 0 0-.25.25v12.5c0 .138.112.25.25.25h9.5a.25.25 0 0 0 .25-.25V6h-2.75A1.75 1.75 0 0 1 9 4.25V1.5Zm6.75.062V4.25c0 .138.112.25.25.25h2.688l-.011-.013-2.914-2.914-.013-.011Z"></path></svg><div class="overflow-hidden"><div class="react-directory-filename-cell"><div class="react-directory-truncate"><a title="Changelog.md" aria-label="Changelog.md, (File)" class="Link--primary" href="/yt-dlp/yt-dlp/blob/master/Changelog.md">Changelog.md</a></div></div></div></div></td><td class="react-directory-row-name-cell-large-screen" colSpan="1"><div class="react-directory-filename-column"><svg aria-hidden="true" focusable="false" class="octicon octicon-file color-fg-muted" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" display="inline-block" overflow="visible" style="vertical-align:text-bottom"><path d="M2 1.75C2 .784 2.784 0 3.75 0h6.586c.464 0 .909.184 1.237.513l2.914 2.914c.329.328.513.773.513 1.237v9.586A1.75 1.75 0 0 1 13.25 16h-9.5A1.75 1.75 0 0 1 2 14.25Zm1.75-.25a.25.25 0 0 0-.25.25v12.5c0 .138.112.25.25.25h9.5a.25.25 0 0 0 .25-.25V6h-2.75A1.75 1.75 0 0 1 9 4.25V1.5Zm6.75.062V4.25c0 .138.112.25.25.25h2.688l-.011-.013-2.914-2.914-.013-.011Z"></path></svg><div class="overflow-hidden"><div class="react-directory-filename-cell"><div class="react-directory-truncate"><a title="Changelog.md" aria-label="Changelog.md, (File)" class="Link--primary" href="/yt-dlp/yt-dlp/blob/master/Changelog.md">Changelog.md</a></div></div></div></div></td><td class="react-directory-row-commit-cell"><div class="Skeleton Skeleton--text"> </div></td><td><div class="Skeleton Skeleton--text"> </div></td></tr><tr class="react-directory-row truncate-for-mobile" id="folder-row-13"><td class="react-directory-row-name-cell-small-screen" colSpan="2"><div class="react-directory-filename-column"><svg aria-hidden="true" focusable="false" class="octicon octicon-file color-fg-muted" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" display="inline-block" overflow="visible" style="vertical-align:text-bottom"><path d="M2 1.75C2 .784 2.784 0 3.75 0h6.586c.464 0 .909.184 1.237.513l2.914 2.914c.329.328.513.773.513 1.237v9.586A1.75 1.75 0 0 1 13.25 16h-9.5A1.75 1.75 0 0 1 2 14.25Zm1.75-.25a.25.25 0 0 0-.25.25v12.5c0 .138.112.25.25.25h9.5a.25.25 0 0 0 .25-.25V6h-2.75A1.75 1.75 0 0 1 9 4.25V1.5Zm6.75.062V4.25c0 .138.112.25.25.25h2.688l-.011-.013-2.914-2.914-.013-.011Z"></path></svg><div class="overflow-hidden"><div class="react-directory-filename-cell"><div class="react-directory-truncate"><a title="Collaborators.md" aria-label="Collaborators.md, (File)" class="Link--primary" href="/yt-dlp/yt-dlp/blob/master/Collaborators.md">Collaborators.md</a></div></div></div></div></td><td class="react-directory-row-name-cell-large-screen" colSpan="1"><div class="react-directory-filename-column"><svg aria-hidden="true" focusable="false" class="octicon octicon-file color-fg-muted" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" display="inline-block" overflow="visible" style="vertical-align:text-bottom"><path d="M2 1.75C2 .784 2.784 0 3.75 0h6.586c.464 0 .909.184 1.237.513l2.914 2.914c.329.328.513.773.513 1.237v9.586A1.75 1.75 0 0 1 13.25 16h-9.5A1.75 1.75 0 0 1 2 14.25Zm1.75-.25a.25.25 0 0 0-.25.25v12.5c0 .138.112.25.25.25h9.5a.25.25 0 0 0 .25-.25V6h-2.75A1.75 1.75 0 0 1 9 4.25V1.5Zm6.75.062V4.25c0 .138.112.25.25.25h2.688l-.011-.013-2.914-2.914-.013-.011Z"></path></svg><div class="overflow-hidden"><div class="react-directory-filename-cell"><div class="react-directory-truncate"><a title="Collaborators.md" aria-label="Collaborators.md, (File)" class="Link--primary" href="/yt-dlp/yt-dlp/blob/master/Collaborators.md">Collaborators.md</a></div></div></div></div></td><td class="react-directory-row-commit-cell"><div class="Skeleton Skeleton--text"> </div></td><td><div class="Skeleton Skeleton--text"> </div></td></tr><tr class="react-directory-row truncate-for-mobile" id="folder-row-14"><td class="react-directory-row-name-cell-small-screen" colSpan="2"><div class="react-directory-filename-column"><svg aria-hidden="true" focusable="false" class="octicon octicon-file color-fg-muted" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" display="inline-block" overflow="visible" style="vertical-align:text-bottom"><path d="M2 1.75C2 .784 2.784 0 3.75 0h6.586c.464 0 .909.184 1.237.513l2.914 2.914c.329.328.513.773.513 1.237v9.586A1.75 1.75 0 0 1 13.25 16h-9.5A1.75 1.75 0 0 1 2 14.25Zm1.75-.25a.25.25 0 0 0-.25.25v12.5c0 .138.112.25.25.25h9.5a.25.25 0 0 0 .25-.25V6h-2.75A1.75 1.75 0 0 1 9 4.25V1.5Zm6.75.062V4.25c0 .138.112.25.25.25h2.688l-.011-.013-2.914-2.914-.013-.011Z"></path></svg><div class="overflow-hidden"><div class="react-directory-filename-cell"><div class="react-directory-truncate"><a title="LICENSE" aria-label="LICENSE, (File)" class="Link--primary" href="/yt-dlp/yt-dlp/blob/master/LICENSE">LICENSE</a></div></div></div></div></td><td class="react-directory-row-name-cell-large-screen" colSpan="1"><div class="react-directory-filename-column"><svg aria-hidden="true" focusable="false" class="octicon octicon-file color-fg-muted" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" display="inline-block" overflow="visible" style="vertical-align:text-bottom"><path d="M2 1.75C2 .784 2.784 0 3.75 0h6.586c.464 0 .909.184 1.237.513l2.914 2.914c.329.328.513.773.513 1.237v9.586A1.75 1.75 0 0 1 13.25 16h-9.5A1.75 1.75 0 0 1 2 14.25Zm1.75-.25a.25.25 0 0 0-.25.25v12.5c0 .138.112.25.25.25h9.5a.25.25 0 0 0 .25-.25V6h-2.75A1.75 1.75 0 0 1 9 4.25V1.5Zm6.75.062V4.25c0 .138.112.25.25.25h2.688l-.011-.013-2.914-2.914-.013-.011Z"></path></svg><div class="overflow-hidden"><div class="react-directory-filename-cell"><div class="react-directory-truncate"><a title="LICENSE" aria-label="LICENSE, (File)" class="Link--primary" href="/yt-dlp/yt-dlp/blob/master/LICENSE">LICENSE</a></div></div></div></div></td><td class="react-directory-row-commit-cell"><div class="Skeleton Skeleton--text"> </div></td><td><div class="Skeleton Skeleton--text"> </div></td></tr><tr class="react-directory-row truncate-for-mobile" id="folder-row-15"><td class="react-directory-row-name-cell-small-screen" colSpan="2"><div class="react-directory-filename-column"><svg aria-hidden="true" focusable="false" class="octicon octicon-file color-fg-muted" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" display="inline-block" overflow="visible" style="vertical-align:text-bottom"><path d="M2 1.75C2 .784 2.784 0 3.75 0h6.586c.464 0 .909.184 1.237.513l2.914 2.914c.329.328.513.773.513 1.237v9.586A1.75 1.75 0 0 1 13.25 16h-9.5A1.75 1.75 0 0 1 2 14.25Zm1.75-.25a.25.25 0 0 0-.25.25v12.5c0 .138.112.25.25.25h9.5a.25.25 0 0 0 .25-.25V6h-2.75A1.75 1.75 0 0 1 9 4.25V1.5Zm6.75.062V4.25c0 .138.112.25.25.25h2.688l-.011-.013-2.914-2.914-.013-.011Z"></path></svg><div class="overflow-hidden"><div class="react-directory-filename-cell"><div class="react-directory-truncate"><a title="Makefile" aria-label="Makefile, (File)" class="Link--primary" href="/yt-dlp/yt-dlp/blob/master/Makefile">Makefile</a></div></div></div></div></td><td class="react-directory-row-name-cell-large-screen" colSpan="1"><div class="react-directory-filename-column"><svg aria-hidden="true" focusable="false" class="octicon octicon-file color-fg-muted" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" display="inline-block" overflow="visible" style="vertical-align:text-bottom"><path d="M2 1.75C2 .784 2.784 0 3.75 0h6.586c.464 0 .909.184 1.237.513l2.914 2.914c.329.328.513.773.513 1.237v9.586A1.75 1.75 0 0 1 13.25 16h-9.5A1.75 1.75 0 0 1 2 14.25Zm1.75-.25a.25.25 0 0 0-.25.25v12.5c0 .138.112.25.25.25h9.5a.25.25 0 0 0 .25-.25V6h-2.75A1.75 1.75 0 0 1 9 4.25V1.5Zm6.75.062V4.25c0 .138.112.25.25.25h2.688l-.011-.013-2.914-2.914-.013-.011Z"></path></svg><div class="overflow-hidden"><div class="react-directory-filename-cell"><div class="react-directory-truncate"><a title="Makefile" aria-label="Makefile, (File)" class="Link--primary" href="/yt-dlp/yt-dlp/blob/master/Makefile">Makefile</a></div></div></div></div></td><td class="react-directory-row-commit-cell"><div class="Skeleton Skeleton--text"> </div></td><td><div class="Skeleton Skeleton--text"> </div></td></tr><tr class="react-directory-row truncate-for-mobile" id="folder-row-16"><td class="react-directory-row-name-cell-small-screen" colSpan="2"><div class="react-directory-filename-column"><svg aria-hidden="true" focusable="false" class="octicon octicon-file color-fg-muted" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" display="inline-block" overflow="visible" style="vertical-align:text-bottom"><path d="M2 1.75C2 .784 2.784 0 3.75 0h6.586c.464 0 .909.184 1.237.513l2.914 2.914c.329.328.513.773.513 1.237v9.586A1.75 1.75 0 0 1 13.25 16h-9.5A1.75 1.75 0 0 1 2 14.25Zm1.75-.25a.25.25 0 0 0-.25.25v12.5c0 .138.112.25.25.25h9.5a.25.25 0 0 0 .25-.25V6h-2.75A1.75 1.75 0 0 1 9 4.25V1.5Zm6.75.062V4.25c0 .138.112.25.25.25h2.688l-.011-.013-2.914-2.914-.013-.011Z"></path></svg><div class="overflow-hidden"><div class="react-directory-filename-cell"><div class="react-directory-truncate"><a title="README.md" aria-label="README.md, (File)" class="Link--primary" href="/yt-dlp/yt-dlp/blob/master/README.md">README.md</a></div></div></div></div></td><td class="react-directory-row-name-cell-large-screen" colSpan="1"><div class="react-directory-filename-column"><svg aria-hidden="true" focusable="false" class="octicon octicon-file color-fg-muted" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" display="inline-block" overflow="visible" style="vertical-align:text-bottom"><path d="M2 1.75C2 .784 2.784 0 3.75 0h6.586c.464 0 .909.184 1.237.513l2.914 2.914c.329.328.513.773.513 1.237v9.586A1.75 1.75 0 0 1 13.25 16h-9.5A1.75 1.75 0 0 1 2 14.25Zm1.75-.25a.25.25 0 0 0-.25.25v12.5c0 .138.112.25.25.25h9.5a.25.25 0 0 0 .25-.25V6h-2.75A1.75 1.75 0 0 1 9 4.25V1.5Zm6.75.062V4.25c0 .138.112.25.25.25h2.688l-.011-.013-2.914-2.914-.013-.011Z"></path></svg><div class="overflow-hidden"><div class="react-directory-filename-cell"><div class="react-directory-truncate"><a title="README.md" aria-label="README.md, (File)" class="Link--primary" href="/yt-dlp/yt-dlp/blob/master/README.md">README.md</a></div></div></div></div></td><td class="react-directory-row-commit-cell"><div class="Skeleton Skeleton--text"> </div></td><td><div class="Skeleton Skeleton--text"> </div></td></tr><tr class="react-directory-row truncate-for-mobile" id="folder-row-17"><td class="react-directory-row-name-cell-small-screen" colSpan="2"><div class="react-directory-filename-column"><svg aria-hidden="true" focusable="false" class="octicon octicon-file color-fg-muted" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" display="inline-block" overflow="visible" style="vertical-align:text-bottom"><path d="M2 1.75C2 .784 2.784 0 3.75 0h6.586c.464 0 .909.184 1.237.513l2.914 2.914c.329.328.513.773.513 1.237v9.586A1.75 1.75 0 0 1 13.25 16h-9.5A1.75 1.75 0 0 1 2 14.25Zm1.75-.25a.25.25 0 0 0-.25.25v12.5c0 .138.112.25.25.25h9.5a.25.25 0 0 0 .25-.25V6h-2.75A1.75 1.75 0 0 1 9 4.25V1.5Zm6.75.062V4.25c0 .138.112.25.25.25h2.688l-.011-.013-2.914-2.914-.013-.011Z"></path></svg><div class="overflow-hidden"><div class="react-directory-filename-cell"><div class="react-directory-truncate"><a title="public.key" aria-label="public.key, (File)" class="Link--primary" href="/yt-dlp/yt-dlp/blob/master/public.key">public.key</a></div></div></div></div></td><td class="react-directory-row-name-cell-large-screen" colSpan="1"><div class="react-directory-filename-column"><svg aria-hidden="true" focusable="false" class="octicon octicon-file color-fg-muted" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" display="inline-block" overflow="visible" style="vertical-align:text-bottom"><path d="M2 1.75C2 .784 2.784 0 3.75 0h6.586c.464 0 .909.184 1.237.513l2.914 2.914c.329.328.513.773.513 1.237v9.586A1.75 1.75 0 0 1 13.25 16h-9.5A1.75 1.75 0 0 1 2 14.25Zm1.75-.25a.25.25 0 0 0-.25.25v12.5c0 .138.112.25.25.25h9.5a.25.25 0 0 0 .25-.25V6h-2.75A1.75 1.75 0 0 1 9 4.25V1.5Zm6.75.062V4.25c0 .138.112.25.25.25h2.688l-.011-.013-2.914-2.914-.013-.011Z"></path></svg><div class="overflow-hidden"><div class="react-directory-filename-cell"><div class="react-directory-truncate"><a title="public.key" aria-label="public.key, (File)" class="Link--primary" href="/yt-dlp/yt-dlp/blob/master/public.key">public.key</a></div></div></div></div></td><td class="react-directory-row-commit-cell"><div class="Skeleton Skeleton--text"> </div></td><td><div class="Skeleton Skeleton--text"> </div></td></tr><tr class="react-directory-row truncate-for-mobile" id="folder-row-18"><td class="react-directory-row-name-cell-small-screen" colSpan="2"><div class="react-directory-filename-column"><svg aria-hidden="true" focusable="false" class="octicon octicon-file color-fg-muted" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" display="inline-block" overflow="visible" style="vertical-align:text-bottom"><path d="M2 1.75C2 .784 2.784 0 3.75 0h6.586c.464 0 .909.184 1.237.513l2.914 2.914c.329.328.513.773.513 1.237v9.586A1.75 1.75 0 0 1 13.25 16h-9.5A1.75 1.75 0 0 1 2 14.25Zm1.75-.25a.25.25 0 0 0-.25.25v12.5c0 .138.112.25.25.25h9.5a.25.25 0 0 0 .25-.25V6h-2.75A1.75 1.75 0 0 1 9 4.25V1.5Zm6.75.062V4.25c0 .138.112.25.25.25h2.688l-.011-.013-2.914-2.914-.013-.011Z"></path></svg><div class="overflow-hidden"><div class="react-directory-filename-cell"><div class="react-directory-truncate"><a title="pyproject.toml" aria-label="pyproject.toml, (File)" class="Link--primary" href="/yt-dlp/yt-dlp/blob/master/pyproject.toml">pyproject.toml</a></div></div></div></div></td><td class="react-directory-row-name-cell-large-screen" colSpan="1"><div class="react-directory-filename-column"><svg aria-hidden="true" focusable="false" class="octicon octicon-file color-fg-muted" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" display="inline-block" overflow="visible" style="vertical-align:text-bottom"><path d="M2 1.75C2 .784 2.784 0 3.75 0h6.586c.464 0 .909.184 1.237.513l2.914 2.914c.329.328.513.773.513 1.237v9.586A1.75 1.75 0 0 1 13.25 16h-9.5A1.75 1.75 0 0 1 2 14.25Zm1.75-.25a.25.25 0 0 0-.25.25v12.5c0 .138.112.25.25.25h9.5a.25.25 0 0 0 .25-.25V6h-2.75A1.75 1.75 0 0 1 9 4.25V1.5Zm6.75.062V4.25c0 .138.112.25.25.25h2.688l-.011-.013-2.914-2.914-.013-.011Z"></path></svg><div class="overflow-hidden"><div class="react-directory-filename-cell"><div class="react-directory-truncate"><a title="pyproject.toml" aria-label="pyproject.toml, (File)" class="Link--primary" href="/yt-dlp/yt-dlp/blob/master/pyproject.toml">pyproject.toml</a></div></div></div></div></td><td class="react-directory-row-commit-cell"><div class="Skeleton Skeleton--text"> </div></td><td><div class="Skeleton Skeleton--text"> </div></td></tr><tr class="react-directory-row truncate-for-mobile" id="folder-row-19"><td class="react-directory-row-name-cell-small-screen" colSpan="2"><div class="react-directory-filename-column"><svg aria-hidden="true" focusable="false" class="octicon octicon-file color-fg-muted" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" display="inline-block" overflow="visible" style="vertical-align:text-bottom"><path d="M2 1.75C2 .784 2.784 0 3.75 0h6.586c.464 0 .909.184 1.237.513l2.914 2.914c.329.328.513.773.513 1.237v9.586A1.75 1.75 0 0 1 13.25 16h-9.5A1.75 1.75 0 0 1 2 14.25Zm1.75-.25a.25.25 0 0 0-.25.25v12.5c0 .138.112.25.25.25h9.5a.25.25 0 0 0 .25-.25V6h-2.75A1.75 1.75 0 0 1 9 4.25V1.5Zm6.75.062V4.25c0 .138.112.25.25.25h2.688l-.011-.013-2.914-2.914-.013-.011Z"></path></svg><div class="overflow-hidden"><div class="react-directory-filename-cell"><div class="react-directory-truncate"><a title="setup.cfg" aria-label="setup.cfg, (File)" class="Link--primary" href="/yt-dlp/yt-dlp/blob/master/setup.cfg">setup.cfg</a></div></div></div></div></td><td class="react-directory-row-name-cell-large-screen" colSpan="1"><div class="react-directory-filename-column"><svg aria-hidden="true" focusable="false" class="octicon octicon-file color-fg-muted" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" display="inline-block" overflow="visible" style="vertical-align:text-bottom"><path d="M2 1.75C2 .784 2.784 0 3.75 0h6.586c.464 0 .909.184 1.237.513l2.914 2.914c.329.328.513.773.513 1.237v9.586A1.75 1.75 0 0 1 13.25 16h-9.5A1.75 1.75 0 0 1 2 14.25Zm1.75-.25a.25.25 0 0 0-.25.25v12.5c0 .138.112.25.25.25h9.5a.25.25 0 0 0 .25-.25V6h-2.75A1.75 1.75 0 0 1 9 4.25V1.5Zm6.75.062V4.25c0 .138.112.25.25.25h2.688l-.011-.013-2.914-2.914-.013-.011Z"></path></svg><div class="overflow-hidden"><div class="react-directory-filename-cell"><div class="react-directory-truncate"><a title="setup.cfg" aria-label="setup.cfg, (File)" class="Link--primary" href="/yt-dlp/yt-dlp/blob/master/setup.cfg">setup.cfg</a></div></div></div></div></td><td class="react-directory-row-commit-cell"><div class="Skeleton Skeleton--text"> </div></td><td><div class="Skeleton Skeleton--text"> </div></td></tr><tr class="react-directory-row truncate-for-mobile" id="folder-row-20"><td class="react-directory-row-name-cell-small-screen" colSpan="2"><div class="react-directory-filename-column"><svg aria-hidden="true" focusable="false" class="octicon octicon-file color-fg-muted" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" display="inline-block" overflow="visible" style="vertical-align:text-bottom"><path d="M2 1.75C2 .784 2.784 0 3.75 0h6.586c.464 0 .909.184 1.237.513l2.914 2.914c.329.328.513.773.513 1.237v9.586A1.75 1.75 0 0 1 13.25 16h-9.5A1.75 1.75 0 0 1 2 14.25Zm1.75-.25a.25.25 0 0 0-.25.25v12.5c0 .138.112.25.25.25h9.5a.25.25 0 0 0 .25-.25V6h-2.75A1.75 1.75 0 0 1 9 4.25V1.5Zm6.75.062V4.25c0 .138.112.25.25.25h2.688l-.011-.013-2.914-2.914-.013-.011Z"></path></svg><div class="overflow-hidden"><div class="react-directory-filename-cell"><div class="react-directory-truncate"><a title="supportedsites.md" aria-label="supportedsites.md, (File)" class="Link--primary" href="/yt-dlp/yt-dlp/blob/master/supportedsites.md">supportedsites.md</a></div></div></div></div></td><td class="react-directory-row-name-cell-large-screen" colSpan="1"><div class="react-directory-filename-column"><svg aria-hidden="true" focusable="false" class="octicon octicon-file color-fg-muted" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" display="inline-block" overflow="visible" style="vertical-align:text-bottom"><path d="M2 1.75C2 .784 2.784 0 3.75 0h6.586c.464 0 .909.184 1.237.513l2.914 2.914c.329.328.513.773.513 1.237v9.586A1.75 1.75 0 0 1 13.25 16h-9.5A1.75 1.75 0 0 1 2 14.25Zm1.75-.25a.25.25 0 0 0-.25.25v12.5c0 .138.112.25.25.25h9.5a.25.25 0 0 0 .25-.25V6h-2.75A1.75 1.75 0 0 1 9 4.25V1.5Zm6.75.062V4.25c0 .138.112.25.25.25h2.688l-.011-.013-2.914-2.914-.013-.011Z"></path></svg><div class="overflow-hidden"><div class="react-directory-filename-cell"><div class="react-directory-truncate"><a title="supportedsites.md" aria-label="supportedsites.md, (File)" class="Link--primary" href="/yt-dlp/yt-dlp/blob/master/supportedsites.md">supportedsites.md</a></div></div></div></div></td><td class="react-directory-row-commit-cell"><div class="Skeleton Skeleton--text"> </div></td><td><div class="Skeleton Skeleton--text"> </div></td></tr><tr class="react-directory-row truncate-for-mobile" id="folder-row-21"><td class="react-directory-row-name-cell-small-screen" colSpan="2"><div class="react-directory-filename-column"><svg aria-hidden="true" focusable="false" class="octicon octicon-file color-fg-muted" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" display="inline-block" overflow="visible" style="vertical-align:text-bottom"><path d="M2 1.75C2 .784 2.784 0 3.75 0h6.586c.464 0 .909.184 1.237.513l2.914 2.914c.329.328.513.773.513 1.237v9.586A1.75 1.75 0 0 1 13.25 16h-9.5A1.75 1.75 0 0 1 2 14.25Zm1.75-.25a.25.25 0 0 0-.25.25v12.5c0 .138.112.25.25.25h9.5a.25.25 0 0 0 .25-.25V6h-2.75A1.75 1.75 0 0 1 9 4.25V1.5Zm6.75.062V4.25c0 .138.112.25.25.25h2.688l-.011-.013-2.914-2.914-.013-.011Z"></path></svg><div class="overflow-hidden"><div class="react-directory-filename-cell"><div class="react-directory-truncate"><a title="yt-dlp.cmd" aria-label="yt-dlp.cmd, (File)" class="Link--primary" href="/yt-dlp/yt-dlp/blob/master/yt-dlp.cmd">yt-dlp.cmd</a></div></div></div></div></td><td class="react-directory-row-name-cell-large-screen" colSpan="1"><div class="react-directory-filename-column"><svg aria-hidden="true" focusable="false" class="octicon octicon-file color-fg-muted" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" display="inline-block" overflow="visible" style="vertical-align:text-bottom"><path d="M2 1.75C2 .784 2.784 0 3.75 0h6.586c.464 0 .909.184 1.237.513l2.914 2.914c.329.328.513.773.513 1.237v9.586A1.75 1.75 0 0 1 13.25 16h-9.5A1.75 1.75 0 0 1 2 14.25Zm1.75-.25a.25.25 0 0 0-.25.25v12.5c0 .138.112.25.25.25h9.5a.25.25 0 0 0 .25-.25V6h-2.75A1.75 1.75 0 0 1 9 4.25V1.5Zm6.75.062V4.25c0 .138.112.25.25.25h2.688l-.011-.013-2.914-2.914-.013-.011Z"></path></svg><div class="overflow-hidden"><div class="react-directory-filename-cell"><div class="react-directory-truncate"><a title="yt-dlp.cmd" aria-label="yt-dlp.cmd, (File)" class="Link--primary" href="/yt-dlp/yt-dlp/blob/master/yt-dlp.cmd">yt-dlp.cmd</a></div></div></div></div></td><td class="react-directory-row-commit-cell"><div class="Skeleton Skeleton--text"> </div></td><td><div class="Skeleton Skeleton--text"> </div></td></tr><tr class="react-directory-row truncate-for-mobile" id="folder-row-22"><td class="react-directory-row-name-cell-small-screen" colSpan="2"><div class="react-directory-filename-column"><svg aria-hidden="true" focusable="false" class="octicon octicon-file color-fg-muted" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" display="inline-block" overflow="visible" style="vertical-align:text-bottom"><path d="M2 1.75C2 .784 2.784 0 3.75 0h6.586c.464 0 .909.184 1.237.513l2.914 2.914c.329.328.513.773.513 1.237v9.586A1.75 1.75 0 0 1 13.25 16h-9.5A1.75 1.75 0 0 1 2 14.25Zm1.75-.25a.25.25 0 0 0-.25.25v12.5c0 .138.112.25.25.25h9.5a.25.25 0 0 0 .25-.25V6h-2.75A1.75 1.75 0 0 1 9 4.25V1.5Zm6.75.062V4.25c0 .138.112.25.25.25h2.688l-.011-.013-2.914-2.914-.013-.011Z"></path></svg><div class="overflow-hidden"><div class="react-directory-filename-cell"><div class="react-directory-truncate"><a title="yt-dlp.sh" aria-label="yt-dlp.sh, (File)" class="Link--primary" href="/yt-dlp/yt-dlp/blob/master/yt-dlp.sh">yt-dlp.sh</a></div></div></div></div></td><td class="react-directory-row-name-cell-large-screen" colSpan="1"><div class="react-directory-filename-column"><svg aria-hidden="true" focusable="false" class="octicon octicon-file color-fg-muted" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" display="inline-block" overflow="visible" style="vertical-align:text-bottom"><path d="M2 1.75C2 .784 2.784 0 3.75 0h6.586c.464 0 .909.184 1.237.513l2.914 2.914c.329.328.513.773.513 1.237v9.586A1.75 1.75 0 0 1 13.25 16h-9.5A1.75 1.75 0 0 1 2 14.25Zm1.75-.25a.25.25 0 0 0-.25.25v12.5c0 .138.112.25.25.25h9.5a.25.25 0 0 0 .25-.25V6h-2.75A1.75 1.75 0 0 1 9 4.25V1.5Zm6.75.062V4.25c0 .138.112.25.25.25h2.688l-.011-.013-2.914-2.914-.013-.011Z"></path></svg><div class="overflow-hidden"><div class="react-directory-filename-cell"><div class="react-directory-truncate"><a title="yt-dlp.sh" aria-label="yt-dlp.sh, (File)" class="Link--primary" href="/yt-dlp/yt-dlp/blob/master/yt-dlp.sh">yt-dlp.sh</a></div></div></div></div></td><td class="react-directory-row-commit-cell"><div class="Skeleton Skeleton--text"> </div></td><td><div class="Skeleton Skeleton--text"> </div></td></tr><tr class="Box-sc-g0xbh4-0 eNCcrz show-for-mobile" data-testid="view-all-files-row"><td colSpan="3" class="Box-sc-g0xbh4-0 bHTcCe"><div><button class="prc-Link-Link-85e08">View all files</button></div></td></tr></tbody></table></div><div class="Box-sc-g0xbh4-0 csrIcr"><div class="Box-sc-g0xbh4-0 bUQNHB"><div itemscope="" itemType="https://schema.org/abstract" class="Box-sc-g0xbh4-0 jPdcfu"><h2 class="_VisuallyHidden__VisuallyHidden-sc-11jhm7a-0 brGdpi">Repository files navigation</h2><nav class="Box-sc-g0xbh4-0 iphEWz prc-components-UnderlineWrapper-oOh5J" aria-label="Repository files"><ul class="prc-components-UnderlineItemList-b23Hf" role="list"><li class="Box-sc-g0xbh4-0 hUCRAk"><a class="prc-components-UnderlineItem-lJsg-" href="#" aria-current="page"><span data-component="icon"><svg aria-hidden="true" focusable="false" class="octicon octicon-book" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" display="inline-block" overflow="visible" style="vertical-align:text-bottom"><path d="M0 1.75A.75.75 0 0 1 .75 1h4.253c1.227 0 2.317.59 3 1.501A3.743 3.743 0 0 1 11.006 1h4.245a.75.75 0 0 1 .75.75v10.5a.75.75 0 0 1-.75.75h-4.507a2.25 2.25 0 0 0-1.591.659l-.622.621a.75.75 0 0 1-1.06 0l-.622-.621A2.25 2.25 0 0 0 5.258 13H.75a.75.75 0 0 1-.75-.75Zm7.251 10.324.004-5.073-.002-2.253A2.25 2.25 0 0 0 5.003 2.5H1.5v9h3.757a3.75 3.75 0 0 1 1.994.574ZM8.755 4.75l-.004 7.322a3.752 3.752 0 0 1 1.992-.572H14.5v-9h-3.495a2.25 2.25 0 0 0-2.25 2.25Z"></path></svg></span><span data-component="text" data-content="README">README</span></a></li><li class="Box-sc-g0xbh4-0 hUCRAk"><a class="prc-components-UnderlineItem-lJsg-" href="#"><span data-component="icon"><svg aria-hidden="true" focusable="false" class="octicon octicon-law" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" display="inline-block" overflow="visible" style="vertical-align:text-bottom"><path d="M8.75.75V2h.985c.304 0 .603.08.867.231l1.29.736c.038.022.08.033.124.033h2.234a.75.75 0 0 1 0 1.5h-.427l2.111 4.692a.75.75 0 0 1-.154.838l-.53-.53.529.531-.001.002-.002.002-.006.006-.006.005-.01.01-.045.04c-.21.176-.441.327-.686.45C14.556 10.78 13.88 11 13 11a4.498 4.498 0 0 1-2.023-.454 3.544 3.544 0 0 1-.686-.45l-.045-.04-.016-.015-.006-.006-.004-.004v-.001a.75.75 0 0 1-.154-.838L12.178 4.5h-.162c-.305 0-.604-.079-.868-.231l-1.29-.736a.245.245 0 0 0-.124-.033H8.75V13h2.5a.75.75 0 0 1 0 1.5h-6.5a.75.75 0 0 1 0-1.5h2.5V3.5h-.984a.245.245 0 0 0-.124.033l-1.289.737c-.265.15-.564.23-.869.23h-.162l2.112 4.692a.75.75 0 0 1-.154.838l-.53-.53.529.531-.001.002-.002.002-.006.006-.016.015-.045.04c-.21.176-.441.327-.686.45C4.556 10.78 3.88 11 3 11a4.498 4.498 0 0 1-2.023-.454 3.544 3.544 0 0 1-.686-.45l-.045-.04-.016-.015-.006-.006-.004-.004v-.001a.75.75 0 0 1-.154-.838L2.178 4.5H1.75a.75.75 0 0 1 0-1.5h2.234a.249.249 0 0 0 .125-.033l1.288-.737c.265-.15.564-.23.869-.23h.984V.75a.75.75 0 0 1 1.5 0Zm2.945 8.477c.285.135.718.273 1.305.273s1.02-.138 1.305-.273L13 6.327Zm-10 0c.285.135.718.273 1.305.273s1.02-.138 1.305-.273L3 6.327Z"></path></svg></span><span data-component="text" data-content="Unlicense license">Unlicense license</span></a></li></ul></nav><button style="--button-color:fg.subtle" type="button" aria-label="Outline" aria-haspopup="true" aria-expanded="false" tabindex="0" class="Box-sc-g0xbh4-0 cwoBXV prc-Button-ButtonBase-c50BI" data-loading="false" data-size="medium" data-variant="invisible" aria-describedby=":Rr9ab:-loading-announcement" id=":Rr9ab:"><svg aria-hidden="true" focusable="false" class="octicon octicon-list-unordered" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" display="inline-block" overflow="visible" style="vertical-align:text-bottom"><path d="M5.75 2.5h8.5a.75.75 0 0 1 0 1.5h-8.5a.75.75 0 0 1 0-1.5Zm0 5h8.5a.75.75 0 0 1 0 1.5h-8.5a.75.75 0 0 1 0-1.5Zm0 5h8.5a.75.75 0 0 1 0 1.5h-8.5a.75.75 0 0 1 0-1.5ZM2 14a1 1 0 1 1 0-2 1 1 0 0 1 0 2Zm1-6a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM2 4a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z"></path></svg></button></div><div class="Box-sc-g0xbh4-0 QkQOb js-snippet-clipboard-copy-unpositioned undefined" data-hpc="true"><article class="markdown-body entry-content container-lg" itemprop="text"> <div align="center" dir="auto"> <p dir="auto"><a href="#readme"><img src="https://raw.githubusercontent.com/yt-dlp/yt-dlp/master/.github/banner.svg" alt="YT-DLP" style="max-width: 100%;"></a></p> <p dir="auto"><a href="#installation" title="Installation"><img src="https://camo.githubusercontent.com/824c72c3297a271beecfd91279127f6f407e95ff0668801c79b6109eada7f129/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f79742d646c702f79742d646c703f636f6c6f723d627269676874677265656e266c6162656c3d446f776e6c6f6164267374796c653d666f722d7468652d6261646765" alt="Release version" data-canonical-src="https://img.shields.io/github/v/release/yt-dlp/yt-dlp?color=brightgreen&label=Download&style=for-the-badge" style="max-width: 100%;"></a> <a href="https://pypi.org/project/yt-dlp" title="PyPI" rel="nofollow"><img src="https://camo.githubusercontent.com/79555c09a5a7a4a1e68f9d5a62d202ac95d35a7f863056286dccd9e5f0041b88/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f2d507950492d626c75652e7376673f6c6f676f3d70797069266c6162656c436f6c6f723d353535353535267374796c653d666f722d7468652d6261646765" alt="PyPI" data-canonical-src="https://img.shields.io/badge/-PyPI-blue.svg?logo=pypi&labelColor=555555&style=for-the-badge" style="max-width: 100%;"></a> <a href="/yt-dlp/yt-dlp/blob/master/Collaborators.md#collaborators" title="Donate"><img src="https://camo.githubusercontent.com/a8b252926d34e6123df43a4f0b9fa19d1fef006ffe4613e79eeff5421acf90e3/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5f2d446f6e6174652d7265642e7376673f6c6f676f3d67697468756273706f6e736f7273266c6162656c436f6c6f723d353535353535267374796c653d666f722d7468652d6261646765" alt="Donate" data-canonical-src="https://img.shields.io/badge/_-Donate-red.svg?logo=githubsponsors&labelColor=555555&style=for-the-badge" style="max-width: 100%;"></a> <a href="https://discord.gg/H5MNcFW63r" title="Discord" rel="nofollow"><img src="https://camo.githubusercontent.com/bcdc8bc6e8838a459e598b3746c9adb9c5c0812f8f32e704022f36461ba4eecd/68747470733a2f2f696d672e736869656c64732e696f2f646973636f72642f3830373234353635323037323835373631303f636f6c6f723d626c7565266c6162656c436f6c6f723d353535353535266c6162656c3d266c6f676f3d646973636f7264267374796c653d666f722d7468652d6261646765" alt="Discord" data-canonical-src="https://img.shields.io/discord/807245652072857610?color=blue&labelColor=555555&label=&logo=discord&style=for-the-badge" style="max-width: 100%;"></a> <a href="/yt-dlp/yt-dlp/blob/master/supportedsites.md" title="Supported Sites"><img src="https://camo.githubusercontent.com/9bb4f56a3ada2140c086180a32a4576bfc064d01d707868fbed82a82a16d7daf/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f2d537570706f727465645f53697465732d627269676874677265656e2e7376673f7374796c653d666f722d7468652d6261646765" alt="Supported Sites" data-canonical-src="https://img.shields.io/badge/-Supported_Sites-brightgreen.svg?style=for-the-badge" style="max-width: 100%;"></a> <a href="/yt-dlp/yt-dlp/blob/master/LICENSE" title="License"><img src="https://camo.githubusercontent.com/3ec72577617d8f6ea3f2344049e148b8a2dabb1051caf3fb9b7732f3619296c9/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f2d556e6c6963656e73652d626c75652e7376673f7374796c653d666f722d7468652d6261646765" alt="License: Unlicense" data-canonical-src="https://img.shields.io/badge/-Unlicense-blue.svg?style=for-the-badge" style="max-width: 100%;"></a> <a href="https://github.com/yt-dlp/yt-dlp/actions" title="CI Status"><img src="https://camo.githubusercontent.com/7114361feea039be67be15c164bfffa0d730d0cef4d5226bd2b7a48741490829/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f79742d646c702f79742d646c702f636f72652e796d6c3f6272616e63683d6d6173746572266c6162656c3d5465737473267374796c653d666f722d7468652d6261646765" alt="CI Status" data-canonical-src="https://img.shields.io/github/actions/workflow/status/yt-dlp/yt-dlp/core.yml?branch=master&label=Tests&style=for-the-badge" style="max-width: 100%;"></a> <a href="https://github.com/yt-dlp/yt-dlp/commits" title="Commit History"><img src="https://camo.githubusercontent.com/07fe11d7c0f2176346c671010a08ac5913f75cbedb39f0cc38e8a5f201848a0e/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f636f6d6d69742d61637469766974792f6d2f79742d646c702f79742d646c703f6c6162656c3d636f6d6d697473267374796c653d666f722d7468652d6261646765" alt="Commits" data-canonical-src="https://img.shields.io/github/commit-activity/m/yt-dlp/yt-dlp?label=commits&style=for-the-badge" style="max-width: 100%;"></a> <a href="https://github.com/yt-dlp/yt-dlp/pulse/monthly" title="Last activity"><img src="https://camo.githubusercontent.com/45cb6641545c3d0cc3932c03451537f53f2ef42114235091a392ef4e7af9d7dd/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6173742d636f6d6d69742f79742d646c702f79742d646c702f6d61737465723f6c6162656c3d267374796c653d666f722d7468652d626164676526646973706c61795f74696d657374616d703d636f6d6d6974746572" alt="Last Commit" data-canonical-src="https://img.shields.io/github/last-commit/yt-dlp/yt-dlp/master?label=&style=for-the-badge&display_timestamp=committer" style="max-width: 100%;"></a></p> </div> <p dir="auto">yt-dlp is a feature-rich command-line audio/video downloader with support for <a href="/yt-dlp/yt-dlp/blob/master/supportedsites.md">thousands of sites</a>. The project is a fork of <a href="https://github.com/ytdl-org/youtube-dl">youtube-dl</a> based on the now inactive <a href="https://github.com/blackjack4494/yt-dlc">youtube-dlc</a>.</p> <ul dir="auto"> <li><a href="#installation">INSTALLATION</a> <ul dir="auto"> <li><a href="https://github.com/yt-dlp/yt-dlp/wiki/Installation">Detailed instructions</a></li> <li><a href="#release-files">Release Files</a></li> <li><a href="#update">Update</a></li> <li><a href="#dependencies">Dependencies</a></li> <li><a href="#compile">Compile</a></li> </ul> </li> <li><a href="#usage-and-options">USAGE AND OPTIONS</a> <ul dir="auto"> <li><a href="#general-options">General Options</a></li> <li><a href="#network-options">Network Options</a></li> <li><a href="#geo-restriction">Geo-restriction</a></li> <li><a href="#video-selection">Video Selection</a></li> <li><a href="#download-options">Download Options</a></li> <li><a href="#filesystem-options">Filesystem Options</a></li> <li><a href="#thumbnail-options">Thumbnail Options</a></li> <li><a href="#internet-shortcut-options">Internet Shortcut Options</a></li> <li><a href="#verbosity-and-simulation-options">Verbosity and Simulation Options</a></li> <li><a href="#workarounds">Workarounds</a></li> <li><a href="#video-format-options">Video Format Options</a></li> <li><a href="#subtitle-options">Subtitle Options</a></li> <li><a href="#authentication-options">Authentication Options</a></li> <li><a href="#post-processing-options">Post-processing Options</a></li> <li><a href="#sponsorblock-options">SponsorBlock Options</a></li> <li><a href="#extractor-options">Extractor Options</a></li> </ul> </li> <li><a href="#configuration">CONFIGURATION</a> <ul dir="auto"> <li><a href="#configuration-file-encoding">Configuration file encoding</a></li> <li><a href="#authentication-with-netrc">Authentication with netrc</a></li> <li><a href="#notes-about-environment-variables">Notes about environment variables</a></li> </ul> </li> <li><a href="#output-template">OUTPUT TEMPLATE</a> <ul dir="auto"> <li><a href="#output-template-examples">Output template examples</a></li> </ul> </li> <li><a href="#format-selection">FORMAT SELECTION</a> <ul dir="auto"> <li><a href="#filtering-formats">Filtering Formats</a></li> <li><a href="#sorting-formats">Sorting Formats</a></li> <li><a href="#format-selection-examples">Format Selection examples</a></li> </ul> </li> <li><a href="#modifying-metadata">MODIFYING METADATA</a> <ul dir="auto"> <li><a href="#modifying-metadata-examples">Modifying metadata examples</a></li> </ul> </li> <li><a href="#extractor-arguments">EXTRACTOR ARGUMENTS</a></li> <li><a href="#plugins">PLUGINS</a> <ul dir="auto"> <li><a href="#installing-plugins">Installing Plugins</a></li> <li><a href="#developing-plugins">Developing Plugins</a></li> </ul> </li> <li><a href="#embedding-yt-dlp">EMBEDDING YT-DLP</a> <ul dir="auto"> <li><a href="#embedding-examples">Embedding examples</a></li> </ul> </li> <li><a href="#changes-from-youtube-dl">CHANGES FROM YOUTUBE-DL</a> <ul dir="auto"> <li><a href="#new-features">New features</a></li> <li><a href="#differences-in-default-behavior">Differences in default behavior</a></li> <li><a href="#deprecated-options">Deprecated options</a></li> </ul> </li> <li><a href="/yt-dlp/yt-dlp/blob/master/CONTRIBUTING.md#contributing-to-yt-dlp">CONTRIBUTING</a> <ul dir="auto"> <li><a href="/yt-dlp/yt-dlp/blob/master/CONTRIBUTING.md#opening-an-issue">Opening an Issue</a></li> <li><a href="/yt-dlp/yt-dlp/blob/master/CONTRIBUTING.md#developer-instructions">Developer Instructions</a></li> </ul> </li> <li><a href="https://github.com/yt-dlp/yt-dlp/wiki">WIKI</a> <ul dir="auto"> <li><a href="https://github.com/yt-dlp/yt-dlp/wiki/FAQ">FAQ</a></li> </ul> </li> </ul> <div class="markdown-heading" dir="auto"><h1 tabindex="-1" class="heading-element" dir="auto">INSTALLATION</h1><a id="user-content-installation" class="anchor" aria-label="Permalink: INSTALLATION" href="#installation"><svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path></svg></a></div> <p dir="auto"><a href="https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp.exe"><img src="https://camo.githubusercontent.com/95e4bf16965c1b490f880220bbe4fdbe4cd40f51e67830ea33aefb1c1db8ce16/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f2d57696e646f77735f7836342d626c75652e7376673f7374796c653d666f722d7468652d6261646765266c6f676f3d77696e646f7773" alt="Windows" data-canonical-src="https://img.shields.io/badge/-Windows_x64-blue.svg?style=for-the-badge&logo=windows" style="max-width: 100%;"></a> <a href="https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp"><img src="https://camo.githubusercontent.com/6ddbf1063269fce338835e2e8f388da9248d52098980cba869fe4520224da5ba/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f2d4c696e75782f4253442d7265642e7376673f7374796c653d666f722d7468652d6261646765266c6f676f3d6c696e7578" alt="Unix" data-canonical-src="https://img.shields.io/badge/-Linux/BSD-red.svg?style=for-the-badge&logo=linux" style="max-width: 100%;"></a> <a href="https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp_macos"><img src="https://camo.githubusercontent.com/7577b1b5f9261d4114046238799bfcd170bbc9ed5ad0089acf174a864a0dd208/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f2d4d61634f532d6c69676874626c75652e7376673f7374796c653d666f722d7468652d6261646765266c6f676f3d6170706c65" alt="MacOS" data-canonical-src="https://img.shields.io/badge/-MacOS-lightblue.svg?style=for-the-badge&logo=apple" style="max-width: 100%;"></a> <a href="https://pypi.org/project/yt-dlp" rel="nofollow"><img src="https://camo.githubusercontent.com/79555c09a5a7a4a1e68f9d5a62d202ac95d35a7f863056286dccd9e5f0041b88/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f2d507950492d626c75652e7376673f6c6f676f3d70797069266c6162656c436f6c6f723d353535353535267374796c653d666f722d7468652d6261646765" alt="PyPI" data-canonical-src="https://img.shields.io/badge/-PyPI-blue.svg?logo=pypi&labelColor=555555&style=for-the-badge" style="max-width: 100%;"></a> <a href="https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp.tar.gz"><img src="https://camo.githubusercontent.com/3f11336f5c0406be71ab2a0085a3a1e99d9fdb6b3d318bf461c6a14b57c6fb7e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f2d536f757263655f7461722d677265656e2e7376673f7374796c653d666f722d7468652d6261646765" alt="Source Tarball" data-canonical-src="https://img.shields.io/badge/-Source_tar-green.svg?style=for-the-badge" style="max-width: 100%;"></a> <a href="#release-files"><img src="https://camo.githubusercontent.com/2f43ea6dd7ef826a81a062a027b19c73f03f6bfb7e09dd498781b156ff81e4d5/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f2d4f746865722d677265792e7376673f7374796c653d666f722d7468652d6261646765" alt="Other variants" data-canonical-src="https://img.shields.io/badge/-Other-grey.svg?style=for-the-badge" style="max-width: 100%;"></a> <a href="https://github.com/yt-dlp/yt-dlp/releases"><img src="https://camo.githubusercontent.com/6fbe31e8af8814abcbff56a77ad611fa7e9eb1aeb4bef85d7a8a65de1122b232/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f2d416c6c5f56657273696f6e732d6c69676874677265792e7376673f7374796c653d666f722d7468652d6261646765" alt="All versions" data-canonical-src="https://img.shields.io/badge/-All_Versions-lightgrey.svg?style=for-the-badge" style="max-width: 100%;"></a></p> <p dir="auto">You can install yt-dlp using <a href="#release-files">the binaries</a>, <a href="https://pypi.org/project/yt-dlp" rel="nofollow">pip</a> or one using a third-party package manager. See <a href="https://github.com/yt-dlp/yt-dlp/wiki/Installation">the wiki</a> for detailed instructions</p> <div class="markdown-heading" dir="auto"><h2 tabindex="-1" class="heading-element" dir="auto">RELEASE FILES</h2><a id="user-content-release-files" class="anchor" aria-label="Permalink: RELEASE FILES" href="#release-files"><svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path></svg></a></div> <div class="markdown-heading" dir="auto"><h4 tabindex="-1" class="heading-element" dir="auto">Recommended</h4><a id="user-content-recommended" class="anchor" aria-label="Permalink: Recommended" href="#recommended"><svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path></svg></a></div> <markdown-accessiblity-table><table> <thead> <tr> <th align="left">File</th> <th align="left">Description</th> </tr> </thead> <tbody> <tr> <td align="left"><a href="https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp">yt-dlp</a></td> <td align="left">Platform-independent <a href="https://docs.python.org/3/library/zipimport.html" rel="nofollow">zipimport</a> binary. Needs Python (recommended for <strong>Linux/BSD</strong>)</td> </tr> <tr> <td align="left"><a href="https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp.exe">yt-dlp.exe</a></td> <td align="left">Windows (Win8+) standalone x64 binary (recommended for <strong>Windows</strong>)</td> </tr> <tr> <td align="left"><a href="https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp_macos">yt-dlp_macos</a></td> <td align="left">Universal MacOS (10.15+) standalone executable (recommended for <strong>MacOS</strong>)</td> </tr> </tbody> </table></markdown-accessiblity-table> <div class="markdown-heading" dir="auto"><h4 tabindex="-1" class="heading-element" dir="auto">Alternatives</h4><a id="user-content-alternatives" class="anchor" aria-label="Permalink: Alternatives" href="#alternatives"><svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path></svg></a></div> <markdown-accessiblity-table><table> <thead> <tr> <th align="left">File</th> <th align="left">Description</th> </tr> </thead> <tbody> <tr> <td align="left"><a href="https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp_x86.exe">yt-dlp_x86.exe</a></td> <td align="left">Windows (Win8+) standalone x86 (32-bit) binary</td> </tr> <tr> <td align="left"><a href="https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp_linux">yt-dlp_linux</a></td> <td align="left">Linux standalone x64 binary</td> </tr> <tr> <td align="left"><a href="https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp_linux_armv7l">yt-dlp_linux_armv7l</a></td> <td align="left">Linux standalone armv7l (32-bit) binary</td> </tr> <tr> <td align="left"><a href="https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp_linux_aarch64">yt-dlp_linux_aarch64</a></td> <td align="left">Linux standalone aarch64 (64-bit) binary</td> </tr> <tr> <td align="left"><a href="https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp_win.zip">yt-dlp_win.zip</a></td> <td align="left">Unpackaged Windows executable (no auto-update)</td> </tr> <tr> <td align="left"><a href="https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp_macos.zip">yt-dlp_macos.zip</a></td> <td align="left">Unpackaged MacOS (10.15+) executable (no auto-update)</td> </tr> <tr> <td align="left"><a href="https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp_macos_legacy">yt-dlp_macos_legacy</a></td> <td align="left">MacOS (10.9+) standalone x64 executable</td> </tr> </tbody> </table></markdown-accessiblity-table> <div class="markdown-heading" dir="auto"><h4 tabindex="-1" class="heading-element" dir="auto">Misc</h4><a id="user-content-misc" class="anchor" aria-label="Permalink: Misc" href="#misc"><svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path></svg></a></div> <markdown-accessiblity-table><table> <thead> <tr> <th align="left">File</th> <th align="left">Description</th> </tr> </thead> <tbody> <tr> <td align="left"><a href="https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp.tar.gz">yt-dlp.tar.gz</a></td> <td align="left">Source tarball</td> </tr> <tr> <td align="left"><a href="https://github.com/yt-dlp/yt-dlp/releases/latest/download/SHA2-512SUMS">SHA2-512SUMS</a></td> <td align="left">GNU-style SHA512 sums</td> </tr> <tr> <td align="left"><a href="https://github.com/yt-dlp/yt-dlp/releases/latest/download/SHA2-512SUMS.sig">SHA2-512SUMS.sig</a></td> <td align="left">GPG signature file for SHA512 sums</td> </tr> <tr> <td align="left"><a href="https://github.com/yt-dlp/yt-dlp/releases/latest/download/SHA2-256SUMS">SHA2-256SUMS</a></td> <td align="left">GNU-style SHA256 sums</td> </tr> <tr> <td align="left"><a href="https://github.com/yt-dlp/yt-dlp/releases/latest/download/SHA2-256SUMS.sig">SHA2-256SUMS.sig</a></td> <td align="left">GPG signature file for SHA256 sums</td> </tr> </tbody> </table></markdown-accessiblity-table> <p dir="auto">The public key that can be used to verify the GPG signatures is <a href="https://github.com/yt-dlp/yt-dlp/blob/master/public.key">available here</a> Example usage:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="curl -L https://github.com/yt-dlp/yt-dlp/raw/master/public.key | gpg --import gpg --verify SHA2-256SUMS.sig SHA2-256SUMS gpg --verify SHA2-512SUMS.sig SHA2-512SUMS"><pre class="notranslate"><code>curl -L https://github.com/yt-dlp/yt-dlp/raw/master/public.key | gpg --import gpg --verify SHA2-256SUMS.sig SHA2-256SUMS gpg --verify SHA2-512SUMS.sig SHA2-512SUMS </code></pre></div> <p dir="auto"><strong>Note</strong>: The manpages, shell completion (autocomplete) files etc. are available inside the <a href="https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp.tar.gz">source tarball</a></p> <div class="markdown-heading" dir="auto"><h2 tabindex="-1" class="heading-element" dir="auto">UPDATE</h2><a id="user-content-update" class="anchor" aria-label="Permalink: UPDATE" href="#update"><svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path></svg></a></div> <p dir="auto">You can use <code>yt-dlp -U</code> to update if you are using the <a href="#release-files">release binaries</a></p> <p dir="auto">If you <a href="https://github.com/yt-dlp/yt-dlp/wiki/Installation#with-pip">installed with pip</a>, simply re-run the same command that was used to install the program</p> <p dir="auto">For other third-party package managers, see <a href="https://github.com/yt-dlp/yt-dlp/wiki/Installation#third-party-package-managers">the wiki</a> or refer to their documentation</p> <p dir="auto"><a id="user-content-update-channels"></a></p> <p dir="auto">There are currently three release channels for binaries: <code>stable</code>, <code>nightly</code> and <code>master</code>.</p> <ul dir="auto"> <li><code>stable</code> is the default channel, and many of its changes have been tested by users of the <code>nightly</code> and <code>master</code> channels.</li> <li>The <code>nightly</code> channel has releases scheduled to build every day around midnight UTC, for a snapshot of the project's new patches and changes. This is the <strong>recommended channel for regular users</strong> of yt-dlp. The <code>nightly</code> releases are available from <a href="https://github.com/yt-dlp/yt-dlp-nightly-builds/releases">yt-dlp/yt-dlp-nightly-builds</a> or as development releases of the <code>yt-dlp</code> PyPI package (which can be installed with pip's <code>--pre</code> flag).</li> <li>The <code>master</code> channel features releases that are built after each push to the master branch, and these will have the very latest fixes and additions, but may also be more prone to regressions. They are available from <a href="https://github.com/yt-dlp/yt-dlp-master-builds/releases">yt-dlp/yt-dlp-master-builds</a>.</li> </ul> <p dir="auto">When using <code>--update</code>/<code>-U</code>, a release binary will only update to its current channel. <code>--update-to CHANNEL</code> can be used to switch to a different channel when a newer version is available. <code>--update-to [CHANNEL@]TAG</code> can also be used to upgrade or downgrade to specific tags from a channel.</p> <p dir="auto">You may also use <code>--update-to <repository></code> (<code><owner>/<repository></code>) to update to a channel on a completely different repository. Be careful with what repository you are updating to though, there is no verification done for binaries from different repositories.</p> <p dir="auto">Example usage:</p> <ul dir="auto"> <li><code>yt-dlp --update-to master</code> switch to the <code>master</code> channel and update to its latest release</li> <li><code>yt-dlp --update-to stable@2023.07.06</code> upgrade/downgrade to release to <code>stable</code> channel tag <code>2023.07.06</code></li> <li><code>yt-dlp --update-to 2023.10.07</code> upgrade/downgrade to tag <code>2023.10.07</code> if it exists on the current channel</li> <li><code>yt-dlp --update-to example/yt-dlp@2023.09.24</code> upgrade/downgrade to the release from the <code>example/yt-dlp</code> repository, tag <code>2023.09.24</code></li> </ul> <p dir="auto"><strong>Important</strong>: Any user experiencing an issue with the <code>stable</code> release should install or update to the <code>nightly</code> release before submitting a bug report:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="# To update to nightly from stable executable/binary: yt-dlp --update-to nightly # To install nightly with pip: python3 -m pip install -U --pre "yt-dlp[default]""><pre class="notranslate"><code># To update to nightly from stable executable/binary: yt-dlp --update-to nightly # To install nightly with pip: python3 -m pip install -U --pre "yt-dlp[default]" </code></pre></div> <div class="markdown-heading" dir="auto"><h2 tabindex="-1" class="heading-element" dir="auto">DEPENDENCIES</h2><a id="user-content-dependencies" class="anchor" aria-label="Permalink: DEPENDENCIES" href="#dependencies"><svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path></svg></a></div> <p dir="auto">Python versions 3.9+ (CPython) and 3.10+ (PyPy) are supported. Other versions and implementations may or may not work correctly.</p> <p dir="auto">While all the other dependencies are optional, <code>ffmpeg</code> and <code>ffprobe</code> are highly recommended</p> <div class="markdown-heading" dir="auto"><h3 tabindex="-1" class="heading-element" dir="auto">Strongly recommended</h3><a id="user-content-strongly-recommended" class="anchor" aria-label="Permalink: Strongly recommended" href="#strongly-recommended"><svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path></svg></a></div> <ul dir="auto"> <li> <p dir="auto"><a href="https://www.ffmpeg.org" rel="nofollow"><strong>ffmpeg</strong> and <strong>ffprobe</strong></a> - Required for <a href="#format-selection">merging separate video and audio files</a>, as well as for various <a href="#post-processing-options">post-processing</a> tasks. License <a href="https://www.ffmpeg.org/legal.html" rel="nofollow">depends on the build</a></p> <p dir="auto">There are bugs in ffmpeg that cause various issues when used alongside yt-dlp. Since ffmpeg is such an important dependency, we provide <a href="https://github.com/yt-dlp/FFmpeg-Builds#ffmpeg-static-auto-builds">custom builds</a> with patches for some of these issues at <a href="https://github.com/yt-dlp/FFmpeg-Builds">yt-dlp/FFmpeg-Builds</a>. See <a href="https://github.com/yt-dlp/FFmpeg-Builds#patches-applied">the readme</a> for details on the specific issues solved by these builds</p> <p dir="auto"><strong>Important</strong>: What you need is ffmpeg <em>binary</em>, <strong>NOT</strong> <a href="https://pypi.org/project/ffmpeg" rel="nofollow">the Python package of the same name</a></p> </li> </ul> <div class="markdown-heading" dir="auto"><h3 tabindex="-1" class="heading-element" dir="auto">Networking</h3><a id="user-content-networking" class="anchor" aria-label="Permalink: Networking" href="#networking"><svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path></svg></a></div> <ul dir="auto"> <li><a href="https://github.com/certifi/python-certifi"><strong>certifi</strong></a>* - Provides Mozilla's root certificate bundle. Licensed under <a href="https://github.com/certifi/python-certifi/blob/master/LICENSE">MPLv2</a></li> <li><a href="https://github.com/google/brotli"><strong>brotli</strong></a>* or <a href="https://github.com/python-hyper/brotlicffi"><strong>brotlicffi</strong></a> - <a href="https://en.wikipedia.org/wiki/Brotli" rel="nofollow">Brotli</a> content encoding support. Both licensed under MIT <sup><a href="https://github.com/google/brotli/blob/master/LICENSE">1</a> <a href="https://github.com/python-hyper/brotlicffi/blob/master/LICENSE">2</a> </sup></li> <li><a href="https://github.com/aaugustin/websockets"><strong>websockets</strong></a>* - For downloading over websocket. Licensed under <a href="https://github.com/aaugustin/websockets/blob/main/LICENSE">BSD-3-Clause</a></li> <li><a href="https://github.com/psf/requests"><strong>requests</strong></a>* - HTTP library. For HTTPS proxy and persistent connections support. Licensed under <a href="https://github.com/psf/requests/blob/main/LICENSE">Apache-2.0</a></li> </ul> <div class="markdown-heading" dir="auto"><h4 tabindex="-1" class="heading-element" dir="auto">Impersonation</h4><a id="user-content-impersonation" class="anchor" aria-label="Permalink: Impersonation" href="#impersonation"><svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path></svg></a></div> <p dir="auto">The following provide support for impersonating browser requests. This may be required for some sites that employ TLS fingerprinting.</p> <ul dir="auto"> <li><a href="https://github.com/lexiforest/curl_cffi"><strong>curl_cffi</strong></a> (recommended) - Python binding for <a href="https://github.com/lexiforest/curl-impersonate">curl-impersonate</a>. Provides impersonation targets for Chrome, Edge and Safari. Licensed under <a href="https://github.com/lexiforest/curl_cffi/blob/main/LICENSE">MIT</a> <ul dir="auto"> <li>Can be installed with the <code>curl-cffi</code> group, e.g. <code>pip install "yt-dlp[default,curl-cffi]"</code></li> <li>Currently included in <code>yt-dlp.exe</code>, <code>yt-dlp_linux</code> and <code>yt-dlp_macos</code> builds</li> </ul> </li> </ul> <div class="markdown-heading" dir="auto"><h3 tabindex="-1" class="heading-element" dir="auto">Metadata</h3><a id="user-content-metadata" class="anchor" aria-label="Permalink: Metadata" href="#metadata"><svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path></svg></a></div> <ul dir="auto"> <li><a href="https://github.com/quodlibet/mutagen"><strong>mutagen</strong></a>* - For <code>--embed-thumbnail</code> in certain formats. Licensed under <a href="https://github.com/quodlibet/mutagen/blob/master/COPYING">GPLv2+</a></li> <li><a href="https://github.com/wez/atomicparsley"><strong>AtomicParsley</strong></a> - For <code>--embed-thumbnail</code> in <code>mp4</code>/<code>m4a</code> files when <code>mutagen</code>/<code>ffmpeg</code> cannot. Licensed under <a href="https://github.com/wez/atomicparsley/blob/master/COPYING">GPLv2+</a></li> <li><a href="https://github.com/xattr/xattr"><strong>xattr</strong></a>, <a href="https://github.com/iustin/pyxattr"><strong>pyxattr</strong></a> or <a href="http://savannah.nongnu.org/projects/attr" rel="nofollow"><strong>setfattr</strong></a> - For writing xattr metadata (<code>--xattr</code>) on <strong>Mac</strong> and <strong>BSD</strong>. Licensed under <a href="https://github.com/xattr/xattr/blob/master/LICENSE.txt">MIT</a>, <a href="https://github.com/iustin/pyxattr/blob/master/COPYING">LGPL2.1</a> and <a href="http://git.savannah.nongnu.org/cgit/attr.git/tree/doc/COPYING" rel="nofollow">GPLv2+</a> respectively</li> </ul> <div class="markdown-heading" dir="auto"><h3 tabindex="-1" class="heading-element" dir="auto">Misc</h3><a id="user-content-misc-1" class="anchor" aria-label="Permalink: Misc" href="#misc-1"><svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path></svg></a></div> <ul dir="auto"> <li><a href="https://github.com/Legrandin/pycryptodome"><strong>pycryptodomex</strong></a>* - For decrypting AES-128 HLS streams and various other data. Licensed under <a href="https://github.com/Legrandin/pycryptodome/blob/master/LICENSE.rst">BSD-2-Clause</a></li> <li><a href="https://github.com/ariya/phantomjs"><strong>phantomjs</strong></a> - Used in extractors where javascript needs to be run. Licensed under <a href="https://github.com/ariya/phantomjs/blob/master/LICENSE.BSD">BSD-3-Clause</a></li> <li><a href="https://github.com/mitya57/secretstorage"><strong>secretstorage</strong></a>* - For <code>--cookies-from-browser</code> to access the <strong>Gnome</strong> keyring while decrypting cookies of <strong>Chromium</strong>-based browsers on <strong>Linux</strong>. Licensed under <a href="https://github.com/mitya57/secretstorage/blob/master/LICENSE">BSD-3-Clause</a></li> <li>Any external downloader that you want to use with <code>--downloader</code></li> </ul> <div class="markdown-heading" dir="auto"><h3 tabindex="-1" class="heading-element" dir="auto">Deprecated</h3><a id="user-content-deprecated" class="anchor" aria-label="Permalink: Deprecated" href="#deprecated"><svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path></svg></a></div> <ul dir="auto"> <li><a href="https://www.libav.org" rel="nofollow"><strong>avconv</strong> and <strong>avprobe</strong></a> - Now <strong>deprecated</strong> alternative to ffmpeg. License <a href="https://libav.org/legal" rel="nofollow">depends on the build</a></li> <li><a href="https://github.com/faissaloo/SponSkrub"><strong>sponskrub</strong></a> - For using the now <strong>deprecated</strong> <a href="#sponskrub-options">sponskrub options</a>. Licensed under <a href="https://github.com/faissaloo/SponSkrub/blob/master/LICENCE.md">GPLv3+</a></li> <li><a href="http://rtmpdump.mplayerhq.hu" rel="nofollow"><strong>rtmpdump</strong></a> - For downloading <code>rtmp</code> streams. ffmpeg can be used instead with <code>--downloader ffmpeg</code>. Licensed under <a href="http://rtmpdump.mplayerhq.hu" rel="nofollow">GPLv2+</a></li> <li><a href="http://mplayerhq.hu/design7/info.html" rel="nofollow"><strong>mplayer</strong></a> or <a href="https://mpv.io" rel="nofollow"><strong>mpv</strong></a> - For downloading <code>rstp</code>/<code>mms</code> streams. ffmpeg can be used instead with <code>--downloader ffmpeg</code>. Licensed under <a href="https://github.com/mpv-player/mpv/blob/master/Copyright">GPLv2+</a></li> </ul> <p dir="auto">To use or redistribute the dependencies, you must agree to their respective licensing terms.</p> <p dir="auto">The standalone release binaries are built with the Python interpreter and the packages marked with <strong>*</strong> included.</p> <p dir="auto">If you do not have the necessary dependencies for a task you are attempting, yt-dlp will warn you. All the currently available dependencies are visible at the top of the <code>--verbose</code> output</p> <div class="markdown-heading" dir="auto"><h2 tabindex="-1" class="heading-element" dir="auto">COMPILE</h2><a id="user-content-compile" class="anchor" aria-label="Permalink: COMPILE" href="#compile"><svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path></svg></a></div> <div class="markdown-heading" dir="auto"><h3 tabindex="-1" class="heading-element" dir="auto">Standalone PyInstaller Builds</h3><a id="user-content-standalone-pyinstaller-builds" class="anchor" aria-label="Permalink: Standalone PyInstaller Builds" href="#standalone-pyinstaller-builds"><svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path></svg></a></div> <p dir="auto">To build the standalone executable, you must have Python and <code>pyinstaller</code> (plus any of yt-dlp's <a href="#dependencies">optional dependencies</a> if needed). The executable will be built for the same CPU architecture as the Python used.</p> <p dir="auto">You can run the following commands:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="python3 devscripts/install_deps.py --include pyinstaller python3 devscripts/make_lazy_extractors.py python3 -m bundle.pyinstaller"><pre class="notranslate"><code>python3 devscripts/install_deps.py --include pyinstaller python3 devscripts/make_lazy_extractors.py python3 -m bundle.pyinstaller </code></pre></div> <p dir="auto">On some systems, you may need to use <code>py</code> or <code>python</code> instead of <code>python3</code>.</p> <p dir="auto"><code>python -m bundle.pyinstaller</code> accepts any arguments that can be passed to <code>pyinstaller</code>, such as <code>--onefile/-F</code> or <code>--onedir/-D</code>, which is further <a href="https://pyinstaller.org/en/stable/usage.html#what-to-generate" rel="nofollow">documented here</a>.</p> <p dir="auto"><strong>Note</strong>: Pyinstaller versions below 4.4 <a href="https://github.com/pyinstaller/pyinstaller#requirements-and-tested-platforms">do not support</a> Python installed from the Windows store without using a virtual environment.</p> <p dir="auto"><strong>Important</strong>: Running <code>pyinstaller</code> directly <strong>instead of</strong> using <code>python -m bundle.pyinstaller</code> is <strong>not</strong> officially supported. This may or may not work correctly.</p> <div class="markdown-heading" dir="auto"><h3 tabindex="-1" class="heading-element" dir="auto">Platform-independent Binary (UNIX)</h3><a id="user-content-platform-independent-binary-unix" class="anchor" aria-label="Permalink: Platform-independent Binary (UNIX)" href="#platform-independent-binary-unix"><svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path></svg></a></div> <p dir="auto">You will need the build tools <code>python</code> (3.9+), <code>zip</code>, <code>make</code> (GNU), <code>pandoc</code>* and <code>pytest</code>*.</p> <p dir="auto">After installing these, simply run <code>make</code>.</p> <p dir="auto">You can also run <code>make yt-dlp</code> instead to compile only the binary without updating any of the additional files. (The build tools marked with <strong>*</strong> are not needed for this)</p> <div class="markdown-heading" dir="auto"><h3 tabindex="-1" class="heading-element" dir="auto">Related scripts</h3><a id="user-content-related-scripts" class="anchor" aria-label="Permalink: Related scripts" href="#related-scripts"><svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path></svg></a></div> <ul dir="auto"> <li><strong><code>devscripts/install_deps.py</code></strong> - Install dependencies for yt-dlp.</li> <li><strong><code>devscripts/update-version.py</code></strong> - Update the version number based on the current date.</li> <li><strong><code>devscripts/set-variant.py</code></strong> - Set the build variant of the executable.</li> <li><strong><code>devscripts/make_changelog.py</code></strong> - Create a markdown changelog using short commit messages and update <code>CONTRIBUTORS</code> file.</li> <li><strong><code>devscripts/make_lazy_extractors.py</code></strong> - Create lazy extractors. Running this before building the binaries (any variant) will improve their startup performance. Set the environment variable <code>YTDLP_NO_LAZY_EXTRACTORS</code> to something nonempty to forcefully disable lazy extractor loading.</li> </ul> <p dir="auto">Note: See their <code>--help</code> for more info.</p> <div class="markdown-heading" dir="auto"><h3 tabindex="-1" class="heading-element" dir="auto">Forking the project</h3><a id="user-content-forking-the-project" class="anchor" aria-label="Permalink: Forking the project" href="#forking-the-project"><svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path></svg></a></div> <p dir="auto">If you fork the project on GitHub, you can run your fork's <a href="/yt-dlp/yt-dlp/blob/master/.github/workflows/build.yml">build workflow</a> to automatically build the selected version(s) as artifacts. Alternatively, you can run the <a href="/yt-dlp/yt-dlp/blob/master/.github/workflows/release.yml">release workflow</a> or enable the <a href="/yt-dlp/yt-dlp/blob/master/.github/workflows/release-nightly.yml">nightly workflow</a> to create full (pre-)releases.</p> <div class="markdown-heading" dir="auto"><h1 tabindex="-1" class="heading-element" dir="auto">USAGE AND OPTIONS</h1><a id="user-content-usage-and-options" class="anchor" aria-label="Permalink: USAGE AND OPTIONS" href="#usage-and-options"><svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path></svg></a></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="yt-dlp [OPTIONS] [--] URL [URL...]"><pre class="notranslate"><code>yt-dlp [OPTIONS] [--] URL [URL...] </code></pre></div> <p dir="auto"><code>Ctrl+F</code> is your friend :D</p> <div class="markdown-heading" dir="auto"><h2 tabindex="-1" class="heading-element" dir="auto">General Options:</h2><a id="user-content-general-options" class="anchor" aria-label="Permalink: General Options:" href="#general-options"><svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path></svg></a></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="-h, --help Print this help text and exit --version Print program version and exit -U, --update Update this program to the latest version --no-update Do not check for updates (default) --update-to [CHANNEL]@[TAG] Upgrade/downgrade to a specific version. CHANNEL can be a repository as well. CHANNEL and TAG default to "stable" and "latest" respectively if omitted; See "UPDATE" for details. Supported channels: stable, nightly, master -i, --ignore-errors Ignore download and postprocessing errors. The download will be considered successful even if the postprocessing fails --no-abort-on-error Continue with next video on download errors; e.g. to skip unavailable videos in a playlist (default) --abort-on-error Abort downloading of further videos if an error occurs (Alias: --no-ignore-errors) --dump-user-agent Display the current user-agent and exit --list-extractors List all supported extractors and exit --extractor-descriptions Output descriptions of all supported extractors and exit --use-extractors NAMES Extractor names to use separated by commas. You can also use regexes, "all", "default" and "end" (end URL matching); e.g. --ies "holodex.*,end,youtube". Prefix the name with a "-" to exclude it, e.g. --ies default,-generic. Use --list-extractors for a list of extractor names. (Alias: --ies) --default-search PREFIX Use this prefix for unqualified URLs. E.g. "gvsearch2:python" downloads two videos from google videos for the search term "python". Use the value "auto" to let yt-dlp guess ("auto_warning" to emit a warning when guessing). "error" just throws an error. The default value "fixup_error" repairs broken URLs, but emits an error if this is not possible instead of searching --ignore-config Don't load any more configuration files except those given to --config-locations. For backward compatibility, if this option is found inside the system configuration file, the user configuration is not loaded. (Alias: --no-config) --no-config-locations Do not load any custom configuration files (default). When given inside a configuration file, ignore all previous --config-locations defined in the current file --config-locations PATH Location of the main configuration file; either the path to the config or its containing directory ("-" for stdin). Can be used multiple times and inside other configuration files --plugin-dirs PATH Path to an additional directory to search for plugins. This option can be used multiple times to add multiple directories. Use "default" to search the default plugin directories (default) --no-plugin-dirs Clear plugin directories to search, including defaults and those provided by previous --plugin-dirs --flat-playlist Do not extract a playlist's URL result entries; some entry metadata may be missing and downloading may be bypassed --no-flat-playlist Fully extract the videos of a playlist (default) --live-from-start Download livestreams from the start. Currently only supported for YouTube (Experimental) --no-live-from-start Download livestreams from the current time (default) --wait-for-video MIN[-MAX] Wait for scheduled streams to become available. Pass the minimum number of seconds (or range) to wait between retries --no-wait-for-video Do not wait for scheduled streams (default) --mark-watched Mark videos watched (even with --simulate) --no-mark-watched Do not mark videos watched (default) --color [STREAM:]POLICY Whether to emit color codes in output, optionally prefixed by the STREAM (stdout or stderr) to apply the setting to. Can be one of "always", "auto" (default), "never", or "no_color" (use non color terminal sequences). Use "auto-tty" or "no_color-tty" to decide based on terminal support only. Can be used multiple times --compat-options OPTS Options that can help keep compatibility with youtube-dl or youtube-dlc configurations by reverting some of the changes made in yt-dlp. See "Differences in default behavior" for details --alias ALIASES OPTIONS Create aliases for an option string. Unless an alias starts with a dash "-", it is prefixed with "--". Arguments are parsed according to the Python string formatting mini-language. E.g. --alias get-audio,-X "-S=aext:{0},abr -x --audio-format {0}" creates options "--get-audio" and "-X" that takes an argument (ARG0) and expands to "-S=aext:ARG0,abr -x --audio-format ARG0". All defined aliases are listed in the --help output. Alias options can trigger more aliases; so be careful to avoid defining recursive options. As a safety measure, each alias may be triggered a maximum of 100 times. This option can be used multiple times"><pre class="notranslate"><code>-h, --help Print this help text and exit --version Print program version and exit -U, --update Update this program to the latest version --no-update Do not check for updates (default) --update-to [CHANNEL]@[TAG] Upgrade/downgrade to a specific version. CHANNEL can be a repository as well. CHANNEL and TAG default to "stable" and "latest" respectively if omitted; See "UPDATE" for details. Supported channels: stable, nightly, master -i, --ignore-errors Ignore download and postprocessing errors. The download will be considered successful even if the postprocessing fails --no-abort-on-error Continue with next video on download errors; e.g. to skip unavailable videos in a playlist (default) --abort-on-error Abort downloading of further videos if an error occurs (Alias: --no-ignore-errors) --dump-user-agent Display the current user-agent and exit --list-extractors List all supported extractors and exit --extractor-descriptions Output descriptions of all supported extractors and exit --use-extractors NAMES Extractor names to use separated by commas. You can also use regexes, "all", "default" and "end" (end URL matching); e.g. --ies "holodex.*,end,youtube". Prefix the name with a "-" to exclude it, e.g. --ies default,-generic. Use --list-extractors for a list of extractor names. (Alias: --ies) --default-search PREFIX Use this prefix for unqualified URLs. E.g. "gvsearch2:python" downloads two videos from google videos for the search term "python". Use the value "auto" to let yt-dlp guess ("auto_warning" to emit a warning when guessing). "error" just throws an error. The default value "fixup_error" repairs broken URLs, but emits an error if this is not possible instead of searching --ignore-config Don't load any more configuration files except those given to --config-locations. For backward compatibility, if this option is found inside the system configuration file, the user configuration is not loaded. (Alias: --no-config) --no-config-locations Do not load any custom configuration files (default). When given inside a configuration file, ignore all previous --config-locations defined in the current file --config-locations PATH Location of the main configuration file; either the path to the config or its containing directory ("-" for stdin). Can be used multiple times and inside other configuration files --plugin-dirs PATH Path to an additional directory to search for plugins. This option can be used multiple times to add multiple directories. Use "default" to search the default plugin directories (default) --no-plugin-dirs Clear plugin directories to search, including defaults and those provided by previous --plugin-dirs --flat-playlist Do not extract a playlist's URL result entries; some entry metadata may be missing and downloading may be bypassed --no-flat-playlist Fully extract the videos of a playlist (default) --live-from-start Download livestreams from the start. Currently only supported for YouTube (Experimental) --no-live-from-start Download livestreams from the current time (default) --wait-for-video MIN[-MAX] Wait for scheduled streams to become available. Pass the minimum number of seconds (or range) to wait between retries --no-wait-for-video Do not wait for scheduled streams (default) --mark-watched Mark videos watched (even with --simulate) --no-mark-watched Do not mark videos watched (default) --color [STREAM:]POLICY Whether to emit color codes in output, optionally prefixed by the STREAM (stdout or stderr) to apply the setting to. Can be one of "always", "auto" (default), "never", or "no_color" (use non color terminal sequences). Use "auto-tty" or "no_color-tty" to decide based on terminal support only. Can be used multiple times --compat-options OPTS Options that can help keep compatibility with youtube-dl or youtube-dlc configurations by reverting some of the changes made in yt-dlp. See "Differences in default behavior" for details --alias ALIASES OPTIONS Create aliases for an option string. Unless an alias starts with a dash "-", it is prefixed with "--". Arguments are parsed according to the Python string formatting mini-language. E.g. --alias get-audio,-X "-S=aext:{0},abr -x --audio-format {0}" creates options "--get-audio" and "-X" that takes an argument (ARG0) and expands to "-S=aext:ARG0,abr -x --audio-format ARG0". All defined aliases are listed in the --help output. Alias options can trigger more aliases; so be careful to avoid defining recursive options. As a safety measure, each alias may be triggered a maximum of 100 times. This option can be used multiple times </code></pre></div> <div class="markdown-heading" dir="auto"><h2 tabindex="-1" class="heading-element" dir="auto">Network Options:</h2><a id="user-content-network-options" class="anchor" aria-label="Permalink: Network Options:" href="#network-options"><svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path></svg></a></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="--proxy URL Use the specified HTTP/HTTPS/SOCKS proxy. To enable SOCKS proxy, specify a proper scheme, e.g. socks5://user:pass@127.0.0.1:1080/. Pass in an empty string (--proxy "") for direct connection --socket-timeout SECONDS Time to wait before giving up, in seconds --source-address IP Client-side IP address to bind to --impersonate CLIENT[:OS] Client to impersonate for requests. E.g. chrome, chrome-110, chrome:windows-10. Pass --impersonate="" to impersonate any client. Note that forcing impersonation for all requests may have a detrimental impact on download speed and stability --list-impersonate-targets List available clients to impersonate. -4, --force-ipv4 Make all connections via IPv4 -6, --force-ipv6 Make all connections via IPv6 --enable-file-urls Enable file:// URLs. This is disabled by default for security reasons."><pre class="notranslate"><code>--proxy URL Use the specified HTTP/HTTPS/SOCKS proxy. To enable SOCKS proxy, specify a proper scheme, e.g. socks5://user:pass@127.0.0.1:1080/. Pass in an empty string (--proxy "") for direct connection --socket-timeout SECONDS Time to wait before giving up, in seconds --source-address IP Client-side IP address to bind to --impersonate CLIENT[:OS] Client to impersonate for requests. E.g. chrome, chrome-110, chrome:windows-10. Pass --impersonate="" to impersonate any client. Note that forcing impersonation for all requests may have a detrimental impact on download speed and stability --list-impersonate-targets List available clients to impersonate. -4, --force-ipv4 Make all connections via IPv4 -6, --force-ipv6 Make all connections via IPv6 --enable-file-urls Enable file:// URLs. This is disabled by default for security reasons. </code></pre></div> <div class="markdown-heading" dir="auto"><h2 tabindex="-1" class="heading-element" dir="auto">Geo-restriction:</h2><a id="user-content-geo-restriction" class="anchor" aria-label="Permalink: Geo-restriction:" href="#geo-restriction"><svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path></svg></a></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="--geo-verification-proxy URL Use this proxy to verify the IP address for some geo-restricted sites. The default proxy specified by --proxy (or none, if the option is not present) is used for the actual downloading --xff VALUE How to fake X-Forwarded-For HTTP header to try bypassing geographic restriction. One of "default" (only when known to be useful), "never", an IP block in CIDR notation, or a two-letter ISO 3166-2 country code"><pre class="notranslate"><code>--geo-verification-proxy URL Use this proxy to verify the IP address for some geo-restricted sites. The default proxy specified by --proxy (or none, if the option is not present) is used for the actual downloading --xff VALUE How to fake X-Forwarded-For HTTP header to try bypassing geographic restriction. One of "default" (only when known to be useful), "never", an IP block in CIDR notation, or a two-letter ISO 3166-2 country code </code></pre></div> <div class="markdown-heading" dir="auto"><h2 tabindex="-1" class="heading-element" dir="auto">Video Selection:</h2><a id="user-content-video-selection" class="anchor" aria-label="Permalink: Video Selection:" href="#video-selection"><svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path></svg></a></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="-I, --playlist-items ITEM_SPEC Comma separated playlist_index of the items to download. You can specify a range using "[START]:[STOP][:STEP]". For backward compatibility, START-STOP is also supported. Use negative indices to count from the right and negative STEP to download in reverse order. E.g. "-I 1:3,7,-5::2" used on a playlist of size 15 will download the items at index 1,2,3,7,11,13,15 --min-filesize SIZE Abort download if filesize is smaller than SIZE, e.g. 50k or 44.6M --max-filesize SIZE Abort download if filesize is larger than SIZE, e.g. 50k or 44.6M --date DATE Download only videos uploaded on this date. The date can be "YYYYMMDD" or in the format [now|today|yesterday][-N[day|week|month|year]]. E.g. "--date today-2weeks" downloads only videos uploaded on the same day two weeks ago --datebefore DATE Download only videos uploaded on or before this date. The date formats accepted are the same as --date --dateafter DATE Download only videos uploaded on or after this date. The date formats accepted are the same as --date --match-filters FILTER Generic video filter. Any "OUTPUT TEMPLATE" field can be compared with a number or a string using the operators defined in "Filtering Formats". You can also simply specify a field to match if the field is present, use "!field" to check if the field is not present, and "&" to check multiple conditions. Use a "\" to escape "&" or quotes if needed. If used multiple times, the filter matches if at least one of the conditions is met. E.g. --match-filters !is_live --match-filters "like_count>?100 & description~='(?i)\bcats \& dogs\b'" matches only videos that are not live OR those that have a like count more than 100 (or the like field is not available) and also has a description that contains the phrase "cats & dogs" (caseless). Use "--match-filters -" to interactively ask whether to download each video --no-match-filters Do not use any --match-filters (default) --break-match-filters FILTER Same as "--match-filters" but stops the download process when a video is rejected --no-break-match-filters Do not use any --break-match-filters (default) --no-playlist Download only the video, if the URL refers to a video and a playlist --yes-playlist Download the playlist, if the URL refers to a video and a playlist --age-limit YEARS Download only videos suitable for the given age --download-archive FILE Download only videos not listed in the archive file. Record the IDs of all downloaded videos in it --no-download-archive Do not use archive file (default) --max-downloads NUMBER Abort after downloading NUMBER files --break-on-existing Stop the download process when encountering a file that is in the archive supplied with the --download-archive option --no-break-on-existing Do not stop the download process when encountering a file that is in the archive (default) --break-per-input Alters --max-downloads, --break-on-existing, --break-match-filters, and autonumber to reset per input URL --no-break-per-input --break-on-existing and similar options terminates the entire download queue --skip-playlist-after-errors N Number of allowed failures until the rest of the playlist is skipped"><pre class="notranslate"><code>-I, --playlist-items ITEM_SPEC Comma separated playlist_index of the items to download. You can specify a range using "[START]:[STOP][:STEP]". For backward compatibility, START-STOP is also supported. Use negative indices to count from the right and negative STEP to download in reverse order. E.g. "-I 1:3,7,-5::2" used on a playlist of size 15 will download the items at index 1,2,3,7,11,13,15 --min-filesize SIZE Abort download if filesize is smaller than SIZE, e.g. 50k or 44.6M --max-filesize SIZE Abort download if filesize is larger than SIZE, e.g. 50k or 44.6M --date DATE Download only videos uploaded on this date. The date can be "YYYYMMDD" or in the format [now|today|yesterday][-N[day|week|month|year]]. E.g. "--date today-2weeks" downloads only videos uploaded on the same day two weeks ago --datebefore DATE Download only videos uploaded on or before this date. The date formats accepted are the same as --date --dateafter DATE Download only videos uploaded on or after this date. The date formats accepted are the same as --date --match-filters FILTER Generic video filter. Any "OUTPUT TEMPLATE" field can be compared with a number or a string using the operators defined in "Filtering Formats". You can also simply specify a field to match if the field is present, use "!field" to check if the field is not present, and "&" to check multiple conditions. Use a "\" to escape "&" or quotes if needed. If used multiple times, the filter matches if at least one of the conditions is met. E.g. --match-filters !is_live --match-filters "like_count>?100 & description~='(?i)\bcats \& dogs\b'" matches only videos that are not live OR those that have a like count more than 100 (or the like field is not available) and also has a description that contains the phrase "cats & dogs" (caseless). Use "--match-filters -" to interactively ask whether to download each video --no-match-filters Do not use any --match-filters (default) --break-match-filters FILTER Same as "--match-filters" but stops the download process when a video is rejected --no-break-match-filters Do not use any --break-match-filters (default) --no-playlist Download only the video, if the URL refers to a video and a playlist --yes-playlist Download the playlist, if the URL refers to a video and a playlist --age-limit YEARS Download only videos suitable for the given age --download-archive FILE Download only videos not listed in the archive file. Record the IDs of all downloaded videos in it --no-download-archive Do not use archive file (default) --max-downloads NUMBER Abort after downloading NUMBER files --break-on-existing Stop the download process when encountering a file that is in the archive supplied with the --download-archive option --no-break-on-existing Do not stop the download process when encountering a file that is in the archive (default) --break-per-input Alters --max-downloads, --break-on-existing, --break-match-filters, and autonumber to reset per input URL --no-break-per-input --break-on-existing and similar options terminates the entire download queue --skip-playlist-after-errors N Number of allowed failures until the rest of the playlist is skipped </code></pre></div> <div class="markdown-heading" dir="auto"><h2 tabindex="-1" class="heading-element" dir="auto">Download Options:</h2><a id="user-content-download-options" class="anchor" aria-label="Permalink: Download Options:" href="#download-options"><svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path></svg></a></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="-N, --concurrent-fragments N Number of fragments of a dash/hlsnative video that should be downloaded concurrently (default is 1) -r, --limit-rate RATE Maximum download rate in bytes per second, e.g. 50K or 4.2M --throttled-rate RATE Minimum download rate in bytes per second below which throttling is assumed and the video data is re-extracted, e.g. 100K -R, --retries RETRIES Number of retries (default is 10), or "infinite" --file-access-retries RETRIES Number of times to retry on file access error (default is 3), or "infinite" --fragment-retries RETRIES Number of retries for a fragment (default is 10), or "infinite" (DASH, hlsnative and ISM) --retry-sleep [TYPE:]EXPR Time to sleep between retries in seconds (optionally) prefixed by the type of retry (http (default), fragment, file_access, extractor) to apply the sleep to. EXPR can be a number, linear=START[:END[:STEP=1]] or exp=START[:END[:BASE=2]]. This option can be used multiple times to set the sleep for the different retry types, e.g. --retry-sleep linear=1::2 --retry-sleep fragment:exp=1:20 --skip-unavailable-fragments Skip unavailable fragments for DASH, hlsnative and ISM downloads (default) (Alias: --no-abort-on-unavailable-fragments) --abort-on-unavailable-fragments Abort download if a fragment is unavailable (Alias: --no-skip-unavailable-fragments) --keep-fragments Keep downloaded fragments on disk after downloading is finished --no-keep-fragments Delete downloaded fragments after downloading is finished (default) --buffer-size SIZE Size of download buffer, e.g. 1024 or 16K (default is 1024) --resize-buffer The buffer size is automatically resized from an initial value of --buffer-size (default) --no-resize-buffer Do not automatically adjust the buffer size --http-chunk-size SIZE Size of a chunk for chunk-based HTTP downloading, e.g. 10485760 or 10M (default is disabled). May be useful for bypassing bandwidth throttling imposed by a webserver (experimental) --playlist-random Download playlist videos in random order --lazy-playlist Process entries in the playlist as they are received. This disables n_entries, --playlist-random and --playlist-reverse --no-lazy-playlist Process videos in the playlist only after the entire playlist is parsed (default) --xattr-set-filesize Set file xattribute ytdl.filesize with expected file size --hls-use-mpegts Use the mpegts container for HLS videos; allowing some players to play the video while downloading, and reducing the chance of file corruption if download is interrupted. This is enabled by default for live streams --no-hls-use-mpegts Do not use the mpegts container for HLS videos. This is default when not downloading live streams --download-sections REGEX Download only chapters that match the regular expression. A "*" prefix denotes time-range instead of chapter. Negative timestamps are calculated from the end. "*from-url" can be used to download between the "start_time" and "end_time" extracted from the URL. Needs ffmpeg. This option can be used multiple times to download multiple sections, e.g. --download-sections "*10:15-inf" --download-sections "intro" --downloader [PROTO:]NAME Name or path of the external downloader to use (optionally) prefixed by the protocols (http, ftp, m3u8, dash, rstp, rtmp, mms) to use it for. Currently supports native, aria2c, avconv, axel, curl, ffmpeg, httpie, wget. You can use this option multiple times to set different downloaders for different protocols. E.g. --downloader aria2c --downloader "dash,m3u8:native" will use aria2c for http/ftp downloads, and the native downloader for dash/m3u8 downloads (Alias: --external-downloader) --downloader-args NAME:ARGS Give these arguments to the external downloader. Specify the downloader name and the arguments separated by a colon ":". For ffmpeg, arguments can be passed to different positions using the same syntax as --postprocessor-args. You can use this option multiple times to give different arguments to different downloaders (Alias: --external-downloader-args)"><pre class="notranslate"><code>-N, --concurrent-fragments N Number of fragments of a dash/hlsnative video that should be downloaded concurrently (default is 1) -r, --limit-rate RATE Maximum download rate in bytes per second, e.g. 50K or 4.2M --throttled-rate RATE Minimum download rate in bytes per second below which throttling is assumed and the video data is re-extracted, e.g. 100K -R, --retries RETRIES Number of retries (default is 10), or "infinite" --file-access-retries RETRIES Number of times to retry on file access error (default is 3), or "infinite" --fragment-retries RETRIES Number of retries for a fragment (default is 10), or "infinite" (DASH, hlsnative and ISM) --retry-sleep [TYPE:]EXPR Time to sleep between retries in seconds (optionally) prefixed by the type of retry (http (default), fragment, file_access, extractor) to apply the sleep to. EXPR can be a number, linear=START[:END[:STEP=1]] or exp=START[:END[:BASE=2]]. This option can be used multiple times to set the sleep for the different retry types, e.g. --retry-sleep linear=1::2 --retry-sleep fragment:exp=1:20 --skip-unavailable-fragments Skip unavailable fragments for DASH, hlsnative and ISM downloads (default) (Alias: --no-abort-on-unavailable-fragments) --abort-on-unavailable-fragments Abort download if a fragment is unavailable (Alias: --no-skip-unavailable-fragments) --keep-fragments Keep downloaded fragments on disk after downloading is finished --no-keep-fragments Delete downloaded fragments after downloading is finished (default) --buffer-size SIZE Size of download buffer, e.g. 1024 or 16K (default is 1024) --resize-buffer The buffer size is automatically resized from an initial value of --buffer-size (default) --no-resize-buffer Do not automatically adjust the buffer size --http-chunk-size SIZE Size of a chunk for chunk-based HTTP downloading, e.g. 10485760 or 10M (default is disabled). May be useful for bypassing bandwidth throttling imposed by a webserver (experimental) --playlist-random Download playlist videos in random order --lazy-playlist Process entries in the playlist as they are received. This disables n_entries, --playlist-random and --playlist-reverse --no-lazy-playlist Process videos in the playlist only after the entire playlist is parsed (default) --xattr-set-filesize Set file xattribute ytdl.filesize with expected file size --hls-use-mpegts Use the mpegts container for HLS videos; allowing some players to play the video while downloading, and reducing the chance of file corruption if download is interrupted. This is enabled by default for live streams --no-hls-use-mpegts Do not use the mpegts container for HLS videos. This is default when not downloading live streams --download-sections REGEX Download only chapters that match the regular expression. A "*" prefix denotes time-range instead of chapter. Negative timestamps are calculated from the end. "*from-url" can be used to download between the "start_time" and "end_time" extracted from the URL. Needs ffmpeg. This option can be used multiple times to download multiple sections, e.g. --download-sections "*10:15-inf" --download-sections "intro" --downloader [PROTO:]NAME Name or path of the external downloader to use (optionally) prefixed by the protocols (http, ftp, m3u8, dash, rstp, rtmp, mms) to use it for. Currently supports native, aria2c, avconv, axel, curl, ffmpeg, httpie, wget. You can use this option multiple times to set different downloaders for different protocols. E.g. --downloader aria2c --downloader "dash,m3u8:native" will use aria2c for http/ftp downloads, and the native downloader for dash/m3u8 downloads (Alias: --external-downloader) --downloader-args NAME:ARGS Give these arguments to the external downloader. Specify the downloader name and the arguments separated by a colon ":". For ffmpeg, arguments can be passed to different positions using the same syntax as --postprocessor-args. You can use this option multiple times to give different arguments to different downloaders (Alias: --external-downloader-args) </code></pre></div> <div class="markdown-heading" dir="auto"><h2 tabindex="-1" class="heading-element" dir="auto">Filesystem Options:</h2><a id="user-content-filesystem-options" class="anchor" aria-label="Permalink: Filesystem Options:" href="#filesystem-options"><svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path></svg></a></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="-a, --batch-file FILE File containing URLs to download ("-" for stdin), one URL per line. Lines starting with "#", ";" or "]" are considered as comments and ignored --no-batch-file Do not read URLs from batch file (default) -P, --paths [TYPES:]PATH The paths where the files should be downloaded. Specify the type of file and the path separated by a colon ":". All the same TYPES as --output are supported. Additionally, you can also provide "home" (default) and "temp" paths. All intermediary files are first downloaded to the temp path and then the final files are moved over to the home path after download is finished. This option is ignored if --output is an absolute path -o, --output [TYPES:]TEMPLATE Output filename template; see "OUTPUT TEMPLATE" for details --output-na-placeholder TEXT Placeholder for unavailable fields in --output (default: "NA") --restrict-filenames Restrict filenames to only ASCII characters, and avoid "&" and spaces in filenames --no-restrict-filenames Allow Unicode characters, "&" and spaces in filenames (default) --windows-filenames Force filenames to be Windows-compatible --no-windows-filenames Sanitize filenames only minimally --trim-filenames LENGTH Limit the filename length (excluding extension) to the specified number of characters -w, --no-overwrites Do not overwrite any files --force-overwrites Overwrite all video and metadata files. This option includes --no-continue --no-force-overwrites Do not overwrite the video, but overwrite related files (default) -c, --continue Resume partially downloaded files/fragments (default) --no-continue Do not resume partially downloaded fragments. If the file is not fragmented, restart download of the entire file --part Use .part files instead of writing directly into output file (default) --no-part Do not use .part files - write directly into output file --mtime Use the Last-modified header to set the file modification time (default) --no-mtime Do not use the Last-modified header to set the file modification time --write-description Write video description to a .description file --no-write-description Do not write video description (default) --write-info-json Write video metadata to a .info.json file (this may contain personal information) --no-write-info-json Do not write video metadata (default) --write-playlist-metafiles Write playlist metadata in addition to the video metadata when using --write-info-json, --write-description etc. (default) --no-write-playlist-metafiles Do not write playlist metadata when using --write-info-json, --write-description etc. --clean-info-json Remove some internal metadata such as filenames from the infojson (default) --no-clean-info-json Write all fields to the infojson --write-comments Retrieve video comments to be placed in the infojson. The comments are fetched even without this option if the extraction is known to be quick (Alias: --get-comments) --no-write-comments Do not retrieve video comments unless the extraction is known to be quick (Alias: --no-get-comments) --load-info-json FILE JSON file containing the video information (created with the "--write-info-json" option) --cookies FILE Netscape formatted file to read cookies from and dump cookie jar in --no-cookies Do not read/dump cookies from/to file (default) --cookies-from-browser BROWSER[+KEYRING][:PROFILE][::CONTAINER] The name of the browser to load cookies from. Currently supported browsers are: brave, chrome, chromium, edge, firefox, opera, safari, vivaldi, whale. Optionally, the KEYRING used for decrypting Chromium cookies on Linux, the name/path of the PROFILE to load cookies from, and the CONTAINER name (if Firefox) ("none" for no container) can be given with their respective separators. By default, all containers of the most recently accessed profile are used. Currently supported keyrings are: basictext, gnomekeyring, kwallet, kwallet5, kwallet6 --no-cookies-from-browser Do not load cookies from browser (default) --cache-dir DIR Location in the filesystem where yt-dlp can store some downloaded information (such as client ids and signatures) permanently. By default ${XDG_CACHE_HOME}/yt-dlp --no-cache-dir Disable filesystem caching --rm-cache-dir Delete all filesystem cache files"><pre class="notranslate"><code>-a, --batch-file FILE File containing URLs to download ("-" for stdin), one URL per line. Lines starting with "#", ";" or "]" are considered as comments and ignored --no-batch-file Do not read URLs from batch file (default) -P, --paths [TYPES:]PATH The paths where the files should be downloaded. Specify the type of file and the path separated by a colon ":". All the same TYPES as --output are supported. Additionally, you can also provide "home" (default) and "temp" paths. All intermediary files are first downloaded to the temp path and then the final files are moved over to the home path after download is finished. This option is ignored if --output is an absolute path -o, --output [TYPES:]TEMPLATE Output filename template; see "OUTPUT TEMPLATE" for details --output-na-placeholder TEXT Placeholder for unavailable fields in --output (default: "NA") --restrict-filenames Restrict filenames to only ASCII characters, and avoid "&" and spaces in filenames --no-restrict-filenames Allow Unicode characters, "&" and spaces in filenames (default) --windows-filenames Force filenames to be Windows-compatible --no-windows-filenames Sanitize filenames only minimally --trim-filenames LENGTH Limit the filename length (excluding extension) to the specified number of characters -w, --no-overwrites Do not overwrite any files --force-overwrites Overwrite all video and metadata files. This option includes --no-continue --no-force-overwrites Do not overwrite the video, but overwrite related files (default) -c, --continue Resume partially downloaded files/fragments (default) --no-continue Do not resume partially downloaded fragments. If the file is not fragmented, restart download of the entire file --part Use .part files instead of writing directly into output file (default) --no-part Do not use .part files - write directly into output file --mtime Use the Last-modified header to set the file modification time (default) --no-mtime Do not use the Last-modified header to set the file modification time --write-description Write video description to a .description file --no-write-description Do not write video description (default) --write-info-json Write video metadata to a .info.json file (this may contain personal information) --no-write-info-json Do not write video metadata (default) --write-playlist-metafiles Write playlist metadata in addition to the video metadata when using --write-info-json, --write-description etc. (default) --no-write-playlist-metafiles Do not write playlist metadata when using --write-info-json, --write-description etc. --clean-info-json Remove some internal metadata such as filenames from the infojson (default) --no-clean-info-json Write all fields to the infojson --write-comments Retrieve video comments to be placed in the infojson. The comments are fetched even without this option if the extraction is known to be quick (Alias: --get-comments) --no-write-comments Do not retrieve video comments unless the extraction is known to be quick (Alias: --no-get-comments) --load-info-json FILE JSON file containing the video information (created with the "--write-info-json" option) --cookies FILE Netscape formatted file to read cookies from and dump cookie jar in --no-cookies Do not read/dump cookies from/to file (default) --cookies-from-browser BROWSER[+KEYRING][:PROFILE][::CONTAINER] The name of the browser to load cookies from. Currently supported browsers are: brave, chrome, chromium, edge, firefox, opera, safari, vivaldi, whale. Optionally, the KEYRING used for decrypting Chromium cookies on Linux, the name/path of the PROFILE to load cookies from, and the CONTAINER name (if Firefox) ("none" for no container) can be given with their respective separators. By default, all containers of the most recently accessed profile are used. Currently supported keyrings are: basictext, gnomekeyring, kwallet, kwallet5, kwallet6 --no-cookies-from-browser Do not load cookies from browser (default) --cache-dir DIR Location in the filesystem where yt-dlp can store some downloaded information (such as client ids and signatures) permanently. By default ${XDG_CACHE_HOME}/yt-dlp --no-cache-dir Disable filesystem caching --rm-cache-dir Delete all filesystem cache files </code></pre></div> <div class="markdown-heading" dir="auto"><h2 tabindex="-1" class="heading-element" dir="auto">Thumbnail Options:</h2><a id="user-content-thumbnail-options" class="anchor" aria-label="Permalink: Thumbnail Options:" href="#thumbnail-options"><svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path></svg></a></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="--write-thumbnail Write thumbnail image to disk --no-write-thumbnail Do not write thumbnail image to disk (default) --write-all-thumbnails Write all thumbnail image formats to disk --list-thumbnails List available thumbnails of each video. Simulate unless --no-simulate is used"><pre class="notranslate"><code>--write-thumbnail Write thumbnail image to disk --no-write-thumbnail Do not write thumbnail image to disk (default) --write-all-thumbnails Write all thumbnail image formats to disk --list-thumbnails List available thumbnails of each video. Simulate unless --no-simulate is used </code></pre></div> <div class="markdown-heading" dir="auto"><h2 tabindex="-1" class="heading-element" dir="auto">Internet Shortcut Options:</h2><a id="user-content-internet-shortcut-options" class="anchor" aria-label="Permalink: Internet Shortcut Options:" href="#internet-shortcut-options"><svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path></svg></a></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="--write-link Write an internet shortcut file, depending on the current platform (.url, .webloc or .desktop). The URL may be cached by the OS --write-url-link Write a .url Windows internet shortcut. The OS caches the URL based on the file path --write-webloc-link Write a .webloc macOS internet shortcut --write-desktop-link Write a .desktop Linux internet shortcut"><pre class="notranslate"><code>--write-link Write an internet shortcut file, depending on the current platform (.url, .webloc or .desktop). The URL may be cached by the OS --write-url-link Write a .url Windows internet shortcut. The OS caches the URL based on the file path --write-webloc-link Write a .webloc macOS internet shortcut --write-desktop-link Write a .desktop Linux internet shortcut </code></pre></div> <div class="markdown-heading" dir="auto"><h2 tabindex="-1" class="heading-element" dir="auto">Verbosity and Simulation Options:</h2><a id="user-content-verbosity-and-simulation-options" class="anchor" aria-label="Permalink: Verbosity and Simulation Options:" href="#verbosity-and-simulation-options"><svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path></svg></a></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="-q, --quiet Activate quiet mode. If used with --verbose, print the log to stderr --no-quiet Deactivate quiet mode. (Default) --no-warnings Ignore warnings -s, --simulate Do not download the video and do not write anything to disk --no-simulate Download the video even if printing/listing options are used --ignore-no-formats-error Ignore "No video formats" error. Useful for extracting metadata even if the videos are not actually available for download (experimental) --no-ignore-no-formats-error Throw error when no downloadable video formats are found (default) --skip-download Do not download the video but write all related files (Alias: --no-download) -O, --print [WHEN:]TEMPLATE Field name or output template to print to screen, optionally prefixed with when to print it, separated by a ":". Supported values of "WHEN" are the same as that of --use-postprocessor (default: video). Implies --quiet. Implies --simulate unless --no-simulate or later stages of WHEN are used. This option can be used multiple times --print-to-file [WHEN:]TEMPLATE FILE Append given template to the file. The values of WHEN and TEMPLATE are the same as that of --print. FILE uses the same syntax as the output template. This option can be used multiple times -j, --dump-json Quiet, but print JSON information for each video. Simulate unless --no-simulate is used. See "OUTPUT TEMPLATE" for a description of available keys -J, --dump-single-json Quiet, but print JSON information for each URL or infojson passed. Simulate unless --no-simulate is used. If the URL refers to a playlist, the whole playlist information is dumped in a single line --force-write-archive Force download archive entries to be written as far as no errors occur, even if -s or another simulation option is used (Alias: --force-download-archive) --newline Output progress bar as new lines --no-progress Do not print progress bar --progress Show progress bar, even if in quiet mode --console-title Display progress in console titlebar --progress-template [TYPES:]TEMPLATE Template for progress outputs, optionally prefixed with one of "download:" (default), "download-title:" (the console title), "postprocess:", or "postprocess-title:". The video's fields are accessible under the "info" key and the progress attributes are accessible under "progress" key. E.g. --console-title --progress-template "download-title:%(info.id)s-%(progress.eta)s" --progress-delta SECONDS Time between progress output (default: 0) -v, --verbose Print various debugging information --dump-pages Print downloaded pages encoded using base64 to debug problems (very verbose) --write-pages Write downloaded intermediary pages to files in the current directory to debug problems --print-traffic Display sent and read HTTP traffic"><pre class="notranslate"><code>-q, --quiet Activate quiet mode. If used with --verbose, print the log to stderr --no-quiet Deactivate quiet mode. (Default) --no-warnings Ignore warnings -s, --simulate Do not download the video and do not write anything to disk --no-simulate Download the video even if printing/listing options are used --ignore-no-formats-error Ignore "No video formats" error. Useful for extracting metadata even if the videos are not actually available for download (experimental) --no-ignore-no-formats-error Throw error when no downloadable video formats are found (default) --skip-download Do not download the video but write all related files (Alias: --no-download) -O, --print [WHEN:]TEMPLATE Field name or output template to print to screen, optionally prefixed with when to print it, separated by a ":". Supported values of "WHEN" are the same as that of --use-postprocessor (default: video). Implies --quiet. Implies --simulate unless --no-simulate or later stages of WHEN are used. This option can be used multiple times --print-to-file [WHEN:]TEMPLATE FILE Append given template to the file. The values of WHEN and TEMPLATE are the same as that of --print. FILE uses the same syntax as the output template. This option can be used multiple times -j, --dump-json Quiet, but print JSON information for each video. Simulate unless --no-simulate is used. See "OUTPUT TEMPLATE" for a description of available keys -J, --dump-single-json Quiet, but print JSON information for each URL or infojson passed. Simulate unless --no-simulate is used. If the URL refers to a playlist, the whole playlist information is dumped in a single line --force-write-archive Force download archive entries to be written as far as no errors occur, even if -s or another simulation option is used (Alias: --force-download-archive) --newline Output progress bar as new lines --no-progress Do not print progress bar --progress Show progress bar, even if in quiet mode --console-title Display progress in console titlebar --progress-template [TYPES:]TEMPLATE Template for progress outputs, optionally prefixed with one of "download:" (default), "download-title:" (the console title), "postprocess:", or "postprocess-title:". The video's fields are accessible under the "info" key and the progress attributes are accessible under "progress" key. E.g. --console-title --progress-template "download-title:%(info.id)s-%(progress.eta)s" --progress-delta SECONDS Time between progress output (default: 0) -v, --verbose Print various debugging information --dump-pages Print downloaded pages encoded using base64 to debug problems (very verbose) --write-pages Write downloaded intermediary pages to files in the current directory to debug problems --print-traffic Display sent and read HTTP traffic </code></pre></div> <div class="markdown-heading" dir="auto"><h2 tabindex="-1" class="heading-element" dir="auto">Workarounds:</h2><a id="user-content-workarounds" class="anchor" aria-label="Permalink: Workarounds:" href="#workarounds"><svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path></svg></a></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="--encoding ENCODING Force the specified encoding (experimental) --legacy-server-connect Explicitly allow HTTPS connection to servers that do not support RFC 5746 secure renegotiation --no-check-certificates Suppress HTTPS certificate validation --prefer-insecure Use an unencrypted connection to retrieve information about the video (Currently supported only for YouTube) --add-headers FIELD:VALUE Specify a custom HTTP header and its value, separated by a colon ":". You can use this option multiple times --bidi-workaround Work around terminals that lack bidirectional text support. Requires bidiv or fribidi executable in PATH --sleep-requests SECONDS Number of seconds to sleep between requests during data extraction --sleep-interval SECONDS Number of seconds to sleep before each download. This is the minimum time to sleep when used along with --max-sleep-interval (Alias: --min-sleep-interval) --max-sleep-interval SECONDS Maximum number of seconds to sleep. Can only be used along with --min-sleep-interval --sleep-subtitles SECONDS Number of seconds to sleep before each subtitle download"><pre class="notranslate"><code>--encoding ENCODING Force the specified encoding (experimental) --legacy-server-connect Explicitly allow HTTPS connection to servers that do not support RFC 5746 secure renegotiation --no-check-certificates Suppress HTTPS certificate validation --prefer-insecure Use an unencrypted connection to retrieve information about the video (Currently supported only for YouTube) --add-headers FIELD:VALUE Specify a custom HTTP header and its value, separated by a colon ":". You can use this option multiple times --bidi-workaround Work around terminals that lack bidirectional text support. Requires bidiv or fribidi executable in PATH --sleep-requests SECONDS Number of seconds to sleep between requests during data extraction --sleep-interval SECONDS Number of seconds to sleep before each download. This is the minimum time to sleep when used along with --max-sleep-interval (Alias: --min-sleep-interval) --max-sleep-interval SECONDS Maximum number of seconds to sleep. Can only be used along with --min-sleep-interval --sleep-subtitles SECONDS Number of seconds to sleep before each subtitle download </code></pre></div> <div class="markdown-heading" dir="auto"><h2 tabindex="-1" class="heading-element" dir="auto">Video Format Options:</h2><a id="user-content-video-format-options" class="anchor" aria-label="Permalink: Video Format Options:" href="#video-format-options"><svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path></svg></a></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="-f, --format FORMAT Video format code, see "FORMAT SELECTION" for more details -S, --format-sort SORTORDER Sort the formats by the fields given, see "Sorting Formats" for more details --format-sort-force Force user specified sort order to have precedence over all fields, see "Sorting Formats" for more details (Alias: --S-force) --no-format-sort-force Some fields have precedence over the user specified sort order (default) --video-multistreams Allow multiple video streams to be merged into a single file --no-video-multistreams Only one video stream is downloaded for each output file (default) --audio-multistreams Allow multiple audio streams to be merged into a single file --no-audio-multistreams Only one audio stream is downloaded for each output file (default) --prefer-free-formats Prefer video formats with free containers over non-free ones of the same quality. Use with "-S ext" to strictly prefer free containers irrespective of quality --no-prefer-free-formats Don't give any special preference to free containers (default) --check-formats Make sure formats are selected only from those that are actually downloadable --check-all-formats Check all formats for whether they are actually downloadable --no-check-formats Do not check that the formats are actually downloadable -F, --list-formats List available formats of each video. Simulate unless --no-simulate is used --merge-output-format FORMAT Containers that may be used when merging formats, separated by "/", e.g. "mp4/mkv". Ignored if no merge is required. (currently supported: avi, flv, mkv, mov, mp4, webm)"><pre class="notranslate"><code>-f, --format FORMAT Video format code, see "FORMAT SELECTION" for more details -S, --format-sort SORTORDER Sort the formats by the fields given, see "Sorting Formats" for more details --format-sort-force Force user specified sort order to have precedence over all fields, see "Sorting Formats" for more details (Alias: --S-force) --no-format-sort-force Some fields have precedence over the user specified sort order (default) --video-multistreams Allow multiple video streams to be merged into a single file --no-video-multistreams Only one video stream is downloaded for each output file (default) --audio-multistreams Allow multiple audio streams to be merged into a single file --no-audio-multistreams Only one audio stream is downloaded for each output file (default) --prefer-free-formats Prefer video formats with free containers over non-free ones of the same quality. Use with "-S ext" to strictly prefer free containers irrespective of quality --no-prefer-free-formats Don't give any special preference to free containers (default) --check-formats Make sure formats are selected only from those that are actually downloadable --check-all-formats Check all formats for whether they are actually downloadable --no-check-formats Do not check that the formats are actually downloadable -F, --list-formats List available formats of each video. Simulate unless --no-simulate is used --merge-output-format FORMAT Containers that may be used when merging formats, separated by "/", e.g. "mp4/mkv". Ignored if no merge is required. (currently supported: avi, flv, mkv, mov, mp4, webm) </code></pre></div> <div class="markdown-heading" dir="auto"><h2 tabindex="-1" class="heading-element" dir="auto">Subtitle Options:</h2><a id="user-content-subtitle-options" class="anchor" aria-label="Permalink: Subtitle Options:" href="#subtitle-options"><svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path></svg></a></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="--write-subs Write subtitle file --no-write-subs Do not write subtitle file (default) --write-auto-subs Write automatically generated subtitle file (Alias: --write-automatic-subs) --no-write-auto-subs Do not write auto-generated subtitles (default) (Alias: --no-write-automatic-subs) --list-subs List available subtitles of each video. Simulate unless --no-simulate is used --sub-format FORMAT Subtitle format; accepts formats preference separated by "/", e.g. "srt" or "ass/srt/best" --sub-langs LANGS Languages of the subtitles to download (can be regex) or "all" separated by commas, e.g. --sub-langs "en.*,ja" (where "en.*" is a regex pattern that matches "en" followed by 0 or more of any character). You can prefix the language code with a "-" to exclude it from the requested languages, e.g. --sub- langs all,-live_chat. Use --list-subs for a list of available language tags"><pre class="notranslate"><code>--write-subs Write subtitle file --no-write-subs Do not write subtitle file (default) --write-auto-subs Write automatically generated subtitle file (Alias: --write-automatic-subs) --no-write-auto-subs Do not write auto-generated subtitles (default) (Alias: --no-write-automatic-subs) --list-subs List available subtitles of each video. Simulate unless --no-simulate is used --sub-format FORMAT Subtitle format; accepts formats preference separated by "/", e.g. "srt" or "ass/srt/best" --sub-langs LANGS Languages of the subtitles to download (can be regex) or "all" separated by commas, e.g. --sub-langs "en.*,ja" (where "en.*" is a regex pattern that matches "en" followed by 0 or more of any character). You can prefix the language code with a "-" to exclude it from the requested languages, e.g. --sub- langs all,-live_chat. Use --list-subs for a list of available language tags </code></pre></div> <div class="markdown-heading" dir="auto"><h2 tabindex="-1" class="heading-element" dir="auto">Authentication Options:</h2><a id="user-content-authentication-options" class="anchor" aria-label="Permalink: Authentication Options:" href="#authentication-options"><svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path></svg></a></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="-u, --username USERNAME Login with this account ID -p, --password PASSWORD Account password. If this option is left out, yt-dlp will ask interactively -2, --twofactor TWOFACTOR Two-factor authentication code -n, --netrc Use .netrc authentication data --netrc-location PATH Location of .netrc authentication data; either the path or its containing directory. Defaults to ~/.netrc --netrc-cmd NETRC_CMD Command to execute to get the credentials for an extractor. --video-password PASSWORD Video-specific password --ap-mso MSO Adobe Pass multiple-system operator (TV provider) identifier, use --ap-list-mso for a list of available MSOs --ap-username USERNAME Multiple-system operator account login --ap-password PASSWORD Multiple-system operator account password. If this option is left out, yt-dlp will ask interactively --ap-list-mso List all supported multiple-system operators --client-certificate CERTFILE Path to client certificate file in PEM format. May include the private key --client-certificate-key KEYFILE Path to private key file for client certificate --client-certificate-password PASSWORD Password for client certificate private key, if encrypted. If not provided, and the key is encrypted, yt-dlp will ask interactively"><pre class="notranslate"><code>-u, --username USERNAME Login with this account ID -p, --password PASSWORD Account password. If this option is left out, yt-dlp will ask interactively -2, --twofactor TWOFACTOR Two-factor authentication code -n, --netrc Use .netrc authentication data --netrc-location PATH Location of .netrc authentication data; either the path or its containing directory. Defaults to ~/.netrc --netrc-cmd NETRC_CMD Command to execute to get the credentials for an extractor. --video-password PASSWORD Video-specific password --ap-mso MSO Adobe Pass multiple-system operator (TV provider) identifier, use --ap-list-mso for a list of available MSOs --ap-username USERNAME Multiple-system operator account login --ap-password PASSWORD Multiple-system operator account password. If this option is left out, yt-dlp will ask interactively --ap-list-mso List all supported multiple-system operators --client-certificate CERTFILE Path to client certificate file in PEM format. May include the private key --client-certificate-key KEYFILE Path to private key file for client certificate --client-certificate-password PASSWORD Password for client certificate private key, if encrypted. If not provided, and the key is encrypted, yt-dlp will ask interactively </code></pre></div> <div class="markdown-heading" dir="auto"><h2 tabindex="-1" class="heading-element" dir="auto">Post-Processing Options:</h2><a id="user-content-post-processing-options" class="anchor" aria-label="Permalink: Post-Processing Options:" href="#post-processing-options"><svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path></svg></a></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="-x, --extract-audio Convert video files to audio-only files (requires ffmpeg and ffprobe) --audio-format FORMAT Format to convert the audio to when -x is used. (currently supported: best (default), aac, alac, flac, m4a, mp3, opus, vorbis, wav). You can specify multiple rules using similar syntax as --remux-video --audio-quality QUALITY Specify ffmpeg audio quality to use when converting the audio with -x. Insert a value between 0 (best) and 10 (worst) for VBR or a specific bitrate like 128K (default 5) --remux-video FORMAT Remux the video into another container if necessary (currently supported: avi, flv, gif, mkv, mov, mp4, webm, aac, aiff, alac, flac, m4a, mka, mp3, ogg, opus, vorbis, wav). If the target container does not support the video/audio codec, remuxing will fail. You can specify multiple rules; e.g. "aac>m4a/mov>mp4/mkv" will remux aac to m4a, mov to mp4 and anything else to mkv --recode-video FORMAT Re-encode the video into another format if necessary. The syntax and supported formats are the same as --remux-video --postprocessor-args NAME:ARGS Give these arguments to the postprocessors. Specify the postprocessor/executable name and the arguments separated by a colon ":" to give the argument to the specified postprocessor/executable. Supported PP are: Merger, ModifyChapters, SplitChapters, ExtractAudio, VideoRemuxer, VideoConvertor, Metadata, EmbedSubtitle, EmbedThumbnail, SubtitlesConvertor, ThumbnailsConvertor, FixupStretched, FixupM4a, FixupM3u8, FixupTimestamp and FixupDuration. The supported executables are: AtomicParsley, FFmpeg and FFprobe. You can also specify "PP+EXE:ARGS" to give the arguments to the specified executable only when being used by the specified postprocessor. Additionally, for ffmpeg/ffprobe, "_i"/"_o" can be appended to the prefix optionally followed by a number to pass the argument before the specified input/output file, e.g. --ppa "Merger+ffmpeg_i1:-v quiet". You can use this option multiple times to give different arguments to different postprocessors. (Alias: --ppa) -k, --keep-video Keep the intermediate video file on disk after post-processing --no-keep-video Delete the intermediate video file after post-processing (default) --post-overwrites Overwrite post-processed files (default) --no-post-overwrites Do not overwrite post-processed files --embed-subs Embed subtitles in the video (only for mp4, webm and mkv videos) --no-embed-subs Do not embed subtitles (default) --embed-thumbnail Embed thumbnail in the video as cover art --no-embed-thumbnail Do not embed thumbnail (default) --embed-metadata Embed metadata to the video file. Also embeds chapters/infojson if present unless --no-embed-chapters/--no-embed-info-json are used (Alias: --add-metadata) --no-embed-metadata Do not add metadata to file (default) (Alias: --no-add-metadata) --embed-chapters Add chapter markers to the video file (Alias: --add-chapters) --no-embed-chapters Do not add chapter markers (default) (Alias: --no-add-chapters) --embed-info-json Embed the infojson as an attachment to mkv/mka video files --no-embed-info-json Do not embed the infojson as an attachment to the video file --parse-metadata [WHEN:]FROM:TO Parse additional metadata like title/artist from other fields; see "MODIFYING METADATA" for details. Supported values of "WHEN" are the same as that of --use-postprocessor (default: pre_process) --replace-in-metadata [WHEN:]FIELDS REGEX REPLACE Replace text in a metadata field using the given regex. This option can be used multiple times. Supported values of "WHEN" are the same as that of --use-postprocessor (default: pre_process) --xattrs Write metadata to the video file's xattrs (using Dublin Core and XDG standards) --concat-playlist POLICY Concatenate videos in a playlist. One of "never", "always", or "multi_video" (default; only when the videos form a single show). All the video files must have the same codecs and number of streams to be concatenable. The "pl_video:" prefix can be used with "--paths" and "--output" to set the output filename for the concatenated files. See "OUTPUT TEMPLATE" for details --fixup POLICY Automatically correct known faults of the file. One of never (do nothing), warn (only emit a warning), detect_or_warn (the default; fix the file if we can, warn otherwise), force (try fixing even if the file already exists) --ffmpeg-location PATH Location of the ffmpeg binary; either the path to the binary or its containing directory --exec [WHEN:]CMD Execute a command, optionally prefixed with when to execute it, separated by a ":". Supported values of "WHEN" are the same as that of --use-postprocessor (default: after_move). The same syntax as the output template can be used to pass any field as arguments to the command. If no fields are passed, %(filepath,_filename|)q is appended to the end of the command. This option can be used multiple times --no-exec Remove any previously defined --exec --convert-subs FORMAT Convert the subtitles to another format (currently supported: ass, lrc, srt, vtt). Use "--convert-subs none" to disable conversion (default) (Alias: --convert- subtitles) --convert-thumbnails FORMAT Convert the thumbnails to another format (currently supported: jpg, png, webp). You can specify multiple rules using similar syntax as "--remux-video". Use "--convert- thumbnails none" to disable conversion (default) --split-chapters Split video into multiple files based on internal chapters. The "chapter:" prefix can be used with "--paths" and "--output" to set the output filename for the split files. See "OUTPUT TEMPLATE" for details --no-split-chapters Do not split video based on chapters (default) --remove-chapters REGEX Remove chapters whose title matches the given regular expression. The syntax is the same as --download-sections. This option can be used multiple times --no-remove-chapters Do not remove any chapters from the file (default) --force-keyframes-at-cuts Force keyframes at cuts when downloading/splitting/removing sections. This is slow due to needing a re-encode, but the resulting video may have fewer artifacts around the cuts --no-force-keyframes-at-cuts Do not force keyframes around the chapters when cutting/splitting (default) --use-postprocessor NAME[:ARGS] The (case-sensitive) name of plugin postprocessors to be enabled, and (optionally) arguments to be passed to it, separated by a colon ":". ARGS are a semicolon ";" delimited list of NAME=VALUE. The "when" argument determines when the postprocessor is invoked. It can be one of "pre_process" (after video extraction), "after_filter" (after video passes filter), "video" (after --format; before --print/--output), "before_dl" (before each video download), "post_process" (after each video download; default), "after_move" (after moving the video file to its final location), "after_video" (after downloading and processing all formats of a video), or "playlist" (at end of playlist). This option can be used multiple times to add different postprocessors"><pre class="notranslate"><code>-x, --extract-audio Convert video files to audio-only files (requires ffmpeg and ffprobe) --audio-format FORMAT Format to convert the audio to when -x is used. (currently supported: best (default), aac, alac, flac, m4a, mp3, opus, vorbis, wav). You can specify multiple rules using similar syntax as --remux-video --audio-quality QUALITY Specify ffmpeg audio quality to use when converting the audio with -x. Insert a value between 0 (best) and 10 (worst) for VBR or a specific bitrate like 128K (default 5) --remux-video FORMAT Remux the video into another container if necessary (currently supported: avi, flv, gif, mkv, mov, mp4, webm, aac, aiff, alac, flac, m4a, mka, mp3, ogg, opus, vorbis, wav). If the target container does not support the video/audio codec, remuxing will fail. You can specify multiple rules; e.g. "aac>m4a/mov>mp4/mkv" will remux aac to m4a, mov to mp4 and anything else to mkv --recode-video FORMAT Re-encode the video into another format if necessary. The syntax and supported formats are the same as --remux-video --postprocessor-args NAME:ARGS Give these arguments to the postprocessors. Specify the postprocessor/executable name and the arguments separated by a colon ":" to give the argument to the specified postprocessor/executable. Supported PP are: Merger, ModifyChapters, SplitChapters, ExtractAudio, VideoRemuxer, VideoConvertor, Metadata, EmbedSubtitle, EmbedThumbnail, SubtitlesConvertor, ThumbnailsConvertor, FixupStretched, FixupM4a, FixupM3u8, FixupTimestamp and FixupDuration. The supported executables are: AtomicParsley, FFmpeg and FFprobe. You can also specify "PP+EXE:ARGS" to give the arguments to the specified executable only when being used by the specified postprocessor. Additionally, for ffmpeg/ffprobe, "_i"/"_o" can be appended to the prefix optionally followed by a number to pass the argument before the specified input/output file, e.g. --ppa "Merger+ffmpeg_i1:-v quiet". You can use this option multiple times to give different arguments to different postprocessors. (Alias: --ppa) -k, --keep-video Keep the intermediate video file on disk after post-processing --no-keep-video Delete the intermediate video file after post-processing (default) --post-overwrites Overwrite post-processed files (default) --no-post-overwrites Do not overwrite post-processed files --embed-subs Embed subtitles in the video (only for mp4, webm and mkv videos) --no-embed-subs Do not embed subtitles (default) --embed-thumbnail Embed thumbnail in the video as cover art --no-embed-thumbnail Do not embed thumbnail (default) --embed-metadata Embed metadata to the video file. Also embeds chapters/infojson if present unless --no-embed-chapters/--no-embed-info-json are used (Alias: --add-metadata) --no-embed-metadata Do not add metadata to file (default) (Alias: --no-add-metadata) --embed-chapters Add chapter markers to the video file (Alias: --add-chapters) --no-embed-chapters Do not add chapter markers (default) (Alias: --no-add-chapters) --embed-info-json Embed the infojson as an attachment to mkv/mka video files --no-embed-info-json Do not embed the infojson as an attachment to the video file --parse-metadata [WHEN:]FROM:TO Parse additional metadata like title/artist from other fields; see "MODIFYING METADATA" for details. Supported values of "WHEN" are the same as that of --use-postprocessor (default: pre_process) --replace-in-metadata [WHEN:]FIELDS REGEX REPLACE Replace text in a metadata field using the given regex. This option can be used multiple times. Supported values of "WHEN" are the same as that of --use-postprocessor (default: pre_process) --xattrs Write metadata to the video file's xattrs (using Dublin Core and XDG standards) --concat-playlist POLICY Concatenate videos in a playlist. One of "never", "always", or "multi_video" (default; only when the videos form a single show). All the video files must have the same codecs and number of streams to be concatenable. The "pl_video:" prefix can be used with "--paths" and "--output" to set the output filename for the concatenated files. See "OUTPUT TEMPLATE" for details --fixup POLICY Automatically correct known faults of the file. One of never (do nothing), warn (only emit a warning), detect_or_warn (the default; fix the file if we can, warn otherwise), force (try fixing even if the file already exists) --ffmpeg-location PATH Location of the ffmpeg binary; either the path to the binary or its containing directory --exec [WHEN:]CMD Execute a command, optionally prefixed with when to execute it, separated by a ":". Supported values of "WHEN" are the same as that of --use-postprocessor (default: after_move). The same syntax as the output template can be used to pass any field as arguments to the command. If no fields are passed, %(filepath,_filename|)q is appended to the end of the command. This option can be used multiple times --no-exec Remove any previously defined --exec --convert-subs FORMAT Convert the subtitles to another format (currently supported: ass, lrc, srt, vtt). Use "--convert-subs none" to disable conversion (default) (Alias: --convert- subtitles) --convert-thumbnails FORMAT Convert the thumbnails to another format (currently supported: jpg, png, webp). You can specify multiple rules using similar syntax as "--remux-video". Use "--convert- thumbnails none" to disable conversion (default) --split-chapters Split video into multiple files based on internal chapters. The "chapter:" prefix can be used with "--paths" and "--output" to set the output filename for the split files. See "OUTPUT TEMPLATE" for details --no-split-chapters Do not split video based on chapters (default) --remove-chapters REGEX Remove chapters whose title matches the given regular expression. The syntax is the same as --download-sections. This option can be used multiple times --no-remove-chapters Do not remove any chapters from the file (default) --force-keyframes-at-cuts Force keyframes at cuts when downloading/splitting/removing sections. This is slow due to needing a re-encode, but the resulting video may have fewer artifacts around the cuts --no-force-keyframes-at-cuts Do not force keyframes around the chapters when cutting/splitting (default) --use-postprocessor NAME[:ARGS] The (case-sensitive) name of plugin postprocessors to be enabled, and (optionally) arguments to be passed to it, separated by a colon ":". ARGS are a semicolon ";" delimited list of NAME=VALUE. The "when" argument determines when the postprocessor is invoked. It can be one of "pre_process" (after video extraction), "after_filter" (after video passes filter), "video" (after --format; before --print/--output), "before_dl" (before each video download), "post_process" (after each video download; default), "after_move" (after moving the video file to its final location), "after_video" (after downloading and processing all formats of a video), or "playlist" (at end of playlist). This option can be used multiple times to add different postprocessors </code></pre></div> <div class="markdown-heading" dir="auto"><h2 tabindex="-1" class="heading-element" dir="auto">SponsorBlock Options:</h2><a id="user-content-sponsorblock-options" class="anchor" aria-label="Permalink: SponsorBlock Options:" href="#sponsorblock-options"><svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path></svg></a></div> <p dir="auto">Make chapter entries for, or remove various segments (sponsor, introductions, etc.) from downloaded YouTube videos using the <a href="https://sponsor.ajay.app" rel="nofollow">SponsorBlock API</a></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="--sponsorblock-mark CATS SponsorBlock categories to create chapters for, separated by commas. Available categories are sponsor, intro, outro, selfpromo, preview, filler, interaction, music_offtopic, poi_highlight, chapter, all and default (=all). You can prefix the category with a "-" to exclude it. See [1] for descriptions of the categories. E.g. --sponsorblock-mark all,-preview [1] https://wiki.sponsor.ajay.app/w/Segment_Categories --sponsorblock-remove CATS SponsorBlock categories to be removed from the video file, separated by commas. If a category is present in both mark and remove, remove takes precedence. The syntax and available categories are the same as for --sponsorblock-mark except that "default" refers to "all,-filler" and poi_highlight, chapter are not available --sponsorblock-chapter-title TEMPLATE An output template for the title of the SponsorBlock chapters created by --sponsorblock-mark. The only available fields are start_time, end_time, category, categories, name, category_names. Defaults to "[SponsorBlock]: %(category_names)l" --no-sponsorblock Disable both --sponsorblock-mark and --sponsorblock-remove --sponsorblock-api URL SponsorBlock API location, defaults to https://sponsor.ajay.app"><pre class="notranslate"><code>--sponsorblock-mark CATS SponsorBlock categories to create chapters for, separated by commas. Available categories are sponsor, intro, outro, selfpromo, preview, filler, interaction, music_offtopic, poi_highlight, chapter, all and default (=all). You can prefix the category with a "-" to exclude it. See [1] for descriptions of the categories. E.g. --sponsorblock-mark all,-preview [1] https://wiki.sponsor.ajay.app/w/Segment_Categories --sponsorblock-remove CATS SponsorBlock categories to be removed from the video file, separated by commas. If a category is present in both mark and remove, remove takes precedence. The syntax and available categories are the same as for --sponsorblock-mark except that "default" refers to "all,-filler" and poi_highlight, chapter are not available --sponsorblock-chapter-title TEMPLATE An output template for the title of the SponsorBlock chapters created by --sponsorblock-mark. The only available fields are start_time, end_time, category, categories, name, category_names. Defaults to "[SponsorBlock]: %(category_names)l" --no-sponsorblock Disable both --sponsorblock-mark and --sponsorblock-remove --sponsorblock-api URL SponsorBlock API location, defaults to https://sponsor.ajay.app </code></pre></div> <div class="markdown-heading" dir="auto"><h2 tabindex="-1" class="heading-element" dir="auto">Extractor Options:</h2><a id="user-content-extractor-options" class="anchor" aria-label="Permalink: Extractor Options:" href="#extractor-options"><svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path></svg></a></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="--extractor-retries RETRIES Number of retries for known extractor errors (default is 3), or "infinite" --allow-dynamic-mpd Process dynamic DASH manifests (default) (Alias: --no-ignore-dynamic-mpd) --ignore-dynamic-mpd Do not process dynamic DASH manifests (Alias: --no-allow-dynamic-mpd) --hls-split-discontinuity Split HLS playlists to different formats at discontinuities such as ad breaks --no-hls-split-discontinuity Do not split HLS playlists into different formats at discontinuities such as ad breaks (default) --extractor-args IE_KEY:ARGS Pass ARGS arguments to the IE_KEY extractor. See "EXTRACTOR ARGUMENTS" for details. You can use this option multiple times to give arguments for different extractors"><pre class="notranslate"><code>--extractor-retries RETRIES Number of retries for known extractor errors (default is 3), or "infinite" --allow-dynamic-mpd Process dynamic DASH manifests (default) (Alias: --no-ignore-dynamic-mpd) --ignore-dynamic-mpd Do not process dynamic DASH manifests (Alias: --no-allow-dynamic-mpd) --hls-split-discontinuity Split HLS playlists to different formats at discontinuities such as ad breaks --no-hls-split-discontinuity Do not split HLS playlists into different formats at discontinuities such as ad breaks (default) --extractor-args IE_KEY:ARGS Pass ARGS arguments to the IE_KEY extractor. See "EXTRACTOR ARGUMENTS" for details. You can use this option multiple times to give arguments for different extractors </code></pre></div> <div class="markdown-heading" dir="auto"><h1 tabindex="-1" class="heading-element" dir="auto">CONFIGURATION</h1><a id="user-content-configuration" class="anchor" aria-label="Permalink: CONFIGURATION" href="#configuration"><svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path></svg></a></div> <p dir="auto">You can configure yt-dlp by placing any supported command line option in a configuration file. The configuration is loaded from the following locations:</p> <ol dir="auto"> <li> <p dir="auto"><strong>Main Configuration</strong>:</p> <ul dir="auto"> <li>The file given to <code>--config-location</code></li> </ul> </li> <li> <p dir="auto"><strong>Portable Configuration</strong>: (Recommended for portable installations)</p> <ul dir="auto"> <li>If using a binary, <code>yt-dlp.conf</code> in the same directory as the binary</li> <li>If running from source-code, <code>yt-dlp.conf</code> in the parent directory of <code>yt_dlp</code></li> </ul> </li> <li> <p dir="auto"><strong>Home Configuration</strong>:</p> <ul dir="auto"> <li><code>yt-dlp.conf</code> in the home path given to <code>-P</code></li> <li>If <code>-P</code> is not given, the current directory is searched</li> </ul> </li> <li> <p dir="auto"><strong>User Configuration</strong>:</p> <ul dir="auto"> <li><code>${XDG_CONFIG_HOME}/yt-dlp.conf</code></li> <li><code>${XDG_CONFIG_HOME}/yt-dlp/config</code> (recommended on Linux/macOS)</li> <li><code>${XDG_CONFIG_HOME}/yt-dlp/config.txt</code></li> <li><code>${APPDATA}/yt-dlp.conf</code></li> <li><code>${APPDATA}/yt-dlp/config</code> (recommended on Windows)</li> <li><code>${APPDATA}/yt-dlp/config.txt</code></li> <li><code>~/yt-dlp.conf</code></li> <li><code>~/yt-dlp.conf.txt</code></li> <li><code>~/.yt-dlp/config</code></li> <li><code>~/.yt-dlp/config.txt</code></li> </ul> <p dir="auto">See also: <a href="#notes-about-environment-variables">Notes about environment variables</a></p> </li> <li> <p dir="auto"><strong>System Configuration</strong>:</p> <ul dir="auto"> <li><code>/etc/yt-dlp.conf</code></li> <li><code>/etc/yt-dlp/config</code></li> <li><code>/etc/yt-dlp/config.txt</code></li> </ul> </li> </ol> <p dir="auto">E.g. with the following configuration file, yt-dlp will always extract the audio, not copy the mtime, use a proxy and save all videos under <code>YouTube</code> directory in your home directory:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="# Lines starting with # are comments # Always extract audio -x # Do not copy the mtime --no-mtime # Use this proxy --proxy 127.0.0.1:3128 # Save all videos under YouTube directory in your home directory -o ~/YouTube/%(title)s.%(ext)s"><pre class="notranslate"><code># Lines starting with # are comments # Always extract audio -x # Do not copy the mtime --no-mtime # Use this proxy --proxy 127.0.0.1:3128 # Save all videos under YouTube directory in your home directory -o ~/YouTube/%(title)s.%(ext)s </code></pre></div> <p dir="auto"><strong>Note</strong>: Options in a configuration file are just the same options aka switches used in regular command line calls; thus there <strong>must be no whitespace</strong> after <code>-</code> or <code>--</code>, e.g. <code>-o</code> or <code>--proxy</code> but not <code>- o</code> or <code>-- proxy</code>. They must also be quoted when necessary, as if it were a UNIX shell.</p> <p dir="auto">You can use <code>--ignore-config</code> if you want to disable all configuration files for a particular yt-dlp run. If <code>--ignore-config</code> is found inside any configuration file, no further configuration will be loaded. For example, having the option in the portable configuration file prevents loading of home, user, and system configurations. Additionally, (for backward compatibility) if <code>--ignore-config</code> is found inside the system configuration file, the user configuration is not loaded.</p> <div class="markdown-heading" dir="auto"><h3 tabindex="-1" class="heading-element" dir="auto">Configuration file encoding</h3><a id="user-content-configuration-file-encoding" class="anchor" aria-label="Permalink: Configuration file encoding" href="#configuration-file-encoding"><svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path></svg></a></div> <p dir="auto">The configuration files are decoded according to the UTF BOM if present, and in the encoding from system locale otherwise.</p> <p dir="auto">If you want your file to be decoded differently, add <code># coding: ENCODING</code> to the beginning of the file (e.g. <code># coding: shift-jis</code>). There must be no characters before that, even spaces or BOM.</p> <div class="markdown-heading" dir="auto"><h3 tabindex="-1" class="heading-element" dir="auto">Authentication with netrc</h3><a id="user-content-authentication-with-netrc" class="anchor" aria-label="Permalink: Authentication with netrc" href="#authentication-with-netrc"><svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path></svg></a></div> <p dir="auto">You may also want to configure automatic credentials storage for extractors that support authentication (by providing login and password with <code>--username</code> and <code>--password</code>) in order not to pass credentials as command line arguments on every yt-dlp execution and prevent tracking plain text passwords in the shell command history. You can achieve this using a <a href="https://stackoverflow.com/tags/.netrc/info" rel="nofollow"><code>.netrc</code> file</a> on a per-extractor basis. For that, you will need to create a <code>.netrc</code> file in <code>--netrc-location</code> and restrict permissions to read/write by only you:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="touch ${HOME}/.netrc chmod a-rwx,u+rw ${HOME}/.netrc"><pre class="notranslate"><code>touch ${HOME}/.netrc chmod a-rwx,u+rw ${HOME}/.netrc </code></pre></div> <p dir="auto">After that, you can add credentials for an extractor in the following format, where <em>extractor</em> is the name of the extractor in lowercase:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="machine <extractor> login <username> password <password>"><pre class="notranslate"><code>machine <extractor> login <username> password <password> </code></pre></div> <p dir="auto">E.g.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="machine youtube login myaccount@gmail.com password my_youtube_password machine twitch login my_twitch_account_name password my_twitch_password"><pre class="notranslate"><code>machine youtube login myaccount@gmail.com password my_youtube_password machine twitch login my_twitch_account_name password my_twitch_password </code></pre></div> <p dir="auto">To activate authentication with the <code>.netrc</code> file you should pass <code>--netrc</code> to yt-dlp or place it in the <a href="#configuration">configuration file</a>.</p> <p dir="auto">The default location of the .netrc file is <code>~</code> (see below).</p> <p dir="auto">As an alternative to using the <code>.netrc</code> file, which has the disadvantage of keeping your passwords in a plain text file, you can configure a custom shell command to provide the credentials for an extractor. This is done by providing the <code>--netrc-cmd</code> parameter, it shall output the credentials in the netrc format and return <code>0</code> on success, other values will be treated as an error. <code>{}</code> in the command will be replaced by the name of the extractor to make it possible to select the credentials for the right extractor.</p> <p dir="auto">E.g. To use an encrypted <code>.netrc</code> file stored as <code>.authinfo.gpg</code></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="yt-dlp --netrc-cmd 'gpg --decrypt ~/.authinfo.gpg' 'https://www.youtube.com/watch?v=BaW_jenozKc'"><pre class="notranslate"><code>yt-dlp --netrc-cmd 'gpg --decrypt ~/.authinfo.gpg' 'https://www.youtube.com/watch?v=BaW_jenozKc' </code></pre></div> <div class="markdown-heading" dir="auto"><h3 tabindex="-1" class="heading-element" dir="auto">Notes about environment variables</h3><a id="user-content-notes-about-environment-variables" class="anchor" aria-label="Permalink: Notes about environment variables" href="#notes-about-environment-variables"><svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path></svg></a></div> <ul dir="auto"> <li>Environment variables are normally specified as <code>${VARIABLE}</code>/<code>$VARIABLE</code> on UNIX and <code>%VARIABLE%</code> on Windows; but is always shown as <code>${VARIABLE}</code> in this documentation</li> <li>yt-dlp also allows using UNIX-style variables on Windows for path-like options; e.g. <code>--output</code>, <code>--config-location</code></li> <li>If unset, <code>${XDG_CONFIG_HOME}</code> defaults to <code>~/.config</code> and <code>${XDG_CACHE_HOME}</code> to <code>~/.cache</code></li> <li>On Windows, <code>~</code> points to <code>${HOME}</code> if present; or, <code>${USERPROFILE}</code> or <code>${HOMEDRIVE}${HOMEPATH}</code> otherwise</li> <li>On Windows, <code>${USERPROFILE}</code> generally points to <code>C:\Users\<user name></code> and <code>${APPDATA}</code> to <code>${USERPROFILE}\AppData\Roaming</code></li> </ul> <div class="markdown-heading" dir="auto"><h1 tabindex="-1" class="heading-element" dir="auto">OUTPUT TEMPLATE</h1><a id="user-content-output-template" class="anchor" aria-label="Permalink: OUTPUT TEMPLATE" href="#output-template"><svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path></svg></a></div> <p dir="auto">The <code>-o</code> option is used to indicate a template for the output file names while <code>-P</code> option is used to specify the path each type of file should be saved to.</p> <p dir="auto"><strong>tl;dr:</strong> <a href="#output-template-examples">navigate me to examples</a>.</p> <p dir="auto">The simplest usage of <code>-o</code> is not to set any template arguments when downloading a single file, like in <code>yt-dlp -o funny_video.flv "https://some/video"</code> (hard-coding file extension like this is <em>not</em> recommended and could break some post-processing).</p> <p dir="auto">It may however also contain special sequences that will be replaced when downloading each video. The special sequences may be formatted according to <a href="https://docs.python.org/3/library/stdtypes.html#printf-style-string-formatting" rel="nofollow">Python string formatting operations</a>, e.g. <code>%(NAME)s</code> or <code>%(NAME)05d</code>. To clarify, that is a percent symbol followed by a name in parentheses, followed by formatting operations.</p> <p dir="auto">The field names themselves (the part inside the parenthesis) can also have some special formatting:</p> <ol dir="auto"> <li> <p dir="auto"><strong>Object traversal</strong>: The dictionaries and lists available in metadata can be traversed by using a dot <code>.</code> separator; e.g. <code>%(tags.0)s</code>, <code>%(subtitles.en.-1.ext)s</code>. You can do Python slicing with colon <code>:</code>; E.g. <code>%(id.3:7)s</code>, <code>%(id.6:2:-1)s</code>, <code>%(formats.:.format_id)s</code>. Curly braces <code>{}</code> can be used to build dictionaries with only specific keys; e.g. <code>%(formats.:.{format_id,height})#j</code>. An empty field name <code>%()s</code> refers to the entire infodict; e.g. <code>%(.{id,title})s</code>. Note that all the fields that become available using this method are not listed below. Use <code>-j</code> to see such fields</p> </li> <li> <p dir="auto"><strong>Arithmetic</strong>: Simple arithmetic can be done on numeric fields using <code>+</code>, <code>-</code> and <code>*</code>. E.g. <code>%(playlist_index+10)03d</code>, <code>%(n_entries+1-playlist_index)d</code></p> </li> <li> <p dir="auto"><strong>Date/time Formatting</strong>: Date/time fields can be formatted according to <a href="https://docs.python.org/3/library/datetime.html#strftime-and-strptime-format-codes" rel="nofollow">strftime formatting</a> by specifying it separated from the field name using a <code>></code>. E.g. <code>%(duration>%H-%M-%S)s</code>, <code>%(upload_date>%Y-%m-%d)s</code>, <code>%(epoch-3600>%H-%M-%S)s</code></p> </li> <li> <p dir="auto"><strong>Alternatives</strong>: Alternate fields can be specified separated with a <code>,</code>. E.g. <code>%(release_date>%Y,upload_date>%Y|Unknown)s</code></p> </li> <li> <p dir="auto"><strong>Replacement</strong>: A replacement value can be specified using a <code>&</code> separator according to the <a href="https://docs.python.org/3/library/string.html#format-specification-mini-language" rel="nofollow"><code>str.format</code> mini-language</a>. If the field is <em>not</em> empty, this replacement value will be used instead of the actual field content. This is done after alternate fields are considered; thus the replacement is used if <em>any</em> of the alternative fields is <em>not</em> empty. E.g. <code>%(chapters&has chapters|no chapters)s</code>, <code>%(title&TITLE={:>20}|NO TITLE)s</code></p> </li> <li> <p dir="auto"><strong>Default</strong>: A literal default value can be specified for when the field is empty using a <code>|</code> separator. This overrides <code>--output-na-placeholder</code>. E.g. <code>%(uploader|Unknown)s</code></p> </li> <li> <p dir="auto"><strong>More Conversions</strong>: In addition to the normal format types <code>diouxXeEfFgGcrs</code>, yt-dlp additionally supports converting to <code>B</code> = <strong>B</strong>ytes, <code>j</code> = <strong>j</strong>son (flag <code>#</code> for pretty-printing, <code>+</code> for Unicode), <code>h</code> = HTML escaping, <code>l</code> = a comma separated <strong>l</strong>ist (flag <code>#</code> for <code>\n</code> newline-separated), <code>q</code> = a string <strong>q</strong>uoted for the terminal (flag <code>#</code> to split a list into different arguments), <code>D</code> = add <strong>D</strong>ecimal suffixes (e.g. 10M) (flag <code>#</code> to use 1024 as factor), and <code>S</code> = <strong>S</strong>anitize as filename (flag <code>#</code> for restricted)</p> </li> <li> <p dir="auto"><strong>Unicode normalization</strong>: The format type <code>U</code> can be used for NFC <a href="https://docs.python.org/3/library/unicodedata.html#unicodedata.normalize" rel="nofollow">Unicode normalization</a>. The alternate form flag (<code>#</code>) changes the normalization to NFD and the conversion flag <code>+</code> can be used for NFKC/NFKD compatibility equivalence normalization. E.g. <code>%(title)+.100U</code> is NFKC</p> </li> </ol> <p dir="auto">To summarize, the general syntax for a field is:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="%(name[.keys][addition][>strf][,alternate][&replacement][|default])[flags][width][.precision][length]type"><pre class="notranslate"><code>%(name[.keys][addition][>strf][,alternate][&replacement][|default])[flags][width][.precision][length]type </code></pre></div> <p dir="auto">Additionally, you can set different output templates for the various metadata files separately from the general output template by specifying the type of file followed by the template separated by a colon <code>:</code>. The different file types supported are <code>subtitle</code>, <code>thumbnail</code>, <code>description</code>, <code>annotation</code> (deprecated), <code>infojson</code>, <code>link</code>, <code>pl_thumbnail</code>, <code>pl_description</code>, <code>pl_infojson</code>, <code>chapter</code>, <code>pl_video</code>. E.g. <code>-o "%(title)s.%(ext)s" -o "thumbnail:%(title)s\%(title)s.%(ext)s"</code> will put the thumbnails in a folder with the same name as the video. If any of the templates is empty, that type of file will not be written. E.g. <code>--write-thumbnail -o "thumbnail:"</code> will write thumbnails only for playlists and not for video.</p> <p dir="auto"><a id="user-content-outtmpl-postprocess-note"></a></p> <p dir="auto"><strong>Note</strong>: Due to post-processing (i.e. merging etc.), the actual output filename might differ. Use <code>--print after_move:filepath</code> to get the name after all post-processing is complete.</p> <p dir="auto">The available fields are:</p> <ul dir="auto"> <li><code>id</code> (string): Video identifier</li> <li><code>title</code> (string): Video title</li> <li><code>fulltitle</code> (string): Video title ignoring live timestamp and generic title</li> <li><code>ext</code> (string): Video filename extension</li> <li><code>alt_title</code> (string): A secondary title of the video</li> <li><code>description</code> (string): The description of the video</li> <li><code>display_id</code> (string): An alternative identifier for the video</li> <li><code>uploader</code> (string): Full name of the video uploader</li> <li><code>uploader_id</code> (string): Nickname or id of the video uploader</li> <li><code>uploader_url</code> (string): URL to the video uploader's profile</li> <li><code>license</code> (string): License name the video is licensed under</li> <li><code>creators</code> (list): The creators of the video</li> <li><code>creator</code> (string): The creators of the video; comma-separated</li> <li><code>timestamp</code> (numeric): UNIX timestamp of the moment the video became available</li> <li><code>upload_date</code> (string): Video upload date in UTC (YYYYMMDD)</li> <li><code>release_timestamp</code> (numeric): UNIX timestamp of the moment the video was released</li> <li><code>release_date</code> (string): The date (YYYYMMDD) when the video was released in UTC</li> <li><code>release_year</code> (numeric): Year (YYYY) when the video or album was released</li> <li><code>modified_timestamp</code> (numeric): UNIX timestamp of the moment the video was last modified</li> <li><code>modified_date</code> (string): The date (YYYYMMDD) when the video was last modified in UTC</li> <li><code>channel</code> (string): Full name of the channel the video is uploaded on</li> <li><code>channel_id</code> (string): Id of the channel</li> <li><code>channel_url</code> (string): URL of the channel</li> <li><code>channel_follower_count</code> (numeric): Number of followers of the channel</li> <li><code>channel_is_verified</code> (boolean): Whether the channel is verified on the platform</li> <li><code>location</code> (string): Physical location where the video was filmed</li> <li><code>duration</code> (numeric): Length of the video in seconds</li> <li><code>duration_string</code> (string): Length of the video (HH:mm:ss)</li> <li><code>view_count</code> (numeric): How many users have watched the video on the platform</li> <li><code>concurrent_view_count</code> (numeric): How many users are currently watching the video on the platform.</li> <li><code>like_count</code> (numeric): Number of positive ratings of the video</li> <li><code>dislike_count</code> (numeric): Number of negative ratings of the video</li> <li><code>repost_count</code> (numeric): Number of reposts of the video</li> <li><code>average_rating</code> (numeric): Average rating given by users, the scale used depends on the webpage</li> <li><code>comment_count</code> (numeric): Number of comments on the video (For some extractors, comments are only downloaded at the end, and so this field cannot be used)</li> <li><code>age_limit</code> (numeric): Age restriction for the video (years)</li> <li><code>live_status</code> (string): One of "not_live", "is_live", "is_upcoming", "was_live", "post_live" (was live, but VOD is not yet processed)</li> <li><code>is_live</code> (boolean): Whether this video is a live stream or a fixed-length video</li> <li><code>was_live</code> (boolean): Whether this video was originally a live stream</li> <li><code>playable_in_embed</code> (string): Whether this video is allowed to play in embedded players on other sites</li> <li><code>availability</code> (string): Whether the video is "private", "premium_only", "subscriber_only", "needs_auth", "unlisted" or "public"</li> <li><code>media_type</code> (string): The type of media as classified by the site, e.g. "episode", "clip", "trailer"</li> <li><code>start_time</code> (numeric): Time in seconds where the reproduction should start, as specified in the URL</li> <li><code>end_time</code> (numeric): Time in seconds where the reproduction should end, as specified in the URL</li> <li><code>extractor</code> (string): Name of the extractor</li> <li><code>extractor_key</code> (string): Key name of the extractor</li> <li><code>epoch</code> (numeric): Unix epoch of when the information extraction was completed</li> <li><code>autonumber</code> (numeric): Number that will be increased with each download, starting at <code>--autonumber-start</code>, padded with leading zeros to 5 digits</li> <li><code>video_autonumber</code> (numeric): Number that will be increased with each video</li> <li><code>n_entries</code> (numeric): Total number of extracted items in the playlist</li> <li><code>playlist_id</code> (string): Identifier of the playlist that contains the video</li> <li><code>playlist_title</code> (string): Name of the playlist that contains the video</li> <li><code>playlist</code> (string): <code>playlist_title</code> if available or else <code>playlist_id</code></li> <li><code>playlist_count</code> (numeric): Total number of items in the playlist. May not be known if entire playlist is not extracted</li> <li><code>playlist_index</code> (numeric): Index of the video in the playlist padded with leading zeros according the final index</li> <li><code>playlist_autonumber</code> (numeric): Position of the video in the playlist download queue padded with leading zeros according to the total length of the playlist</li> <li><code>playlist_uploader</code> (string): Full name of the playlist uploader</li> <li><code>playlist_uploader_id</code> (string): Nickname or id of the playlist uploader</li> <li><code>playlist_channel</code> (string): Display name of the channel that uploaded the playlist</li> <li><code>playlist_channel_id</code> (string): Identifier of the channel that uploaded the playlist</li> <li><code>playlist_webpage_url</code> (string): URL of the playlist webpage</li> <li><code>webpage_url</code> (string): A URL to the video webpage which, if given to yt-dlp, should yield the same result again</li> <li><code>webpage_url_basename</code> (string): The basename of the webpage URL</li> <li><code>webpage_url_domain</code> (string): The domain of the webpage URL</li> <li><code>original_url</code> (string): The URL given by the user (or the same as <code>webpage_url</code> for playlist entries)</li> <li><code>categories</code> (list): List of categories the video belongs to</li> <li><code>tags</code> (list): List of tags assigned to the video</li> <li><code>cast</code> (list): List of cast members</li> </ul> <p dir="auto">All the fields in <a href="#filtering-formats">Filtering Formats</a> can also be used</p> <p dir="auto">Available for the video that belongs to some logical chapter or section:</p> <ul dir="auto"> <li><code>chapter</code> (string): Name or title of the chapter the video belongs to</li> <li><code>chapter_number</code> (numeric): Number of the chapter the video belongs to</li> <li><code>chapter_id</code> (string): Id of the chapter the video belongs to</li> </ul> <p dir="auto">Available for the video that is an episode of some series or program:</p> <ul dir="auto"> <li><code>series</code> (string): Title of the series or program the video episode belongs to</li> <li><code>series_id</code> (string): Id of the series or program the video episode belongs to</li> <li><code>season</code> (string): Title of the season the video episode belongs to</li> <li><code>season_number</code> (numeric): Number of the season the video episode belongs to</li> <li><code>season_id</code> (string): Id of the season the video episode belongs to</li> <li><code>episode</code> (string): Title of the video episode</li> <li><code>episode_number</code> (numeric): Number of the video episode within a season</li> <li><code>episode_id</code> (string): Id of the video episode</li> </ul> <p dir="auto">Available for the media that is a track or a part of a music album:</p> <ul dir="auto"> <li><code>track</code> (string): Title of the track</li> <li><code>track_number</code> (numeric): Number of the track within an album or a disc</li> <li><code>track_id</code> (string): Id of the track</li> <li><code>artists</code> (list): Artist(s) of the track</li> <li><code>artist</code> (string): Artist(s) of the track; comma-separated</li> <li><code>genres</code> (list): Genre(s) of the track</li> <li><code>genre</code> (string): Genre(s) of the track; comma-separated</li> <li><code>composers</code> (list): Composer(s) of the piece</li> <li><code>composer</code> (string): Composer(s) of the piece; comma-separated</li> <li><code>album</code> (string): Title of the album the track belongs to</li> <li><code>album_type</code> (string): Type of the album</li> <li><code>album_artists</code> (list): All artists appeared on the album</li> <li><code>album_artist</code> (string): All artists appeared on the album; comma-separated</li> <li><code>disc_number</code> (numeric): Number of the disc or other physical medium the track belongs to</li> </ul> <p dir="auto">Available only when using <code>--download-sections</code> and for <code>chapter:</code> prefix when using <code>--split-chapters</code> for videos with internal chapters:</p> <ul dir="auto"> <li><code>section_title</code> (string): Title of the chapter</li> <li><code>section_number</code> (numeric): Number of the chapter within the file</li> <li><code>section_start</code> (numeric): Start time of the chapter in seconds</li> <li><code>section_end</code> (numeric): End time of the chapter in seconds</li> </ul> <p dir="auto">Available only when used in <code>--print</code>:</p> <ul dir="auto"> <li><code>urls</code> (string): The URLs of all requested formats, one in each line</li> <li><code>filename</code> (string): Name of the video file. Note that the <a href="#outtmpl-postprocess-note">actual filename may differ</a></li> <li><code>formats_table</code> (table): The video format table as printed by <code>--list-formats</code></li> <li><code>thumbnails_table</code> (table): The thumbnail format table as printed by <code>--list-thumbnails</code></li> <li><code>subtitles_table</code> (table): The subtitle format table as printed by <code>--list-subs</code></li> <li><code>automatic_captions_table</code> (table): The automatic subtitle format table as printed by <code>--list-subs</code></li> </ul> <p dir="auto">Available only after the video is downloaded (<code>post_process</code>/<code>after_move</code>):</p> <ul dir="auto"> <li><code>filepath</code>: Actual path of downloaded video file</li> </ul> <p dir="auto">Available only in <code>--sponsorblock-chapter-title</code>:</p> <ul dir="auto"> <li><code>start_time</code> (numeric): Start time of the chapter in seconds</li> <li><code>end_time</code> (numeric): End time of the chapter in seconds</li> <li><code>categories</code> (list): The <a href="https://wiki.sponsor.ajay.app/w/Types#Category" rel="nofollow">SponsorBlock categories</a> the chapter belongs to</li> <li><code>category</code> (string): The smallest SponsorBlock category the chapter belongs to</li> <li><code>category_names</code> (list): Friendly names of the categories</li> <li><code>name</code> (string): Friendly name of the smallest category</li> <li><code>type</code> (string): The <a href="https://wiki.sponsor.ajay.app/w/Types#Action_Type" rel="nofollow">SponsorBlock action type</a> of the chapter</li> </ul> <p dir="auto">Each aforementioned sequence when referenced in an output template will be replaced by the actual value corresponding to the sequence name. E.g. for <code>-o %(title)s-%(id)s.%(ext)s</code> and an mp4 video with title <code>yt-dlp test video</code> and id <code>BaW_jenozKc</code>, this will result in a <code>yt-dlp test video-BaW_jenozKc.mp4</code> file created in the current directory.</p> <p dir="auto"><strong>Note</strong>: Some of the sequences are not guaranteed to be present, since they depend on the metadata obtained by a particular extractor. Such sequences will be replaced with placeholder value provided with <code>--output-na-placeholder</code> (<code>NA</code> by default).</p> <p dir="auto"><strong>Tip</strong>: Look at the <code>-j</code> output to identify which fields are available for the particular URL</p> <p dir="auto">For numeric sequences, you can use <a href="https://docs.python.org/3/library/stdtypes.html#printf-style-string-formatting" rel="nofollow">numeric related formatting</a>; e.g. <code>%(view_count)05d</code> will result in a string with view count padded with zeros up to 5 characters, like in <code>00042</code>.</p> <p dir="auto">Output templates can also contain arbitrary hierarchical path, e.g. <code>-o "%(playlist)s/%(playlist_index)s - %(title)s.%(ext)s"</code> which will result in downloading each video in a directory corresponding to this path template. Any missing directory will be automatically created for you.</p> <p dir="auto">To use percent literals in an output template use <code>%%</code>. To output to stdout use <code>-o -</code>.</p> <p dir="auto">The current default template is <code>%(title)s [%(id)s].%(ext)s</code>.</p> <p dir="auto">In some cases, you don't want special characters such as 中, spaces, or &, such as when transferring the downloaded filename to a Windows system or the filename through an 8bit-unsafe channel. In these cases, add the <code>--restrict-filenames</code> flag to get a shorter title.</p> <div class="markdown-heading" dir="auto"><h4 tabindex="-1" class="heading-element" dir="auto">Output template examples</h4><a id="user-content-output-template-examples" class="anchor" aria-label="Permalink: Output template examples" href="#output-template-examples"><svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path></svg></a></div> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="$ yt-dlp --print filename -o "test video.%(ext)s" BaW_jenozKc test video.webm # Literal name with correct extension $ yt-dlp --print filename -o "%(title)s.%(ext)s" BaW_jenozKc youtube-dl test video ''_ä↭𝕐.webm # All kinds of weird characters $ yt-dlp --print filename -o "%(title)s.%(ext)s" BaW_jenozKc --restrict-filenames youtube-dl_test_video_.webm # Restricted file name # Download YouTube playlist videos in separate directory indexed by video order in a playlist $ yt-dlp -o "%(playlist)s/%(playlist_index)s - %(title)s.%(ext)s" "https://www.youtube.com/playlist?list=PLwiyx1dc3P2JR9N8gQaQN_BCvlSlap7re" # Download YouTube playlist videos in separate directories according to their uploaded year $ yt-dlp -o "%(upload_date>%Y)s/%(title)s.%(ext)s" "https://www.youtube.com/playlist?list=PLwiyx1dc3P2JR9N8gQaQN_BCvlSlap7re" # Prefix playlist index with " - " separator, but only if it is available $ yt-dlp -o "%(playlist_index&{} - |)s%(title)s.%(ext)s" BaW_jenozKc "https://www.youtube.com/user/TheLinuxFoundation/playlists" # Download all playlists of YouTube channel/user keeping each playlist in separate directory: $ yt-dlp -o "%(uploader)s/%(playlist)s/%(playlist_index)s - %(title)s.%(ext)s" "https://www.youtube.com/user/TheLinuxFoundation/playlists" # Download Udemy course keeping each chapter in separate directory under MyVideos directory in your home $ yt-dlp -u user -p password -P "~/MyVideos" -o "%(playlist)s/%(chapter_number)s - %(chapter)s/%(title)s.%(ext)s" "https://www.udemy.com/java-tutorial" # Download entire series season keeping each series and each season in separate directory under C:/MyVideos $ yt-dlp -P "C:/MyVideos" -o "%(series)s/%(season_number)s - %(season)s/%(episode_number)s - %(episode)s.%(ext)s" "https://videomore.ru/kino_v_detalayah/5_sezon/367617" # Download video as "C:\MyVideos\uploader\title.ext", subtitles as "C:\MyVideos\subs\uploader\title.ext" # and put all temporary files in "C:\MyVideos\tmp" $ yt-dlp -P "C:/MyVideos" -P "temp:tmp" -P "subtitle:subs" -o "%(uploader)s/%(title)s.%(ext)s" BaW_jenozKc --write-subs # Download video as "C:\MyVideos\uploader\title.ext" and subtitles as "C:\MyVideos\uploader\subs\title.ext" $ yt-dlp -P "C:/MyVideos" -o "%(uploader)s/%(title)s.%(ext)s" -o "subtitle:%(uploader)s/subs/%(title)s.%(ext)s" BaW_jenozKc --write-subs # Stream the video being downloaded to stdout $ yt-dlp -o - BaW_jenozKc"><pre>$ yt-dlp --print filename -o <span class="pl-s"><span class="pl-pds">"</span>test video.%(ext)s<span class="pl-pds">"</span></span> BaW_jenozKc <span class="pl-c1">test</span> video.webm <span class="pl-c"><span class="pl-c">#</span> Literal name with correct extension</span> $ yt-dlp --print filename -o <span class="pl-s"><span class="pl-pds">"</span>%(title)s.%(ext)s<span class="pl-pds">"</span></span> BaW_jenozKc youtube-dl <span class="pl-c1">test</span> video <span class="pl-s"><span class="pl-pds">'</span><span class="pl-pds">'</span></span>_ä↭𝕐.webm <span class="pl-c"><span class="pl-c">#</span> All kinds of weird characters</span> $ yt-dlp --print filename -o <span class="pl-s"><span class="pl-pds">"</span>%(title)s.%(ext)s<span class="pl-pds">"</span></span> BaW_jenozKc --restrict-filenames youtube-dl_test_video_.webm <span class="pl-c"><span class="pl-c">#</span> Restricted file name</span> <span class="pl-c"><span class="pl-c">#</span> Download YouTube playlist videos in separate directory indexed by video order in a playlist</span> $ yt-dlp -o <span class="pl-s"><span class="pl-pds">"</span>%(playlist)s/%(playlist_index)s - %(title)s.%(ext)s<span class="pl-pds">"</span></span> <span class="pl-s"><span class="pl-pds">"</span>https://www.youtube.com/playlist?list=PLwiyx1dc3P2JR9N8gQaQN_BCvlSlap7re<span class="pl-pds">"</span></span> <span class="pl-c"><span class="pl-c">#</span> Download YouTube playlist videos in separate directories according to their uploaded year</span> $ yt-dlp -o <span class="pl-s"><span class="pl-pds">"</span>%(upload_date>%Y)s/%(title)s.%(ext)s<span class="pl-pds">"</span></span> <span class="pl-s"><span class="pl-pds">"</span>https://www.youtube.com/playlist?list=PLwiyx1dc3P2JR9N8gQaQN_BCvlSlap7re<span class="pl-pds">"</span></span> <span class="pl-c"><span class="pl-c">#</span> Prefix playlist index with " - " separator, but only if it is available</span> $ yt-dlp -o <span class="pl-s"><span class="pl-pds">"</span>%(playlist_index&{} - |)s%(title)s.%(ext)s<span class="pl-pds">"</span></span> BaW_jenozKc <span class="pl-s"><span class="pl-pds">"</span>https://www.youtube.com/user/TheLinuxFoundation/playlists<span class="pl-pds">"</span></span> <span class="pl-c"><span class="pl-c">#</span> Download all playlists of YouTube channel/user keeping each playlist in separate directory:</span> $ yt-dlp -o <span class="pl-s"><span class="pl-pds">"</span>%(uploader)s/%(playlist)s/%(playlist_index)s - %(title)s.%(ext)s<span class="pl-pds">"</span></span> <span class="pl-s"><span class="pl-pds">"</span>https://www.youtube.com/user/TheLinuxFoundation/playlists<span class="pl-pds">"</span></span> <span class="pl-c"><span class="pl-c">#</span> Download Udemy course keeping each chapter in separate directory under MyVideos directory in your home</span> $ yt-dlp -u user -p password -P <span class="pl-s"><span class="pl-pds">"</span>~/MyVideos<span class="pl-pds">"</span></span> -o <span class="pl-s"><span class="pl-pds">"</span>%(playlist)s/%(chapter_number)s - %(chapter)s/%(title)s.%(ext)s<span class="pl-pds">"</span></span> <span class="pl-s"><span class="pl-pds">"</span>https://www.udemy.com/java-tutorial<span class="pl-pds">"</span></span> <span class="pl-c"><span class="pl-c">#</span> Download entire series season keeping each series and each season in separate directory under C:/MyVideos</span> $ yt-dlp -P <span class="pl-s"><span class="pl-pds">"</span>C:/MyVideos<span class="pl-pds">"</span></span> -o <span class="pl-s"><span class="pl-pds">"</span>%(series)s/%(season_number)s - %(season)s/%(episode_number)s - %(episode)s.%(ext)s<span class="pl-pds">"</span></span> <span class="pl-s"><span class="pl-pds">"</span>https://videomore.ru/kino_v_detalayah/5_sezon/367617<span class="pl-pds">"</span></span> <span class="pl-c"><span class="pl-c">#</span> Download video as "C:\MyVideos\uploader\title.ext", subtitles as "C:\MyVideos\subs\uploader\title.ext"</span> <span class="pl-c"><span class="pl-c">#</span> and put all temporary files in "C:\MyVideos\tmp"</span> $ yt-dlp -P <span class="pl-s"><span class="pl-pds">"</span>C:/MyVideos<span class="pl-pds">"</span></span> -P <span class="pl-s"><span class="pl-pds">"</span>temp:tmp<span class="pl-pds">"</span></span> -P <span class="pl-s"><span class="pl-pds">"</span>subtitle:subs<span class="pl-pds">"</span></span> -o <span class="pl-s"><span class="pl-pds">"</span>%(uploader)s/%(title)s.%(ext)s<span class="pl-pds">"</span></span> BaW_jenozKc --write-subs <span class="pl-c"><span class="pl-c">#</span> Download video as "C:\MyVideos\uploader\title.ext" and subtitles as "C:\MyVideos\uploader\subs\title.ext"</span> $ yt-dlp -P <span class="pl-s"><span class="pl-pds">"</span>C:/MyVideos<span class="pl-pds">"</span></span> -o <span class="pl-s"><span class="pl-pds">"</span>%(uploader)s/%(title)s.%(ext)s<span class="pl-pds">"</span></span> -o <span class="pl-s"><span class="pl-pds">"</span>subtitle:%(uploader)s/subs/%(title)s.%(ext)s<span class="pl-pds">"</span></span> BaW_jenozKc --write-subs <span class="pl-c"><span class="pl-c">#</span> Stream the video being downloaded to stdout</span> $ yt-dlp -o - BaW_jenozKc</pre></div> <div class="markdown-heading" dir="auto"><h1 tabindex="-1" class="heading-element" dir="auto">FORMAT SELECTION</h1><a id="user-content-format-selection" class="anchor" aria-label="Permalink: FORMAT SELECTION" href="#format-selection"><svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path></svg></a></div> <p dir="auto">By default, yt-dlp tries to download the best available quality if you <strong>don't</strong> pass any options. This is generally equivalent to using <code>-f bestvideo*+bestaudio/best</code>. However, if multiple audiostreams is enabled (<code>--audio-multistreams</code>), the default format changes to <code>-f bestvideo+bestaudio/best</code>. Similarly, if ffmpeg is unavailable, or if you use yt-dlp to stream to <code>stdout</code> (<code>-o -</code>), the default becomes <code>-f best/bestvideo+bestaudio</code>.</p> <p dir="auto"><strong>Deprecation warning</strong>: Latest versions of yt-dlp can stream multiple formats to the stdout simultaneously using ffmpeg. So, in future versions, the default for this will be set to <code>-f bv*+ba/b</code> similar to normal downloads. If you want to preserve the <code>-f b/bv+ba</code> setting, it is recommended to explicitly specify it in the configuration options.</p> <p dir="auto">The general syntax for format selection is <code>-f FORMAT</code> (or <code>--format FORMAT</code>) where <code>FORMAT</code> is a <em>selector expression</em>, i.e. an expression that describes format or formats you would like to download.</p> <p dir="auto"><strong>tl;dr:</strong> <a href="#format-selection-examples">navigate me to examples</a>.</p> <p dir="auto">The simplest case is requesting a specific format; e.g. with <code>-f 22</code> you can download the format with format code equal to 22. You can get the list of available format codes for particular video using <code>--list-formats</code> or <code>-F</code>. Note that these format codes are extractor specific.</p> <p dir="auto">You can also use a file extension (currently <code>3gp</code>, <code>aac</code>, <code>flv</code>, <code>m4a</code>, <code>mp3</code>, <code>mp4</code>, <code>ogg</code>, <code>wav</code>, <code>webm</code> are supported) to download the best quality format of a particular file extension served as a single file, e.g. <code>-f webm</code> will download the best quality format with the <code>webm</code> extension served as a single file.</p> <p dir="auto">You can use <code>-f -</code> to interactively provide the format selector <em>for each video</em></p> <p dir="auto">You can also use special names to select particular edge case formats:</p> <ul dir="auto"> <li><code>all</code>: Select <strong>all formats</strong> separately</li> <li><code>mergeall</code>: Select and <strong>merge all formats</strong> (Must be used with <code>--audio-multistreams</code>, <code>--video-multistreams</code> or both)</li> <li><code>b*</code>, <code>best*</code>: Select the best quality format that <strong>contains either</strong> a video or an audio or both (i.e.; <code>vcodec!=none or acodec!=none</code>)</li> <li><code>b</code>, <code>best</code>: Select the best quality format that <strong>contains both</strong> video and audio. Equivalent to <code>best*[vcodec!=none][acodec!=none]</code></li> <li><code>bv</code>, <code>bestvideo</code>: Select the best quality <strong>video-only</strong> format. Equivalent to <code>best*[acodec=none]</code></li> <li><code>bv*</code>, <code>bestvideo*</code>: Select the best quality format that <strong>contains video</strong>. It may also contain audio. Equivalent to <code>best*[vcodec!=none]</code></li> <li><code>ba</code>, <code>bestaudio</code>: Select the best quality <strong>audio-only</strong> format. Equivalent to <code>best*[vcodec=none]</code></li> <li><code>ba*</code>, <code>bestaudio*</code>: Select the best quality format that <strong>contains audio</strong>. It may also contain video. Equivalent to <code>best*[acodec!=none]</code> (<a href="https://github.com/yt-dlp/yt-dlp/issues/979#issuecomment-919629354" data-hovercard-type="issue" data-hovercard-url="/yt-dlp/yt-dlp/issues/979/hovercard">Do not use!</a>)</li> <li><code>w*</code>, <code>worst*</code>: Select the worst quality format that contains either a video or an audio</li> <li><code>w</code>, <code>worst</code>: Select the worst quality format that contains both video and audio. Equivalent to <code>worst*[vcodec!=none][acodec!=none]</code></li> <li><code>wv</code>, <code>worstvideo</code>: Select the worst quality video-only format. Equivalent to <code>worst*[acodec=none]</code></li> <li><code>wv*</code>, <code>worstvideo*</code>: Select the worst quality format that contains video. It may also contain audio. Equivalent to <code>worst*[vcodec!=none]</code></li> <li><code>wa</code>, <code>worstaudio</code>: Select the worst quality audio-only format. Equivalent to <code>worst*[vcodec=none]</code></li> <li><code>wa*</code>, <code>worstaudio*</code>: Select the worst quality format that contains audio. It may also contain video. Equivalent to <code>worst*[acodec!=none]</code></li> </ul> <p dir="auto">For example, to download the worst quality video-only format you can use <code>-f worstvideo</code>. It is, however, recommended not to use <code>worst</code> and related options. When your format selector is <code>worst</code>, the format which is worst in all respects is selected. Most of the time, what you actually want is the video with the smallest filesize instead. So it is generally better to use <code>-S +size</code> or more rigorously, <code>-S +size,+br,+res,+fps</code> instead of <code>-f worst</code>. See <a href="#sorting-formats">Sorting Formats</a> for more details.</p> <p dir="auto">You can select the n'th best format of a type by using <code>best<type>.<n></code>. For example, <code>best.2</code> will select the 2nd best combined format. Similarly, <code>bv*.3</code> will select the 3rd best format that contains a video stream.</p> <p dir="auto">If you want to download multiple videos, and they don't have the same formats available, you can specify the order of preference using slashes. Note that formats on the left hand side are preferred; e.g. <code>-f 22/17/18</code> will download format 22 if it's available, otherwise it will download format 17 if it's available, otherwise it will download format 18 if it's available, otherwise it will complain that no suitable formats are available for download.</p> <p dir="auto">If you want to download several formats of the same video use a comma as a separator, e.g. <code>-f 22,17,18</code> will download all these three formats, of course if they are available. Or a more sophisticated example combined with the precedence feature: <code>-f 136/137/mp4/bestvideo,140/m4a/bestaudio</code>.</p> <p dir="auto">You can merge the video and audio of multiple formats into a single file using <code>-f <format1>+<format2>+...</code> (requires ffmpeg installed); e.g. <code>-f bestvideo+bestaudio</code> will download the best video-only format, the best audio-only format and mux them together with ffmpeg.</p> <p dir="auto"><strong>Deprecation warning</strong>: Since the <em>below</em> described behavior is complex and counter-intuitive, this will be removed and multistreams will be enabled by default in the future. A new operator will be instead added to limit formats to single audio/video</p> <p dir="auto">Unless <code>--video-multistreams</code> is used, all formats with a video stream except the first one are ignored. Similarly, unless <code>--audio-multistreams</code> is used, all formats with an audio stream except the first one are ignored. E.g. <code>-f bestvideo+best+bestaudio --video-multistreams --audio-multistreams</code> will download and merge all 3 given formats. The resulting file will have 2 video streams and 2 audio streams. But <code>-f bestvideo+best+bestaudio --no-video-multistreams</code> will download and merge only <code>bestvideo</code> and <code>bestaudio</code>. <code>best</code> is ignored since another format containing a video stream (<code>bestvideo</code>) has already been selected. The order of the formats is therefore important. <code>-f best+bestaudio --no-audio-multistreams</code> will download only <code>best</code> while <code>-f bestaudio+best --no-audio-multistreams</code> will ignore <code>best</code> and download only <code>bestaudio</code>.</p> <div class="markdown-heading" dir="auto"><h2 tabindex="-1" class="heading-element" dir="auto">Filtering Formats</h2><a id="user-content-filtering-formats" class="anchor" aria-label="Permalink: Filtering Formats" href="#filtering-formats"><svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path></svg></a></div> <p dir="auto">You can also filter the video formats by putting a condition in brackets, as in <code>-f "best[height=720]"</code> (or <code>-f "[filesize>10M]"</code> since filters without a selector are interpreted as <code>best</code>).</p> <p dir="auto">The following numeric meta fields can be used with comparisons <code><</code>, <code><=</code>, <code>></code>, <code>>=</code>, <code>=</code> (equals), <code>!=</code> (not equals):</p> <ul dir="auto"> <li><code>filesize</code>: The number of bytes, if known in advance</li> <li><code>filesize_approx</code>: An estimate for the number of bytes</li> <li><code>width</code>: Width of the video, if known</li> <li><code>height</code>: Height of the video, if known</li> <li><code>aspect_ratio</code>: Aspect ratio of the video, if known</li> <li><code>tbr</code>: Average bitrate of audio and video in <a href="##" title="1000 bits/sec">kbps</a></li> <li><code>abr</code>: Average audio bitrate in <a href="##" title="1000 bits/sec">kbps</a></li> <li><code>vbr</code>: Average video bitrate in <a href="##" title="1000 bits/sec">kbps</a></li> <li><code>asr</code>: Audio sampling rate in Hertz</li> <li><code>fps</code>: Frame rate</li> <li><code>audio_channels</code>: The number of audio channels</li> <li><code>stretched_ratio</code>: <code>width:height</code> of the video's pixels, if not square</li> </ul> <p dir="auto">Also filtering work for comparisons <code>=</code> (equals), <code>^=</code> (starts with), <code>$=</code> (ends with), <code>*=</code> (contains), <code>~=</code> (matches regex) and following string meta fields:</p> <ul dir="auto"> <li><code>url</code>: Video URL</li> <li><code>ext</code>: File extension</li> <li><code>acodec</code>: Name of the audio codec in use</li> <li><code>vcodec</code>: Name of the video codec in use</li> <li><code>container</code>: Name of the container format</li> <li><code>protocol</code>: The protocol that will be used for the actual download, lower-case (<code>http</code>, <code>https</code>, <code>rtsp</code>, <code>rtmp</code>, <code>rtmpe</code>, <code>mms</code>, <code>f4m</code>, <code>ism</code>, <code>http_dash_segments</code>, <code>m3u8</code>, or <code>m3u8_native</code>)</li> <li><code>language</code>: Language code</li> <li><code>dynamic_range</code>: The dynamic range of the video</li> <li><code>format_id</code>: A short description of the format</li> <li><code>format</code>: A human-readable description of the format</li> <li><code>format_note</code>: Additional info about the format</li> <li><code>resolution</code>: Textual description of width and height</li> </ul> <p dir="auto">Any string comparison may be prefixed with negation <code>!</code> in order to produce an opposite comparison, e.g. <code>!*=</code> (does not contain). The comparand of a string comparison needs to be quoted with either double or single quotes if it contains spaces or special characters other than <code>._-</code>.</p> <p dir="auto"><strong>Note</strong>: None of the aforementioned meta fields are guaranteed to be present since this solely depends on the metadata obtained by the particular extractor, i.e. the metadata offered by the website. Any other field made available by the extractor can also be used for filtering.</p> <p dir="auto">Formats for which the value is not known are excluded unless you put a question mark (<code>?</code>) after the operator. You can combine format filters, so <code>-f "bv[height<=?720][tbr>500]"</code> selects up to 720p videos (or videos where the height is not known) with a bitrate of at least 500 kbps. You can also use the filters with <code>all</code> to download all formats that satisfy the filter, e.g. <code>-f "all[vcodec=none]"</code> selects all audio-only formats.</p> <p dir="auto">Format selectors can also be grouped using parentheses; e.g. <code>-f "(mp4,webm)[height<480]"</code> will download the best pre-merged mp4 and webm formats with a height lower than 480.</p> <div class="markdown-heading" dir="auto"><h2 tabindex="-1" class="heading-element" dir="auto">Sorting Formats</h2><a id="user-content-sorting-formats" class="anchor" aria-label="Permalink: Sorting Formats" href="#sorting-formats"><svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path></svg></a></div> <p dir="auto">You can change the criteria for being considered the <code>best</code> by using <code>-S</code> (<code>--format-sort</code>). The general format for this is <code>--format-sort field1,field2...</code>.</p> <p dir="auto">The available fields are:</p> <ul dir="auto"> <li><code>hasvid</code>: Gives priority to formats that have a video stream</li> <li><code>hasaud</code>: Gives priority to formats that have an audio stream</li> <li><code>ie_pref</code>: The format preference</li> <li><code>lang</code>: The language preference as determined by the extractor (e.g. original language preferred over audio description)</li> <li><code>quality</code>: The quality of the format</li> <li><code>source</code>: The preference of the source</li> <li><code>proto</code>: Protocol used for download (<code>https</code>/<code>ftps</code> > <code>http</code>/<code>ftp</code> > <code>m3u8_native</code>/<code>m3u8</code> > <code>http_dash_segments</code>> <code>websocket_frag</code> > <code>mms</code>/<code>rtsp</code> > <code>f4f</code>/<code>f4m</code>)</li> <li><code>vcodec</code>: Video Codec (<code>av01</code> > <code>vp9.2</code> > <code>vp9</code> > <code>h265</code> > <code>h264</code> > <code>vp8</code> > <code>h263</code> > <code>theora</code> > other)</li> <li><code>acodec</code>: Audio Codec (<code>flac</code>/<code>alac</code> > <code>wav</code>/<code>aiff</code> > <code>opus</code> > <code>vorbis</code> > <code>aac</code> > <code>mp4a</code> > <code>mp3</code> > <code>ac4</code> > <code>eac3</code> > <code>ac3</code> > <code>dts</code> > other)</li> <li><code>codec</code>: Equivalent to <code>vcodec,acodec</code></li> <li><code>vext</code>: Video Extension (<code>mp4</code> > <code>mov</code> > <code>webm</code> > <code>flv</code> > other). If <code>--prefer-free-formats</code> is used, <code>webm</code> is preferred.</li> <li><code>aext</code>: Audio Extension (<code>m4a</code> > <code>aac</code> > <code>mp3</code> > <code>ogg</code> > <code>opus</code> > <code>webm</code> > other). If <code>--prefer-free-formats</code> is used, the order changes to <code>ogg</code> > <code>opus</code> > <code>webm</code> > <code>mp3</code> > <code>m4a</code> > <code>aac</code></li> <li><code>ext</code>: Equivalent to <code>vext,aext</code></li> <li><code>filesize</code>: Exact filesize, if known in advance</li> <li><code>fs_approx</code>: Approximate filesize</li> <li><code>size</code>: Exact filesize if available, otherwise approximate filesize</li> <li><code>height</code>: Height of video</li> <li><code>width</code>: Width of video</li> <li><code>res</code>: Video resolution, calculated as the smallest dimension.</li> <li><code>fps</code>: Framerate of video</li> <li><code>hdr</code>: The dynamic range of the video (<code>DV</code> > <code>HDR12</code> > <code>HDR10+</code> > <code>HDR10</code> > <code>HLG</code> > <code>SDR</code>)</li> <li><code>channels</code>: The number of audio channels</li> <li><code>tbr</code>: Total average bitrate in <a href="##" title="1000 bits/sec">kbps</a></li> <li><code>vbr</code>: Average video bitrate in <a href="##" title="1000 bits/sec">kbps</a></li> <li><code>abr</code>: Average audio bitrate in <a href="##" title="1000 bits/sec">kbps</a></li> <li><code>br</code>: Average bitrate in <a href="##" title="1000 bits/sec">kbps</a>, <code>tbr</code>/<code>vbr</code>/<code>abr</code></li> <li><code>asr</code>: Audio sample rate in Hz</li> </ul> <p dir="auto"><strong>Deprecation warning</strong>: Many of these fields have (currently undocumented) aliases, that may be removed in a future version. It is recommended to use only the documented field names.</p> <p dir="auto">All fields, unless specified otherwise, are sorted in descending order. To reverse this, prefix the field with a <code>+</code>. E.g. <code>+res</code> prefers format with the smallest resolution. Additionally, you can suffix a preferred value for the fields, separated by a <code>:</code>. E.g. <code>res:720</code> prefers larger videos, but no larger than 720p and the smallest video if there are no videos less than 720p. For <code>codec</code> and <code>ext</code>, you can provide two preferred values, the first for video and the second for audio. E.g. <code>+codec:avc:m4a</code> (equivalent to <code>+vcodec:avc,+acodec:m4a</code>) sets the video codec preference to <code>h264</code> > <code>h265</code> > <code>vp9</code> > <code>vp9.2</code> > <code>av01</code> > <code>vp8</code> > <code>h263</code> > <code>theora</code> and audio codec preference to <code>mp4a</code> > <code>aac</code> > <code>vorbis</code> > <code>opus</code> > <code>mp3</code> > <code>ac3</code> > <code>dts</code>. You can also make the sorting prefer the nearest values to the provided by using <code>~</code> as the delimiter. E.g. <code>filesize~1G</code> prefers the format with filesize closest to 1 GiB.</p> <p dir="auto">The fields <code>hasvid</code> and <code>ie_pref</code> are always given highest priority in sorting, irrespective of the user-defined order. This behavior can be changed by using <code>--format-sort-force</code>. Apart from these, the default order used is: <code>lang,quality,res,fps,hdr:12,vcodec,channels,acodec,size,br,asr,proto,ext,hasaud,source,id</code>. The extractors may override this default order, but they cannot override the user-provided order.</p> <p dir="auto">Note that the default for hdr is <code>hdr:12</code>; i.e. Dolby Vision is not preferred. This choice was made since DV formats are not yet fully compatible with most devices. This may be changed in the future.</p> <p dir="auto">If your format selector is <code>worst</code>, the last item is selected after sorting. This means it will select the format that is worst in all respects. Most of the time, what you actually want is the video with the smallest filesize instead. So it is generally better to use <code>-f best -S +size,+br,+res,+fps</code>.</p> <p dir="auto"><strong>Tip</strong>: You can use the <code>-v -F</code> to see how the formats have been sorted (worst to best).</p> <div class="markdown-heading" dir="auto"><h2 tabindex="-1" class="heading-element" dir="auto">Format Selection examples</h2><a id="user-content-format-selection-examples" class="anchor" aria-label="Permalink: Format Selection examples" href="#format-selection-examples"><svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path></svg></a></div> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="# Download and merge the best video-only format and the best audio-only format, # or download the best combined format if video-only format is not available $ yt-dlp -f "bv+ba/b" # Download best format that contains video, # and if it doesn't already have an audio stream, merge it with best audio-only format $ yt-dlp -f "bv*+ba/b" # Same as above $ yt-dlp # Download the best video-only format and the best audio-only format without merging them # For this case, an output template should be used since # by default, bestvideo and bestaudio will have the same file name. $ yt-dlp -f "bv,ba" -o "%(title)s.f%(format_id)s.%(ext)s" # Download and merge the best format that has a video stream, # and all audio-only formats into one file $ yt-dlp -f "bv*+mergeall[vcodec=none]" --audio-multistreams # Download and merge the best format that has a video stream, # and the best 2 audio-only formats into one file $ yt-dlp -f "bv*+ba+ba.2" --audio-multistreams # The following examples show the old method (without -S) of format selection # and how to use -S to achieve a similar but (generally) better result # Download the worst video available (old method) $ yt-dlp -f "wv*+wa/w" # Download the best video available but with the smallest resolution $ yt-dlp -S "+res" # Download the smallest video available $ yt-dlp -S "+size,+br" # Download the best mp4 video available, or the best video if no mp4 available $ yt-dlp -f "bv*[ext=mp4]+ba[ext=m4a]/b[ext=mp4] / bv*+ba/b" # Download the best video with the best extension # (For video, mp4 > mov > webm > flv. For audio, m4a > aac > mp3 ...) $ yt-dlp -S "ext" # Download the best video available but no better than 480p, # or the worst video if there is no video under 480p $ yt-dlp -f "bv*[height<=480]+ba/b[height<=480] / wv*+ba/w" # Download the best video available with the largest height but no better than 480p, # or the best video with the smallest resolution if there is no video under 480p $ yt-dlp -S "height:480" # Download the best video available with the largest resolution but no better than 480p, # or the best video with the smallest resolution if there is no video under 480p # Resolution is determined by using the smallest dimension. # So this works correctly for vertical videos as well $ yt-dlp -S "res:480" # Download the best video (that also has audio) but no bigger than 50 MB, # or the worst video (that also has audio) if there is no video under 50 MB $ yt-dlp -f "b[filesize<50M] / w" # Download the largest video (that also has audio) but no bigger than 50 MB, # or the smallest video (that also has audio) if there is no video under 50 MB $ yt-dlp -f "b" -S "filesize:50M" # Download the best video (that also has audio) that is closest in size to 50 MB $ yt-dlp -f "b" -S "filesize~50M" # Download best video available via direct link over HTTP/HTTPS protocol, # or the best video available via any protocol if there is no such video $ yt-dlp -f "(bv*+ba/b)[protocol^=http][protocol!*=dash] / (bv*+ba/b)" # Download best video available via the best protocol # (https/ftps > http/ftp > m3u8_native > m3u8 > http_dash_segments ...) $ yt-dlp -S "proto" # Download the best video with either h264 or h265 codec, # or the best video if there is no such video $ yt-dlp -f "(bv*[vcodec~='^((he|a)vc|h26[45])']+ba) / (bv*+ba/b)" # Download the best video with best codec no better than h264, # or the best video with worst codec if there is no such video $ yt-dlp -S "codec:h264" # Download the best video with worst codec no worse than h264, # or the best video with best codec if there is no such video $ yt-dlp -S "+codec:h264" # More complex examples # Download the best video no better than 720p preferring framerate greater than 30, # or the worst video (still preferring framerate greater than 30) if there is no such video $ yt-dlp -f "((bv*[fps>30]/bv*)[height<=720]/(wv*[fps>30]/wv*)) + ba / (b[fps>30]/b)[height<=720]/(w[fps>30]/w)" # Download the video with the largest resolution no better than 720p, # or the video with the smallest resolution available if there is no such video, # preferring larger framerate for formats with the same resolution $ yt-dlp -S "res:720,fps" # Download the video with smallest resolution no worse than 480p, # or the video with the largest resolution available if there is no such video, # preferring better codec and then larger total bitrate for the same resolution $ yt-dlp -S "+res:480,codec,br""><pre><span class="pl-c"><span class="pl-c">#</span> Download and merge the best video-only format and the best audio-only format,</span> <span class="pl-c"><span class="pl-c">#</span> or download the best combined format if video-only format is not available</span> $ yt-dlp -f <span class="pl-s"><span class="pl-pds">"</span>bv+ba/b<span class="pl-pds">"</span></span> <span class="pl-c"><span class="pl-c">#</span> Download best format that contains video,</span> <span class="pl-c"><span class="pl-c">#</span> and if it doesn't already have an audio stream, merge it with best audio-only format</span> $ yt-dlp -f <span class="pl-s"><span class="pl-pds">"</span>bv*+ba/b<span class="pl-pds">"</span></span> <span class="pl-c"><span class="pl-c">#</span> Same as above</span> $ yt-dlp <span class="pl-c"><span class="pl-c">#</span> Download the best video-only format and the best audio-only format without merging them</span> <span class="pl-c"><span class="pl-c">#</span> For this case, an output template should be used since</span> <span class="pl-c"><span class="pl-c">#</span> by default, bestvideo and bestaudio will have the same file name.</span> $ yt-dlp -f <span class="pl-s"><span class="pl-pds">"</span>bv,ba<span class="pl-pds">"</span></span> -o <span class="pl-s"><span class="pl-pds">"</span>%(title)s.f%(format_id)s.%(ext)s<span class="pl-pds">"</span></span> <span class="pl-c"><span class="pl-c">#</span> Download and merge the best format that has a video stream,</span> <span class="pl-c"><span class="pl-c">#</span> and all audio-only formats into one file</span> $ yt-dlp -f <span class="pl-s"><span class="pl-pds">"</span>bv*+mergeall[vcodec=none]<span class="pl-pds">"</span></span> --audio-multistreams <span class="pl-c"><span class="pl-c">#</span> Download and merge the best format that has a video stream,</span> <span class="pl-c"><span class="pl-c">#</span> and the best 2 audio-only formats into one file</span> $ yt-dlp -f <span class="pl-s"><span class="pl-pds">"</span>bv*+ba+ba.2<span class="pl-pds">"</span></span> --audio-multistreams <span class="pl-c"><span class="pl-c">#</span> The following examples show the old method (without -S) of format selection</span> <span class="pl-c"><span class="pl-c">#</span> and how to use -S to achieve a similar but (generally) better result</span> <span class="pl-c"><span class="pl-c">#</span> Download the worst video available (old method)</span> $ yt-dlp -f <span class="pl-s"><span class="pl-pds">"</span>wv*+wa/w<span class="pl-pds">"</span></span> <span class="pl-c"><span class="pl-c">#</span> Download the best video available but with the smallest resolution</span> $ yt-dlp -S <span class="pl-s"><span class="pl-pds">"</span>+res<span class="pl-pds">"</span></span> <span class="pl-c"><span class="pl-c">#</span> Download the smallest video available</span> $ yt-dlp -S <span class="pl-s"><span class="pl-pds">"</span>+size,+br<span class="pl-pds">"</span></span> <span class="pl-c"><span class="pl-c">#</span> Download the best mp4 video available, or the best video if no mp4 available</span> $ yt-dlp -f <span class="pl-s"><span class="pl-pds">"</span>bv*[ext=mp4]+ba[ext=m4a]/b[ext=mp4] / bv*+ba/b<span class="pl-pds">"</span></span> <span class="pl-c"><span class="pl-c">#</span> Download the best video with the best extension</span> <span class="pl-c"><span class="pl-c">#</span> (For video, mp4 > mov > webm > flv. For audio, m4a > aac > mp3 ...)</span> $ yt-dlp -S <span class="pl-s"><span class="pl-pds">"</span>ext<span class="pl-pds">"</span></span> <span class="pl-c"><span class="pl-c">#</span> Download the best video available but no better than 480p,</span> <span class="pl-c"><span class="pl-c">#</span> or the worst video if there is no video under 480p</span> $ yt-dlp -f <span class="pl-s"><span class="pl-pds">"</span>bv*[height<=480]+ba/b[height<=480] / wv*+ba/w<span class="pl-pds">"</span></span> <span class="pl-c"><span class="pl-c">#</span> Download the best video available with the largest height but no better than 480p,</span> <span class="pl-c"><span class="pl-c">#</span> or the best video with the smallest resolution if there is no video under 480p</span> $ yt-dlp -S <span class="pl-s"><span class="pl-pds">"</span>height:480<span class="pl-pds">"</span></span> <span class="pl-c"><span class="pl-c">#</span> Download the best video available with the largest resolution but no better than 480p,</span> <span class="pl-c"><span class="pl-c">#</span> or the best video with the smallest resolution if there is no video under 480p</span> <span class="pl-c"><span class="pl-c">#</span> Resolution is determined by using the smallest dimension.</span> <span class="pl-c"><span class="pl-c">#</span> So this works correctly for vertical videos as well</span> $ yt-dlp -S <span class="pl-s"><span class="pl-pds">"</span>res:480<span class="pl-pds">"</span></span> <span class="pl-c"><span class="pl-c">#</span> Download the best video (that also has audio) but no bigger than 50 MB,</span> <span class="pl-c"><span class="pl-c">#</span> or the worst video (that also has audio) if there is no video under 50 MB</span> $ yt-dlp -f <span class="pl-s"><span class="pl-pds">"</span>b[filesize<50M] / w<span class="pl-pds">"</span></span> <span class="pl-c"><span class="pl-c">#</span> Download the largest video (that also has audio) but no bigger than 50 MB,</span> <span class="pl-c"><span class="pl-c">#</span> or the smallest video (that also has audio) if there is no video under 50 MB</span> $ yt-dlp -f <span class="pl-s"><span class="pl-pds">"</span>b<span class="pl-pds">"</span></span> -S <span class="pl-s"><span class="pl-pds">"</span>filesize:50M<span class="pl-pds">"</span></span> <span class="pl-c"><span class="pl-c">#</span> Download the best video (that also has audio) that is closest in size to 50 MB</span> $ yt-dlp -f <span class="pl-s"><span class="pl-pds">"</span>b<span class="pl-pds">"</span></span> -S <span class="pl-s"><span class="pl-pds">"</span>filesize~50M<span class="pl-pds">"</span></span> <span class="pl-c"><span class="pl-c">#</span> Download best video available via direct link over HTTP/HTTPS protocol,</span> <span class="pl-c"><span class="pl-c">#</span> or the best video available via any protocol if there is no such video</span> $ yt-dlp -f <span class="pl-s"><span class="pl-pds">"</span>(bv*+ba/b)[protocol^=http][protocol!*=dash] / (bv*+ba/b)<span class="pl-pds">"</span></span> <span class="pl-c"><span class="pl-c">#</span> Download best video available via the best protocol</span> <span class="pl-c"><span class="pl-c">#</span> (https/ftps > http/ftp > m3u8_native > m3u8 > http_dash_segments ...)</span> $ yt-dlp -S <span class="pl-s"><span class="pl-pds">"</span>proto<span class="pl-pds">"</span></span> <span class="pl-c"><span class="pl-c">#</span> Download the best video with either h264 or h265 codec,</span> <span class="pl-c"><span class="pl-c">#</span> or the best video if there is no such video</span> $ yt-dlp -f <span class="pl-s"><span class="pl-pds">"</span>(bv*[vcodec~='^((he|a)vc|h26[45])']+ba) / (bv*+ba/b)<span class="pl-pds">"</span></span> <span class="pl-c"><span class="pl-c">#</span> Download the best video with best codec no better than h264,</span> <span class="pl-c"><span class="pl-c">#</span> or the best video with worst codec if there is no such video</span> $ yt-dlp -S <span class="pl-s"><span class="pl-pds">"</span>codec:h264<span class="pl-pds">"</span></span> <span class="pl-c"><span class="pl-c">#</span> Download the best video with worst codec no worse than h264,</span> <span class="pl-c"><span class="pl-c">#</span> or the best video with best codec if there is no such video</span> $ yt-dlp -S <span class="pl-s"><span class="pl-pds">"</span>+codec:h264<span class="pl-pds">"</span></span> <span class="pl-c"><span class="pl-c">#</span> More complex examples</span> <span class="pl-c"><span class="pl-c">#</span> Download the best video no better than 720p preferring framerate greater than 30,</span> <span class="pl-c"><span class="pl-c">#</span> or the worst video (still preferring framerate greater than 30) if there is no such video</span> $ yt-dlp -f <span class="pl-s"><span class="pl-pds">"</span>((bv*[fps>30]/bv*)[height<=720]/(wv*[fps>30]/wv*)) + ba / (b[fps>30]/b)[height<=720]/(w[fps>30]/w)<span class="pl-pds">"</span></span> <span class="pl-c"><span class="pl-c">#</span> Download the video with the largest resolution no better than 720p,</span> <span class="pl-c"><span class="pl-c">#</span> or the video with the smallest resolution available if there is no such video,</span> <span class="pl-c"><span class="pl-c">#</span> preferring larger framerate for formats with the same resolution</span> $ yt-dlp -S <span class="pl-s"><span class="pl-pds">"</span>res:720,fps<span class="pl-pds">"</span></span> <span class="pl-c"><span class="pl-c">#</span> Download the video with smallest resolution no worse than 480p,</span> <span class="pl-c"><span class="pl-c">#</span> or the video with the largest resolution available if there is no such video,</span> <span class="pl-c"><span class="pl-c">#</span> preferring better codec and then larger total bitrate for the same resolution</span> $ yt-dlp -S <span class="pl-s"><span class="pl-pds">"</span>+res:480,codec,br<span class="pl-pds">"</span></span></pre></div> <div class="markdown-heading" dir="auto"><h1 tabindex="-1" class="heading-element" dir="auto">MODIFYING METADATA</h1><a id="user-content-modifying-metadata" class="anchor" aria-label="Permalink: MODIFYING METADATA" href="#modifying-metadata"><svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path></svg></a></div> <p dir="auto">The metadata obtained by the extractors can be modified by using <code>--parse-metadata</code> and <code>--replace-in-metadata</code></p> <p dir="auto"><code>--replace-in-metadata FIELDS REGEX REPLACE</code> is used to replace text in any metadata field using <a href="https://docs.python.org/3/library/re.html#regular-expression-syntax" rel="nofollow">Python regular expression</a>. <a href="https://docs.python.org/3/library/re.html?highlight=backreferences#re.sub" rel="nofollow">Backreferences</a> can be used in the replace string for advanced use.</p> <p dir="auto">The general syntax of <code>--parse-metadata FROM:TO</code> is to give the name of a field or an <a href="#output-template">output template</a> to extract data from, and the format to interpret it as, separated by a colon <code>:</code>. Either a <a href="https://docs.python.org/3/library/re.html#regular-expression-syntax" rel="nofollow">Python regular expression</a> with named capture groups, a single field name, or a similar syntax to the <a href="#output-template">output template</a> (only <code>%(field)s</code> formatting is supported) can be used for <code>TO</code>. The option can be used multiple times to parse and modify various fields.</p> <p dir="auto">Note that these options preserve their relative order, allowing replacements to be made in parsed fields and vice versa. Also, any field thus created can be used in the <a href="#output-template">output template</a> and will also affect the media file's metadata added when using <code>--embed-metadata</code>.</p> <p dir="auto">This option also has a few special uses:</p> <ul dir="auto"> <li> <p dir="auto">You can download an additional URL based on the metadata of the currently downloaded video. To do this, set the field <code>additional_urls</code> to the URL that you want to download. E.g. <code>--parse-metadata "description:(?P<additional_urls>https?://www\.vimeo\.com/\d+)"</code> will download the first vimeo video found in the description</p> </li> <li> <p dir="auto">You can use this to change the metadata that is embedded in the media file. To do this, set the value of the corresponding field with a <code>meta_</code> prefix. For example, any value you set to <code>meta_description</code> field will be added to the <code>description</code> field in the file - you can use this to set a different "description" and "synopsis". To modify the metadata of individual streams, use the <code>meta<n>_</code> prefix (e.g. <code>meta1_language</code>). Any value set to the <code>meta_</code> field will overwrite all default values.</p> </li> </ul> <p dir="auto"><strong>Note</strong>: Metadata modification happens before format selection, post-extraction and other post-processing operations. Some fields may be added or changed during these steps, overriding your changes.</p> <p dir="auto">For reference, these are the fields yt-dlp adds by default to the file metadata:</p> <markdown-accessiblity-table><table> <thead> <tr> <th align="left">Metadata fields</th> <th align="left">From</th> </tr> </thead> <tbody> <tr> <td align="left"><code>title</code></td> <td align="left"><code>track</code> or <code>title</code></td> </tr> <tr> <td align="left"><code>date</code></td> <td align="left"><code>upload_date</code></td> </tr> <tr> <td align="left"><code>description</code>, <code>synopsis</code></td> <td align="left"><code>description</code></td> </tr> <tr> <td align="left"><code>purl</code>, <code>comment</code></td> <td align="left"><code>webpage_url</code></td> </tr> <tr> <td align="left"><code>track</code></td> <td align="left"><code>track_number</code></td> </tr> <tr> <td align="left"><code>artist</code></td> <td align="left"><code>artist</code>, <code>artists</code>, <code>creator</code>, <code>creators</code>, <code>uploader</code> or <code>uploader_id</code></td> </tr> <tr> <td align="left"><code>composer</code></td> <td align="left"><code>composer</code> or <code>composers</code></td> </tr> <tr> <td align="left"><code>genre</code></td> <td align="left"><code>genre</code> or <code>genres</code></td> </tr> <tr> <td align="left"><code>album</code></td> <td align="left"><code>album</code></td> </tr> <tr> <td align="left"><code>album_artist</code></td> <td align="left"><code>album_artist</code> or <code>album_artists</code></td> </tr> <tr> <td align="left"><code>disc</code></td> <td align="left"><code>disc_number</code></td> </tr> <tr> <td align="left"><code>show</code></td> <td align="left"><code>series</code></td> </tr> <tr> <td align="left"><code>season_number</code></td> <td align="left"><code>season_number</code></td> </tr> <tr> <td align="left"><code>episode_id</code></td> <td align="left"><code>episode</code> or <code>episode_id</code></td> </tr> <tr> <td align="left"><code>episode_sort</code></td> <td align="left"><code>episode_number</code></td> </tr> <tr> <td align="left"><code>language</code> of each stream</td> <td align="left">the format's <code>language</code></td> </tr> </tbody> </table></markdown-accessiblity-table> <p dir="auto"><strong>Note</strong>: The file format may not support some of these fields</p> <div class="markdown-heading" dir="auto"><h2 tabindex="-1" class="heading-element" dir="auto">Modifying metadata examples</h2><a id="user-content-modifying-metadata-examples" class="anchor" aria-label="Permalink: Modifying metadata examples" href="#modifying-metadata-examples"><svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path></svg></a></div> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="# Interpret the title as "Artist - Title" $ yt-dlp --parse-metadata "title:%(artist)s - %(title)s" # Regex example $ yt-dlp --parse-metadata "description:Artist - (?P<artist>.+)" # Set title as "Series name S01E05" $ yt-dlp --parse-metadata "%(series)s S%(season_number)02dE%(episode_number)02d:%(title)s" # Prioritize uploader as the "artist" field in video metadata $ yt-dlp --parse-metadata "%(uploader|)s:%(meta_artist)s" --embed-metadata # Set "comment" field in video metadata using description instead of webpage_url, # handling multiple lines correctly $ yt-dlp --parse-metadata "description:(?s)(?P<meta_comment>.+)" --embed-metadata # Do not set any "synopsis" in the video metadata $ yt-dlp --parse-metadata ":(?P<meta_synopsis>)" # Remove "formats" field from the infojson by setting it to an empty string $ yt-dlp --parse-metadata "video::(?P<formats>)" --write-info-json # Replace all spaces and "_" in title and uploader with a `-` $ yt-dlp --replace-in-metadata "title,uploader" "[ _]" "-" "><pre><span class="pl-c"><span class="pl-c">#</span> Interpret the title as "Artist - Title"</span> $ yt-dlp --parse-metadata <span class="pl-s"><span class="pl-pds">"</span>title:%(artist)s - %(title)s<span class="pl-pds">"</span></span> <span class="pl-c"><span class="pl-c">#</span> Regex example</span> $ yt-dlp --parse-metadata <span class="pl-s"><span class="pl-pds">"</span>description:Artist - (?P<artist>.+)<span class="pl-pds">"</span></span> <span class="pl-c"><span class="pl-c">#</span> Set title as "Series name S01E05"</span> $ yt-dlp --parse-metadata <span class="pl-s"><span class="pl-pds">"</span>%(series)s S%(season_number)02dE%(episode_number)02d:%(title)s<span class="pl-pds">"</span></span> <span class="pl-c"><span class="pl-c">#</span> Prioritize uploader as the "artist" field in video metadata</span> $ yt-dlp --parse-metadata <span class="pl-s"><span class="pl-pds">"</span>%(uploader|)s:%(meta_artist)s<span class="pl-pds">"</span></span> --embed-metadata <span class="pl-c"><span class="pl-c">#</span> Set "comment" field in video metadata using description instead of webpage_url,</span> <span class="pl-c"><span class="pl-c">#</span> handling multiple lines correctly</span> $ yt-dlp --parse-metadata <span class="pl-s"><span class="pl-pds">"</span>description:(?s)(?P<meta_comment>.+)<span class="pl-pds">"</span></span> --embed-metadata <span class="pl-c"><span class="pl-c">#</span> Do not set any "synopsis" in the video metadata</span> $ yt-dlp --parse-metadata <span class="pl-s"><span class="pl-pds">"</span>:(?P<meta_synopsis>)<span class="pl-pds">"</span></span> <span class="pl-c"><span class="pl-c">#</span> Remove "formats" field from the infojson by setting it to an empty string</span> $ yt-dlp --parse-metadata <span class="pl-s"><span class="pl-pds">"</span>video::(?P<formats>)<span class="pl-pds">"</span></span> --write-info-json <span class="pl-c"><span class="pl-c">#</span> Replace all spaces and "_" in title and uploader with a `-`</span> $ yt-dlp --replace-in-metadata <span class="pl-s"><span class="pl-pds">"</span>title,uploader<span class="pl-pds">"</span></span> <span class="pl-s"><span class="pl-pds">"</span>[ _]<span class="pl-pds">"</span></span> <span class="pl-s"><span class="pl-pds">"</span>-<span class="pl-pds">"</span></span> </pre></div> <div class="markdown-heading" dir="auto"><h1 tabindex="-1" class="heading-element" dir="auto">EXTRACTOR ARGUMENTS</h1><a id="user-content-extractor-arguments" class="anchor" aria-label="Permalink: EXTRACTOR ARGUMENTS" href="#extractor-arguments"><svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path></svg></a></div> <p dir="auto">Some extractors accept additional arguments which can be passed using <code>--extractor-args KEY:ARGS</code>. <code>ARGS</code> is a <code>;</code> (semicolon) separated string of <code>ARG=VAL1,VAL2</code>. E.g. <code>--extractor-args "youtube:player-client=tv,mweb;formats=incomplete" --extractor-args "twitter:api=syndication"</code></p> <p dir="auto">Note: In CLI, <code>ARG</code> can use <code>-</code> instead of <code>_</code>; e.g. <code>youtube:player-client"</code> becomes <code>youtube:player_client"</code></p> <p dir="auto">The following extractors use this feature:</p> <div class="markdown-heading" dir="auto"><h4 tabindex="-1" class="heading-element" dir="auto">youtube</h4><a id="user-content-youtube" class="anchor" aria-label="Permalink: youtube" href="#youtube"><svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path></svg></a></div> <ul dir="auto"> <li><code>lang</code>: Prefer translated metadata (<code>title</code>, <code>description</code> etc) of this language code (case-sensitive). By default, the video primary language metadata is preferred, with a fallback to <code>en</code> translated. See <a href="https://github.com/yt-dlp/yt-dlp/blob/c26f9b991a0681fd3ea548d535919cec1fbbd430/yt_dlp/extractor/youtube.py#L381-L390">youtube.py</a> for list of supported content language codes</li> <li><code>skip</code>: One or more of <code>hls</code>, <code>dash</code> or <code>translated_subs</code> to skip extraction of the m3u8 manifests, dash manifests and <a href="https://github.com/yt-dlp/yt-dlp/issues/4090#issuecomment-1158102032" data-hovercard-type="issue" data-hovercard-url="/yt-dlp/yt-dlp/issues/4090/hovercard">auto-translated subtitles</a> respectively</li> <li><code>player_client</code>: Clients to extract video data from. The currently available clients are <code>web</code>, <code>web_safari</code>, <code>web_embedded</code>, <code>web_music</code>, <code>web_creator</code>, <code>mweb</code>, <code>ios</code>, <code>android</code>, <code>android_vr</code>, <code>tv</code> and <code>tv_embedded</code>. By default, <code>tv,ios,web</code> is used, or <code>tv,web</code> is used when authenticating with cookies. The <code>web_music</code> client is added for <code>music.youtube.com</code> URLs when logged-in cookies are used. The <code>tv_embedded</code> and <code>web_creator</code> clients are added for age-restricted videos if account age-verification is required. Some clients, such as <code>web</code> and <code>web_music</code>, require a <code>po_token</code> for their formats to be downloadable. Some clients, such as <code>web_creator</code>, will only work with authentication. Not all clients support authentication via cookies. You can use <code>default</code> for the default clients, or you can use <code>all</code> for all clients (not recommended). You can prefix a client with <code>-</code> to exclude it, e.g. <code>youtube:player_client=default,-ios</code></li> <li><code>player_skip</code>: Skip some network requests that are generally needed for robust extraction. One or more of <code>configs</code> (skip client configs), <code>webpage</code> (skip initial webpage), <code>js</code> (skip js player). While these options can help reduce the number of requests needed or avoid some rate-limiting, they could cause some issues. See <a href="https://github.com/yt-dlp/yt-dlp/pull/860" data-hovercard-type="pull_request" data-hovercard-url="/yt-dlp/yt-dlp/pull/860/hovercard">#860</a> for more details</li> <li><code>player_params</code>: YouTube player parameters to use for player requests. Will overwrite any default ones set by yt-dlp.</li> <li><code>comment_sort</code>: <code>top</code> or <code>new</code> (default) - choose comment sorting mode (on YouTube's side)</li> <li><code>max_comments</code>: Limit the amount of comments to gather. Comma-separated list of integers representing <code>max-comments,max-parents,max-replies,max-replies-per-thread</code>. Default is <code>all,all,all,all</code> <ul dir="auto"> <li>E.g. <code>all,all,1000,10</code> will get a maximum of 1000 replies total, with up to 10 replies per thread. <code>1000,all,100</code> will get a maximum of 1000 comments, with a maximum of 100 replies total</li> </ul> </li> <li><code>formats</code>: Change the types of formats to return. <code>dashy</code> (convert HTTP to DASH), <code>duplicate</code> (identical content but different URLs or protocol; includes <code>dashy</code>), <code>incomplete</code> (cannot be downloaded completely - live dash and post-live m3u8), <code>missing_pot</code> (include formats that require a PO Token but are missing one)</li> <li><code>innertube_host</code>: Innertube API host to use for all API requests; e.g. <code>studio.youtube.com</code>, <code>youtubei.googleapis.com</code>. Note that cookies exported from one subdomain will not work on others</li> <li><code>innertube_key</code>: Innertube API key to use for all API requests. By default, no API key is used</li> <li><code>raise_incomplete_data</code>: <code>Incomplete Data Received</code> raises an error instead of reporting a warning</li> <li><code>data_sync_id</code>: Overrides the account Data Sync ID used in Innertube API requests. This may be needed if you are using an account with <code>youtube:player_skip=webpage,configs</code> or <code>youtubetab:skip=webpage</code></li> <li><code>visitor_data</code>: Overrides the Visitor Data used in Innertube API requests. This should be used with <code>player_skip=webpage,configs</code> and without cookies. Note: this may have adverse effects if used improperly. If a session from a browser is wanted, you should pass cookies instead (which contain the Visitor ID)</li> <li><code>po_token</code>: Proof of Origin (PO) Token(s) to use. Comma seperated list of PO Tokens in the format <code>CLIENT.CONTEXT+PO_TOKEN</code>, e.g. <code>youtube:po_token=web.gvs+XXX,web.player=XXX,web_safari.gvs+YYY</code>. Context can be either <code>gvs</code> (Google Video Server URLs) or <code>player</code> (Innertube player request)</li> <li><code>player_js_variant</code>: The player javascript variant to use for signature and nsig deciphering. The known variants are: <code>main</code>, <code>tce</code>, <code>tv</code>, <code>tv_es6</code>, <code>phone</code>, <code>tablet</code>. Only <code>main</code> is recommended as a possible workaround; the others are for debugging purposes. The default is to use what is prescribed by the site, and can be selected with <code>actual</code></li> </ul> <div class="markdown-heading" dir="auto"><h4 tabindex="-1" class="heading-element" dir="auto">youtubetab (YouTube playlists, channels, feeds, etc.)</h4><a id="user-content-youtubetab-youtube-playlists-channels-feeds-etc" class="anchor" aria-label="Permalink: youtubetab (YouTube playlists, channels, feeds, etc.)" href="#youtubetab-youtube-playlists-channels-feeds-etc"><svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path></svg></a></div> <ul dir="auto"> <li><code>skip</code>: One or more of <code>webpage</code> (skip initial webpage download), <code>authcheck</code> (allow the download of playlists requiring authentication when no initial webpage is downloaded. This may cause unwanted behavior, see <a href="https://github.com/yt-dlp/yt-dlp/pull/1122" data-hovercard-type="pull_request" data-hovercard-url="/yt-dlp/yt-dlp/pull/1122/hovercard">#1122</a> for more details)</li> <li><code>approximate_date</code>: Extract approximate <code>upload_date</code> and <code>timestamp</code> in flat-playlist. This may cause date-based filters to be slightly off</li> </ul> <div class="markdown-heading" dir="auto"><h4 tabindex="-1" class="heading-element" dir="auto">generic</h4><a id="user-content-generic" class="anchor" aria-label="Permalink: generic" href="#generic"><svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path></svg></a></div> <ul dir="auto"> <li><code>fragment_query</code>: Passthrough any query in mpd/m3u8 manifest URLs to their fragments if no value is provided, or else apply the query string given as <code>fragment_query=VALUE</code>. Note that if the stream has an HLS AES-128 key, then the query parameters will be passed to the key URI as well, unless the <code>key_query</code> extractor-arg is passed, or unless an external key URI is provided via the <code>hls_key</code> extractor-arg. Does not apply to ffmpeg</li> <li><code>variant_query</code>: Passthrough the master m3u8 URL query to its variant playlist URLs if no value is provided, or else apply the query string given as <code>variant_query=VALUE</code></li> <li><code>key_query</code>: Passthrough the master m3u8 URL query to its HLS AES-128 decryption key URI if no value is provided, or else apply the query string given as <code>key_query=VALUE</code>. Note that this will have no effect if the key URI is provided via the <code>hls_key</code> extractor-arg. Does not apply to ffmpeg</li> <li><code>hls_key</code>: An HLS AES-128 key URI <em>or</em> key (as hex), and optionally the IV (as hex), in the form of <code>(URI|KEY)[,IV]</code>; e.g. <code>generic:hls_key=ABCDEF1234567980,0xFEDCBA0987654321</code>. Passing any of these values will force usage of the native HLS downloader and override the corresponding values found in the m3u8 playlist</li> <li><code>is_live</code>: Bypass live HLS detection and manually set <code>live_status</code> - a value of <code>false</code> will set <code>not_live</code>, any other value (or no value) will set <code>is_live</code></li> <li><code>impersonate</code>: Target(s) to try and impersonate with the initial webpage request; e.g. <code>generic:impersonate=safari,chrome-110</code>. Use <code>generic:impersonate</code> to impersonate any available target, and use <code>generic:impersonate=false</code> to disable impersonation (default)</li> </ul> <div class="markdown-heading" dir="auto"><h4 tabindex="-1" class="heading-element" dir="auto">vikichannel</h4><a id="user-content-vikichannel" class="anchor" aria-label="Permalink: vikichannel" href="#vikichannel"><svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path></svg></a></div> <ul dir="auto"> <li><code>video_types</code>: Types of videos to download - one or more of <code>episodes</code>, <code>movies</code>, <code>clips</code>, <code>trailers</code></li> </ul> <div class="markdown-heading" dir="auto"><h4 tabindex="-1" class="heading-element" dir="auto">niconico</h4><a id="user-content-niconico" class="anchor" aria-label="Permalink: niconico" href="#niconico"><svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path></svg></a></div> <ul dir="auto"> <li><code>segment_duration</code>: Segment duration in milliseconds for HLS-DMC formats. Use it at your own risk since this feature <strong>may result in your account termination.</strong></li> </ul> <div class="markdown-heading" dir="auto"><h4 tabindex="-1" class="heading-element" dir="auto">youtubewebarchive</h4><a id="user-content-youtubewebarchive" class="anchor" aria-label="Permalink: youtubewebarchive" href="#youtubewebarchive"><svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path></svg></a></div> <ul dir="auto"> <li><code>check_all</code>: Try to check more at the cost of more requests. One or more of <code>thumbnails</code>, <code>captures</code></li> </ul> <div class="markdown-heading" dir="auto"><h4 tabindex="-1" class="heading-element" dir="auto">gamejolt</h4><a id="user-content-gamejolt" class="anchor" aria-label="Permalink: gamejolt" href="#gamejolt"><svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path></svg></a></div> <ul dir="auto"> <li><code>comment_sort</code>: <code>hot</code> (default), <code>you</code> (cookies needed), <code>top</code>, <code>new</code> - choose comment sorting mode (on GameJolt's side)</li> </ul> <div class="markdown-heading" dir="auto"><h4 tabindex="-1" class="heading-element" dir="auto">hotstar</h4><a id="user-content-hotstar" class="anchor" aria-label="Permalink: hotstar" href="#hotstar"><svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path></svg></a></div> <ul dir="auto"> <li><code>res</code>: resolution to ignore - one or more of <code>sd</code>, <code>hd</code>, <code>fhd</code></li> <li><code>vcodec</code>: vcodec to ignore - one or more of <code>h264</code>, <code>h265</code>, <code>dvh265</code></li> <li><code>dr</code>: dynamic range to ignore - one or more of <code>sdr</code>, <code>hdr10</code>, <code>dv</code></li> </ul> <div class="markdown-heading" dir="auto"><h4 tabindex="-1" class="heading-element" dir="auto">instagram</h4><a id="user-content-instagram" class="anchor" aria-label="Permalink: instagram" href="#instagram"><svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path></svg></a></div> <ul dir="auto"> <li><code>app_id</code>: The value of the <code>X-IG-App-ID</code> header used for API requests. Default is the web app ID, <code>936619743392459</code></li> </ul> <div class="markdown-heading" dir="auto"><h4 tabindex="-1" class="heading-element" dir="auto">niconicochannelplus</h4><a id="user-content-niconicochannelplus" class="anchor" aria-label="Permalink: niconicochannelplus" href="#niconicochannelplus"><svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path></svg></a></div> <ul dir="auto"> <li><code>max_comments</code>: Maximum number of comments to extract - default is <code>120</code></li> </ul> <div class="markdown-heading" dir="auto"><h4 tabindex="-1" class="heading-element" dir="auto">tiktok</h4><a id="user-content-tiktok" class="anchor" aria-label="Permalink: tiktok" href="#tiktok"><svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path></svg></a></div> <ul dir="auto"> <li><code>api_hostname</code>: Hostname to use for mobile API calls, e.g. <code>api22-normal-c-alisg.tiktokv.com</code></li> <li><code>app_name</code>: Default app name to use with mobile API calls, e.g. <code>trill</code></li> <li><code>app_version</code>: Default app version to use with mobile API calls - should be set along with <code>manifest_app_version</code>, e.g. <code>34.1.2</code></li> <li><code>manifest_app_version</code>: Default numeric app version to use with mobile API calls, e.g. <code>2023401020</code></li> <li><code>aid</code>: Default app ID to use with mobile API calls, e.g. <code>1180</code></li> <li><code>app_info</code>: Enable mobile API extraction with one or more app info strings in the format of <code><iid>/[app_name]/[app_version]/[manifest_app_version]/[aid]</code>, where <code>iid</code> is the unique app install ID. <code>iid</code> is the only required value; all other values and their <code>/</code> separators can be omitted, e.g. <code>tiktok:app_info=1234567890123456789</code> or <code>tiktok:app_info=123,456/trill///1180,789//34.0.1/340001</code></li> <li><code>device_id</code>: Enable mobile API extraction with a genuine device ID to be used with mobile API calls. Default is a random 19-digit string</li> </ul> <div class="markdown-heading" dir="auto"><h4 tabindex="-1" class="heading-element" dir="auto">rokfinchannel</h4><a id="user-content-rokfinchannel" class="anchor" aria-label="Permalink: rokfinchannel" href="#rokfinchannel"><svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path></svg></a></div> <ul dir="auto"> <li><code>tab</code>: Which tab to download - one of <code>new</code>, <code>top</code>, <code>videos</code>, <code>podcasts</code>, <code>streams</code>, <code>stacks</code></li> </ul> <div class="markdown-heading" dir="auto"><h4 tabindex="-1" class="heading-element" dir="auto">twitter</h4><a id="user-content-twitter" class="anchor" aria-label="Permalink: twitter" href="#twitter"><svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path></svg></a></div> <ul dir="auto"> <li><code>api</code>: Select one of <code>graphql</code> (default), <code>legacy</code> or <code>syndication</code> as the API for tweet extraction. Has no effect if logged in</li> </ul> <div class="markdown-heading" dir="auto"><h4 tabindex="-1" class="heading-element" dir="auto">stacommu, wrestleuniverse</h4><a id="user-content-stacommu-wrestleuniverse" class="anchor" aria-label="Permalink: stacommu, wrestleuniverse" href="#stacommu-wrestleuniverse"><svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path></svg></a></div> <ul dir="auto"> <li><code>device_id</code>: UUID value assigned by the website and used to enforce device limits for paid livestream content. Can be found in browser local storage</li> </ul> <div class="markdown-heading" dir="auto"><h4 tabindex="-1" class="heading-element" dir="auto">twitch</h4><a id="user-content-twitch" class="anchor" aria-label="Permalink: twitch" href="#twitch"><svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path></svg></a></div> <ul dir="auto"> <li><code>client_id</code>: Client ID value to be sent with GraphQL requests, e.g. <code>twitch:client_id=kimne78kx3ncx6brgo4mv6wki5h1ko</code></li> </ul> <div class="markdown-heading" dir="auto"><h4 tabindex="-1" class="heading-element" dir="auto">nhkradirulive (NHK らじる★らじる LIVE)</h4><a id="user-content-nhkradirulive-nhk-らじるらじる-live" class="anchor" aria-label="Permalink: nhkradirulive (NHK らじる★らじる LIVE)" href="#nhkradirulive-nhk-らじるらじる-live"><svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path></svg></a></div> <ul dir="auto"> <li><code>area</code>: Which regional variation to extract. Valid areas are: <code>sapporo</code>, <code>sendai</code>, <code>tokyo</code>, <code>nagoya</code>, <code>osaka</code>, <code>hiroshima</code>, <code>matsuyama</code>, <code>fukuoka</code>. Defaults to <code>tokyo</code></li> </ul> <div class="markdown-heading" dir="auto"><h4 tabindex="-1" class="heading-element" dir="auto">nflplusreplay</h4><a id="user-content-nflplusreplay" class="anchor" aria-label="Permalink: nflplusreplay" href="#nflplusreplay"><svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path></svg></a></div> <ul dir="auto"> <li><code>type</code>: Type(s) of game replays to extract. Valid types are: <code>full_game</code>, <code>full_game_spanish</code>, <code>condensed_game</code> and <code>all_22</code>. You can use <code>all</code> to extract all available replay types, which is the default</li> </ul> <div class="markdown-heading" dir="auto"><h4 tabindex="-1" class="heading-element" dir="auto">jiocinema</h4><a id="user-content-jiocinema" class="anchor" aria-label="Permalink: jiocinema" href="#jiocinema"><svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path></svg></a></div> <ul dir="auto"> <li><code>refresh_token</code>: The <code>refreshToken</code> UUID from browser local storage can be passed to extend the life of your login session when logging in with <code>token</code> as username and the <code>accessToken</code> from browser local storage as password</li> </ul> <div class="markdown-heading" dir="auto"><h4 tabindex="-1" class="heading-element" dir="auto">jiosaavn</h4><a id="user-content-jiosaavn" class="anchor" aria-label="Permalink: jiosaavn" href="#jiosaavn"><svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path></svg></a></div> <ul dir="auto"> <li><code>bitrate</code>: Audio bitrates to request. One or more of <code>16</code>, <code>32</code>, <code>64</code>, <code>128</code>, <code>320</code>. Default is <code>128,320</code></li> </ul> <div class="markdown-heading" dir="auto"><h4 tabindex="-1" class="heading-element" dir="auto">afreecatvlive</h4><a id="user-content-afreecatvlive" class="anchor" aria-label="Permalink: afreecatvlive" href="#afreecatvlive"><svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path></svg></a></div> <ul dir="auto"> <li><code>cdn</code>: One or more CDN IDs to use with the API call for stream URLs, e.g. <code>gcp_cdn</code>, <code>gs_cdn_pc_app</code>, <code>gs_cdn_mobile_web</code>, <code>gs_cdn_pc_web</code></li> </ul> <div class="markdown-heading" dir="auto"><h4 tabindex="-1" class="heading-element" dir="auto">soundcloud</h4><a id="user-content-soundcloud" class="anchor" aria-label="Permalink: soundcloud" href="#soundcloud"><svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path></svg></a></div> <ul dir="auto"> <li><code>formats</code>: Formats to request from the API. Requested values should be in the format of <code>{protocol}_{codec}</code>, e.g. <code>hls_opus,http_aac</code>. The <code>*</code> character functions as a wildcard, e.g. <code>*_mp3</code>, and can be passed by itself to request all formats. Known protocols include <code>http</code>, <code>hls</code> and <code>hls-aes</code>; known codecs include <code>aac</code>, <code>opus</code> and <code>mp3</code>. Original <code>download</code> formats are always extracted. Default is <code>http_aac,hls_aac,http_opus,hls_opus,http_mp3,hls_mp3</code></li> </ul> <div class="markdown-heading" dir="auto"><h4 tabindex="-1" class="heading-element" dir="auto">orfon (orf:on)</h4><a id="user-content-orfon-orfon" class="anchor" aria-label="Permalink: orfon (orf:on)" href="#orfon-orfon"><svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path></svg></a></div> <ul dir="auto"> <li><code>prefer_segments_playlist</code>: Prefer a playlist of program segments instead of a single complete video when available. If individual segments are desired, use <code>--concat-playlist never --extractor-args "orfon:prefer_segments_playlist"</code></li> </ul> <div class="markdown-heading" dir="auto"><h4 tabindex="-1" class="heading-element" dir="auto">bilibili</h4><a id="user-content-bilibili" class="anchor" aria-label="Permalink: bilibili" href="#bilibili"><svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path></svg></a></div> <ul dir="auto"> <li><code>prefer_multi_flv</code>: Prefer extracting flv formats over mp4 for older videos that still provide legacy formats</li> </ul> <div class="markdown-heading" dir="auto"><h4 tabindex="-1" class="heading-element" dir="auto">sonylivseries</h4><a id="user-content-sonylivseries" class="anchor" aria-label="Permalink: sonylivseries" href="#sonylivseries"><svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path></svg></a></div> <ul dir="auto"> <li><code>sort_order</code>: Episode sort order for series extraction - one of <code>asc</code> (ascending, oldest first) or <code>desc</code> (descending, newest first). Default is <code>asc</code></li> </ul> <div class="markdown-heading" dir="auto"><h4 tabindex="-1" class="heading-element" dir="auto">tver</h4><a id="user-content-tver" class="anchor" aria-label="Permalink: tver" href="#tver"><svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path></svg></a></div> <ul dir="auto"> <li><code>backend</code>: Backend API to use for extraction - one of <code>streaks</code> (default) or <code>brightcove</code> (deprecated)</li> </ul> <p dir="auto"><strong>Note</strong>: These options may be changed/removed in the future without concern for backward compatibility</p> <div class="markdown-heading" dir="auto"><h1 tabindex="-1" class="heading-element" dir="auto">PLUGINS</h1><a id="user-content-plugins" class="anchor" aria-label="Permalink: PLUGINS" href="#plugins"><svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path></svg></a></div> <p dir="auto">Note that <strong>all</strong> plugins are imported even if not invoked, and that <strong>there are no checks</strong> performed on plugin code. <strong>Use plugins at your own risk and only if you trust the code!</strong></p> <p dir="auto">Plugins can be of <code><type></code>s <code>extractor</code> or <code>postprocessor</code>.</p> <ul dir="auto"> <li>Extractor plugins do not need to be enabled from the CLI and are automatically invoked when the input URL is suitable for it.</li> <li>Extractor plugins take priority over built-in extractors.</li> <li>Postprocessor plugins can be invoked using <code>--use-postprocessor NAME</code>.</li> </ul> <p dir="auto">Plugins are loaded from the namespace packages <code>yt_dlp_plugins.extractor</code> and <code>yt_dlp_plugins.postprocessor</code>.</p> <p dir="auto">In other words, the file structure on the disk looks something like:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" yt_dlp_plugins/ extractor/ myplugin.py postprocessor/ myplugin.py"><pre class="notranslate"><code> yt_dlp_plugins/ extractor/ myplugin.py postprocessor/ myplugin.py </code></pre></div> <p dir="auto">yt-dlp looks for these <code>yt_dlp_plugins</code> namespace folders in many locations (see below) and loads in plugins from <strong>all</strong> of them. Set the environment variable <code>YTDLP_NO_PLUGINS</code> to something nonempty to disable loading plugins entirely.</p> <p dir="auto">See the <a href="https://github.com/yt-dlp/yt-dlp/wiki/Plugins">wiki for some known plugins</a></p> <div class="markdown-heading" dir="auto"><h2 tabindex="-1" class="heading-element" dir="auto">Installing Plugins</h2><a id="user-content-installing-plugins" class="anchor" aria-label="Permalink: Installing Plugins" href="#installing-plugins"><svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path></svg></a></div> <p dir="auto">Plugins can be installed using various methods and locations.</p> <ol dir="auto"> <li> <p dir="auto"><strong>Configuration directories</strong>: Plugin packages (containing a <code>yt_dlp_plugins</code> namespace folder) can be dropped into the following standard <a href="#configuration">configuration locations</a>:</p> <ul dir="auto"> <li><strong>User Plugins</strong> <ul dir="auto"> <li><code>${XDG_CONFIG_HOME}/yt-dlp/plugins/<package name>/yt_dlp_plugins/</code> (recommended on Linux/macOS)</li> <li><code>${XDG_CONFIG_HOME}/yt-dlp-plugins/<package name>/yt_dlp_plugins/</code></li> <li><code>${APPDATA}/yt-dlp/plugins/<package name>/yt_dlp_plugins/</code> (recommended on Windows)</li> <li><code>${APPDATA}/yt-dlp-plugins/<package name>/yt_dlp_plugins/</code></li> <li><code>~/.yt-dlp/plugins/<package name>/yt_dlp_plugins/</code></li> <li><code>~/yt-dlp-plugins/<package name>/yt_dlp_plugins/</code></li> </ul> </li> <li><strong>System Plugins</strong> <ul dir="auto"> <li><code>/etc/yt-dlp/plugins/<package name>/yt_dlp_plugins/</code></li> <li><code>/etc/yt-dlp-plugins/<package name>/yt_dlp_plugins/</code></li> </ul> </li> </ul> </li> <li> <p dir="auto"><strong>Executable location</strong>: Plugin packages can similarly be installed in a <code>yt-dlp-plugins</code> directory under the executable location (recommended for portable installations):</p> <ul dir="auto"> <li>Binary: where <code><root-dir>/yt-dlp.exe</code>, <code><root-dir>/yt-dlp-plugins/<package name>/yt_dlp_plugins/</code></li> <li>Source: where <code><root-dir>/yt_dlp/__main__.py</code>, <code><root-dir>/yt-dlp-plugins/<package name>/yt_dlp_plugins/</code></li> </ul> </li> <li> <p dir="auto"><strong>pip and other locations in <code>PYTHONPATH</code></strong></p> <ul dir="auto"> <li>Plugin packages can be installed and managed using <code>pip</code>. See <a href="https://github.com/yt-dlp/yt-dlp-sample-plugins">yt-dlp-sample-plugins</a> for an example. <ul dir="auto"> <li>Note: plugin files between plugin packages installed with pip must have unique filenames.</li> </ul> </li> <li>Any path in <code>PYTHONPATH</code> is searched in for the <code>yt_dlp_plugins</code> namespace folder. <ul dir="auto"> <li>Note: This does not apply for Pyinstaller builds.</li> </ul> </li> </ul> </li> </ol> <p dir="auto"><code>.zip</code>, <code>.egg</code> and <code>.whl</code> archives containing a <code>yt_dlp_plugins</code> namespace folder in their root are also supported as plugin packages.</p> <ul dir="auto"> <li>e.g. <code>${XDG_CONFIG_HOME}/yt-dlp/plugins/mypluginpkg.zip</code> where <code>mypluginpkg.zip</code> contains <code>yt_dlp_plugins/<type>/myplugin.py</code></li> </ul> <p dir="auto">Run yt-dlp with <code>--verbose</code> to check if the plugin has been loaded.</p> <div class="markdown-heading" dir="auto"><h2 tabindex="-1" class="heading-element" dir="auto">Developing Plugins</h2><a id="user-content-developing-plugins" class="anchor" aria-label="Permalink: Developing Plugins" href="#developing-plugins"><svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path></svg></a></div> <p dir="auto">See the <a href="https://github.com/yt-dlp/yt-dlp-sample-plugins">yt-dlp-sample-plugins</a> repo for a template plugin package and the <a href="https://github.com/yt-dlp/yt-dlp/wiki/Plugin-Development">Plugin Development</a> section of the wiki for a plugin development guide.</p> <p dir="auto">All public classes with a name ending in <code>IE</code>/<code>PP</code> are imported from each file for extractors and postprocessors respectively. This respects underscore prefix (e.g. <code>_MyBasePluginIE</code> is private) and <code>__all__</code>. Modules can similarly be excluded by prefixing the module name with an underscore (e.g. <code>_myplugin.py</code>).</p> <p dir="auto">To replace an existing extractor with a subclass of one, set the <code>plugin_name</code> class keyword argument (e.g. <code>class MyPluginIE(ABuiltInIE, plugin_name='myplugin')</code> will replace <code>ABuiltInIE</code> with <code>MyPluginIE</code>). Since the extractor replaces the parent, you should exclude the subclass extractor from being imported separately by making it private using one of the methods described above.</p> <p dir="auto">If you are a plugin author, add <a href="https://github.com/topics/yt-dlp-plugins">yt-dlp-plugins</a> as a topic to your repository for discoverability.</p> <p dir="auto">See the <a href="https://github.com/yt-dlp/yt-dlp/blob/master/CONTRIBUTING.md#developer-instructions">Developer Instructions</a> on how to write and test an extractor.</p> <div class="markdown-heading" dir="auto"><h1 tabindex="-1" class="heading-element" dir="auto">EMBEDDING YT-DLP</h1><a id="user-content-embedding-yt-dlp" class="anchor" aria-label="Permalink: EMBEDDING YT-DLP" href="#embedding-yt-dlp"><svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path></svg></a></div> <p dir="auto">yt-dlp makes the best effort to be a good command-line program, and thus should be callable from any programming language.</p> <p dir="auto">Your program should avoid parsing the normal stdout since they may change in future versions. Instead, they should use options such as <code>-J</code>, <code>--print</code>, <code>--progress-template</code>, <code>--exec</code> etc to create console output that you can reliably reproduce and parse.</p> <p dir="auto">From a Python program, you can embed yt-dlp in a more powerful fashion, like this:</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="from yt_dlp import YoutubeDL URLS = ['https://www.youtube.com/watch?v=BaW_jenozKc'] with YoutubeDL() as ydl: ydl.download(URLS)"><pre><span class="pl-k">from</span> <span class="pl-s1">yt_dlp</span> <span class="pl-k">import</span> <span class="pl-v">YoutubeDL</span> <span class="pl-c1">URLS</span> <span class="pl-c1">=</span> [<span class="pl-s">'https://www.youtube.com/watch?v=BaW_jenozKc'</span>] <span class="pl-k">with</span> <span class="pl-en">YoutubeDL</span>() <span class="pl-k">as</span> <span class="pl-s1">ydl</span>: <span class="pl-s1">ydl</span>.<span class="pl-c1">download</span>(<span class="pl-c1">URLS</span>)</pre></div> <p dir="auto">Most likely, you'll want to use various options. For a list of options available, have a look at <a href="/yt-dlp/yt-dlp/blob/master/yt_dlp/YoutubeDL.py#L183"><code>yt_dlp/YoutubeDL.py</code></a> or <code>help(yt_dlp.YoutubeDL)</code> in a Python shell. If you are already familiar with the CLI, you can use <a href="https://github.com/yt-dlp/yt-dlp/blob/master/devscripts/cli_to_api.py"><code>devscripts/cli_to_api.py</code></a> to translate any CLI switches to <code>YoutubeDL</code> params.</p> <p dir="auto"><strong>Tip</strong>: If you are porting your code from youtube-dl to yt-dlp, one important point to look out for is that we do not guarantee the return value of <code>YoutubeDL.extract_info</code> to be json serializable, or even be a dictionary. It will be dictionary-like, but if you want to ensure it is a serializable dictionary, pass it through <code>YoutubeDL.sanitize_info</code> as shown in the <a href="#extracting-information">example below</a></p> <div class="markdown-heading" dir="auto"><h2 tabindex="-1" class="heading-element" dir="auto">Embedding examples</h2><a id="user-content-embedding-examples" class="anchor" aria-label="Permalink: Embedding examples" href="#embedding-examples"><svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path></svg></a></div> <div class="markdown-heading" dir="auto"><h4 tabindex="-1" class="heading-element" dir="auto">Extracting information</h4><a id="user-content-extracting-information" class="anchor" aria-label="Permalink: Extracting information" href="#extracting-information"><svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path></svg></a></div> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import json import yt_dlp URL = 'https://www.youtube.com/watch?v=BaW_jenozKc' # ℹ️ See help(yt_dlp.YoutubeDL) for a list of available options and public functions ydl_opts = {} with yt_dlp.YoutubeDL(ydl_opts) as ydl: info = ydl.extract_info(URL, download=False) # ℹ️ ydl.sanitize_info makes the info json-serializable print(json.dumps(ydl.sanitize_info(info)))"><pre><span class="pl-k">import</span> <span class="pl-s1">json</span> <span class="pl-k">import</span> <span class="pl-s1">yt_dlp</span> <span class="pl-c1">URL</span> <span class="pl-c1">=</span> <span class="pl-s">'https://www.youtube.com/watch?v=BaW_jenozKc'</span> <span class="pl-c"># ℹ️ See help(yt_dlp.YoutubeDL) for a list of available options and public functions</span> <span class="pl-s1">ydl_opts</span> <span class="pl-c1">=</span> {} <span class="pl-k">with</span> <span class="pl-s1">yt_dlp</span>.<span class="pl-c1">YoutubeDL</span>(<span class="pl-s1">ydl_opts</span>) <span class="pl-k">as</span> <span class="pl-s1">ydl</span>: <span class="pl-s1">info</span> <span class="pl-c1">=</span> <span class="pl-s1">ydl</span>.<span class="pl-c1">extract_info</span>(<span class="pl-c1">URL</span>, <span class="pl-s1">download</span><span class="pl-c1">=</span><span class="pl-c1">False</span>) <span class="pl-c"># ℹ️ ydl.sanitize_info makes the info json-serializable</span> <span class="pl-en">print</span>(<span class="pl-s1">json</span>.<span class="pl-c1">dumps</span>(<span class="pl-s1">ydl</span>.<span class="pl-c1">sanitize_info</span>(<span class="pl-s1">info</span>)))</pre></div> <div class="markdown-heading" dir="auto"><h4 tabindex="-1" class="heading-element" dir="auto">Download using an info-json</h4><a id="user-content-download-using-an-info-json" class="anchor" aria-label="Permalink: Download using an info-json" href="#download-using-an-info-json"><svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path></svg></a></div> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import yt_dlp INFO_FILE = 'path/to/video.info.json' with yt_dlp.YoutubeDL() as ydl: error_code = ydl.download_with_info_file(INFO_FILE) print('Some videos failed to download' if error_code else 'All videos successfully downloaded')"><pre><span class="pl-k">import</span> <span class="pl-s1">yt_dlp</span> <span class="pl-c1">INFO_FILE</span> <span class="pl-c1">=</span> <span class="pl-s">'path/to/video.info.json'</span> <span class="pl-k">with</span> <span class="pl-s1">yt_dlp</span>.<span class="pl-c1">YoutubeDL</span>() <span class="pl-k">as</span> <span class="pl-s1">ydl</span>: <span class="pl-s1">error_code</span> <span class="pl-c1">=</span> <span class="pl-s1">ydl</span>.<span class="pl-c1">download_with_info_file</span>(<span class="pl-c1">INFO_FILE</span>) <span class="pl-en">print</span>(<span class="pl-s">'Some videos failed to download'</span> <span class="pl-k">if</span> <span class="pl-s1">error_code</span> <span class="pl-k">else</span> <span class="pl-s">'All videos successfully downloaded'</span>)</pre></div> <div class="markdown-heading" dir="auto"><h4 tabindex="-1" class="heading-element" dir="auto">Extract audio</h4><a id="user-content-extract-audio" class="anchor" aria-label="Permalink: Extract audio" href="#extract-audio"><svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path></svg></a></div> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import yt_dlp URLS = ['https://www.youtube.com/watch?v=BaW_jenozKc'] ydl_opts = { 'format': 'm4a/bestaudio/best', # ℹ️ See help(yt_dlp.postprocessor) for a list of available Postprocessors and their arguments 'postprocessors': [{ # Extract audio using ffmpeg 'key': 'FFmpegExtractAudio', 'preferredcodec': 'm4a', }] } with yt_dlp.YoutubeDL(ydl_opts) as ydl: error_code = ydl.download(URLS)"><pre><span class="pl-k">import</span> <span class="pl-s1">yt_dlp</span> <span class="pl-c1">URLS</span> <span class="pl-c1">=</span> [<span class="pl-s">'https://www.youtube.com/watch?v=BaW_jenozKc'</span>] <span class="pl-s1">ydl_opts</span> <span class="pl-c1">=</span> { <span class="pl-s">'format'</span>: <span class="pl-s">'m4a/bestaudio/best'</span>, <span class="pl-c"># ℹ️ See help(yt_dlp.postprocessor) for a list of available Postprocessors and their arguments</span> <span class="pl-s">'postprocessors'</span>: [{ <span class="pl-c"># Extract audio using ffmpeg</span> <span class="pl-s">'key'</span>: <span class="pl-s">'FFmpegExtractAudio'</span>, <span class="pl-s">'preferredcodec'</span>: <span class="pl-s">'m4a'</span>, }] } <span class="pl-k">with</span> <span class="pl-s1">yt_dlp</span>.<span class="pl-c1">YoutubeDL</span>(<span class="pl-s1">ydl_opts</span>) <span class="pl-k">as</span> <span class="pl-s1">ydl</span>: <span class="pl-s1">error_code</span> <span class="pl-c1">=</span> <span class="pl-s1">ydl</span>.<span class="pl-c1">download</span>(<span class="pl-c1">URLS</span>)</pre></div> <div class="markdown-heading" dir="auto"><h4 tabindex="-1" class="heading-element" dir="auto">Filter videos</h4><a id="user-content-filter-videos" class="anchor" aria-label="Permalink: Filter videos" href="#filter-videos"><svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path></svg></a></div> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import yt_dlp URLS = ['https://www.youtube.com/watch?v=BaW_jenozKc'] def longer_than_a_minute(info, *, incomplete): """Download only videos longer than a minute (or with unknown duration)""" duration = info.get('duration') if duration and duration < 60: return 'The video is too short' ydl_opts = { 'match_filter': longer_than_a_minute, } with yt_dlp.YoutubeDL(ydl_opts) as ydl: error_code = ydl.download(URLS)"><pre><span class="pl-k">import</span> <span class="pl-s1">yt_dlp</span> <span class="pl-c1">URLS</span> <span class="pl-c1">=</span> [<span class="pl-s">'https://www.youtube.com/watch?v=BaW_jenozKc'</span>] <span class="pl-k">def</span> <span class="pl-en">longer_than_a_minute</span>(<span class="pl-s1">info</span>, <span class="pl-c1">*</span>, <span class="pl-s1">incomplete</span>): <span class="pl-s">"""Download only videos longer than a minute (or with unknown duration)"""</span> <span class="pl-s1">duration</span> <span class="pl-c1">=</span> <span class="pl-s1">info</span>.<span class="pl-c1">get</span>(<span class="pl-s">'duration'</span>) <span class="pl-k">if</span> <span class="pl-s1">duration</span> <span class="pl-c1">and</span> <span class="pl-s1">duration</span> <span class="pl-c1"><</span> <span class="pl-c1">60</span>: <span class="pl-k">return</span> <span class="pl-s">'The video is too short'</span> <span class="pl-s1">ydl_opts</span> <span class="pl-c1">=</span> { <span class="pl-s">'match_filter'</span>: <span class="pl-s1">longer_than_a_minute</span>, } <span class="pl-k">with</span> <span class="pl-s1">yt_dlp</span>.<span class="pl-c1">YoutubeDL</span>(<span class="pl-s1">ydl_opts</span>) <span class="pl-k">as</span> <span class="pl-s1">ydl</span>: <span class="pl-s1">error_code</span> <span class="pl-c1">=</span> <span class="pl-s1">ydl</span>.<span class="pl-c1">download</span>(<span class="pl-c1">URLS</span>)</pre></div> <div class="markdown-heading" dir="auto"><h4 tabindex="-1" class="heading-element" dir="auto">Adding logger and progress hook</h4><a id="user-content-adding-logger-and-progress-hook" class="anchor" aria-label="Permalink: Adding logger and progress hook" href="#adding-logger-and-progress-hook"><svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path></svg></a></div> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import yt_dlp URLS = ['https://www.youtube.com/watch?v=BaW_jenozKc'] class MyLogger: def debug(self, msg): # For compatibility with youtube-dl, both debug and info are passed into debug # You can distinguish them by the prefix '[debug] ' if msg.startswith('[debug] '): pass else: self.info(msg) def info(self, msg): pass def warning(self, msg): pass def error(self, msg): print(msg) # ℹ️ See "progress_hooks" in help(yt_dlp.YoutubeDL) def my_hook(d): if d['status'] == 'finished': print('Done downloading, now post-processing ...') ydl_opts = { 'logger': MyLogger(), 'progress_hooks': [my_hook], } with yt_dlp.YoutubeDL(ydl_opts) as ydl: ydl.download(URLS)"><pre><span class="pl-k">import</span> <span class="pl-s1">yt_dlp</span> <span class="pl-c1">URLS</span> <span class="pl-c1">=</span> [<span class="pl-s">'https://www.youtube.com/watch?v=BaW_jenozKc'</span>] <span class="pl-k">class</span> <span class="pl-v">MyLogger</span>: <span class="pl-k">def</span> <span class="pl-en">debug</span>(<span class="pl-s1">self</span>, <span class="pl-s1">msg</span>): <span class="pl-c"># For compatibility with youtube-dl, both debug and info are passed into debug</span> <span class="pl-c"># You can distinguish them by the prefix '[debug] '</span> <span class="pl-k">if</span> <span class="pl-s1">msg</span>.<span class="pl-c1">startswith</span>(<span class="pl-s">'[debug] '</span>): <span class="pl-k">pass</span> <span class="pl-k">else</span>: <span class="pl-s1">self</span>.<span class="pl-c1">info</span>(<span class="pl-s1">msg</span>) <span class="pl-k">def</span> <span class="pl-en">info</span>(<span class="pl-s1">self</span>, <span class="pl-s1">msg</span>): <span class="pl-k">pass</span> <span class="pl-k">def</span> <span class="pl-en">warning</span>(<span class="pl-s1">self</span>, <span class="pl-s1">msg</span>): <span class="pl-k">pass</span> <span class="pl-k">def</span> <span class="pl-en">error</span>(<span class="pl-s1">self</span>, <span class="pl-s1">msg</span>): <span class="pl-en">print</span>(<span class="pl-s1">msg</span>) <span class="pl-c"># ℹ️ See "progress_hooks" in help(yt_dlp.YoutubeDL)</span> <span class="pl-k">def</span> <span class="pl-en">my_hook</span>(<span class="pl-s1">d</span>): <span class="pl-k">if</span> <span class="pl-s1">d</span>[<span class="pl-s">'status'</span>] <span class="pl-c1">==</span> <span class="pl-s">'finished'</span>: <span class="pl-en">print</span>(<span class="pl-s">'Done downloading, now post-processing ...'</span>) <span class="pl-s1">ydl_opts</span> <span class="pl-c1">=</span> { <span class="pl-s">'logger'</span>: <span class="pl-en">MyLogger</span>(), <span class="pl-s">'progress_hooks'</span>: [<span class="pl-s1">my_hook</span>], } <span class="pl-k">with</span> <span class="pl-s1">yt_dlp</span>.<span class="pl-c1">YoutubeDL</span>(<span class="pl-s1">ydl_opts</span>) <span class="pl-k">as</span> <span class="pl-s1">ydl</span>: <span class="pl-s1">ydl</span>.<span class="pl-c1">download</span>(<span class="pl-c1">URLS</span>)</pre></div> <div class="markdown-heading" dir="auto"><h4 tabindex="-1" class="heading-element" dir="auto">Add a custom PostProcessor</h4><a id="user-content-add-a-custom-postprocessor" class="anchor" aria-label="Permalink: Add a custom PostProcessor" href="#add-a-custom-postprocessor"><svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path></svg></a></div> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import yt_dlp URLS = ['https://www.youtube.com/watch?v=BaW_jenozKc'] # ℹ️ See help(yt_dlp.postprocessor.PostProcessor) class MyCustomPP(yt_dlp.postprocessor.PostProcessor): def run(self, info): self.to_screen('Doing stuff') return [], info with yt_dlp.YoutubeDL() as ydl: # ℹ️ "when" can take any value in yt_dlp.utils.POSTPROCESS_WHEN ydl.add_post_processor(MyCustomPP(), when='pre_process') ydl.download(URLS)"><pre><span class="pl-k">import</span> <span class="pl-s1">yt_dlp</span> <span class="pl-c1">URLS</span> <span class="pl-c1">=</span> [<span class="pl-s">'https://www.youtube.com/watch?v=BaW_jenozKc'</span>] <span class="pl-c"># ℹ️ See help(yt_dlp.postprocessor.PostProcessor)</span> <span class="pl-k">class</span> <span class="pl-v">MyCustomPP</span>(<span class="pl-s1">yt_dlp</span>.<span class="pl-c1">postprocessor</span>.<span class="pl-c1">PostProcessor</span>): <span class="pl-k">def</span> <span class="pl-en">run</span>(<span class="pl-s1">self</span>, <span class="pl-s1">info</span>): <span class="pl-s1">self</span>.<span class="pl-c1">to_screen</span>(<span class="pl-s">'Doing stuff'</span>) <span class="pl-k">return</span> [], <span class="pl-s1">info</span> <span class="pl-k">with</span> <span class="pl-s1">yt_dlp</span>.<span class="pl-c1">YoutubeDL</span>() <span class="pl-k">as</span> <span class="pl-s1">ydl</span>: <span class="pl-c"># ℹ️ "when" can take any value in yt_dlp.utils.POSTPROCESS_WHEN</span> <span class="pl-s1">ydl</span>.<span class="pl-c1">add_post_processor</span>(<span class="pl-en">MyCustomPP</span>(), <span class="pl-s1">when</span><span class="pl-c1">=</span><span class="pl-s">'pre_process'</span>) <span class="pl-s1">ydl</span>.<span class="pl-c1">download</span>(<span class="pl-c1">URLS</span>)</pre></div> <div class="markdown-heading" dir="auto"><h4 tabindex="-1" class="heading-element" dir="auto">Use a custom format selector</h4><a id="user-content-use-a-custom-format-selector" class="anchor" aria-label="Permalink: Use a custom format selector" href="#use-a-custom-format-selector"><svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path></svg></a></div> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import yt_dlp URLS = ['https://www.youtube.com/watch?v=BaW_jenozKc'] def format_selector(ctx): """ Select the best video and the best audio that won't result in an mkv. NOTE: This is just an example and does not handle all cases """ # formats are already sorted worst to best formats = ctx.get('formats')[::-1] # acodec='none' means there is no audio best_video = next(f for f in formats if f['vcodec'] != 'none' and f['acodec'] == 'none') # find compatible audio extension audio_ext = {'mp4': 'm4a', 'webm': 'webm'}[best_video['ext']] # vcodec='none' means there is no video best_audio = next(f for f in formats if ( f['acodec'] != 'none' and f['vcodec'] == 'none' and f['ext'] == audio_ext)) # These are the minimum required fields for a merged format yield { 'format_id': f'{best_video["format_id"]}+{best_audio["format_id"]}', 'ext': best_video['ext'], 'requested_formats': [best_video, best_audio], # Must be + separated list of protocols 'protocol': f'{best_video["protocol"]}+{best_audio["protocol"]}' } ydl_opts = { 'format': format_selector, } with yt_dlp.YoutubeDL(ydl_opts) as ydl: ydl.download(URLS)"><pre><span class="pl-k">import</span> <span class="pl-s1">yt_dlp</span> <span class="pl-c1">URLS</span> <span class="pl-c1">=</span> [<span class="pl-s">'https://www.youtube.com/watch?v=BaW_jenozKc'</span>] <span class="pl-k">def</span> <span class="pl-en">format_selector</span>(<span class="pl-s1">ctx</span>): <span class="pl-s">""" Select the best video and the best audio that won't result in an mkv.</span> <span class="pl-s"> NOTE: This is just an example and does not handle all cases """</span> <span class="pl-c"># formats are already sorted worst to best</span> <span class="pl-s1">formats</span> <span class="pl-c1">=</span> <span class="pl-s1">ctx</span>.<span class="pl-c1">get</span>(<span class="pl-s">'formats'</span>)[::<span class="pl-c1">-</span><span class="pl-c1">1</span>] <span class="pl-c"># acodec='none' means there is no audio</span> <span class="pl-s1">best_video</span> <span class="pl-c1">=</span> <span class="pl-en">next</span>(<span class="pl-s1">f</span> <span class="pl-k">for</span> <span class="pl-s1">f</span> <span class="pl-c1">in</span> <span class="pl-s1">formats</span> <span class="pl-k">if</span> <span class="pl-s1">f</span>[<span class="pl-s">'vcodec'</span>] <span class="pl-c1">!=</span> <span class="pl-s">'none'</span> <span class="pl-c1">and</span> <span class="pl-s1">f</span>[<span class="pl-s">'acodec'</span>] <span class="pl-c1">==</span> <span class="pl-s">'none'</span>) <span class="pl-c"># find compatible audio extension</span> <span class="pl-s1">audio_ext</span> <span class="pl-c1">=</span> {<span class="pl-s">'mp4'</span>: <span class="pl-s">'m4a'</span>, <span class="pl-s">'webm'</span>: <span class="pl-s">'webm'</span>}[<span class="pl-s1">best_video</span>[<span class="pl-s">'ext'</span>]] <span class="pl-c"># vcodec='none' means there is no video</span> <span class="pl-s1">best_audio</span> <span class="pl-c1">=</span> <span class="pl-en">next</span>(<span class="pl-s1">f</span> <span class="pl-k">for</span> <span class="pl-s1">f</span> <span class="pl-c1">in</span> <span class="pl-s1">formats</span> <span class="pl-k">if</span> ( <span class="pl-s1">f</span>[<span class="pl-s">'acodec'</span>] <span class="pl-c1">!=</span> <span class="pl-s">'none'</span> <span class="pl-c1">and</span> <span class="pl-s1">f</span>[<span class="pl-s">'vcodec'</span>] <span class="pl-c1">==</span> <span class="pl-s">'none'</span> <span class="pl-c1">and</span> <span class="pl-s1">f</span>[<span class="pl-s">'ext'</span>] <span class="pl-c1">==</span> <span class="pl-s1">audio_ext</span>)) <span class="pl-c"># These are the minimum required fields for a merged format</span> <span class="pl-k">yield</span> { <span class="pl-s">'format_id'</span>: <span class="pl-s">f'<span class="pl-s1"><span class="pl-kos">{</span><span class="pl-s1">best_video</span>[<span class="pl-s">"format_id"</span>]<span class="pl-kos">}</span></span>+<span class="pl-s1"><span class="pl-kos">{</span><span class="pl-s1">best_audio</span>[<span class="pl-s">"format_id"</span>]<span class="pl-kos">}</span></span>'</span>, <span class="pl-s">'ext'</span>: <span class="pl-s1">best_video</span>[<span class="pl-s">'ext'</span>], <span class="pl-s">'requested_formats'</span>: [<span class="pl-s1">best_video</span>, <span class="pl-s1">best_audio</span>], <span class="pl-c"># Must be + separated list of protocols</span> <span class="pl-s">'protocol'</span>: <span class="pl-s">f'<span class="pl-s1"><span class="pl-kos">{</span><span class="pl-s1">best_video</span>[<span class="pl-s">"protocol"</span>]<span class="pl-kos">}</span></span>+<span class="pl-s1"><span class="pl-kos">{</span><span class="pl-s1">best_audio</span>[<span class="pl-s">"protocol"</span>]<span class="pl-kos">}</span></span>'</span> } <span class="pl-s1">ydl_opts</span> <span class="pl-c1">=</span> { <span class="pl-s">'format'</span>: <span class="pl-s1">format_selector</span>, } <span class="pl-k">with</span> <span class="pl-s1">yt_dlp</span>.<span class="pl-c1">YoutubeDL</span>(<span class="pl-s1">ydl_opts</span>) <span class="pl-k">as</span> <span class="pl-s1">ydl</span>: <span class="pl-s1">ydl</span>.<span class="pl-c1">download</span>(<span class="pl-c1">URLS</span>)</pre></div> <div class="markdown-heading" dir="auto"><h1 tabindex="-1" class="heading-element" dir="auto">CHANGES FROM YOUTUBE-DL</h1><a id="user-content-changes-from-youtube-dl" class="anchor" aria-label="Permalink: CHANGES FROM YOUTUBE-DL" href="#changes-from-youtube-dl"><svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path></svg></a></div> <div class="markdown-heading" dir="auto"><h3 tabindex="-1" class="heading-element" dir="auto">New features</h3><a id="user-content-new-features" class="anchor" aria-label="Permalink: New features" href="#new-features"><svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path></svg></a></div> <ul dir="auto"> <li> <p dir="auto">Forked from <a href="https://github.com/blackjack4494/yt-dlc/commit/f9401f2a91987068139c5f757b12fc711d4c0cee"><strong>yt-dlc@f9401f2</strong></a> and merged with <a href="https://github.com/ytdl-org/youtube-dl/commit/a08f2b7e4567cdc50c0614ee0a4ffdff49b8b6e6"><strong>youtube-dl@a08f2b7</strong></a> (<a href="https://github.com/yt-dlp/yt-dlp/issues/21" data-hovercard-type="issue" data-hovercard-url="/yt-dlp/yt-dlp/issues/21/hovercard">exceptions</a>)</p> </li> <li> <p dir="auto"><strong><a href="#sponsorblock-options">SponsorBlock Integration</a></strong>: You can mark/remove sponsor sections in YouTube videos by utilizing the <a href="https://sponsor.ajay.app" rel="nofollow">SponsorBlock</a> API</p> </li> <li> <p dir="auto"><strong><a href="#sorting-formats">Format Sorting</a></strong>: The default format sorting options have been changed so that higher resolution and better codecs will be now preferred instead of simply using larger bitrate. Furthermore, you can now specify the sort order using <code>-S</code>. This allows for much easier format selection than what is possible by simply using <code>--format</code> (<a href="#format-selection-examples">examples</a>)</p> </li> <li> <p dir="auto"><strong>Merged with animelover1984/youtube-dl</strong>: You get most of the features and improvements from <a href="https://github.com/animelover1984/youtube-dl">animelover1984/youtube-dl</a> including <code>--write-comments</code>, <code>BiliBiliSearch</code>, <code>BilibiliChannel</code>, Embedding thumbnail in mp4/ogg/opus, playlist infojson etc. Note that NicoNico livestreams are not available. See <a href="https://github.com/yt-dlp/yt-dlp/pull/31" data-hovercard-type="pull_request" data-hovercard-url="/yt-dlp/yt-dlp/pull/31/hovercard">#31</a> for details.</p> </li> <li> <p dir="auto"><strong>YouTube improvements</strong>:</p> <ul dir="auto"> <li>Supports Clips, Stories (<code>ytstories:<channel UCID></code>), Search (including filters)<strong>*</strong>, YouTube Music Search, Channel-specific search, Search prefixes (<code>ytsearch:</code>, <code>ytsearchdate:</code>)<strong>*</strong>, Mixes, and Feeds (<code>:ytfav</code>, <code>:ytwatchlater</code>, <code>:ytsubs</code>, <code>:ythistory</code>, <code>:ytrec</code>, <code>:ytnotif</code>)</li> <li>Fix for <a href="https://github.com/ytdl-org/youtube-dl/issues/29326" data-hovercard-type="issue" data-hovercard-url="/ytdl-org/youtube-dl/issues/29326/hovercard">n-sig based throttling</a> <strong>*</strong></li> <li>Download livestreams from the start using <code>--live-from-start</code> (<em>experimental</em>)</li> <li>Channel URLs download all uploads of the channel, including shorts and live</li> <li>Support for <a href="https://github.com/yt-dlp/yt-dlp/wiki/Extractors#logging-in-with-oauth">logging in with OAuth</a></li> </ul> </li> <li> <p dir="auto"><strong>Cookies from browser</strong>: Cookies can be automatically extracted from all major web browsers using <code>--cookies-from-browser BROWSER[+KEYRING][:PROFILE][::CONTAINER]</code></p> </li> <li> <p dir="auto"><strong>Download time range</strong>: Videos can be downloaded partially based on either timestamps or chapters using <code>--download-sections</code></p> </li> <li> <p dir="auto"><strong>Split video by chapters</strong>: Videos can be split into multiple files based on chapters using <code>--split-chapters</code></p> </li> <li> <p dir="auto"><strong>Multi-threaded fragment downloads</strong>: Download multiple fragments of m3u8/mpd videos in parallel. Use <code>--concurrent-fragments</code> (<code>-N</code>) option to set the number of threads used</p> </li> <li> <p dir="auto"><strong>Aria2c with HLS/DASH</strong>: You can use <code>aria2c</code> as the external downloader for DASH(mpd) and HLS(m3u8) formats</p> </li> <li> <p dir="auto"><strong>New and fixed extractors</strong>: Many new extractors have been added and a lot of existing ones have been fixed. See the <a href="/yt-dlp/yt-dlp/blob/master/Changelog.md">changelog</a> or the <a href="/yt-dlp/yt-dlp/blob/master/supportedsites.md">list of supported sites</a></p> </li> <li> <p dir="auto"><strong>New MSOs</strong>: Philo, Spectrum, SlingTV, Cablevision, RCN etc.</p> </li> <li> <p dir="auto"><strong>Subtitle extraction from manifests</strong>: Subtitles can be extracted from streaming media manifests. See <a href="https://github.com/yt-dlp/yt-dlp/commit/be6202f12b97858b9d716e608394b51065d0419f">commit/be6202f</a> for details</p> </li> <li> <p dir="auto"><strong>Multiple paths and output templates</strong>: You can give different <a href="#output-template">output templates</a> and download paths for different types of files. You can also set a temporary path where intermediary files are downloaded to using <code>--paths</code> (<code>-P</code>)</p> </li> <li> <p dir="auto"><strong>Portable Configuration</strong>: Configuration files are automatically loaded from the home and root directories. See <a href="#configuration">CONFIGURATION</a> for details</p> </li> <li> <p dir="auto"><strong>Output template improvements</strong>: Output templates can now have date-time formatting, numeric offsets, object traversal etc. See <a href="#output-template">output template</a> for details. Even more advanced operations can also be done with the help of <code>--parse-metadata</code> and <code>--replace-in-metadata</code></p> </li> <li> <p dir="auto"><strong>Other new options</strong>: Many new options have been added such as <code>--alias</code>, <code>--print</code>, <code>--concat-playlist</code>, <code>--wait-for-video</code>, <code>--retry-sleep</code>, <code>--sleep-requests</code>, <code>--convert-thumbnails</code>, <code>--force-download-archive</code>, <code>--force-overwrites</code>, <code>--break-match-filters</code> etc</p> </li> <li> <p dir="auto"><strong>Improvements</strong>: Regex and other operators in <code>--format</code>/<code>--match-filters</code>, multiple <code>--postprocessor-args</code> and <code>--downloader-args</code>, faster archive checking, more <a href="#format-selection">format selection options</a>, merge multi-video/audio, multiple <code>--config-locations</code>, <code>--exec</code> at different stages, etc</p> </li> <li> <p dir="auto"><strong>Plugins</strong>: Extractors and PostProcessors can be loaded from an external file. See <a href="#plugins">plugins</a> for details</p> </li> <li> <p dir="auto"><strong>Self updater</strong>: The releases can be updated using <code>yt-dlp -U</code>, and downgraded using <code>--update-to</code> if required</p> </li> <li> <p dir="auto"><strong>Automated builds</strong>: <a href="#update-channels">Nightly/master builds</a> can be used with <code>--update-to nightly</code> and <code>--update-to master</code></p> </li> </ul> <p dir="auto">See <a href="/yt-dlp/yt-dlp/blob/master/Changelog.md">changelog</a> or <a href="https://github.com/yt-dlp/yt-dlp/commits">commits</a> for the full list of changes</p> <p dir="auto">Features marked with a <strong>*</strong> have been back-ported to youtube-dl</p> <div class="markdown-heading" dir="auto"><h3 tabindex="-1" class="heading-element" dir="auto">Differences in default behavior</h3><a id="user-content-differences-in-default-behavior" class="anchor" aria-label="Permalink: Differences in default behavior" href="#differences-in-default-behavior"><svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path></svg></a></div> <p dir="auto">Some of yt-dlp's default options are different from that of youtube-dl and youtube-dlc:</p> <ul dir="auto"> <li>yt-dlp supports only <a href="##" title="Windows 8">Python 3.9+</a>, and will remove support for more versions as they <a href="https://devguide.python.org/versions/#python-release-cycle" rel="nofollow">become EOL</a>; while <a href="https://github.com/ytdl-org/youtube-dl/issues/30568#issue-1118238743" data-hovercard-type="issue" data-hovercard-url="/ytdl-org/youtube-dl/issues/30568/hovercard">youtube-dl still supports Python 2.6+ and 3.2+</a></li> <li>The options <code>--auto-number</code> (<code>-A</code>), <code>--title</code> (<code>-t</code>) and <code>--literal</code> (<code>-l</code>), no longer work. See <a href="#Removed">removed options</a> for details</li> <li><code>avconv</code> is not supported as an alternative to <code>ffmpeg</code></li> <li>yt-dlp stores config files in slightly different locations to youtube-dl. See <a href="#configuration">CONFIGURATION</a> for a list of correct locations</li> <li>The default <a href="#output-template">output template</a> is <code>%(title)s [%(id)s].%(ext)s</code>. There is no real reason for this change. This was changed before yt-dlp was ever made public and now there are no plans to change it back to <code>%(title)s-%(id)s.%(ext)s</code>. Instead, you may use <code>--compat-options filename</code></li> <li>The default <a href="#sorting-formats">format sorting</a> is different from youtube-dl and prefers higher resolution and better codecs rather than higher bitrates. You can use the <code>--format-sort</code> option to change this to any order you prefer, or use <code>--compat-options format-sort</code> to use youtube-dl's sorting order. Older versions of yt-dlp preferred VP9 due to its broader compatibility; you can use <code>--compat-options prefer-vp9-sort</code> to revert to that format sorting preference. These two compat options cannot be used together</li> <li>The default format selector is <code>bv*+ba/b</code>. This means that if a combined video + audio format that is better than the best video-only format is found, the former will be preferred. Use <code>-f bv+ba/b</code> or <code>--compat-options format-spec</code> to revert this</li> <li>Unlike youtube-dlc, yt-dlp does not allow merging multiple audio/video streams into one file by default (since this conflicts with the use of <code>-f bv*+ba</code>). If needed, this feature must be enabled using <code>--audio-multistreams</code> and <code>--video-multistreams</code>. You can also use <code>--compat-options multistreams</code> to enable both</li> <li><code>--no-abort-on-error</code> is enabled by default. Use <code>--abort-on-error</code> or <code>--compat-options abort-on-error</code> to abort on errors instead</li> <li>When writing metadata files such as thumbnails, description or infojson, the same information (if available) is also written for playlists. Use <code>--no-write-playlist-metafiles</code> or <code>--compat-options no-playlist-metafiles</code> to not write these files</li> <li><code>--add-metadata</code> attaches the <code>infojson</code> to <code>mkv</code> files in addition to writing the metadata when used with <code>--write-info-json</code>. Use <code>--no-embed-info-json</code> or <code>--compat-options no-attach-info-json</code> to revert this</li> <li>Some metadata are embedded into different fields when using <code>--add-metadata</code> as compared to youtube-dl. Most notably, <code>comment</code> field contains the <code>webpage_url</code> and <code>synopsis</code> contains the <code>description</code>. You can <a href="#modifying-metadata">use <code>--parse-metadata</code></a> to modify this to your liking or use <code>--compat-options embed-metadata</code> to revert this</li> <li><code>playlist_index</code> behaves differently when used with options like <code>--playlist-reverse</code> and <code>--playlist-items</code>. See <a href="https://github.com/yt-dlp/yt-dlp/issues/302" data-hovercard-type="pull_request" data-hovercard-url="/yt-dlp/yt-dlp/pull/302/hovercard">#302</a> for details. You can use <code>--compat-options playlist-index</code> if you want to keep the earlier behavior</li> <li>The output of <code>-F</code> is listed in a new format. Use <code>--compat-options list-formats</code> to revert this</li> <li>Live chats (if available) are considered as subtitles. Use <code>--sub-langs all,-live_chat</code> to download all subtitles except live chat. You can also use <code>--compat-options no-live-chat</code> to prevent any live chat/danmaku from downloading</li> <li>YouTube channel URLs download all uploads of the channel. To download only the videos in a specific tab, pass the tab's URL. If the channel does not show the requested tab, an error will be raised. Also, <code>/live</code> URLs raise an error if there are no live videos instead of silently downloading the entire channel. You may use <code>--compat-options no-youtube-channel-redirect</code> to revert all these redirections</li> <li>Unavailable videos are also listed for YouTube playlists. Use <code>--compat-options no-youtube-unavailable-videos</code> to remove this</li> <li>The upload dates extracted from YouTube are in UTC.</li> <li>If <code>ffmpeg</code> is used as the downloader, the downloading and merging of formats happen in a single step when possible. Use <code>--compat-options no-direct-merge</code> to revert this</li> <li>Thumbnail embedding in <code>mp4</code> is done with mutagen if possible. Use <code>--compat-options embed-thumbnail-atomicparsley</code> to force the use of AtomicParsley instead</li> <li>Some internal metadata such as filenames are removed by default from the infojson. Use <code>--no-clean-infojson</code> or <code>--compat-options no-clean-infojson</code> to revert this</li> <li>When <code>--embed-subs</code> and <code>--write-subs</code> are used together, the subtitles are written to disk and also embedded in the media file. You can use just <code>--embed-subs</code> to embed the subs and automatically delete the separate file. See <a href="https://github.com/yt-dlp/yt-dlp/issues/630#issuecomment-893659460" data-hovercard-type="issue" data-hovercard-url="/yt-dlp/yt-dlp/issues/630/hovercard">#630 (comment)</a> for more info. <code>--compat-options no-keep-subs</code> can be used to revert this</li> <li><code>certifi</code> will be used for SSL root certificates, if installed. If you want to use system certificates (e.g. self-signed), use <code>--compat-options no-certifi</code></li> <li>yt-dlp's sanitization of invalid characters in filenames is different/smarter than in youtube-dl. You can use <code>--compat-options filename-sanitization</code> to revert to youtube-dl's behavior</li> <li><del>yt-dlp tries to parse the external downloader outputs into the standard progress output if possible (Currently implemented: <a href="https://github.com/yt-dlp/yt-dlp/issues/5931" data-hovercard-type="issue" data-hovercard-url="/yt-dlp/yt-dlp/issues/5931/hovercard">aria2c</a>). You can use <code>--compat-options no-external-downloader-progress</code> to get the downloader output as-is</del></li> <li>yt-dlp versions between 2021.09.01 and 2023.01.02 applies <code>--match-filters</code> to nested playlists. This was an unintentional side-effect of <a href="https://github.com/yt-dlp/yt-dlp/commit/8f18aca8717bb0dd49054555af8d386e5eda3a88">8f18ac</a> and is fixed in <a href="https://github.com/yt-dlp/yt-dlp/commit/d7b460d0e5fc710950582baed2e3fc616ed98a80">d7b460</a>. Use <code>--compat-options playlist-match-filter</code> to revert this</li> <li>yt-dlp versions between 2021.11.10 and 2023.06.21 estimated <code>filesize_approx</code> values for fragmented/manifest formats. This was added for convenience in <a href="https://github.com/yt-dlp/yt-dlp/commit/f2fe69c7b0d208bdb1f6292b4ae92bc1e1a7444a">f2fe69</a>, but was reverted in <a href="https://github.com/yt-dlp/yt-dlp/commit/0dff8e4d1e6e9fb938f4256ea9af7d81f42fd54f">0dff8e</a> due to the potentially extreme inaccuracy of the estimated values. Use <code>--compat-options manifest-filesize-approx</code> to keep extracting the estimated values</li> <li>yt-dlp uses modern http client backends such as <code>requests</code>. Use <code>--compat-options prefer-legacy-http-handler</code> to prefer the legacy http handler (<code>urllib</code>) to be used for standard http requests.</li> <li>The sub-modules <code>swfinterp</code>, <code>casefold</code> are removed.</li> <li>Passing <code>--simulate</code> (or calling <code>extract_info</code> with <code>download=False</code>) no longer alters the default format selection. See <a href="https://github.com/yt-dlp/yt-dlp/issues/9843" data-hovercard-type="issue" data-hovercard-url="/yt-dlp/yt-dlp/issues/9843/hovercard">#9843</a> for details.</li> </ul> <p dir="auto">For ease of use, a few more compat options are available:</p> <ul dir="auto"> <li><code>--compat-options all</code>: Use all compat options (<strong>Do NOT use this!</strong>)</li> <li><code>--compat-options youtube-dl</code>: Same as <code>--compat-options all,-multistreams,-playlist-match-filter,-manifest-filesize-approx,-allow-unsafe-ext,-prefer-vp9-sort</code></li> <li><code>--compat-options youtube-dlc</code>: Same as <code>--compat-options all,-no-live-chat,-no-youtube-channel-redirect,-playlist-match-filter,-manifest-filesize-approx,-allow-unsafe-ext,-prefer-vp9-sort</code></li> <li><code>--compat-options 2021</code>: Same as <code>--compat-options 2022,no-certifi,filename-sanitization</code></li> <li><code>--compat-options 2022</code>: Same as <code>--compat-options 2023,playlist-match-filter,no-external-downloader-progress,prefer-legacy-http-handler,manifest-filesize-approx</code></li> <li><code>--compat-options 2023</code>: Same as <code>--compat-options 2024,prefer-vp9-sort</code></li> <li><code>--compat-options 2024</code>: Currently does nothing. Use this to enable all future compat options</li> </ul> <p dir="auto">The following compat options restore vulnerable behavior from before security patches:</p> <ul dir="auto"> <li> <p dir="auto"><code>--compat-options allow-unsafe-ext</code>: Allow files with any extension (including unsafe ones) to be downloaded (<a href="https://github.com/yt-dlp/yt-dlp/security/advisories/GHSA-79w7-vh3h-8g4j">GHSA-79w7-vh3h-8g4j</a>)</p> <blockquote> <p dir="auto"><g-emoji class="g-emoji" alias="warning">⚠️</g-emoji> Only use if a valid file download is rejected because its extension is detected as uncommon</p> <p dir="auto"><strong>This option can enable remote code execution! Consider <a href="https://github.com/yt-dlp/yt-dlp/issues/new/choose">opening an issue</a> instead!</strong></p> </blockquote> </li> </ul> <div class="markdown-heading" dir="auto"><h3 tabindex="-1" class="heading-element" dir="auto">Deprecated options</h3><a id="user-content-deprecated-options" class="anchor" aria-label="Permalink: Deprecated options" href="#deprecated-options"><svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path></svg></a></div> <p dir="auto">These are all the deprecated options and the current alternative to achieve the same effect</p> <div class="markdown-heading" dir="auto"><h4 tabindex="-1" class="heading-element" dir="auto">Almost redundant options</h4><a id="user-content-almost-redundant-options" class="anchor" aria-label="Permalink: Almost redundant options" href="#almost-redundant-options"><svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path></svg></a></div> <p dir="auto">While these options are almost the same as their new counterparts, there are some differences that prevents them being redundant</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="-j, --dump-json --print "%()j" -F, --list-formats --print formats_table --list-thumbnails --print thumbnails_table --print playlist:thumbnails_table --list-subs --print automatic_captions_table --print subtitles_table"><pre class="notranslate"><code>-j, --dump-json --print "%()j" -F, --list-formats --print formats_table --list-thumbnails --print thumbnails_table --print playlist:thumbnails_table --list-subs --print automatic_captions_table --print subtitles_table </code></pre></div> <div class="markdown-heading" dir="auto"><h4 tabindex="-1" class="heading-element" dir="auto">Redundant options</h4><a id="user-content-redundant-options" class="anchor" aria-label="Permalink: Redundant options" href="#redundant-options"><svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path></svg></a></div> <p dir="auto">While these options are redundant, they are still expected to be used due to their ease of use</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="--get-description --print description --get-duration --print duration_string --get-filename --print filename --get-format --print format --get-id --print id --get-thumbnail --print thumbnail -e, --get-title --print title -g, --get-url --print urls --match-title REGEX --match-filters "title ~= (?i)REGEX" --reject-title REGEX --match-filters "title !~= (?i)REGEX" --min-views COUNT --match-filters "view_count >=? COUNT" --max-views COUNT --match-filters "view_count <=? COUNT" --break-on-reject Use --break-match-filters --user-agent UA --add-headers "User-Agent:UA" --referer URL --add-headers "Referer:URL" --playlist-start NUMBER -I NUMBER: --playlist-end NUMBER -I :NUMBER --playlist-reverse -I ::-1 --no-playlist-reverse Default --no-colors --color no_color"><pre class="notranslate"><code>--get-description --print description --get-duration --print duration_string --get-filename --print filename --get-format --print format --get-id --print id --get-thumbnail --print thumbnail -e, --get-title --print title -g, --get-url --print urls --match-title REGEX --match-filters "title ~= (?i)REGEX" --reject-title REGEX --match-filters "title !~= (?i)REGEX" --min-views COUNT --match-filters "view_count >=? COUNT" --max-views COUNT --match-filters "view_count <=? COUNT" --break-on-reject Use --break-match-filters --user-agent UA --add-headers "User-Agent:UA" --referer URL --add-headers "Referer:URL" --playlist-start NUMBER -I NUMBER: --playlist-end NUMBER -I :NUMBER --playlist-reverse -I ::-1 --no-playlist-reverse Default --no-colors --color no_color </code></pre></div> <div class="markdown-heading" dir="auto"><h4 tabindex="-1" class="heading-element" dir="auto">Not recommended</h4><a id="user-content-not-recommended" class="anchor" aria-label="Permalink: Not recommended" href="#not-recommended"><svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path></svg></a></div> <p dir="auto">While these options still work, their use is not recommended since there are other alternatives to achieve the same</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="--force-generic-extractor --ies generic,default --exec-before-download CMD --exec "before_dl:CMD" --no-exec-before-download --no-exec --all-formats -f all --all-subs --sub-langs all --write-subs --print-json -j --no-simulate --autonumber-size NUMBER Use string formatting, e.g. %(autonumber)03d --autonumber-start NUMBER Use internal field formatting like %(autonumber+NUMBER)s --id -o "%(id)s.%(ext)s" --metadata-from-title FORMAT --parse-metadata "%(title)s:FORMAT" --hls-prefer-native --downloader "m3u8:native" --hls-prefer-ffmpeg --downloader "m3u8:ffmpeg" --list-formats-old --compat-options list-formats (Alias: --no-list-formats-as-table) --list-formats-as-table --compat-options -list-formats [Default] (Alias: --no-list-formats-old) --youtube-skip-dash-manifest --extractor-args "youtube:skip=dash" (Alias: --no-youtube-include-dash-manifest) --youtube-skip-hls-manifest --extractor-args "youtube:skip=hls" (Alias: --no-youtube-include-hls-manifest) --youtube-include-dash-manifest Default (Alias: --no-youtube-skip-dash-manifest) --youtube-include-hls-manifest Default (Alias: --no-youtube-skip-hls-manifest) --geo-bypass --xff "default" --no-geo-bypass --xff "never" --geo-bypass-country CODE --xff CODE --geo-bypass-ip-block IP_BLOCK --xff IP_BLOCK"><pre class="notranslate"><code>--force-generic-extractor --ies generic,default --exec-before-download CMD --exec "before_dl:CMD" --no-exec-before-download --no-exec --all-formats -f all --all-subs --sub-langs all --write-subs --print-json -j --no-simulate --autonumber-size NUMBER Use string formatting, e.g. %(autonumber)03d --autonumber-start NUMBER Use internal field formatting like %(autonumber+NUMBER)s --id -o "%(id)s.%(ext)s" --metadata-from-title FORMAT --parse-metadata "%(title)s:FORMAT" --hls-prefer-native --downloader "m3u8:native" --hls-prefer-ffmpeg --downloader "m3u8:ffmpeg" --list-formats-old --compat-options list-formats (Alias: --no-list-formats-as-table) --list-formats-as-table --compat-options -list-formats [Default] (Alias: --no-list-formats-old) --youtube-skip-dash-manifest --extractor-args "youtube:skip=dash" (Alias: --no-youtube-include-dash-manifest) --youtube-skip-hls-manifest --extractor-args "youtube:skip=hls" (Alias: --no-youtube-include-hls-manifest) --youtube-include-dash-manifest Default (Alias: --no-youtube-skip-dash-manifest) --youtube-include-hls-manifest Default (Alias: --no-youtube-skip-hls-manifest) --geo-bypass --xff "default" --no-geo-bypass --xff "never" --geo-bypass-country CODE --xff CODE --geo-bypass-ip-block IP_BLOCK --xff IP_BLOCK </code></pre></div> <div class="markdown-heading" dir="auto"><h4 tabindex="-1" class="heading-element" dir="auto">Developer options</h4><a id="user-content-developer-options" class="anchor" aria-label="Permalink: Developer options" href="#developer-options"><svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path></svg></a></div> <p dir="auto">These options are not intended to be used by the end-user</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="--test Download only part of video for testing extractors --load-pages Load pages dumped by --write-pages --youtube-print-sig-code For testing youtube signatures --allow-unplayable-formats List unplayable formats also --no-allow-unplayable-formats Default"><pre class="notranslate"><code>--test Download only part of video for testing extractors --load-pages Load pages dumped by --write-pages --youtube-print-sig-code For testing youtube signatures --allow-unplayable-formats List unplayable formats also --no-allow-unplayable-formats Default </code></pre></div> <div class="markdown-heading" dir="auto"><h4 tabindex="-1" class="heading-element" dir="auto">Old aliases</h4><a id="user-content-old-aliases" class="anchor" aria-label="Permalink: Old aliases" href="#old-aliases"><svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path></svg></a></div> <p dir="auto">These are aliases that are no longer documented for various reasons</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="--avconv-location --ffmpeg-location --clean-infojson --clean-info-json --cn-verification-proxy URL --geo-verification-proxy URL --dump-headers --print-traffic --dump-intermediate-pages --dump-pages --force-write-download-archive --force-write-archive --load-info --load-info-json --no-clean-infojson --no-clean-info-json --no-split-tracks --no-split-chapters --no-write-srt --no-write-subs --prefer-unsecure --prefer-insecure --rate-limit RATE --limit-rate RATE --split-tracks --split-chapters --srt-lang LANGS --sub-langs LANGS --trim-file-names LENGTH --trim-filenames LENGTH --write-srt --write-subs --yes-overwrites --force-overwrites"><pre class="notranslate"><code>--avconv-location --ffmpeg-location --clean-infojson --clean-info-json --cn-verification-proxy URL --geo-verification-proxy URL --dump-headers --print-traffic --dump-intermediate-pages --dump-pages --force-write-download-archive --force-write-archive --load-info --load-info-json --no-clean-infojson --no-clean-info-json --no-split-tracks --no-split-chapters --no-write-srt --no-write-subs --prefer-unsecure --prefer-insecure --rate-limit RATE --limit-rate RATE --split-tracks --split-chapters --srt-lang LANGS --sub-langs LANGS --trim-file-names LENGTH --trim-filenames LENGTH --write-srt --write-subs --yes-overwrites --force-overwrites </code></pre></div> <div class="markdown-heading" dir="auto"><h4 tabindex="-1" class="heading-element" dir="auto">Sponskrub Options</h4><a id="user-content-sponskrub-options" class="anchor" aria-label="Permalink: Sponskrub Options" href="#sponskrub-options"><svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path></svg></a></div> <p dir="auto">Support for <a href="https://github.com/faissaloo/SponSkrub">SponSkrub</a> has been deprecated in favor of the <code>--sponsorblock</code> options</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="--sponskrub --sponsorblock-mark all --no-sponskrub --no-sponsorblock --sponskrub-cut --sponsorblock-remove all --no-sponskrub-cut --sponsorblock-remove -all --sponskrub-force Not applicable --no-sponskrub-force Not applicable --sponskrub-location Not applicable --sponskrub-args Not applicable"><pre class="notranslate"><code>--sponskrub --sponsorblock-mark all --no-sponskrub --no-sponsorblock --sponskrub-cut --sponsorblock-remove all --no-sponskrub-cut --sponsorblock-remove -all --sponskrub-force Not applicable --no-sponskrub-force Not applicable --sponskrub-location Not applicable --sponskrub-args Not applicable </code></pre></div> <div class="markdown-heading" dir="auto"><h4 tabindex="-1" class="heading-element" dir="auto">No longer supported</h4><a id="user-content-no-longer-supported" class="anchor" aria-label="Permalink: No longer supported" href="#no-longer-supported"><svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path></svg></a></div> <p dir="auto">These options may no longer work as intended</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="--prefer-avconv avconv is not officially supported by yt-dlp (Alias: --no-prefer-ffmpeg) --prefer-ffmpeg Default (Alias: --no-prefer-avconv) -C, --call-home Not implemented --no-call-home Default --include-ads No longer supported --no-include-ads Default --write-annotations No supported site has annotations now --no-write-annotations Default --compat-options seperate-video-versions No longer needed --compat-options no-youtube-prefer-utc-upload-date No longer supported"><pre class="notranslate"><code>--prefer-avconv avconv is not officially supported by yt-dlp (Alias: --no-prefer-ffmpeg) --prefer-ffmpeg Default (Alias: --no-prefer-avconv) -C, --call-home Not implemented --no-call-home Default --include-ads No longer supported --no-include-ads Default --write-annotations No supported site has annotations now --no-write-annotations Default --compat-options seperate-video-versions No longer needed --compat-options no-youtube-prefer-utc-upload-date No longer supported </code></pre></div> <div class="markdown-heading" dir="auto"><h4 tabindex="-1" class="heading-element" dir="auto">Removed</h4><a id="user-content-removed" class="anchor" aria-label="Permalink: Removed" href="#removed"><svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path></svg></a></div> <p dir="auto">These options were deprecated since 2014 and have now been entirely removed</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="-A, --auto-number -o "%(autonumber)s-%(id)s.%(ext)s" -t, -l, --title, --literal -o "%(title)s-%(id)s.%(ext)s""><pre class="notranslate"><code>-A, --auto-number -o "%(autonumber)s-%(id)s.%(ext)s" -t, -l, --title, --literal -o "%(title)s-%(id)s.%(ext)s" </code></pre></div> <div class="markdown-heading" dir="auto"><h1 tabindex="-1" class="heading-element" dir="auto">CONTRIBUTING</h1><a id="user-content-contributing" class="anchor" aria-label="Permalink: CONTRIBUTING" href="#contributing"><svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path></svg></a></div> <p dir="auto">See <a href="/yt-dlp/yt-dlp/blob/master/CONTRIBUTING.md#contributing-to-yt-dlp">CONTRIBUTING.md</a> for instructions on <a href="/yt-dlp/yt-dlp/blob/master/CONTRIBUTING.md#opening-an-issue">Opening an Issue</a> and <a href="/yt-dlp/yt-dlp/blob/master/CONTRIBUTING.md#developer-instructions">Contributing code to the project</a></p> <div class="markdown-heading" dir="auto"><h1 tabindex="-1" class="heading-element" dir="auto">WIKI</h1><a id="user-content-wiki" class="anchor" aria-label="Permalink: WIKI" href="#wiki"><svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path></svg></a></div> <p dir="auto">See the <a href="https://github.com/yt-dlp/yt-dlp/wiki">Wiki</a> for more information</p> </article></div></div></div></div></div> <!-- --> <!-- --> <script type="application/json" id="__PRIMER_DATA_:R0:__">{"resolvedServerColorMode":"day"}</script></div> </react-partial> <input type="hidden" data-csrf="true" value="/P60nWwao94Apm5FaoQ9an76iVr9b8m3f6imALZ4WnDXt0jFJivbqpVx5ns9gKjQHaMAJVeyc72+ACNwjZswhQ==" /> </div> <div data-view-component="true" class="Layout-sidebar"> <div class="BorderGrid about-margin" data-pjax> <div class="BorderGrid-row"> <div class="BorderGrid-cell"> <div class="hide-sm hide-md"> <h2 class="mb-3 h4">About</h2> <p class="f4 my-3"> A feature-rich command-line audio/video downloader </p> <div class="my-3 d-flex flex-items-center"> <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-link flex-shrink-0 mr-2"> <path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path> </svg> <span class="flex-auto min-width-0 css-truncate css-truncate-target width-fit"> <a title="https://discord.gg/H5MNcFW63r" role="link" target="_blank" rel="noopener noreferrer nofollow" class="text-bold" href="https://discord.gg/H5MNcFW63r">discord.gg/H5MNcFW63r</a> </span> </div> <h3 class="sr-only">Topics</h3> <div class="my-3"> <div class="f6"> <a href="/topics/python" title="Topic: python" data-view-component="true" class="topic-tag topic-tag-link"> python </a> <a href="/topics/youtube-dl" title="Topic: youtube-dl" data-view-component="true" class="topic-tag topic-tag-link"> youtube-dl </a> <a href="/topics/video-downloader" title="Topic: video-downloader" data-view-component="true" class="topic-tag topic-tag-link"> video-downloader </a> <a href="/topics/youtube-downloader" title="Topic: youtube-downloader" data-view-component="true" class="topic-tag topic-tag-link"> youtube-downloader </a> <a href="/topics/sponsorblock" title="Topic: sponsorblock" data-view-component="true" class="topic-tag topic-tag-link"> sponsorblock </a> <a href="/topics/youtube-dlc" title="Topic: youtube-dlc" data-view-component="true" class="topic-tag topic-tag-link"> youtube-dlc </a> <a href="/topics/yt-dlp" title="Topic: yt-dlp" data-view-component="true" class="topic-tag topic-tag-link"> yt-dlp </a> </div> </div> <h3 class="sr-only">Resources</h3> <div class="mt-2"> <a class="Link--muted" data-analytics-event="{"category":"Repository Overview","action":"click","label":"location:sidebar;file:readme"}" href="#readme-ov-file"> <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-book mr-2"> <path d="M0 1.75A.75.75 0 0 1 .75 1h4.253c1.227 0 2.317.59 3 1.501A3.743 3.743 0 0 1 11.006 1h4.245a.75.75 0 0 1 .75.75v10.5a.75.75 0 0 1-.75.75h-4.507a2.25 2.25 0 0 0-1.591.659l-.622.621a.75.75 0 0 1-1.06 0l-.622-.621A2.25 2.25 0 0 0 5.258 13H.75a.75.75 0 0 1-.75-.75Zm7.251 10.324.004-5.073-.002-2.253A2.25 2.25 0 0 0 5.003 2.5H1.5v9h3.757a3.75 3.75 0 0 1 1.994.574ZM8.755 4.75l-.004 7.322a3.752 3.752 0 0 1 1.992-.572H14.5v-9h-3.495a2.25 2.25 0 0 0-2.25 2.25Z"></path> </svg> Readme </a> </div> <h3 class="sr-only">License</h3> <div class="mt-2"> <a href="#Unlicense-1-ov-file" class="Link--muted" data-analytics-event="{"category":"Repository Overview","action":"click","label":"location:sidebar;file:license"}" > <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-law mr-2"> <path d="M8.75.75V2h.985c.304 0 .603.08.867.231l1.29.736c.038.022.08.033.124.033h2.234a.75.75 0 0 1 0 1.5h-.427l2.111 4.692a.75.75 0 0 1-.154.838l-.53-.53.529.531-.001.002-.002.002-.006.006-.006.005-.01.01-.045.04c-.21.176-.441.327-.686.45C14.556 10.78 13.88 11 13 11a4.498 4.498 0 0 1-2.023-.454 3.544 3.544 0 0 1-.686-.45l-.045-.04-.016-.015-.006-.006-.004-.004v-.001a.75.75 0 0 1-.154-.838L12.178 4.5h-.162c-.305 0-.604-.079-.868-.231l-1.29-.736a.245.245 0 0 0-.124-.033H8.75V13h2.5a.75.75 0 0 1 0 1.5h-6.5a.75.75 0 0 1 0-1.5h2.5V3.5h-.984a.245.245 0 0 0-.124.033l-1.289.737c-.265.15-.564.23-.869.23h-.162l2.112 4.692a.75.75 0 0 1-.154.838l-.53-.53.529.531-.001.002-.002.002-.006.006-.016.015-.045.04c-.21.176-.441.327-.686.45C4.556 10.78 3.88 11 3 11a4.498 4.498 0 0 1-2.023-.454 3.544 3.544 0 0 1-.686-.45l-.045-.04-.016-.015-.006-.006-.004-.004v-.001a.75.75 0 0 1-.154-.838L2.178 4.5H1.75a.75.75 0 0 1 0-1.5h2.234a.249.249 0 0 0 .125-.033l1.288-.737c.265-.15.564-.23.869-.23h.984V.75a.75.75 0 0 1 1.5 0Zm2.945 8.477c.285.135.718.273 1.305.273s1.02-.138 1.305-.273L13 6.327Zm-10 0c.285.135.718.273 1.305.273s1.02-.138 1.305-.273L3 6.327Z"></path> </svg> Unlicense license </a> </div> <include-fragment src="/yt-dlp/yt-dlp/hovercards/citation/sidebar_partial?tree_name=master"> </include-fragment> <div class="mt-2"> <a href="/yt-dlp/yt-dlp/activity" data-view-component="true" class="Link Link--muted"><svg text="gray" aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-pulse mr-2"> <path d="M6 2c.306 0 .582.187.696.471L10 10.731l1.304-3.26A.751.751 0 0 1 12 7h3.25a.75.75 0 0 1 0 1.5h-2.742l-1.812 4.528a.751.751 0 0 1-1.392 0L6 4.77 4.696 8.03A.75.75 0 0 1 4 8.5H.75a.75.75 0 0 1 0-1.5h2.742l1.812-4.529A.751.751 0 0 1 6 2Z"></path> </svg> <span class="color-fg-muted">Activity</span></a> </div> <div class="mt-2"> <a href="/yt-dlp/yt-dlp/custom-properties" data-view-component="true" class="Link Link--muted"><svg text="gray" aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-note mr-2"> <path d="M0 3.75C0 2.784.784 2 1.75 2h12.5c.966 0 1.75.784 1.75 1.75v8.5A1.75 1.75 0 0 1 14.25 14H1.75A1.75 1.75 0 0 1 0 12.25Zm1.75-.25a.25.25 0 0 0-.25.25v8.5c0 .138.112.25.25.25h12.5a.25.25 0 0 0 .25-.25v-8.5a.25.25 0 0 0-.25-.25ZM3.5 6.25a.75.75 0 0 1 .75-.75h7a.75.75 0 0 1 0 1.5h-7a.75.75 0 0 1-.75-.75Zm.75 2.25h4a.75.75 0 0 1 0 1.5h-4a.75.75 0 0 1 0-1.5Z"></path> </svg> <span class="color-fg-muted">Custom properties</span></a> </div> <h3 class="sr-only">Stars</h3> <div class="mt-2"> <a href="/yt-dlp/yt-dlp/stargazers" data-view-component="true" class="Link Link--muted"><svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-star mr-2"> <path d="M8 .25a.75.75 0 0 1 .673.418l1.882 3.815 4.21.612a.75.75 0 0 1 .416 1.279l-3.046 2.97.719 4.192a.751.751 0 0 1-1.088.791L8 12.347l-3.766 1.98a.75.75 0 0 1-1.088-.79l.72-4.194L.818 6.374a.75.75 0 0 1 .416-1.28l4.21-.611L7.327.668A.75.75 0 0 1 8 .25Zm0 2.445L6.615 5.5a.75.75 0 0 1-.564.41l-3.097.45 2.24 2.184a.75.75 0 0 1 .216.664l-.528 3.084 2.769-1.456a.75.75 0 0 1 .698 0l2.77 1.456-.53-3.084a.75.75 0 0 1 .216-.664l2.24-2.183-3.096-.45a.75.75 0 0 1-.564-.41L8 2.694Z"></path> </svg> <strong>106k</strong> stars</a> </div> <h3 class="sr-only">Watchers</h3> <div class="mt-2"> <a href="/yt-dlp/yt-dlp/watchers" data-view-component="true" class="Link Link--muted"><svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-eye mr-2"> <path d="M8 2c1.981 0 3.671.992 4.933 2.078 1.27 1.091 2.187 2.345 2.637 3.023a1.62 1.62 0 0 1 0 1.798c-.45.678-1.367 1.932-2.637 3.023C11.67 13.008 9.981 14 8 14c-1.981 0-3.671-.992-4.933-2.078C1.797 10.83.88 9.576.43 8.898a1.62 1.62 0 0 1 0-1.798c.45-.677 1.367-1.931 2.637-3.022C4.33 2.992 6.019 2 8 2ZM1.679 7.932a.12.12 0 0 0 0 .136c.411.622 1.241 1.75 2.366 2.717C5.176 11.758 6.527 12.5 8 12.5c1.473 0 2.825-.742 3.955-1.715 1.124-.967 1.954-2.096 2.366-2.717a.12.12 0 0 0 0-.136c-.412-.621-1.242-1.75-2.366-2.717C10.824 4.242 9.473 3.5 8 3.5c-1.473 0-2.825.742-3.955 1.715-1.124.967-1.954 2.096-2.366 2.717ZM8 10a2 2 0 1 1-.001-3.999A2 2 0 0 1 8 10Z"></path> </svg> <strong>587</strong> watching</a> </div> <h3 class="sr-only">Forks</h3> <div class="mt-2"> <a href="/yt-dlp/yt-dlp/forks" data-view-component="true" class="Link Link--muted"><svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-repo-forked mr-2"> <path d="M5 5.372v.878c0 .414.336.75.75.75h4.5a.75.75 0 0 0 .75-.75v-.878a2.25 2.25 0 1 1 1.5 0v.878a2.25 2.25 0 0 1-2.25 2.25h-1.5v2.128a2.251 2.251 0 1 1-1.5 0V8.5h-1.5A2.25 2.25 0 0 1 3.5 6.25v-.878a2.25 2.25 0 1 1 1.5 0ZM5 3.25a.75.75 0 1 0-1.5 0 .75.75 0 0 0 1.5 0Zm6.75.75a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5Zm-3 8.75a.75.75 0 1 0-1.5 0 .75.75 0 0 0 1.5 0Z"></path> </svg> <strong>8.3k</strong> forks</a> </div> <div class="mt-2"> <a class="Link--muted" href="/contact/report-content?content_url=https%3A%2F%2Fgithub.com%2Fyt-dlp%2Fyt-dlp&report=yt-dlp+%28user%29"> Report repository </a> </div> </div> </div> </div> <div class="BorderGrid-row"> <div class="BorderGrid-cell"> <h2 class="h4 mb-3" data-pjax="#repo-content-pjax-container" data-turbo-frame="repo-content-turbo-frame"> <a href="/yt-dlp/yt-dlp/releases" data-view-component="true" class="Link--primary no-underline Link">Releases <span title="109" data-view-component="true" class="Counter">109</span></a></h2> <a class="Link--primary d-flex no-underline" data-pjax="#repo-content-pjax-container" data-turbo-frame="repo-content-turbo-frame" href="/yt-dlp/yt-dlp/releases/tag/2025.03.31"> <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-tag flex-shrink-0 mt-1 color-fg-success"> <path d="M1 7.775V2.75C1 1.784 1.784 1 2.75 1h5.025c.464 0 .91.184 1.238.513l6.25 6.25a1.75 1.75 0 0 1 0 2.474l-5.026 5.026a1.75 1.75 0 0 1-2.474 0l-6.25-6.25A1.752 1.752 0 0 1 1 7.775Zm1.5 0c0 .066.026.13.073.177l6.25 6.25a.25.25 0 0 0 .354 0l5.025-5.025a.25.25 0 0 0 0-.354l-6.25-6.25a.25.25 0 0 0-.177-.073H2.75a.25.25 0 0 0-.25.25ZM6 5a1 1 0 1 1 0 2 1 1 0 0 1 0-2Z"></path> </svg> <div class="ml-2 min-width-0"> <div class="d-flex"> <span class="css-truncate css-truncate-target text-bold mr-2" style="max-width: none;">yt-dlp 2025.03.31</span> <span title="Label: Latest" data-view-component="true" class="Label Label--success flex-shrink-0"> Latest </span> </div> <div class="text-small color-fg-muted"><relative-time datetime="2025-03-31T22:03:20Z" class="no-wrap">Mar 31, 2025</relative-time></div> </div> </a> <div data-view-component="true" class="mt-3"> <a text="small" data-pjax="#repo-content-pjax-container" data-turbo-frame="repo-content-turbo-frame" href="/yt-dlp/yt-dlp/releases" data-view-component="true" class="Link">+ 108 releases</a></div> </div> </div> <div class="BorderGrid-row"> <div class="BorderGrid-cell"> <h2 class="h4 mb-3">Sponsor this project</h2> <include-fragment src="/yt-dlp/yt-dlp/sponsors_list?block_button=false&current_repository=yt-dlp" aria-busy="true" aria-label="Loading sponsorable links"> <ul class="list-style-none"> </ul> </include-fragment> <ul class="list-style-none"> <li class="mb-2 d-flex"> <span class="mr-2 d-flex flex-items-center flex-justify-center" style="min-width:32px;height:32px;"> <svg class="octicon octicon-link color-fg-muted" alt="custom" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path></svg> </span> <span class="flex-self-center flex-auto min-width-0 css-truncate css-truncate-target width-fit"> <a target="_blank" data-ga-click="Dashboard, click, Nav menu - item:org-profile context:organization" data-hydro-click="{"event_type":"sponsors.repo_funding_links_link_click","payload":{"platform":{"platform_type":"CUSTOM","platform_url":"https://github.com/yt-dlp/yt-dlp/blob/master/Collaborators.md#collaborators"},"platforms":[{"platform_type":"CUSTOM","platform_url":"https://github.com/yt-dlp/yt-dlp/blob/master/Collaborators.md#collaborators"}],"repo_id":307260205,"owner_id":79589310,"user_id":null,"originating_url":"https://github.com/yt-dlp/yt-dlp"}}" data-hydro-click-hmac="f3463e49a045d7055bb2f6d331f9cec4fc5af22b28a8cb284ca591bab68846d1" rel="noopener noreferrer" href="https://github.com/yt-dlp/yt-dlp/blob/master/Collaborators.md#collaborators">https://github.com/yt-dlp/yt-dlp/blob/master/Collaborators.md#collaborators</a> </span> </li> </ul> </div> </div> <div class="BorderGrid-row" > <div class="BorderGrid-cell"> <h2 class="h4 mb-3"> <a href="/yt-dlp/yt-dlp/network/dependents" data-view-component="true" class="Link--primary no-underline Link">Used by <span title="74,541" data-view-component="true" class="Counter">74.5k</span></a> </h2> <a class="d-flex flex-items-center" href="/yt-dlp/yt-dlp/network/dependents"> <ul class="hx_flex-avatar-stack list-style-none min-width-0"> <li class="hx_flex-avatar-stack-item"> <img class="avatar avatar-user" src="https://avatars.githubusercontent.com/u/35455997?s=64&v=4" width="32" height="32" alt="@drewssche" /> </li> <li class="hx_flex-avatar-stack-item"> <img class="avatar avatar-user" src="https://avatars.githubusercontent.com/u/205459740?s=64&v=4" width="32" height="32" alt="@AlexProd8" /> </li> <li class="hx_flex-avatar-stack-item"> <img class="avatar avatar-user" src="https://avatars.githubusercontent.com/u/99703880?s=64&v=4" width="32" height="32" alt="@draiimon" /> </li> <li class="hx_flex-avatar-stack-item"> <img class="avatar avatar-user" src="https://avatars.githubusercontent.com/u/51489111?s=64&v=4" width="32" height="32" alt="@chenguox" /> </li> <li class="hx_flex-avatar-stack-item"> <img class="avatar avatar-user" src="https://avatars.githubusercontent.com/u/168005845?s=64&v=4" width="32" height="32" alt="@dharmendra-anant" /> </li> <li class="hx_flex-avatar-stack-item"> <img class="avatar avatar-user" src="https://avatars.githubusercontent.com/u/118928054?s=64&v=4" width="32" height="32" alt="@heisenbergers" /> </li> <li class="hx_flex-avatar-stack-item"> <img class="avatar avatar-user" src="https://avatars.githubusercontent.com/u/195710822?s=64&v=4" width="32" height="32" alt="@RishuDevs" /> </li> <li class="hx_flex-avatar-stack-item"> <img class="avatar avatar-user" src="https://avatars.githubusercontent.com/u/72846591?s=64&v=4" width="32" height="32" alt="@RegreDanger" /> </li> </ul> <span class="px-2 text-bold text-small no-wrap"> + 74,533 </span> </a> </div> </div> <div class="BorderGrid-row"> <div class="BorderGrid-cell"> <h2 class="h4 mb-3"> <a href="/yt-dlp/yt-dlp/graphs/contributors" data-view-component="true" class="Link--primary no-underline Link d-flex flex-items-center">Contributors <span title="1,427" data-view-component="true" class="Counter ml-1">1,427</span></a></h2> <ul class="list-style-none d-flex flex-wrap mb-n2"> <li class="mb-2 mr-2" > <a href="https://github.com/dstftw" class="" data-hovercard-type="user" data-hovercard-url="/users/dstftw/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" > <img src="https://avatars.githubusercontent.com/u/1908898?s=64&v=4" alt="@dstftw" size="32" height="32" width="32" data-view-component="true" class="avatar circle" /> </a> </li> <li class="mb-2 mr-2" > <a href="https://github.com/phihag" class="" data-hovercard-type="user" data-hovercard-url="/users/phihag/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" > <img src="https://avatars.githubusercontent.com/u/779568?s=64&v=4" alt="@phihag" size="32" height="32" width="32" data-view-component="true" class="avatar circle" /> </a> </li> <li class="mb-2 mr-2" > <a href="https://github.com/pukkandan" class="" data-hovercard-type="user" data-hovercard-url="/users/pukkandan/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" > <img src="https://avatars.githubusercontent.com/u/6623388?s=64&v=4" alt="@pukkandan" size="32" height="32" width="32" data-view-component="true" class="avatar circle" /> </a> </li> <li class="mb-2 mr-2" > <a href="https://github.com/remitamine" class="" data-hovercard-type="user" data-hovercard-url="/users/remitamine/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" > <img src="https://avatars.githubusercontent.com/u/10879694?s=64&v=4" alt="@remitamine" size="32" height="32" width="32" data-view-component="true" class="avatar circle" /> </a> </li> <li class="mb-2 mr-2" > <a href="https://github.com/jaimeMF" class="" data-hovercard-type="user" data-hovercard-url="/users/jaimeMF/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" > <img src="https://avatars.githubusercontent.com/u/1239727?s=64&v=4" alt="@jaimeMF" size="32" height="32" width="32" data-view-component="true" class="avatar circle" /> </a> </li> <li class="mb-2 mr-2" > <a href="https://github.com/yan12125" class="" data-hovercard-type="user" data-hovercard-url="/users/yan12125/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" > <img src="https://avatars.githubusercontent.com/u/1937689?s=64&v=4" alt="@yan12125" size="32" height="32" width="32" data-view-component="true" class="avatar circle" /> </a> </li> <li class="mb-2 mr-2" > <a href="https://github.com/bashonly" class="" data-hovercard-type="user" data-hovercard-url="/users/bashonly/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" > <img src="https://avatars.githubusercontent.com/u/88596187?s=64&v=4" alt="@bashonly" size="32" height="32" width="32" data-view-component="true" class="avatar circle" /> </a> </li> <li class="mb-2 mr-2" > <a href="https://github.com/blackjack4494" class="" data-hovercard-type="user" data-hovercard-url="/users/blackjack4494/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" > <img src="https://avatars.githubusercontent.com/u/4406639?s=64&v=4" alt="@blackjack4494" size="32" height="32" width="32" data-view-component="true" class="avatar circle" /> </a> </li> <li class="mb-2 mr-2" > <a href="https://github.com/rg3" class="" data-hovercard-type="user" data-hovercard-url="/users/rg3/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" > <img src="https://avatars.githubusercontent.com/u/53487?s=64&v=4" alt="@rg3" size="32" height="32" width="32" data-view-component="true" class="avatar circle" /> </a> </li> <li class="mb-2 mr-2" > <a href="https://github.com/FiloSottile" class="" data-hovercard-type="user" data-hovercard-url="/users/FiloSottile/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" > <img src="https://avatars.githubusercontent.com/u/1225294?s=64&v=4" alt="@FiloSottile" size="32" height="32" width="32" data-view-component="true" class="avatar circle" /> </a> </li> <li class="mb-2 mr-2" > <a href="https://github.com/coletdjnz" class="" data-hovercard-type="user" data-hovercard-url="/users/coletdjnz/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" > <img src="https://avatars.githubusercontent.com/u/27879174?s=64&v=4" alt="@coletdjnz" size="32" height="32" width="32" data-view-component="true" class="avatar circle" /> </a> </li> <li class="mb-2 mr-2" > <a href="https://github.com/seproDev" class="" data-hovercard-type="user" data-hovercard-url="/users/seproDev/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" > <img src="https://avatars.githubusercontent.com/u/4618135?s=64&v=4" alt="@seproDev" size="32" height="32" width="32" data-view-component="true" class="avatar circle" /> </a> </li> <li class="mb-2 mr-2" > <a href="https://github.com/Grub4K" class="" data-hovercard-type="user" data-hovercard-url="/users/Grub4K/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" > <img src="https://avatars.githubusercontent.com/u/37424085?s=64&v=4" alt="@Grub4K" size="32" height="32" width="32" data-view-component="true" class="avatar circle" /> </a> </li> <li class="mb-2 mr-2" > <a href="https://github.com/Lesmiscore" class="" data-hovercard-type="user" data-hovercard-url="/users/Lesmiscore/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" > <img src="https://avatars.githubusercontent.com/u/10355528?s=64&v=4" alt="@Lesmiscore" size="32" height="32" width="32" data-view-component="true" class="avatar circle" /> </a> </li> </ul> <div data-view-component="true" class="mt-3"> <a text="small" href="/yt-dlp/yt-dlp/graphs/contributors" data-view-component="true" class="Link--inTextBlock Link">+ 1,413 contributors</a></div> </div> </div> <div class="BorderGrid-row"> <div class="BorderGrid-cell"> <h2 class="h4 mb-3">Languages</h2> <div class="mb-2"> <span data-view-component="true" class="Progress"> <span style="background-color:#3572A5 !important;;width: 99.9%;" itemprop="keywords" data-view-component="true" class="Progress-item color-bg-success-emphasis"></span> <span style="background-color:#ededed !important;;width: 0.1%;" itemprop="keywords" data-view-component="true" class="Progress-item color-bg-success-emphasis"></span> </span></div> <ul class="list-style-none"> <li class="d-inline"> <a class="d-inline-flex flex-items-center flex-nowrap Link--secondary no-underline text-small mr-3" href="/yt-dlp/yt-dlp/search?l=python" data-ga-click="Repository, language stats search click, location:repo overview"> <svg style="color:#3572A5;" aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-dot-fill mr-2"> <path d="M8 4a4 4 0 1 1 0 8 4 4 0 0 1 0-8Z"></path> </svg> <span class="color-fg-default text-bold mr-1">Python</span> <span>99.9%</span> </a> </li> <li class="d-inline"> <span class="d-inline-flex flex-items-center flex-nowrap text-small mr-3"> <svg style="color:#ededed;" aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-dot-fill mr-2"> <path d="M8 4a4 4 0 1 1 0 8 4 4 0 0 1 0-8Z"></path> </svg> <span class="color-fg-default text-bold mr-1">Other</span> <span>0.1%</span> </span> </li> </ul> </div> </div> </div> </div> </div></div> </div> </div> </turbo-frame> </main> </div> </div> <footer class="footer pt-8 pb-6 f6 color-fg-muted p-responsive" role="contentinfo" > <h2 class='sr-only'>Footer</h2> <div class="d-flex flex-justify-center flex-items-center flex-column-reverse flex-lg-row flex-wrap flex-lg-nowrap"> <div class="d-flex flex-items-center flex-shrink-0 mx-2"> <a aria-label="Homepage" title="GitHub" class="footer-octicon mr-2" href="https://github.com"> <svg aria-hidden="true" height="24" viewBox="0 0 24 24" version="1.1" width="24" data-view-component="true" class="octicon octicon-mark-github"> <path d="M12 1C5.9225 1 1 5.9225 1 12C1 16.8675 4.14875 20.9787 8.52125 22.4362C9.07125 22.5325 9.2775 22.2025 9.2775 21.9137C9.2775 21.6525 9.26375 20.7862 9.26375 19.865C6.5 20.3737 5.785 19.1912 5.565 18.5725C5.44125 18.2562 4.905 17.28 4.4375 17.0187C4.0525 16.8125 3.5025 16.3037 4.42375 16.29C5.29 16.2762 5.90875 17.0875 6.115 17.4175C7.105 19.0812 8.68625 18.6137 9.31875 18.325C9.415 17.61 9.70375 17.1287 10.02 16.8537C7.5725 16.5787 5.015 15.63 5.015 11.4225C5.015 10.2262 5.44125 9.23625 6.1425 8.46625C6.0325 8.19125 5.6475 7.06375 6.2525 5.55125C6.2525 5.55125 7.17375 5.2625 9.2775 6.67875C10.1575 6.43125 11.0925 6.3075 12.0275 6.3075C12.9625 6.3075 13.8975 6.43125 14.7775 6.67875C16.8813 5.24875 17.8025 5.55125 17.8025 5.55125C18.4075 7.06375 18.0225 8.19125 17.9125 8.46625C18.6138 9.23625 19.04 10.2125 19.04 11.4225C19.04 15.6437 16.4688 16.5787 14.0213 16.8537C14.42 17.1975 14.7638 17.8575 14.7638 18.8887C14.7638 20.36 14.75 21.5425 14.75 21.9137C14.75 22.2025 14.9563 22.5462 15.5063 22.4362C19.8513 20.9787 23 16.8537 23 12C23 5.9225 18.0775 1 12 1Z"></path> </svg> </a> <span> © 2025 GitHub, Inc. </span> </div> <nav aria-label="Footer"> <h3 class="sr-only" id="sr-footer-heading">Footer navigation</h3> <ul class="list-style-none d-flex flex-justify-center flex-wrap mb-2 mb-lg-0" aria-labelledby="sr-footer-heading"> <li class="mx-2"> <a data-analytics-event="{"category":"Footer","action":"go to Terms","label":"text:terms"}" href="https://docs.github.com/site-policy/github-terms/github-terms-of-service" data-view-component="true" class="Link--secondary Link">Terms</a> </li> <li class="mx-2"> <a data-analytics-event="{"category":"Footer","action":"go to privacy","label":"text:privacy"}" href="https://docs.github.com/site-policy/privacy-policies/github-privacy-statement" data-view-component="true" class="Link--secondary Link">Privacy</a> </li> <li class="mx-2"> <a data-analytics-event="{"category":"Footer","action":"go to security","label":"text:security"}" href="https://github.com/security" data-view-component="true" class="Link--secondary Link">Security</a> </li> <li class="mx-2"> <a data-analytics-event="{"category":"Footer","action":"go to status","label":"text:status"}" href="https://www.githubstatus.com/" data-view-component="true" class="Link--secondary Link">Status</a> </li> <li class="mx-2"> <a data-analytics-event="{"category":"Footer","action":"go to docs","label":"text:docs"}" href="https://docs.github.com/" data-view-component="true" class="Link--secondary Link">Docs</a> </li> <li class="mx-2"> <a data-analytics-event="{"category":"Footer","action":"go to contact","label":"text:contact"}" href="https://support.github.com?tags=dotcom-footer" data-view-component="true" class="Link--secondary Link">Contact</a> </li> <li class="mx-2" > <cookie-consent-link> <button type="button" class="Link--secondary underline-on-hover border-0 p-0 color-bg-transparent" data-action="click:cookie-consent-link#showConsentManagement" data-analytics-event="{"location":"footer","action":"cookies","context":"subfooter","tag":"link","label":"cookies_link_subfooter_footer"}" > Manage cookies </button> </cookie-consent-link> </li> <li class="mx-2"> <cookie-consent-link> <button type="button" class="Link--secondary underline-on-hover border-0 p-0 color-bg-transparent" data-action="click:cookie-consent-link#showConsentManagement" data-analytics-event="{"location":"footer","action":"dont_share_info","context":"subfooter","tag":"link","label":"dont_share_info_link_subfooter_footer"}" > Do not share my personal information </button> </cookie-consent-link> </li> </ul> </nav> </div> </footer> <ghcc-consent id="ghcc" class="position-fixed bottom-0 left-0" style="z-index: 999999" data-initial-cookie-consent-allowed="" data-cookie-consent-required="false"></ghcc-consent> <div id="ajax-error-message" class="ajax-error-message flash flash-error" hidden> <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-alert"> <path d="M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z"></path> </svg> <button type="button" class="flash-close js-ajax-error-dismiss" aria-label="Dismiss error"> <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-x"> <path d="M3.72 3.72a.75.75 0 0 1 1.06 0L8 6.94l3.22-3.22a.749.749 0 0 1 1.275.326.749.749 0 0 1-.215.734L9.06 8l3.22 3.22a.749.749 0 0 1-.326 1.275.749.749 0 0 1-.734-.215L8 9.06l-3.22 3.22a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042L6.94 8 3.72 4.78a.75.75 0 0 1 0-1.06Z"></path> </svg> </button> You can’t perform that action at this time. </div> <template id="site-details-dialog"> <details class="details-reset details-overlay details-overlay-dark lh-default color-fg-default hx_rsm" open> <summary role="button" aria-label="Close dialog"></summary> <details-dialog class="Box Box--overlay d-flex flex-column anim-fade-in fast hx_rsm-dialog hx_rsm-modal"> <button class="Box-btn-octicon m-0 btn-octicon position-absolute right-0 top-0" type="button" aria-label="Close dialog" data-close-dialog> <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-x"> <path d="M3.72 3.72a.75.75 0 0 1 1.06 0L8 6.94l3.22-3.22a.749.749 0 0 1 1.275.326.749.749 0 0 1-.215.734L9.06 8l3.22 3.22a.749.749 0 0 1-.326 1.275.749.749 0 0 1-.734-.215L8 9.06l-3.22 3.22a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042L6.94 8 3.72 4.78a.75.75 0 0 1 0-1.06Z"></path> </svg> </button> <div class="octocat-spinner my-6 js-details-dialog-spinner"></div> </details-dialog> </details> </template> <div class="Popover js-hovercard-content position-absolute" style="display: none; outline: none;"> <div class="Popover-message Popover-message--bottom-left Popover-message--large Box color-shadow-large" style="width:360px;"> </div> </div> <template id="snippet-clipboard-copy-button"> <div class="zeroclipboard-container position-absolute right-0 top-0"> <clipboard-copy aria-label="Copy" class="ClipboardButton btn js-clipboard-copy m-2 p-0" data-copy-feedback="Copied!" data-tooltip-direction="w"> <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-copy js-clipboard-copy-icon m-2"> <path d="M0 6.75C0 5.784.784 5 1.75 5h1.5a.75.75 0 0 1 0 1.5h-1.5a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 0 0 .25-.25v-1.5a.75.75 0 0 1 1.5 0v1.5A1.75 1.75 0 0 1 9.25 16h-7.5A1.75 1.75 0 0 1 0 14.25Z"></path><path d="M5 1.75C5 .784 5.784 0 6.75 0h7.5C15.216 0 16 .784 16 1.75v7.5A1.75 1.75 0 0 1 14.25 11h-7.5A1.75 1.75 0 0 1 5 9.25Zm1.75-.25a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 0 0 .25-.25v-7.5a.25.25 0 0 0-.25-.25Z"></path> </svg> <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-check js-clipboard-check-icon color-fg-success d-none m-2"> <path d="M13.78 4.22a.75.75 0 0 1 0 1.06l-7.25 7.25a.75.75 0 0 1-1.06 0L2.22 9.28a.751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018L6 10.94l6.72-6.72a.75.75 0 0 1 1.06 0Z"></path> </svg> </clipboard-copy> </div> </template> <template id="snippet-clipboard-copy-button-unpositioned"> <div class="zeroclipboard-container"> <clipboard-copy aria-label="Copy" class="ClipboardButton btn btn-invisible js-clipboard-copy m-2 p-0 d-flex flex-justify-center flex-items-center" data-copy-feedback="Copied!" data-tooltip-direction="w"> <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-copy js-clipboard-copy-icon"> <path d="M0 6.75C0 5.784.784 5 1.75 5h1.5a.75.75 0 0 1 0 1.5h-1.5a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 0 0 .25-.25v-1.5a.75.75 0 0 1 1.5 0v1.5A1.75 1.75 0 0 1 9.25 16h-7.5A1.75 1.75 0 0 1 0 14.25Z"></path><path d="M5 1.75C5 .784 5.784 0 6.75 0h7.5C15.216 0 16 .784 16 1.75v7.5A1.75 1.75 0 0 1 14.25 11h-7.5A1.75 1.75 0 0 1 5 9.25Zm1.75-.25a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 0 0 .25-.25v-7.5a.25.25 0 0 0-.25-.25Z"></path> </svg> <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-check js-clipboard-check-icon color-fg-success d-none"> <path d="M13.78 4.22a.75.75 0 0 1 0 1.06l-7.25 7.25a.75.75 0 0 1-1.06 0L2.22 9.28a.751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018L6 10.94l6.72-6.72a.75.75 0 0 1 1.06 0Z"></path> </svg> </clipboard-copy> </div> </template> </div> <div id="js-global-screen-reader-notice" class="sr-only mt-n1" aria-live="polite" aria-atomic="true" ></div> <div id="js-global-screen-reader-notice-assertive" class="sr-only mt-n1" aria-live="assertive" aria-atomic="true"></div> </body> </html>