Skip to content

misterdownloadmanager: The ultimate open-source, clean-room download manager written from scratch in pure Rust for Windows, Mac, and Linux

Video qualities: the size of exactly what downloads, with codec, frame rate and HDR (fixes #801, #755) (#814)

Ahmed Nefzaouibbe33bdef391
diff --git a/CHANGELOG.md b/CHANGELOG.md
index ad35f44f..2ba43e2e 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -7,6 +7,7 @@ Each release's notes on GitHub come from its section here (`## [X.Y.Z]`, see
### Added
+- **Video qualities with their codec, frame rate and HDR:** the Download video window and the menu over a video show each quality's codec (AV1, VP9, H.264), frame rate and HDR (`2160p · VP9 · 60 fps · HDR`), and a resolution that comes in several (AV1 and VP9, HDR and SDR) lists each as its own choice, downloaded as listed. The best one stays first, as before. The sound as the site has it is offered in each type it comes in (YouTube's WEBM and M4A) ([#755](https://github.com/anefzaoui/misterdownloadmanager/issues/755)).
- **Fewer Download complete windows:** downloads added together (a playlist, **Add batch download**, a list from the clipboard, the links you add from **Link grabber**, the browser's page links among them) no longer open **Download complete** one by one. Once all of them are done, one **Downloads complete** window sums them up: **12 downloads finished · 1 failed**, their size together and their folder, the failed ones named with why, **Open folder** and **Show in list**, which selects them in the list. A download added alone keeps its own window, and so does a group of which only one finished ([#766](https://github.com/anefzaoui/misterdownloadmanager/issues/766)).
- **Snooze** in **Download complete** (and in the summary): no such window for 30 minutes, 1 hour, 8 hours, or until MDM restarts, without unticking **Show download complete dialog**. The snooze ends by itself; meanwhile the tray icon's tip says how many downloads finished, and **Options → Downloads** says **Download complete is snoozed until 14:30** with **Resume now** ([#741](https://github.com/anefzaoui/misterdownloadmanager/issues/741)).
- **The Download video button, redesigned** (building on the qualities' menu below): a small light tab at the video's top corner (dark in Windows' dark mode) with MDM's logo, a green **Download video** part, an arrow for its list and **✕** to hide it on this video. MDM looks the video up as soon as the button appears, so the button names the best quality before you click (**1080p**, **4K**), and one click downloads it at once, even while MDM is still looking; a video that plays a plain file is downloaded as that file, with no look-up. Its list (the arrow) starts with **Download best**, then one numbered line per quality, video and sound apart, with its type, frame rate or bitrate and size, opens the Download video window for the rest (**All qualities and subtitles…**), and hides it or keeps it off the site. After a click it says what happened in its own colour, with the one action that helps: **Added to MDM** with **Show**, **Open the post to download it** with **Open post**, **MDM didn't answer** with **Get MDM** and **Retry**, **Off on this site** with **Turn on**, and **Protected video · can't be saved**. It mirrors in right-to-left languages, shows a ring around it for the keyboard, shrinks to its logo, arrow and ✕ on a small video or where its words wouldn't fit, and shows the edge and the spots it snaps to while you drag it ([#703](https://github.com/anefzaoui/misterdownloadmanager/issues/703)).
@@ -29,6 +30,7 @@ Each release's notes on GitHub come from its section here (`## [X.Y.Z]`, see
### Fixed
+- A video quality's size is now the size of what downloads. The list showed one stream's size and downloaded another of the same resolution: for a portrait 4K video on YouTube, **3840p 60fps MP4** said 3.79 GB (an estimate from the peak bitrate of a stream in pieces) and the download was 532 MB (AV1 and Opus, the formats yt-dlp picked). Each quality is now the very video and sound streams it was sized from, sized from their bytes, and a size that is only an estimate shows as about ("~532 MB"), in the Download video window, the menu over a video and the command line's `video-info` ([#801](https://github.com/anefzaoui/misterdownloadmanager/issues/801)).
- Windows: the window no longer freezes while it checks whether Windows is in light or dark mode. Every 2 seconds the window read Windows' app mode (and, with the **Native** theme, its accent and contrast colours) from the registry, and looked at the themes folder and pywal's colours on the disk, on its own thread; where the registry took seconds to answer, the window waited that long ("freeze in misterdownloadmanager::theme::update"). A thread beside the window now reads them, at once when Windows says one of those settings changed, and the window shows its last answer without waiting: switching Windows between light and dark, a new accent, a theme file added to the themes folder and pywal's new colours are followed as before ([#719](https://github.com/anefzaoui/misterdownloadmanager/issues/719)).
- Wikimedia Commons videos download again: their quality list carries a negative size estimate, which MDM took for a page with no video at all ("it gave no video information"), and so did one yt-dlp says is neither a plain file nor not (`"direct": null`).
- The Download video button no longer comes back when you play or pause the video: only moving the pointer over it shows it. It fades 1.5 seconds after the pointer stops (2.6 before), and at once when the pointer leaves the video (part of [#741](https://github.com/anefzaoui/misterdownloadmanager/issues/741)).
diff --git a/ROADMAP.md b/ROADMAP.md
index bf3d367d..101e2771 100644
--- a/ROADMAP.md
+++ b/ROADMAP.md
@@ -556,6 +556,13 @@ Bug fixes from the first days of 0.5.0, a Safari extension, and more file types.
These ship in the next version.
+- ✅ A video quality's size is the size of what downloads: each line of the Download video window
+ and of the browser's menu is the very video and sound it was sized from, and a size that is
+ only an estimate shows as about ("~532 MB"); a portrait 4K video showed 3.79 GB and downloaded
+ 532 MB ([#801](https://github.com/anefzaoui/misterdownloadmanager/issues/801))
+- ✅ Video qualities show their codec, frame rate and HDR (`2160p · VP9 · 60 fps · HDR`), and AV1,
+ VP9 and H.264, HDR and SDR of one resolution are each their own choice; the best stays first
+ ([#755](https://github.com/anefzaoui/misterdownloadmanager/issues/755))
- ✅ Fewer Download complete windows: downloads added together (a playlist, a batch, Link
grabber's links) show one summary once all are done, with how many finished and which failed,
Open folder and Show in list; a single download keeps its window
diff --git a/crates/app/src/videodlg.rs b/crates/app/src/videodlg.rs
index 60d13732..4880fb8e 100644
--- a/crates/app/src/videodlg.rs
+++ b/crates/app/src/videodlg.rs
@@ -268,11 +268,18 @@ impl VideoDialog {
/// A looked-up video with subtitles in four languages, without yt-dlp or the network
/// (`/show video-subs`: the window's check in every language, its screenshots).
pub fn show_sample(&mut self) {
+ // Its 4K in AV1 and VP9, HDR and SDR, each its own line (#755); 720p sized only
+ // about (#801).
const SAMPLE: &str = r#"{"title": "A conference talk about download managers, recorded in Lisbon",
"duration": 1830, "language": "en", "formats": [
- {"format_id": "140", "ext": "m4a", "vcodec": "none", "acodec": "mp4a", "filesize": 29000000},
- {"format_id": "18", "ext": "mp4", "height": 360, "vcodec": "avc1", "acodec": "mp4a", "filesize": 61000000},
- {"format_id": "137", "ext": "mp4", "height": 1080, "vcodec": "avc1", "acodec": "none", "filesize": 412000000}],
+ {"format_id": "140", "ext": "m4a", "vcodec": "none", "acodec": "mp4a.40.2", "quality": 3, "tbr": 129.5, "filesize": 29600000},
+ {"format_id": "251", "ext": "webm", "vcodec": "none", "acodec": "opus", "quality": 3, "tbr": 121.8, "filesize": 27900000},
+ {"format_id": "18", "ext": "mp4", "height": 360, "fps": 30, "vcodec": "avc1.42001E", "acodec": "mp4a.40.2", "filesize": 61000000},
+ {"format_id": "701", "ext": "mp4", "height": 2160, "fps": 60, "vcodec": "av01.0.13M.10", "acodec": "none", "dynamic_range": "HDR10", "filesize": 1951000000},
+ {"format_id": "337", "ext": "webm", "height": 2160, "fps": 60, "vcodec": "vp09.02.51.10", "acodec": "none", "dynamic_range": "HDR10", "filesize": 2248000000},
+ {"format_id": "315", "ext": "webm", "height": 2160, "fps": 60, "vcodec": "vp9", "acodec": "none", "dynamic_range": "SDR", "filesize": 1870000000},
+ {"format_id": "299", "ext": "mp4", "height": 1080, "fps": 60, "vcodec": "avc1.64002A", "acodec": "none", "dynamic_range": "SDR", "filesize": 412000000},
+ {"format_id": "136", "ext": "mp4", "height": 720, "fps": 30, "vcodec": "avc1.4D401F", "acodec": "none", "dynamic_range": "SDR", "filesize_approx": 201000000}],
"subtitles": {"de": [{"name": "German"}], "pt-PT": [{"name": "Portuguese (Portugal)"}],
"ar": [{"name": "Arabic"}]},
"automatic_captions": {"en-orig": [{"name": "English (Original)"}], "en": [{"name": "English"}]}}"#;
@@ -800,8 +807,9 @@ impl VideoDialog {
&mut self.rows,
|ui, clip, i, row, look| {
let c = &choices[i];
- // The icon of the file this choice gives, then the format ("1080p mp4, 60
- // fps", left to right); its size at the trailing edge.
+ // The icon of the file this choice gives, then the format ("2160p · VP9 ·
+ // 60 fps · HDR", left to right); its size at the trailing edge: exactly
+ // that of the streams it downloads, or "~" before an estimate (#801).
let file = format!("video.{}", c.ext);
let kind = crate::fileicons::Kind::File(&file);
crate::fileicons::paint_at(
@@ -814,16 +822,10 @@ impl VideoDialog {
let label = choice_label(&c.label);
let x = row.left() + 4.0 + crate::fileicons::INDENT;
text(clip, x, row.top() + 12.0, &label, look.ink);
- let size = c
- .size
- // i18n: the video's file size is not known
- .map_or(
- crate::i18n::t("size unknown").into(),
- crate::dialogs::dialog_size,
- );
+ let (size, said) = choice_size(c);
// Read as the format and its size (#95: the choices were blank to a screen reader
// and alike to UI Automation), in the user's language, as drawn.
- look.name = format!("{label}, {size}");
+ look.name = format!("{label}, {said}");
winui::text_right(clip, row.right() - 6.0, row.top() + 12.0, &size, look.ink);
},
);
@@ -1407,6 +1409,28 @@ pub(crate) fn lookup_error(
crate::i18n::t(plain).to_owned()
}
+/// A choice's size as its line shows it, and as a screen reader says it: the bytes of the
+/// streams it downloads, or an estimate marked as one ("~532 MB", "about 532 MB"; #801).
+pub(crate) fn choice_size(c: &Choice) -> (String, String) {
+ let Some(bytes) = c.size else {
+ // i18n: the video's file size is not known
+ let unknown = crate::i18n::t("size unknown").to_owned();
+ return (unknown.clone(), unknown);
+ };
+ let size = crate::dialogs::dialog_size(bytes);
+ if !c.approx {
+ return (size.clone(), size);
+ }
+ (
+ crate::i18n::ltr(&format!("~{size}")),
+ crate::i18n::fmt(
+ // i18n: a file size that is only an estimate, as a screen reader says it in the Download video window's list of qualities; {size} is "532 MB"
+ crate::i18n::t("about {size}"),
+ &[("size", &size)],
+ ),
+ )
+}
+
/// A choice's label in the user's language: the audio choice's words translated, the rest (a
/// resolution, a type) as they are, kept left to right.
pub(crate) fn choice_label(label: &str) -> String {
diff --git a/crates/app/src/videolookup.rs b/crates/app/src/videolookup.rs
index b9aa654c..3168af13 100644
--- a/crates/app/src/videolookup.rs
+++ b/crates/app/src/videolookup.rs
@@ -424,6 +424,24 @@ fn title_of<'a>(v: &'a Video, address: &str, context: &'a mdm_ipc::Command) -> &
crate::videodlg::page_title(context, v, address).unwrap_or(&v.title)
}
+/// Choice `c` as the browser's quality menu shows it: its label in MDM's language, and what the
+/// menu's line says beside it (#755: height, codec, frame rate, range; #801: an about size).
+fn menu_choice(c: &Choice) -> VideoChoice {
+ VideoChoice {
+ label: crate::videodlg::choice_label(&c.label),
+ ext: c.ext.clone(),
+ size: c.size,
+ audio: mdm_tools::resolve::is_audio(c),
+ height: c.height,
+ fps: c.fps,
+ kbps: c.kbps,
+ original: mdm_tools::resolve::original_sound(&c.selector),
+ codec: c.codec.clone(),
+ range: c.range.clone(),
+ approx: c.approx && c.size.is_some(),
+ }
+}
+
/// The answer for look-up `token` as it stands: the choices labelled in MDM's language, an
/// error in its words (as the Download video window says them).
fn answer(token: &str, s: &Search) -> VideoLookupAnswer {
@@ -435,23 +453,7 @@ fn answer(token: &str, s: &Search) -> VideoLookupAnswer {
Found::Video(v, choices) => VideoLookupAnswer {
token: Some(token.to_owned()),
title: Some(cut(title_of(v, &s.address, &s.context), TITLE_MAX)),
- choices: choices
- .iter()
- .take(CHOICES)
- .map(|c| {
- let (height, fps, kbps) = details(v, c);
- VideoChoice {
- label: crate::videodlg::choice_label(&c.label),
- ext: c.ext.clone(),
- size: c.size,
- audio: mdm_tools::resolve::is_audio(c),
- height,
- fps,
- kbps,
- original: c.selector == "ba",
- }
- })
- .collect(),
+ choices: choices.iter().take(CHOICES).map(menu_choice).collect(),
..VideoLookupAnswer::of(lookup::READY)
},
Found::List => VideoLookupAnswer::of(lookup::LIST),
@@ -470,53 +472,6 @@ fn answer(token: &str, s: &Search) -> VideoLookupAnswer {
}
}
-/// What the button over the video says of choice `c` of `v` besides its label: the picture's
-/// height (its chip: 1080p, 4K), its frame rate when above 31, and the sound's bitrate (the
-/// sound as the site has it, `ba`, or an MP3 at a constant one).
-fn details(v: &Video, c: &Choice) -> (Option<u32>, Option<u32>, Option<u32>) {
- let height = c
- .selector
- .split("[height=")
- .nth(1)
- .and_then(|r| r.split(']').next())
- .and_then(|h| h.parse::<u32>().ok());
- let most = |it: &mut dyn Iterator<Item = f64>| {
- it.fold(None, |m: Option<f64>, x| Some(m.map_or(x, |m| m.max(x))))
- };
- let fps = height
- .and_then(|h| {
- most(
- &mut v
- .formats
- .iter()
- .filter(|f| f.video && f.height == Some(h))
- .filter_map(|f| f.fps),
- )
- })
- .filter(|f| *f > 31.0)
- .map(|f| f.round() as u32);
- let kbps = (c.selector == "ba")
- .then(|| {
- most(
- &mut v
- .formats
- .iter()
- .filter(|f| f.audio && !f.video && f.ext == c.ext)
- .filter_map(|f| f.tbr),
- )
- })
- .flatten()
- .map(|k| k.round() as u32)
- // An MP3 at a constant bitrate says its own (`mp3:320`; VBR is `mp3:0`).
- .or_else(|| {
- c.selector
- .strip_prefix(mdm_tools::resolve::MP3)
- .and_then(|r| r.parse::<u32>().ok())
- .filter(|r| *r > 0)
- });
- (height, fps, kbps)
-}
-
/// The download choice `p` adds, into `folder` (the Video category's), or `music` (the Music
/// category's, None when the user deleted it) for a sound-only choice, listed under that category
/// as the Download video window does (#611): MDM's own selector for it, the file named as the
@@ -772,7 +727,7 @@ mod tests {
assert_eq!(p.context.user_agent.as_deref(), Some("UA"));
assert_eq!(p.context.video_title.as_deref(), Some("A talk: in Lisbon"));
assert!(!p.context.private && !p.context.startup);
- assert_eq!(p.choice.selector, "b[height=360]");
+ assert_eq!(p.choice.selector, "hls-800/b[height=360]");
// Once.
assert!(
l.pick(&pick(&a.token, 1, Some("firefox-container-1")), false, now)
@@ -1344,7 +1299,7 @@ mod tests {
let add = video_add(p, &folder, None, true, &de).unwrap();
assert_eq!(add.page.as_str(), SRC);
assert_eq!(
- add.selector, "b[height=720]",
+ add.selector, "hls-2500/b[height=720]",
"MDM's own, never the browser's"
);
assert_eq!(add.dest, folder.join("A talk_ in Lisbon.mp4"));
@@ -1361,7 +1316,7 @@ mod tests {
let pre = add.preloaded.as_ref().unwrap();
assert_eq!(
(pre.selector.as_str(), pre.label.as_str(), pre.merge),
- ("b[height=720]", "720p MP4", false)
+ ("hls-2500/b[height=720]", "720p · H.264", false)
);
// No page title (a page yt-dlp names itself), Options' "only add to the queue", a
// language this page doesn't have.
@@ -1377,7 +1332,7 @@ mod tests {
};
let add = video_add(p, &folder, None, false, &ja).unwrap();
assert_eq!(add.dest, folder.join("master.mp4"));
- assert_eq!(add.selector, "b[height=360]");
+ assert_eq!(add.selector, "hls-800/b[height=360]");
assert!(!add.start_now);
assert!(add.subs.langs.is_empty());
// A video yt-dlp titled itself keeps its title, whatever the page's (#345).
@@ -1412,30 +1367,70 @@ mod tests {
assert!(video_add(p, &folder, None, true, &Subs::default()).is_none());
}
+ /// What the browser's menu is told of each choice (#755, #801): the height, frame rate,
+ /// codec and range of a video's, the sound's bitrate, whether its size is about.
#[test]
fn the_buttons_details_of_each_choice() {
const V: &str = r#"{"title": "A talk", "duration": 60, "formats": [
- {"format_id": "140", "ext": "m4a", "vcodec": "none", "acodec": "mp4a", "tbr": 129.5},
- {"format_id": "299", "ext": "mp4", "height": 1080, "fps": 60, "vcodec": "avc1", "acodec": "none"},
- {"format_id": "136", "ext": "mp4", "height": 720, "fps": 30, "vcodec": "avc1", "acodec": "none"}]}"#;
+ {"format_id": "140", "ext": "m4a", "vcodec": "none", "acodec": "mp4a", "tbr": 129.5, "filesize": 900},
+ {"format_id": "701", "ext": "mp4", "height": 1080, "fps": 60, "vcodec": "av01.0.09M.10", "acodec": "none", "dynamic_range": "HDR10", "filesize": 9000},
+ {"format_id": "299", "ext": "mp4", "height": 1080, "fps": 60, "vcodec": "avc1", "acodec": "none", "dynamic_range": "SDR", "filesize": 8000},
+ {"format_id": "136", "ext": "mp4", "height": 720, "fps": 30, "vcodec": "avc1", "acodec": "none", "filesize_approx": 7000}]}"#;
let v = mdm_tools::resolve::parse(V.as_bytes()).unwrap();
- let all = mdm_tools::resolve::choices(&v, true);
- let of = |sel: &str| details(&v, all.iter().find(|c| c.selector == sel).unwrap());
+ let a: Vec<VideoChoice> = mdm_tools::resolve::choices(&v, true)
+ .iter()
+ .map(menu_choice)
+ .collect();
+ let of = |i: usize| {
+ let c = &a[i];
+ (
+ c.height,
+ c.fps,
+ c.codec.as_deref(),
+ c.range.as_deref(),
+ c.size,
+ c.approx,
+ )
+ };
+ assert_eq!(
+ of(0),
+ (
+ Some(1080),
+ Some(60),
+ Some("AV1"),
+ Some("HDR"),
+ Some(9900),
+ false
+ )
+ );
+ assert_eq!(
+ of(1),
+ (
+ Some(1080),
+ Some(60),
+ Some("H.264"),
+ Some("SDR"),
+ Some(8900),
+ false
+ )
+ );
assert_eq!(
- of("bv*[height=1080]+ba/b[height=1080]"),
- (Some(1080), Some(60), None)
+ of(2),
+ (Some(720), Some(30), Some("H.264"), None, Some(7900), true),
+ "a size the site only guessed"
);
+ let sound = &a[3];
+ assert!(sound.original && sound.audio);
assert_eq!(
- of("bv*[height=720]+ba/b[height=720]"),
- (Some(720), None, None),
- "30 fps isn't news"
+ (sound.kbps, sound.size, sound.approx),
+ (Some(130), Some(900), false)
);
- assert_eq!(of("ba"), (None, None, Some(130)), "the sound as it is");
+ let mp3 = a.iter().find(|c| c.label.contains("320")).unwrap();
assert_eq!(
- of("mp3:320"),
- (None, None, Some(320)),
- "an MP3 at a constant rate"
+ (mp3.kbps, mp3.approx, mp3.original),
+ (Some(320), true, false)
);
- assert_eq!(of("mp3:0"), (None, None, None), "VBR says no rate");
+ let vbr = a.iter().find(|c| c.label.contains("VBR")).unwrap();
+ assert_eq!(vbr.kbps, None, "VBR says no rate");
}
}
diff --git a/crates/cli/src/lib.rs b/crates/cli/src/lib.rs
index 1cf00fa2..22930c15 100644
--- a/crates/cli/src/lib.rs
+++ b/crates/cli/src/lib.rs
@@ -624,7 +624,18 @@ async fn run(cmd: Cmd, json: bool, accounts: Option<&dyn Accounts>) -> anyhow::R
if json {
let choices: Vec<_> = choices
.iter()
- .map(|c| json!({ "label": c.label, "format": c.selector, "size": c.size }))
+ .map(|c| {
+ json!({
+ "label": c.label,
+ "format": c.selector,
+ "size": c.size,
+ "approx": c.approx,
+ "height": c.height,
+ "fps": c.fps,
+ "codec": c.codec,
+ "range": c.range,
+ })
+ })
.collect();
let subs: Vec<_> = subs
.iter()
@@ -635,9 +646,11 @@ async fn run(cmd: Cmd, json: bool, accounts: Option<&dyn Accounts>) -> anyhow::R
}
println!("{}", v.title);
for c in choices {
+ // The streams' own bytes, or "~" before an estimate (#801).
+ let about = if c.approx { "~" } else { "" };
let size = c
.size
- .map_or(String::new(), |s| format!(" ~{} MB", s / 1_000_000));
+ .map_or(String::new(), |s| format!(" {about}{} MB", s / 1_000_000));
println!(" {}{size} -f \"{}\"", c.label, c.selector);
}
if !subs.is_empty() {
diff --git a/crates/ipc/src/api.rs b/crates/ipc/src/api.rs
index 832652bc..801d4279 100644
--- a/crates/ipc/src/api.rs
+++ b/crates/ipc/src/api.rs
@@ -168,7 +168,7 @@ pub struct VideoChoice {
pub label: String,
/// The file's type (`mp4`, `mp3`).
pub ext: String,
- /// Bytes, exact or estimated; null when unknown.
+ /// Bytes, exact or estimated (`approx`); null when unknown.
pub size: Option<u64>,
/// Only the sound (an audio file, a conversion to MP3, Opus or FLAC): the menu lists these
/// apart from the videos. False from an app older than the field.
@@ -177,7 +177,7 @@ pub struct VideoChoice {
/// file known only by its type.
#[serde(skip_serializing_if = "Option::is_none")]
pub height: Option<u32>,
- /// Frames a second, when above 31 (60 fps is worth saying, 30 isn't).
+ /// Frames a second, rounded (an app older than #755 said it only above 31).
#[serde(skip_serializing_if = "Option::is_none")]
pub fps: Option<u32>,
/// The sound's bitrate in kbit/s, for the sound as the site has it.
@@ -186,6 +186,18 @@ pub struct VideoChoice {
/// The sound as the site sends it (not converted): the button's list says "original".
#[serde(skip_serializing_if = "std::ops::Not::not")]
pub original: bool,
+ /// The picture's codec as people name it: `AV1`, `VP9`, `H.264`, `H.265`… (#755). None
+ /// from an app older than the field.
+ #[serde(skip_serializing_if = "Option::is_none")]
+ pub codec: Option<String>,
+ /// The picture's dynamic range when worth saying: `HDR`, `Dolby Vision`, or `SDR` beside an
+ /// HDR choice of the same height (#755).
+ #[serde(skip_serializing_if = "Option::is_none")]
+ pub range: Option<String>,
+ /// `size` is an estimate (a stream's bitrate times its length, a conversion's), shown as
+ /// about ("~532 MB"); otherwise it is the bytes of exactly the streams this downloads (#801).
+ #[serde(skip_serializing_if = "std::ops::Not::not")]
+ pub approx: bool,
}
/// [`VideoLookupAnswer::state`]'s values, and [`VideoLookupAnswer::reason`]'s.
diff --git a/crates/tools/src/manifest.rs b/crates/tools/src/manifest.rs
index fd63750e..6e921a34 100644
--- a/crates/tools/src/manifest.rs
+++ b/crates/tools/src/manifest.rs
@@ -35,7 +35,7 @@ use std::time::Duration;
use url::Url;
use crate::proc::FromBrowser;
-use crate::resolve::{Format, Video};
+use crate::resolve::{Format, Video, picture_rank, sound_rank};
/// The most a playlist may hold, counted on the bytes as they come (not the size the server
/// announces).
@@ -277,9 +277,16 @@ impl Master {
.tbr
.filter(|t| t.is_finite() && *t > 0.0)
.map(|t| crate::resolve::estimate(duration, t)),
+ // Its bitrate (a peak, often) times the length: about.
+ approx: true,
tbr: f.tbr,
// A variant of an HLS playlist: its pieces need ffmpeg to make one file (#569).
hls: true,
+ vcodec: f.vcodec.clone(),
+ acodec: f.acodec.clone(),
+ // SDR, as yt-dlp says of a picture of no HDR codec (the ones it reads as HDR
+ // are refused: `codecs`).
+ ..Default::default()
})
.collect();
if !ties_are_harmless(&formats) {
@@ -589,45 +596,6 @@ fn origin(u: &Url) -> (String, Option<String>, Option<u16>) {
)
}
-/// yt-dlp's codec preferences (its format sorter's, best last here): where formats tie on
-/// everything before, the better codec sorts later.
-fn picture_rank(c: Option<&str>) -> u8 {
- let Some(c) = c else { return 1 };
- let any = |p: &[&str]| p.iter().any(|x| c.starts_with(x));
- match c {
- "none" => 0,
- _ if any(&["av01", "av1"]) => 10,
- _ if any(&["vp9.2", "vp09.02", "vp9.02", "vp09.2"]) => 9,
- _ if any(&["vp9", "vp09"]) => 8,
- _ if any(&["h265", "x265", "hv", "hev"]) => 7,
- _ if any(&["h264", "x264", "avc"]) => 6,
- _ if any(&["vp8", "vp08"]) => 5,
- _ if any(&["mp4v", "h263"]) => 4,
- _ if any(&["theora"]) => 3,
- _ => 2,
- }
-}
-
-fn sound_rank(c: Option<&str>) -> u8 {
- let Some(c) = c else { return 1 };
- let any = |p: &[&str]| p.iter().any(|x| c.starts_with(x));
- match c {
- "none" => 0,
- _ if any(&["flac", "alac"]) => 13,
- _ if any(&["wav", "aiff"]) => 12,
- _ if any(&["opus"]) => 11,
- _ if any(&["vorbis", "ogg"]) => 10,
- _ if any(&["aac"]) => 9,
- _ if any(&["m4", "mp4"]) => 8,
- _ if any(&["mp3"]) => 7,
- _ if any(&["ac4", "ac-4"]) => 6,
- _ if any(&["ec3", "eac3", "ec-3", "eac-3", "e-ac-3", "e-ac3"]) => 5,
- _ if any(&["ac3", "ac-3"]) => 4,
- _ if any(&["dts"]) => 3,
- _ => 2,
- }
-}
-
/// yt-dlp's order of a stream's formats, worst first (its format sorter's fields that tell them
/// apart: picture or not, resolution, frame rate, codecs, bitrate, sound or not, ID). Ties left
/// between formats that would make different choices are refused ([`ties_are_harmless`]).
@@ -998,7 +966,7 @@ mod tests {
assert_eq!(v.title, "master");
assert_eq!(v.duration, Some(20.0));
let labels: Vec<String> = choices(&v, false).into_iter().map(|c| c.label).collect();
- assert_eq!(labels, ["720p MP4", "360p MP4"]);
+ assert_eq!(labels, ["720p · H.264", "360p · H.264"]);
}
/// DRM, a live stream, a picture without its resolution, a playlist on another server, a
diff --git a/crates/tools/src/resolve.rs b/crates/tools/src/resolve.rs
index d8eb6567..e5836d5e 100644
--- a/crates/tools/src/resolve.rs
+++ b/crates/tools/src/resolve.rs
@@ -35,6 +35,7 @@ impl Video {
pub fn set_size(&mut self, size: u64) {
for f in &mut self.formats {
f.size = Some(size);
+ f.approx = false;
}
}
}
@@ -48,7 +49,7 @@ pub struct Track {
pub name: String,
}
-#[derive(Clone, Debug, PartialEq)]
+#[derive(Clone, Debug, Default, PartialEq)]
pub struct Format {
pub id: String,
pub ext: String,
@@ -56,24 +57,55 @@ pub struct Format {
pub fps: Option<f64>,
pub video: bool,
pub audio: bool,
- /// Bytes, exact or estimated.
+ /// Bytes, exact or estimated ([`Format::approx`]).
pub size: Option<u64>,
+ /// The size is an estimate: the site's own guess (`filesize_approx`), or the bitrate times
+ /// the length; not the bytes that will come (#801).
+ pub approx: bool,
/// Kbit/s, when the site says (a stream's variants differ by it alone).
pub tbr: Option<f64>,
/// Comes as an HLS stream (yt-dlp's `protocol` `m3u8`, `m3u8_native`): its pieces make a
/// proper file only once ffmpeg has put them into one (#569).
pub hls: bool,
+ /// yt-dlp's codecs (`av01.0.13M.08`, `opus`; `none` for the one that isn't there), when said.
+ pub vcodec: Option<String>,
+ pub acodec: Option<String>,
+ /// yt-dlp's `dynamic_range` when not SDR: `HDR10`, `HDR10+`, `HDR12`, `HLG`, `DV` (#755).
+ pub range: Option<String>,
+ /// yt-dlp's `language_preference` (YouTube's original sound is above its dubs), `quality`
+ /// and `audio_channels`: the first things its sorter weighs for the sound (`ba`).
+ pub language_preference: Option<f64>,
+ pub quality: Option<f64>,
+ pub channels: Option<f64>,
+ /// yt-dlp's `preference`: the site's own ranking, weighed before anything else.
+ pub preference: Option<f64>,
}
/// One line of the choice list: what to show and what to ask yt-dlp for.
-#[derive(Clone, Debug, PartialEq, Eq)]
+#[derive(Clone, Debug, Default, PartialEq, Eq)]
pub struct Choice {
pub label: String,
- /// yt-dlp's `-f` selector.
+ /// yt-dlp's `-f` selector: for a video or the sound as the site has it, the very formats the
+ /// line was sized from (`401+251`), then, should the page no longer offer them, the nearest
+ /// (#801).
pub selector: String,
/// The container of the result (for the file name).
pub ext: String,
+ /// The bytes of every stream it downloads (a video's picture and sound), or a conversion's
+ /// estimate.
pub size: Option<u64>,
+ /// [`Choice::size`] is an estimate (shown as "~532 MB").
+ pub approx: bool,
+ /// The picture's height in pixels; none for the sound, or a file known only by its type.
+ pub height: Option<u32>,
+ /// Frames a second, rounded (`60`, `30`, `24`), when the site says.
+ pub fps: Option<u32>,
+ /// The picture's codec as people name it (`AV1`, `VP9`, `H.264`; [`codec_name`]).
+ pub codec: Option<String>,
+ /// `HDR` or `Dolby Vision`; `SDR` only beside an HDR line of the same height (#755).
+ pub range: Option<String>,
+ /// The sound's bitrate in kbit/s (the sound as the site has it, an MP3 at a constant one).
+ pub kbps: Option<u32>,
}
#[derive(Deserialize)]
@@ -155,6 +187,14 @@ struct RawFormat {
filesize_approx: Option<u64>,
tbr: Option<f64>,
protocol: Option<String>,
+ dynamic_range: Option<String>,
+ language_preference: Option<f64>,
+ quality: Option<f64>,
+ audio_channels: Option<f64>,
+ preference: Option<f64>,
+ /// yt-dlp leaves out DRM formats when it chooses (unless asked to allow them).
+ #[serde(default)]
+ has_drm: Option<serde_json::Value>,
}
/// A size as yt-dlp gives it: a count of bytes, or nothing known. Wikimedia Commons' transcodes
@@ -207,16 +247,27 @@ pub fn parse(json: &[u8]) -> Option<Video> {
formats: raw
.formats
.into_iter()
+ // yt-dlp never chooses a DRM format (`has_drm` true; "maybe" it still tries).
+ .filter(|f| f.has_drm.as_ref().and_then(serde_json::Value::as_bool) != Some(true))
.map(|f| Format {
video: has(&f.vcodec),
audio: has(&f.acodec),
id: f.format_id,
ext: f.ext.unwrap_or_default(),
height: f.height,
- fps: f.fps,
+ fps: f.fps.filter(|x| x.is_finite() && *x > 0.0),
+ approx: f.filesize.is_none(),
size: f.filesize.or(f.filesize_approx).or_else(|| estimate(f.tbr)),
tbr: f.tbr,
hls: f.protocol.as_deref().is_some_and(|p| p.contains("m3u8")),
+ vcodec: f.vcodec,
+ acodec: f.acodec,
+ // SDR is none: what a stream's own playlist (`crate::manifest`) says too.
+ range: f.dynamic_range.filter(|r| !r.eq_ignore_ascii_case("SDR")),
+ language_preference: f.language_preference,
+ quality: f.quality,
+ channels: f.audio_channels,
+ preference: f.preference,
})
.collect(),
subtitles: tracks(raw.subtitles),
@@ -432,6 +483,11 @@ fn audio_container(ext: &str) -> bool {
)
}
+/// The sound as the site has it: `ba`, or a choice's very format before it (`251/ba`, #801).
+pub fn original_sound(selector: &str) -> bool {
+ selector == "ba" || selector.ends_with("/ba")
+}
+
/// A choice that saves only the sound (no picture to show subtitles on, #68).
pub fn is_audio(c: &Choice) -> bool {
sound_only(&c.selector, &c.ext)
@@ -440,7 +496,7 @@ pub fn is_audio(c: &Choice) -> bool {
/// A selector and file type that save only the sound: a choice ([`is_audio`]) or a playlist's
/// quality (saved in the Music category's folder, #611).
pub fn sound_only(selector: &str, ext: &str) -> bool {
- selector == "ba" || audio_conversion(selector).is_some() || audio_container(ext)
+ original_sound(selector) || audio_conversion(selector).is_some() || audio_container(ext)
}
/// A choice whose file can hold subtitles put into it (yt-dlp's `--embed-subs` with SRT).
@@ -498,60 +554,312 @@ pub fn without_remuxing(selector: &str) -> String {
.join("/")
}
-/// The choices, best first: each resolution (merged with the best audio when ffmpeg is there,
-/// else only formats that carry both), then audio only.
-pub fn choices(v: &Video, can_merge: bool) -> Vec<Choice> {
- let mut heights: Vec<u32> = v
+/// yt-dlp's preference among picture codecs (its format sorter's `vcodec`, best highest): AV1,
+/// VP9 profile 2, VP9, H.265, H.264, VP8, MPEG-4 and H.263, Theora; 1 for one it doesn't know,
+/// 0 for none.
+pub(crate) fn picture_rank(c: Option<&str>) -> u8 {
+ let Some(c) = c else { return 1 };
+ let c = c.to_ascii_lowercase();
+ let any = |p: &[&str]| p.iter().any(|x| c.starts_with(x));
+ match c.as_str() {
+ "none" => 0,
+ _ if any(&["av01", "av1"]) => 10,
+ _ if any(&["vp9.2", "vp09.02", "vp9.02", "vp09.2"]) => 9,
+ _ if any(&["vp9", "vp09"]) => 8,
+ _ if any(&["h265", "x265", "hv", "hev"]) => 7,
+ _ if any(&["h264", "x264", "avc"]) => 6,
+ _ if any(&["vp8", "vp08"]) => 5,
+ _ if any(&["mp4v", "h263"]) => 4,
+ _ if any(&["theora"]) => 3,
+ _ => 2,
+ }
+}
+
+/// yt-dlp's preference among sound codecs (its sorter's `acodec`, best highest).
+pub(crate) fn sound_rank(c: Option<&str>) -> u8 {
+ let Some(c) = c else { return 1 };
+ let c = c.to_ascii_lowercase();
+ let any = |p: &[&str]| p.iter().any(|x| c.starts_with(x));
+ match c.as_str() {
+ "none" => 0,
+ _ if any(&["flac", "alac"]) => 13,
+ _ if any(&["wav", "aiff"]) => 12,
+ _ if any(&["opus"]) => 11,
+ _ if any(&["vorbis", "ogg"]) => 10,
+ _ if any(&["aac"]) => 9,
+ _ if any(&["m4", "mp4"]) => 8,
+ _ if any(&["mp3"]) => 7,
+ _ if any(&["ac4", "ac-4"]) => 6,
+ _ if any(&["ec3", "eac3", "ec-3", "eac-3", "e-ac-3", "e-ac3"]) => 5,
+ _ if any(&["ac3", "ac-3"]) => 4,
+ _ if any(&["dts"]) => 3,
+ _ => 2,
+ }
+}
+
+/// A picture codec as people name it (#755): `AV1`, `VP9`, `H.265` (Dolby Vision's too),
+/// `H.264`, `VP8`, `MPEG-4`, `H.263`, `Theora`; none when yt-dlp doesn't say, or names one
+/// of its own.
+pub fn codec_name(vcodec: Option<&str>) -> Option<&'static str> {
+ let c = vcodec?.trim().to_ascii_lowercase();
+ // Dolby Vision's names say the codec under it.
+ if c.starts_with("dvh") {
+ return Some("H.265");
+ }
+ if c.starts_with("dav1") {
+ return Some("AV1");
+ }
+ if c.starts_with("dva") {
+ return Some("H.264");
+ }
+ match picture_rank(Some(&c)) {
+ 10 => Some("AV1"),
+ 8 | 9 => Some("VP9"),
+ 7 => Some("H.265"),
+ 6 => Some("H.264"),
+ 5 => Some("VP8"),
+ 4 if c.starts_with("mp4v") => Some("MPEG-4"),
+ 4 => Some("H.263"),
+ 3 => Some("Theora"),
+ _ => None,
+ }
+}
+
+/// yt-dlp's preference among dynamic ranges (its sorter's `hdr:12`, best highest).
+fn range_rank(r: Option<&str>) -> u8 {
+ match r.map(str::to_ascii_uppercase).as_deref() {
+ Some("HDR12") => 6,
+ Some("HDR10+") => 5,
+ Some("HDR10") => 4,
+ Some("HLG") => 3,
+ Some("DV") => 2,
+ _ => 1,
+ }
+}
+
+/// A dynamic range as a line says it (#755): `HDR`, `Dolby Vision`; none for SDR (or unknown).
+fn range_name(r: Option<&str>) -> Option<&'static str> {
+ match r.map(str::to_ascii_uppercase).as_deref() {
+ None | Some("SDR" | "") => None,
+ Some("DV") => Some("Dolby Vision"),
+ Some(_) => Some("HDR"),
+ }
+}
+
+/// Whether yt-dlp's `-f` takes `id` as that format's ID: plain characters only (no selector
+/// syntax), and none of the words it reads otherwise (`best`, `mp4`: the best of that type).
+fn plain_id(id: &str) -> bool {
+ const WORDS: [&str; 30] = [
+ "b",
+ "w",
+ "best",
+ "worst",
+ "b*",
+ "w*",
+ "bv",
+ "ba",
+ "wv",
+ "wa",
+ "bestvideo",
+ "bestaudio",
+ "worstvideo",
+ "worstaudio",
+ "all",
+ "mergeall",
+ "3gp",
+ "aac",
+ "flv",
+ "m4a",
+ "mp3",
+ "mp4",
+ "ogg",
+ "wav",
+ "webm",
+ "mov",
+ "mkv",
+ "opus",
+ "flac",
+ "m4v",
+ ];
+ !id.is_empty()
+ && id
+ .chars()
+ .all(|c| c.is_ascii_alphanumeric() || matches!(c, '-' | '_' | '.'))
+ && !WORDS.contains(&id.to_ascii_lowercase().as_str())
+}
+
+/// `a` against `b` where a bigger value is better and the unknown is `default`.
+fn more(a: Option<f64>, b: Option<f64>, default: f64) -> std::cmp::Ordering {
+ a.unwrap_or(default).total_cmp(&b.unwrap_or(default))
+}
+
+/// The page's sounds alone, best first, as yt-dlp's `ba` takes them: the spoken language's
+/// (YouTube's original before its dubs), the site's quality, channels, codec (Opus before AAC),
+/// size, bitrate. Without ffmpeg one that comes as a file goes first (#569: an HLS one stays its
+/// raw pieces).
+fn sounds(v: &Video, can_merge: bool) -> Vec<&Format> {
+ let mut out: Vec<&Format> = v.formats.iter().filter(|f| f.audio && !f.video).collect();
+ out.sort_by(|a, b| {
+ (can_merge || !b.hls)
+ .cmp(&(can_merge || !a.hls))
+ .then(more(b.preference, a.preference, 0.0))
+ .then(more(b.language_preference, a.language_preference, -1.0))
+ .then(more(b.quality, a.quality, -1.0))
+ .then(more(b.channels, a.channels, 0.0))
+ .then(sound_rank(b.acodec.as_deref()).cmp(&sound_rank(a.acodec.as_deref())))
+ .then(b.size.unwrap_or(0).cmp(&a.size.unwrap_or(0)))
+ .then(more(b.tbr, a.tbr, 0.0))
+ .then(a.hls.cmp(&b.hls))
+ .then(b.id.cmp(&a.id))
+ });
+ out
+}
+
+/// One video line before it is labelled: the format it downloads and what it shows.
+struct Line<'a> {
+ format: &'a Format,
+ height: u32,
+ fps: Option<u32>,
+ codec: Option<&'static str>,
+ range: Option<&'static str>,
+}
+
+/// A video line's words (#755): its height, its file type when that isn't MP4 (or nothing else
+/// is known), the codec, the frame rate and the range: `2160p · VP9 · 60 fps · HDR`.
+fn video_label(
+ height: u32,
+ ext: &str,
+ codec: Option<&str>,
+ fps: Option<u32>,
+ range: Option<&str>,
+) -> String {
+ let mut parts = vec![format!("{height}p")];
+ if !ext.eq_ignore_ascii_case("mp4") || codec.is_none() {
+ parts.push(ext.to_uppercase());
+ }
+ parts.extend(codec.map(str::to_owned));
+ parts.extend(fps.map(|f| format!("{f} fps")));
+ parts.extend(range.map(str::to_owned));
+ parts.retain(|p| !p.is_empty());
+ parts.join(" · ")
+}
+
+/// The video lines, best first: one for each height, frame rate, codec and range the page
+/// offers (#755: AV1 and VP9 of one height, its HDR and SDR, are each their own), each the very
+/// format it was sized from, merged with the best sound (`audio`) when ffmpeg is there (#801:
+/// the size shown is the size that comes). Without ffmpeg only formats that carry both.
+fn videos(v: &Video, can_merge: bool, audio: Option<&Format>) -> Vec<Choice> {
+ let candidates = v
.formats
.iter()
- .filter(|f| f.video && (can_merge || f.audio))
- .filter_map(|f| f.height)
+ .filter(|f| f.video && f.height.is_some() && (can_merge || f.audio));
+ // The format that stands for a line: one that comes as a file (an HLS variant's size is
+ // its peak bitrate's guess), with an exact size, the bigger; with ffmpeg, a picture alone
+ // (merged with the best sound, not with its own).
+ let better = |a: &Format, b: &Format| {
+ (can_merge && !a.audio)
+ .cmp(&(can_merge && !b.audio))
+ .then(more(a.preference, b.preference, 0.0))
+ .then((!a.hls).cmp(&!b.hls))
+ .then((a.size.is_some() && !a.approx).cmp(&(b.size.is_some() && !b.approx)))
+ .then(range_rank(a.range.as_deref()).cmp(&range_rank(b.range.as_deref())))
+ .then(picture_rank(a.vcodec.as_deref()).cmp(&picture_rank(b.vcodec.as_deref())))
+ .then(a.size.unwrap_or(0).cmp(&b.size.unwrap_or(0)))
+ .then(more(a.tbr, b.tbr, 0.0))
+ .then(a.id.cmp(&b.id))
+ };
+ let mut lines: Vec<Line> = Vec::new();
+ for f in candidates {
+ let line = Line {
+ format: f,
+ height: f.height.unwrap_or(0),
+ fps: f.fps.map(|x| x.round() as u32).filter(|x| *x > 0),
+ codec: codec_name(f.vcodec.as_deref()),
+ range: range_name(f.range.as_deref()),
+ };
+ let same = |l: &Line| {
+ l.height == line.height
+ && l.fps == line.fps
+ && l.codec == line.codec
+ && l.range == line.range
+ && (can_merge || l.format.ext == line.format.ext)
+ };
+ match lines.iter_mut().find(|l| same(l)) {
+ Some(l) if better(f, l.format).is_gt() => *l = line,
+ Some(_) => {}
+ None => lines.push(line),
+ }
+ }
+ // Best first, as yt-dlp sorts them: height, frame rate, HDR, codec, size.
+ lines.sort_by(|a, b| {
+ b.height
+ .cmp(&a.height)
+ .then(b.fps.cmp(&a.fps))
+ .then(range_rank(b.format.range.as_deref()).cmp(&range_rank(a.format.range.as_deref())))
+ .then(
+ picture_rank(b.format.vcodec.as_deref())
+ .cmp(&picture_rank(a.format.vcodec.as_deref())),
+ )
+ .then(b.format.size.unwrap_or(0).cmp(&a.format.size.unwrap_or(0)))
+ .then(a.format.id.cmp(&b.format.id))
+ });
+ // SDR said only where the same height has HDR too.
+ let hdr: std::collections::HashSet<u32> = lines
+ .iter()
+ .filter(|l| l.range.is_some())
+ .map(|l| l.height)
.collect();
- heights.sort_unstable_by(|a, b| b.cmp(a));
- heights.dedup();
- // Without ffmpeg a sound that comes as a file (#569): an HLS one stays its raw pieces.
- let best_audio = v
- .formats
+ lines
.iter()
- .filter(|f| f.audio && !f.video)
- .max_by_key(|f| (can_merge || !f.hls, f.size.unwrap_or(0)));
- let mut out: Vec<Choice> = heights
- .into_iter()
- .map(|h| {
- // The largest format of that height stands for its size.
- let best = v
- .formats
- .iter()
- .filter(|f| f.video && f.height == Some(h) && (can_merge || f.audio))
- .max_by_key(|f| f.size.unwrap_or(0));
- let fps = best
- .and_then(|f| f.fps)
- .filter(|fps| *fps > 31.0)
- .map(|fps| format!(" {}fps", fps.round()))
- .unwrap_or_default();
- let (selector, ext, size) = if can_merge {
- let audio = best.filter(|f| !f.audio).and(best_audio);
- (
- format!("bv*[height={h}]+ba/b[height={h}]"),
- "mp4".to_owned(),
- best.and_then(|f| f.size)
- .map(|s| s + audio.and_then(|a| a.size).unwrap_or(0)),
- )
+ .map(|l| {
+ let f = l.format;
+ let h = l.height;
+ let range = l.range.or_else(|| hdr.contains(&h).then_some("SDR"));
+ // With its sound: merged with the best one, unless it carries its own.
+ let sound = audio.filter(|_| can_merge && !f.audio);
+ let exact = match sound {
+ Some(a) => {
+ (plain_id(&f.id) && plain_id(&a.id)).then(|| format!("{}+{}", f.id, a.id))
+ }
+ None => plain_id(&f.id).then(|| f.id.clone()),
+ };
+ // Should the page no longer offer that very format (servers left out, #94; a new
+ // look-up's other IDs), the nearest of that height.
+ let near = if can_merge {
+ format!("bv*[height={h}]+ba/b[height={h}]")
} else {
- (
- format!("b[height={h}]"),
- best.map(|f| f.ext.clone()).unwrap_or_else(|| "mp4".into()),
- best.and_then(|f| f.size),
- )
+ format!("b[height={h}]")
+ };
+ let ext = if can_merge {
+ "mp4".to_owned()
+ } else {
+ f.ext.clone()
};
+ let size = f.size.map(|s| s + sound.and_then(|a| a.size).unwrap_or(0));
+ let approx =
+ f.approx || exact.is_none() || sound.is_some_and(|a| a.approx || a.size.is_none());
Choice {
- label: format!("{}p{fps} {}", h, ext.to_uppercase()),
- selector,
+ label: video_label(h, &ext, l.codec, l.fps, range),
+ selector: exact.map_or_else(|| near.clone(), |e| format!("{e}/{near}")),
ext,
size,
+ approx,
+ height: Some(h),
+ fps: l.fps,
+ codec: l.codec.map(str::to_owned),
+ range: range.map(str::to_owned),
+ kbps: None,
}
})
- .collect();
+ .collect()
+}
+
+/// The choices, best first: the video lines ([`videos`]), files known only by their type, then
+/// the sound: as the site has it (each type it comes in), and converted to MP3, Opus or FLAC.
+pub fn choices(v: &Video, can_merge: bool) -> Vec<Choice> {
+ let sounds = sounds(v, can_merge);
+ let best_audio = sounds.first().copied();
+ let mut out = videos(v, can_merge, best_audio);
// Files whose resolution isn't known (generic sites, a stream's variants with a bitrate
// only): offered by type, and by bitrate when there are several, best first. Audio
// containers, and streams with no video codec named, aren't videos.
@@ -577,16 +885,41 @@ pub fn choices(v: &Video, can_merge: bool) -> Vec<Choice> {
selector: f.id.clone(),
ext: f.ext.clone(),
size: f.size,
+ approx: f.approx,
+ ..Default::default()
});
}
- if let Some(a) = best_audio {
+ // The sound as the site has it (#70), each type it comes in once (YouTube's Opus in WEBM,
+ // AAC in M4A), the best first: that very format, else the best sound (`ba`).
+ // Without ffmpeg an HLS sound only when no other comes; one of no known size only when
+ // none has one (YouTube's HLS sounds beside its files).
+ let files = !can_merge && sounds.iter().any(|a| !a.hls);
+ let sized = sounds.iter().any(|a| a.size.is_some());
+ let mut types = std::collections::HashSet::new();
+ for a in sounds
+ .iter()
+ .filter(|a| !(files && a.hls) && !(sized && a.size.is_none()))
+ {
+ if !types.insert(a.ext.to_ascii_lowercase()) {
+ continue;
+ }
out.push(Choice {
// The app shows it in its language (videodlg::choice_label): the site's own file,
// not converted (#70).
label: format!("{AUDIO_ORIGINAL} {}", a.ext.to_uppercase()),
- selector: "ba".into(),
+ selector: if plain_id(&a.id) {
+ format!("{}/ba", a.id)
+ } else {
+ "ba".into()
+ },
ext: a.ext.clone(),
size: a.size,
+ approx: a.approx || !plain_id(&a.id),
+ kbps: a
+ .tbr
+ .filter(|t| t.is_finite() && *t > 0.0)
+ .map(|t| t.round() as u32),
+ ..Default::default()
});
}
// MP3, converted by ffmpeg from the best sound (#32): its best variable bitrate, then each
@@ -599,6 +932,8 @@ pub fn choices(v: &Video, can_merge: bool) -> Vec<Choice> {
selector: format!("{MP3}0"),
ext: "mp3".into(),
size: size(245),
+ approx: true,
+ ..Default::default()
});
for kbps in MP3_RATES {
out.push(Choice {
@@ -606,6 +941,9 @@ pub fn choices(v: &Video, can_merge: bool) -> Vec<Choice> {
selector: format!("{MP3}{kbps}"),
ext: "mp3".into(),
size: size(kbps),
+ approx: true,
+ kbps: Some(kbps),
+ ..Default::default()
});
}
// Opus (#70): about the size of the best sound when that is Opus already (it is only
@@ -619,6 +957,8 @@ pub fn choices(v: &Video, can_merge: bool) -> Vec<Choice> {
selector: OPUS.into(),
ext: "opus".into(),
size: opus_size,
+ approx: true,
+ ..Default::default()
});
// FLAC (#70): lossless from a lossy source, about 900 kbit/s for 48 kHz stereo.
out.push(Choice {
@@ -626,6 +966,8 @@ pub fn choices(v: &Video, can_merge: bool) -> Vec<Choice> {
selector: FLAC.into(),
ext: "flac".into(),
size: size(900),
+ approx: true,
+ ..Default::default()
});
}
out
@@ -648,6 +990,195 @@ mod tests {
use super::*;
+ const PORTRAIT: &str = include_str!("../tests/fixtures/youtube-4k60-portrait.json");
+ const HDR: &str = include_str!("../tests/fixtures/youtube-4k60-hdr.json");
+
+ /// The page's own pick (`format_id` beside the formats: yt-dlp's `bv*+ba` with ffmpeg).
+ fn ytdlp_pick(page: &str) -> String {
+ let v: serde_json::Value = serde_json::from_str(page).unwrap();
+ v["format_id"].as_str().unwrap().to_owned()
+ }
+
+ /// #801: YouTube's portrait 4K60 video (yt-dlp 2026.08.19): its 3840 lines were one, sized
+ /// from the HLS VP9 variant's peak bitrate (3.79 GB), while yt-dlp downloaded AV1 + Opus
+ /// (532 MB). Each line is now the very formats it downloads, sized from their bytes.
+ #[test]
+ fn the_size_shown_is_the_size_that_comes() {
+ let v = parse(PORTRAIT.as_bytes()).unwrap();
+ let c = choices(&v, true);
+ assert_eq!(c[0].label, "3840p · AV1 · 60 fps");
+ assert!(
+ c[0].selector
+ .starts_with(&format!("{}/", ytdlp_pick(PORTRAIT)))
+ );
+ assert_eq!(c[0].selector, "401+251/bv*[height=3840]+ba/b[height=3840]");
+ assert_eq!(c[0].size, Some(555_978_141 + 2_113_634));
+ assert!(!c[0].approx);
+ // The VP9 one of that height is its own line, from the file (315), not the HLS
+ // variant's estimate (628).
+ assert_eq!(c[1].label, "3840p · VP9 · 60 fps");
+ assert_eq!(c[1].selector, "315+251/bv*[height=3840]+ba/b[height=3840]");
+ assert_eq!(c[1].size, Some(1_144_096_984 + 2_113_634));
+ assert!(c.iter().all(|c| !c.selector.starts_with("628")));
+ // One line for each height, frame rate and codec; every one exact but a variant that
+ // only comes as HLS (602, VP9 at 15 fps), said to be about.
+ let videos: Vec<&Choice> = c.iter().filter(|c| c.height.is_some()).collect();
+ assert_eq!(videos.len(), 23);
+ let about: Vec<&str> = videos
+ .iter()
+ .filter(|c| c.approx)
+ .map(|c| c.label.as_str())
+ .collect();
+ assert_eq!(about, ["256p · VP9 · 15 fps"]);
+ let mut seen = std::collections::HashSet::new();
+ assert!(
+ videos.iter().all(|c| seen.insert(&c.label)),
+ "no twin lines"
+ );
+ // The sound as the site has it: YouTube's Opus (what `ba` takes), then its AAC.
+ let sound: Vec<(&str, &str, Option<u32>)> = c
+ .iter()
+ .filter(|c| original_sound(&c.selector))
+ .map(|c| (c.label.as_str(), c.selector.as_str(), c.kbps))
+ .collect();
+ assert_eq!(
+ sound,
+ [
+ ("Audio only original WEBM", "251/ba", Some(93)),
+ ("Audio only original M4A", "140/ba", Some(130))
+ ]
+ );
+ // Conversions are estimates.
+ assert!(
+ c.iter()
+ .filter(|c| audio_conversion(&c.selector).is_some())
+ .all(|c| c.approx)
+ );
+ }
+
+ /// #755: a 4K60 HDR video: AV1 and VP9 in HDR, VP9 in SDR, each its own line, the one
+ /// yt-dlp picks by itself first; SDR said where the height has HDR too. DRC sounds (YouTube's
+ /// quieter copies) are never the one merged.
+ #[test]
+ fn codec_frame_rate_and_hdr_lines() {
+ let v = parse(HDR.as_bytes()).unwrap();
+ let c = choices(&v, true);
+ let top: Vec<(&str, &str)> = c
+ .iter()
+ .take(3)
+ .map(|c| (c.label.as_str(), c.selector.as_str()))
+ .collect();
+ assert_eq!(
+ top,
+ [
+ (
+ "2160p · AV1 · 60 fps · HDR",
+ "701+251/bv*[height=2160]+ba/b[height=2160]"
+ ),
+ (
+ "2160p · VP9 · 60 fps · HDR",
+ "337+251/bv*[height=2160]+ba/b[height=2160]"
+ ),
+ (
+ "2160p · VP9 · 60 fps · SDR",
+ "315+251/bv*[height=2160]+ba/b[height=2160]"
+ ),
+ ]
+ );
+ assert!(c[0].selector.starts_with(&format!("{}/", ytdlp_pick(HDR))));
+ assert_eq!(
+ (c[0].codec.as_deref(), c[0].fps, c[0].range.as_deref()),
+ (Some("AV1"), Some(60), Some("HDR"))
+ );
+ assert_eq!(c[2].range.as_deref(), Some("SDR"));
+ assert_eq!(c[0].size, Some(303_941_999 + 1_612_962));
+ assert!(c.iter().all(|c| !c.selector.contains("-drc")));
+ let h264: Vec<&str> = c
+ .iter()
+ .filter(|c| c.codec.as_deref() == Some("H.264"))
+ .map(|c| c.label.as_str())
+ .collect();
+ assert_eq!(h264[0], "1080p · H.264 · 60 fps · SDR");
+ // Without ffmpeg YouTube has no format with both: only the sound.
+ assert!(choices(&v, false).iter().all(|c| c.height.is_none()));
+ }
+
+ #[test]
+ fn codecs_as_people_name_them() {
+ let n = |c: &str| codec_name(Some(c));
+ assert_eq!(n("av01.0.13M.10.0.110.09.16.09.0"), Some("AV1"));
+ assert_eq!(n("vp09.02.51.10.01.09.16.09.00"), Some("VP9"));
+ assert_eq!(n("vp9"), Some("VP9"));
+ assert_eq!(n("avc1.64002A"), Some("H.264"));
+ assert_eq!(n("hvc1.2.4.L153"), Some("H.265"));
+ assert_eq!(n("dvh1.08.06"), Some("H.265"));
+ assert_eq!(n("vp8"), Some("VP8"));
+ assert_eq!(n("none"), None);
+ assert_eq!(n("something"), None);
+ assert_eq!(codec_name(None), None);
+ assert_eq!(range_name(Some("HDR10")), Some("HDR"));
+ assert_eq!(range_name(Some("HLG")), Some("HDR"));
+ assert_eq!(range_name(Some("DV")), Some("Dolby Vision"));
+ assert_eq!(range_name(Some("SDR")), None);
+ }
+
+ /// Only an ID yt-dlp's `-f` reads as that ID is named; else the line keeps the selector by
+ /// height, and its size is about.
+ #[test]
+ fn ids_named_only_when_plain() {
+ for id in ["401", "251-drc", "hls-1080p", "dash_v.1"] {
+ assert!(plain_id(id), "{id}");
+ }
+ for id in [
+ "",
+ "mp4",
+ "best",
+ "b",
+ "a+b",
+ "a/b",
+ "x[height=1]",
+ "v,a",
+ "a b",
+ ] {
+ assert!(!plain_id(id), "{id}");
+ }
+ let page = r#"{"title": "T", "formats": [
+ {"format_id": "a/b", "ext": "mp4", "height": 720, "vcodec": "avc1", "acodec": "none", "filesize": 10},
+ {"format_id": "140", "ext": "m4a", "vcodec": "none", "acodec": "mp4a", "filesize": 1}]}"#;
+ let c = choices(&parse(page.as_bytes()).unwrap(), true);
+ assert_eq!(c[0].selector, "bv*[height=720]+ba/b[height=720]");
+ assert!(c[0].approx);
+ }
+
+ /// The size is about when the site only guesses it (`filesize_approx`), or it comes from
+ /// the bitrate; exact from `filesize`, or the server's word for a plain file.
+ #[test]
+ fn about_sizes_are_marked() {
+ let page = r#"{"title": "T", "duration": 10, "formats": [
+ {"format_id": "1", "ext": "mp4", "height": 720, "vcodec": "avc1", "acodec": "none", "filesize_approx": 1000},
+ {"format_id": "2", "ext": "mp4", "height": 480, "vcodec": "avc1", "acodec": "none", "filesize": 500},
+ {"format_id": "3", "ext": "mp4", "height": 360, "vcodec": "avc1", "acodec": "none", "tbr": 100},
+ {"format_id": "4", "ext": "m4a", "vcodec": "none", "acodec": "mp4a", "filesize": 50}]}"#;
+ let v = parse(page.as_bytes()).unwrap();
+ let c = choices(&v, true);
+ let sized: Vec<(Option<u64>, bool)> =
+ c.iter().take(3).map(|c| (c.size, c.approx)).collect();
+ assert_eq!(
+ sized,
+ [
+ (Some(1050), true),
+ (Some(550), false),
+ (Some(125_050), true)
+ ]
+ );
+ let mut direct = parse(
+ br#"{"title": "f", "direct": true, "formats": [{"format_id": "mp4", "ext": "mp4"}]}"#,
+ )
+ .unwrap();
+ direct.set_size(9);
+ assert!(!direct.formats[0].approx);
+ }
+
/// Wikimedia Commons' transcodes say a negative size (#769's Commons check): read as none,
/// not as a page with no video.
#[test]
@@ -673,7 +1204,7 @@ mod tests {
audio: true,
size: None,
tbr: Some(tbr),
- hls: false,
+ ..Default::default()
};
let v = Video {
title: "t".into(),
@@ -725,8 +1256,8 @@ mod tests {
assert_eq!(
sizes,
[
- ("720p MP4".to_owned(), Some(187_500_000)),
- ("360p MP4".to_owned(), Some(60_000_000))
+ ("720p · MP4".to_owned(), Some(187_500_000)),
+ ("360p · MP4".to_owned(), Some(60_000_000))
]
);
let live = HLS.replace(r#""duration": 600, "#, "");
@@ -770,9 +1301,9 @@ mod tests {
assert_eq!(
labels,
[
- "1080p 60fps MP4",
- "720p MP4",
- "360p MP4",
+ "1080p · H.264 · 60 fps",
+ "720p · H.264 · 30 fps",
+ "360p · H.264",
"Audio only original M4A",
"Audio only MP3 VBR",
"Audio only MP3 320 kbps",
@@ -799,8 +1330,8 @@ mod tests {
// Without ffmpeg only the format that has both survives, and no MP3 (it converts).
let plain = choices(&v, false);
let labels: Vec<&str> = plain.iter().map(|c| c.label.as_str()).collect();
- assert_eq!(labels, ["360p MP4", "Audio only original M4A"]);
- assert_eq!(plain[0].selector, "b[height=360]");
+ assert_eq!(labels, ["360p · H.264", "Audio only original M4A"]);
+ assert_eq!(plain[0].selector, "18/b[height=360]");
}
/// Live (#352): `MDM_LIVE_YTDLP=<yt-dlp> MDM_LIVE_PAGE=<video page> cargo test -p mdm-tools
@@ -871,7 +1402,7 @@ mod tests {
assert_eq!(without, ["Audio only original M4A"]);
assert!(needs_merging(&v));
let with: Vec<String> = choices(&v, true).into_iter().map(|c| c.label).collect();
- assert_eq!(&with[..2], ["1080p MP4", "360p MP4"]);
+ assert_eq!(&with[..2], ["1080p · H.264", "360p · H.264"]);
// A format carrying both, as good as any video: nothing more to get from merging.
let muxed = r#"{"title": "T", "formats": [
{"format_id": "18", "ext": "mp4", "height": 360, "vcodec": "avc1", "acodec": "mp4a"},
@@ -914,7 +1445,7 @@ mod tests {
let hls_only = r#"{"title": "T", "formats": [
{"format_id": "233", "ext": "mp4", "vcodec": "none", "acodec": "mp4a.40.2", "protocol": "m3u8_native"}]}"#;
let only = choices(&parse(hls_only.as_bytes()).unwrap(), false);
- assert_eq!(only[0].selector, "ba");
+ assert_eq!(only[0].selector, "233/ba");
}
/// #70: what each audio choice converts to; the original and videos convert nothing.
@@ -931,7 +1462,7 @@ mod tests {
label: "x".into(),
selector: FLAC.into(),
ext: "flac".into(),
- size: None,
+ ..Default::default()
};
assert!(is_audio(&flac));
}
@@ -977,7 +1508,7 @@ mod tests {
{"format_id": "18", "ext": "mp4", "height": 360, "vcodec": "avc1", "acodec": "mp4a", "filesize": 500}]}"#;
let v = parse(json.as_bytes()).unwrap();
let labels: Vec<String> = choices(&v, false).into_iter().map(|c| c.label).collect();
- assert_eq!(labels, ["360p MP4", "Audio only original M4A"]);
+ assert_eq!(labels, ["360p · H.264", "Audio only original M4A"]);
}
/// A page's subtitles (#68), as yt-dlp -J lists them: the uploader's by name, the chat
diff --git a/crates/tools/src/video.rs b/crates/tools/src/video.rs
index e839aebf..1a862db4 100644
--- a/crates/tools/src/video.rs
+++ b/crates/tools/src/video.rs
@@ -2601,11 +2601,12 @@ mod tests {
const PAGE: &str = r#"{"title": "T", "duration": 10, "formats": [
{"format_id": "18", "ext": "mp4", "height": 360, "vcodec": "avc1", "acodec": "mp4a", "tbr": 500}]}"#;
let page = PAGE.as_bytes();
- assert!(offered(page, "b[height=360]", "360p MP4", false).is_some());
- assert!(offered(page, "b[height=720]", "720p MP4", false).is_none());
- assert!(offered(page, "b[height=360]", "360p WEBM", false).is_none());
- assert!(offered(page, "b[height=360]", "360p MP4", true).is_none());
- assert!(offered(page, "bv*[height=360]+ba/b[height=360]", "360p MP4", true).is_some());
+ let label = "360p · H.264";
+ assert!(offered(page, "18/b[height=360]", label, false).is_some());
+ assert!(offered(page, "18/b[height=720]", "720p · H.264", false).is_none());
+ assert!(offered(page, "18/b[height=360]", "360p · WEBM · H.264", false).is_none());
+ assert!(offered(page, "18/b[height=360]", label, true).is_none());
+ assert!(offered(page, "18/bv*[height=360]+ba/b[height=360]", label, true).is_some());
assert!(offered(b"not json", "b", "b", false).is_none());
let slot = InfoSlot::new(Instant::now());
diff --git a/crates/tools/tests/fake_ytdlp.rs b/crates/tools/tests/fake_ytdlp.rs
index 6e43c2c0..652cbbee 100644
--- a/crates/tools/tests/fake_ytdlp.rs
+++ b/crates/tools/tests/fake_ytdlp.rs
@@ -542,7 +542,7 @@ fn preloaded_checks(me: &Path) {
let job = VideoJob::start_with(
&exe,
"https://video.example/talk",
- "b[height=360]",
+ "18/b[height=360]",
out.path(),
"Talk",
None,
@@ -578,7 +578,7 @@ fn preloaded_checks(me: &Path) {
}
Some(Preloaded {
slot,
- selector: "b[height=360]".into(),
+ selector: "18/b[height=360]".into(),
label: label.into(),
merge: false,
})
@@ -587,7 +587,7 @@ fn preloaded_checks(me: &Path) {
let note =
"The site offered no format with the browser's cookies; looked the page up without them";
- let (p, looked, _) = run("", menu("360p MP4", Some(true)));
+ let (p, looked, _) = run("", menu("360p · H.264", Some(true)));
assert!(matches!(p.state, State::Done(_)), "{:?}", p.state);
assert_eq!(looked, 0, "the menu's look-up, not another");
assert!(log_of(&p).iter().any(|t| t == note), "{:?}", log_of(&p));
@@ -598,14 +598,17 @@ fn preloaded_checks(me: &Path) {
assert_eq!(looked, 1);
// The menu's look-up doesn't offer that choice under that label, or failed: afresh.
- for menu in [menu("720p MP4", Some(false)), menu("360p MP4", None)] {
+ for menu in [
+ menu("720p · H.264", Some(false)),
+ menu("360p · H.264", None),
+ ] {
let (p, looked, _) = run("", menu);
assert!(matches!(p.state, State::Done(_)), "{:?}", p.state);
assert_eq!(looked, 1);
}
// The first run fails (a server stopped resolving): the second reads the page afresh.
- let (p, looked, _) = run("dns-once", menu("360p MP4", Some(false)));
+ let (p, looked, _) = run("dns-once", menu("360p · H.264", Some(false)));
assert!(matches!(p.state, State::Done(_)), "{:?}", p.state);
assert_eq!(looked, 1, "the retry's");
@@ -623,7 +626,7 @@ fn preloaded_checks(me: &Path) {
&format!(r#""acodec": "mp4a", "protocol": "https", "url": "{dead}"}}"#),
);
assert!(page.contains(dead));
- let (p, looked, loaded) = run("", menu_of(&page, "360p MP4", Some(false)));
+ let (p, looked, loaded) = run("", menu_of(&page, "360p · H.264", Some(false)));
assert!(matches!(p.state, State::Done(_)), "{:?}", p.state);
assert_eq!(looked, 0, "the menu's look-up, moved");
assert!(
diff --git a/crates/tools/tests/fixtures/youtube-4k60-hdr.json b/crates/tools/tests/fixtures/youtube-4k60-hdr.json
new file mode 100644
index 00000000..3f87e702
--- /dev/null
+++ b/crates/tools/tests/fixtures/youtube-4k60-hdr.json
@@ -0,0 +1,66 @@
+{"id": "bON-KPiiNCk", "title": "A 4K60 HDR video (#755)", "duration": 101, "format_id": "701+251", "formats": [
+{"format_id": "233", "ext": "mp4", "vcodec": "none", "tbr": null, "protocol": "m3u8_native", "quality": -1, "preference": null, "has_drm": false, "format_note": "Default, low"},
+{"format_id": "234", "ext": "mp4", "vcodec": "none", "tbr": null, "protocol": "m3u8_native", "quality": -1, "preference": null, "has_drm": false, "format_note": "Default, high"},
+{"format_id": "139-drc", "ext": "m4a", "height": null, "width": null, "fps": null, "vcodec": "none", "acodec": "mp4a.40.5", "dynamic_range": null, "filesize": 619480, "filesize_approx": 619470, "tbr": 48.884, "protocol": "https", "quality": 1.5, "language_preference": -1, "audio_channels": 2, "preference": null, "has_drm": false, "format_note": "low, DRC"},
+{"format_id": "249-drc", "ext": "webm", "height": null, "width": null, "fps": null, "vcodec": "none", "acodec": "opus", "dynamic_range": null, "filesize": 607785, "filesize_approx": 607780, "tbr": 47.998, "protocol": "https", "quality": 1.5, "language_preference": -1, "audio_channels": 2, "preference": null, "has_drm": false, "format_note": "low, DRC"},
+{"format_id": "250-drc", "ext": "webm", "height": null, "width": null, "fps": null, "vcodec": "none", "acodec": "opus", "dynamic_range": null, "filesize": 802701, "filesize_approx": 802696, "tbr": 63.391, "protocol": "https", "quality": 1.5, "language_preference": -1, "audio_channels": 2, "preference": null, "has_drm": false, "format_note": "low, DRC"},
+{"format_id": "139", "ext": "m4a", "height": null, "width": null, "fps": null, "vcodec": "none", "acodec": "mp4a.40.5", "dynamic_range": null, "filesize": 619165, "filesize_approx": 619153, "tbr": 48.859, "protocol": "https", "quality": 2.0, "language_preference": -1, "audio_channels": 2, "preference": null, "has_drm": false, "format_note": "low"},
+{"format_id": "249", "ext": "webm", "height": null, "width": null, "fps": null, "vcodec": "none", "acodec": "opus", "dynamic_range": null, "filesize": 606017, "filesize_approx": 606007, "tbr": 47.858, "protocol": "https", "quality": 2.0, "language_preference": -1, "audio_channels": 2, "preference": null, "has_drm": false, "format_note": "low"},
+{"format_id": "250", "ext": "webm", "height": null, "width": null, "fps": null, "vcodec": "none", "acodec": "opus", "dynamic_range": null, "filesize": 802986, "filesize_approx": 802975, "tbr": 63.413, "protocol": "https", "quality": 2.0, "language_preference": -1, "audio_channels": 2, "preference": null, "has_drm": false, "format_note": "low"},
+{"format_id": "140-drc", "ext": "m4a", "height": null, "width": null, "fps": null, "vcodec": "none", "acodec": "mp4a.40.2", "dynamic_range": null, "filesize": 1640965, "filesize_approx": 1640954, "tbr": 129.552, "protocol": "https", "quality": 2.5, "language_preference": -1, "audio_channels": 2, "preference": null, "has_drm": false, "format_note": "medium, DRC"},
+{"format_id": "251-drc", "ext": "webm", "height": null, "width": null, "fps": null, "vcodec": "none", "acodec": "opus", "dynamic_range": null, "filesize": 1613400, "filesize_approx": 1613395, "tbr": 127.414, "protocol": "https", "quality": 2.5, "language_preference": -1, "audio_channels": 2, "preference": null, "has_drm": false, "format_note": "medium, DRC"},
+{"format_id": "140", "ext": "m4a", "height": null, "width": null, "fps": null, "vcodec": "none", "acodec": "mp4a.40.2", "dynamic_range": null, "filesize": 1640706, "filesize_approx": 1640700, "tbr": 129.532, "protocol": "https", "quality": 3.0, "language_preference": -1, "audio_channels": 2, "preference": null, "has_drm": false, "format_note": "medium"},
+{"format_id": "251", "ext": "webm", "height": null, "width": null, "fps": null, "vcodec": "none", "acodec": "opus", "dynamic_range": null, "filesize": 1612962, "filesize_approx": 1612952, "tbr": 127.379, "protocol": "https", "quality": 3.0, "language_preference": -1, "audio_channels": 2, "preference": null, "has_drm": false, "format_note": "medium"},
+{"format_id": "602", "ext": "mp4", "height": 144, "width": 256, "fps": 15.0, "vcodec": "vp09.00.10.08", "acodec": "none", "dynamic_range": "SDR", "tbr": 84.728, "protocol": "m3u8_native", "quality": 0, "preference": null, "has_drm": false},
+{"format_id": "269", "ext": "mp4", "height": 144, "width": 256, "fps": 30.0, "vcodec": "avc1.4D400C", "acodec": "none", "dynamic_range": "SDR", "tbr": 170.658, "protocol": "m3u8_native", "quality": 0, "preference": null, "has_drm": false},
+{"format_id": "160", "ext": "mp4", "height": 144, "width": 256, "fps": 30, "vcodec": "avc1.4D400C", "acodec": "none", "dynamic_range": "SDR", "filesize": 748447, "filesize_approx": 748439, "tbr": 59.126, "protocol": "https", "quality": 0.0, "language_preference": -1, "audio_channels": null, "preference": null, "has_drm": false, "format_note": "144p"},
+{"format_id": "603", "ext": "mp4", "height": 144, "width": 256, "fps": 30.0, "vcodec": "vp09.00.11.08", "acodec": "none", "dynamic_range": "SDR", "tbr": 133.525, "protocol": "m3u8_native", "quality": 0, "preference": null, "has_drm": false},
+{"format_id": "278", "ext": "webm", "height": 144, "width": 256, "fps": 30, "vcodec": "vp9", "acodec": "none", "dynamic_range": "SDR", "filesize": 734421, "filesize_approx": 734420, "tbr": 58.018, "protocol": "https", "quality": 0.0, "language_preference": -1, "audio_channels": null, "preference": null, "has_drm": false, "format_note": "144p"},
+{"format_id": "631", "ext": "mp4", "height": 144, "width": 256, "fps": 60.0, "vcodec": "vp09.02.11.10.01.09.16.09.00", "acodec": "none", "dynamic_range": "HDR10", "tbr": 310.867, "protocol": "m3u8_native", "quality": 0, "preference": null, "has_drm": false},
+{"format_id": "330", "ext": "webm", "height": 144, "width": 256, "fps": 60, "vcodec": "vp9.2", "acodec": "none", "dynamic_range": "HDR10", "filesize": 2566104, "filesize_approx": 2566093, "tbr": 202.717, "protocol": "https", "quality": 0.0, "language_preference": -1, "audio_channels": null, "preference": null, "has_drm": false, "format_note": "144p60 HDR"},
+{"format_id": "694", "ext": "mp4", "height": 144, "width": 256, "fps": 60, "vcodec": "av01.0.00M.10.0.110.09.16.09.0", "acodec": "none", "dynamic_range": "HDR10", "filesize": 1548384, "filesize_approx": 1548372, "tbr": 122.32, "protocol": "https", "quality": 0.0, "language_preference": -1, "audio_channels": null, "preference": null, "has_drm": false, "format_note": "144p60 HDR"},
+{"format_id": "229", "ext": "mp4", "height": 240, "width": 426, "fps": 30.0, "vcodec": "avc1.4D4015", "acodec": "none", "dynamic_range": "SDR", "tbr": 311.256, "protocol": "m3u8_native", "quality": 5, "preference": null, "has_drm": false},
+{"format_id": "133", "ext": "mp4", "height": 240, "width": 426, "fps": 30, "vcodec": "avc1.4D4015", "acodec": "none", "dynamic_range": "SDR", "filesize": 1754706, "filesize_approx": 1754703, "tbr": 138.62, "protocol": "https", "quality": 5.0, "language_preference": -1, "audio_channels": null, "preference": null, "has_drm": false, "format_note": "240p"},
+{"format_id": "604", "ext": "mp4", "height": 240, "width": 426, "fps": 30.0, "vcodec": "vp09.00.20.08", "acodec": "none", "dynamic_range": "SDR", "tbr": 336.285, "protocol": "m3u8_native", "quality": 5, "preference": null, "has_drm": false},
+{"format_id": "242", "ext": "webm", "height": 240, "width": 426, "fps": 30, "vcodec": "vp9", "acodec": "none", "dynamic_range": "SDR", "filesize": 1565928, "filesize_approx": 1565919, "tbr": 123.705, "protocol": "https", "quality": 5.0, "language_preference": -1, "audio_channels": null, "preference": null, "has_drm": false, "format_note": "240p"},
+{"format_id": "632", "ext": "mp4", "height": 240, "width": 426, "fps": 60.0, "vcodec": "vp09.02.21.10.01.09.16.09.00", "acodec": "none", "dynamic_range": "HDR10", "tbr": 576.343, "protocol": "m3u8_native", "quality": 5, "preference": null, "has_drm": false},
+{"format_id": "331", "ext": "webm", "height": 240, "width": 426, "fps": 60, "vcodec": "vp9.2", "acodec": "none", "dynamic_range": "HDR10", "filesize": 5396586, "filesize_approx": 5396584, "tbr": 426.321, "protocol": "https", "quality": 5.0, "language_preference": -1, "audio_channels": null, "preference": null, "has_drm": false, "format_note": "240p60 HDR"},
+{"format_id": "695", "ext": "mp4", "height": 240, "width": 426, "fps": 60, "vcodec": "av01.0.01M.10.0.110.09.16.09.0", "acodec": "none", "dynamic_range": "HDR10", "filesize": 3157617, "filesize_approx": 3157606, "tbr": 249.448, "protocol": "https", "quality": 5.0, "language_preference": -1, "audio_channels": null, "preference": null, "has_drm": false, "format_note": "240p60 HDR"},
+{"format_id": "230", "ext": "mp4", "height": 360, "width": 640, "fps": 30.0, "vcodec": "avc1.4D401E", "acodec": "none", "dynamic_range": "SDR", "tbr": 801.312, "protocol": "m3u8_native", "quality": 6, "preference": null, "has_drm": false},
+{"format_id": "134", "ext": "mp4", "height": 360, "width": 640, "fps": 30, "vcodec": "avc1.4D401E", "acodec": "none", "dynamic_range": "SDR", "filesize": 4052871, "filesize_approx": 4052869, "tbr": 320.173, "protocol": "https", "quality": 6.0, "language_preference": -1, "audio_channels": null, "preference": null, "has_drm": false, "format_note": "360p"},
+{"format_id": "605", "ext": "mp4", "height": 360, "width": 640, "fps": 30.0, "vcodec": "vp09.00.21.08", "acodec": "none", "dynamic_range": "SDR", "tbr": 1309.831, "protocol": "m3u8_native", "quality": 6, "preference": null, "has_drm": false},
+{"format_id": "243", "ext": "webm", "height": 360, "width": 640, "fps": 30, "vcodec": "vp9", "acodec": "none", "dynamic_range": "SDR", "filesize": 4357916, "filesize_approx": 4357903, "tbr": 344.267, "protocol": "https", "quality": 6.0, "language_preference": -1, "audio_channels": null, "preference": null, "has_drm": false, "format_note": "360p"},
+{"format_id": "633", "ext": "mp4", "height": 360, "width": 640, "fps": 60.0, "vcodec": "vp09.02.30.10.01.09.16.09.00", "acodec": "none", "dynamic_range": "HDR10", "tbr": 1250.464, "protocol": "m3u8_native", "quality": 6, "preference": null, "has_drm": false},
+{"format_id": "332", "ext": "webm", "height": 360, "width": 640, "fps": 60, "vcodec": "vp9.2", "acodec": "none", "dynamic_range": "HDR10", "filesize": 11725479, "filesize_approx": 11725467, "tbr": 926.292, "protocol": "https", "quality": 6.0, "language_preference": -1, "audio_channels": null, "preference": null, "has_drm": false, "format_note": "360p60 HDR"},
+{"format_id": "696", "ext": "mp4", "height": 360, "width": 640, "fps": 60, "vcodec": "av01.0.04M.10.0.110.09.16.09.0", "acodec": "none", "dynamic_range": "HDR10", "filesize": 6796035, "filesize_approx": 6796028, "tbr": 536.88, "protocol": "https", "quality": 6.0, "language_preference": -1, "audio_channels": null, "preference": null, "has_drm": false, "format_note": "360p60 HDR"},
+{"format_id": "231", "ext": "mp4", "height": 480, "width": 854, "fps": 30.0, "vcodec": "avc1.4D401F", "acodec": "none", "dynamic_range": "SDR", "tbr": 1352.621, "protocol": "m3u8_native", "quality": 7, "preference": null, "has_drm": false},
+{"format_id": "135", "ext": "mp4", "height": 480, "width": 854, "fps": 30, "vcodec": "avc1.4D401F", "acodec": "none", "dynamic_range": "SDR", "filesize": 6938814, "filesize_approx": 6938802, "tbr": 548.159, "protocol": "https", "quality": 7.0, "language_preference": -1, "audio_channels": null, "preference": null, "has_drm": false, "format_note": "480p"},
+{"format_id": "606", "ext": "mp4", "height": 480, "width": 854, "fps": 30.0, "vcodec": "vp09.00.30.08", "acodec": "none", "dynamic_range": "SDR", "tbr": 2260.637, "protocol": "m3u8_native", "quality": 7, "preference": null, "has_drm": false},
+{"format_id": "244", "ext": "webm", "height": 480, "width": 854, "fps": 30, "vcodec": "vp9", "acodec": "none", "dynamic_range": "SDR", "filesize": 7617424, "filesize_approx": 7617416, "tbr": 601.763, "protocol": "https", "quality": 7.0, "language_preference": -1, "audio_channels": null, "preference": null, "has_drm": false, "format_note": "480p"},
+{"format_id": "634", "ext": "mp4", "height": 480, "width": 854, "fps": 60.0, "vcodec": "vp09.02.31.10.01.09.16.09.00", "acodec": "none", "dynamic_range": "HDR10", "tbr": 2222.443, "protocol": "m3u8_native", "quality": 7, "preference": null, "has_drm": false},
+{"format_id": "333", "ext": "webm", "height": 480, "width": 854, "fps": 60, "vcodec": "vp9.2", "acodec": "none", "dynamic_range": "HDR10", "filesize": 22233049, "filesize_approx": 22233047, "tbr": 1756.373, "protocol": "https", "quality": 7.0, "language_preference": -1, "audio_channels": null, "preference": null, "has_drm": false, "format_note": "480p60 HDR"},
+{"format_id": "697", "ext": "mp4", "height": 480, "width": 854, "fps": 60, "vcodec": "av01.0.05M.10.0.110.09.16.09.0", "acodec": "none", "dynamic_range": "HDR10", "filesize": 12990802, "filesize_approx": 12990796, "tbr": 1026.261, "protocol": "https", "quality": 7.0, "language_preference": -1, "audio_channels": null, "preference": null, "has_drm": false, "format_note": "480p60 HDR"},
+{"format_id": "311", "ext": "mp4", "height": 720, "width": 1280, "fps": 60.0, "vcodec": "avc1.4D4020", "acodec": "none", "dynamic_range": "SDR", "tbr": 4428.775, "protocol": "m3u8_native", "quality": 8, "preference": null, "has_drm": false},
+{"format_id": "298", "ext": "mp4", "height": 720, "width": 1280, "fps": 60, "vcodec": "avc1.4D4020", "acodec": "none", "dynamic_range": "SDR", "filesize": 32361958, "filesize_approx": 32361945, "tbr": 2556.564, "protocol": "https", "quality": 8.0, "language_preference": -1, "audio_channels": null, "preference": null, "has_drm": false, "format_note": "720p60"},
+{"format_id": "612", "ext": "mp4", "height": 720, "width": 1280, "fps": 60.0, "vcodec": "vp09.00.40.08", "acodec": "none", "dynamic_range": "SDR", "tbr": 8520.163, "protocol": "m3u8_native", "quality": 8, "preference": null, "has_drm": false},
+{"format_id": "302", "ext": "webm", "height": 720, "width": 1280, "fps": 60, "vcodec": "vp9", "acodec": "none", "dynamic_range": "SDR", "filesize": 26579353, "filesize_approx": 26579343, "tbr": 2099.723, "protocol": "https", "quality": 8.0, "language_preference": -1, "audio_channels": null, "preference": null, "has_drm": false, "format_note": "720p60"},
+{"format_id": "635", "ext": "mp4", "height": 720, "width": 1280, "fps": 60.0, "vcodec": "vp09.02.40.10.01.09.16.09.00", "acodec": "none", "dynamic_range": "HDR10", "tbr": 4875.95, "protocol": "m3u8_native", "quality": 8, "preference": null, "has_drm": false},
+{"format_id": "334", "ext": "webm", "height": 720, "width": 1280, "fps": 60, "vcodec": "vp9.2", "acodec": "none", "dynamic_range": "HDR10", "filesize": 51490335, "filesize_approx": 51490334, "tbr": 4067.649, "protocol": "https", "quality": 8.0, "language_preference": -1, "audio_channels": null, "preference": null, "has_drm": false, "format_note": "720p60 HDR"},
+{"format_id": "698", "ext": "mp4", "height": 720, "width": 1280, "fps": 60, "vcodec": "av01.0.08M.10.0.110.09.16.09.0", "acodec": "none", "dynamic_range": "HDR10", "filesize": 36787218, "filesize_approx": 36787212, "tbr": 2906.156, "protocol": "https", "quality": 8.0, "language_preference": -1, "audio_channels": null, "preference": null, "has_drm": false, "format_note": "720p60 HDR"},
+{"format_id": "312", "ext": "mp4", "height": 1080, "width": 1920, "fps": 60.0, "vcodec": "avc1.64002A", "acodec": "none", "dynamic_range": "SDR", "tbr": 7271.916, "protocol": "m3u8_native", "quality": 9, "preference": null, "has_drm": false},
+{"format_id": "299", "ext": "mp4", "height": 1080, "width": 1920, "fps": 60, "vcodec": "avc1.64002A", "acodec": "none", "dynamic_range": "SDR", "filesize": 57607872, "filesize_approx": 57607859, "tbr": 4550.968, "protocol": "https", "quality": 9.0, "language_preference": -1, "audio_channels": null, "preference": null, "has_drm": false, "format_note": "1080p60"},
+{"format_id": "617", "ext": "mp4", "height": 1080, "width": 1920, "fps": 60.0, "vcodec": "vp09.00.41.08", "acodec": "none", "dynamic_range": "SDR", "tbr": 14810.56, "protocol": "m3u8_native", "quality": 9, "preference": null, "has_drm": false},
+{"format_id": "303", "ext": "webm", "height": 1080, "width": 1920, "fps": 60, "vcodec": "vp9", "acodec": "none", "dynamic_range": "SDR", "filesize": 52762134, "filesize_approx": 52762121, "tbr": 4168.118, "protocol": "https", "quality": 9.0, "language_preference": -1, "audio_channels": null, "preference": null, "has_drm": false, "format_note": "1080p60"},
+{"format_id": "636", "ext": "mp4", "height": 1080, "width": 1920, "fps": 60.0, "vcodec": "vp09.02.41.10.01.09.16.09.00", "acodec": "none", "dynamic_range": "HDR10", "tbr": 7395.325, "protocol": "m3u8_native", "quality": 9, "preference": null, "has_drm": false},
+{"format_id": "335", "ext": "webm", "height": 1080, "width": 1920, "fps": 60, "vcodec": "vp9.2", "acodec": "none", "dynamic_range": "HDR10", "filesize": 79834479, "filesize_approx": 79834475, "tbr": 6306.788, "protocol": "https", "quality": 9.0, "language_preference": -1, "audio_channels": null, "preference": null, "has_drm": false, "format_note": "1080p60 HDR"},
+{"format_id": "699", "ext": "mp4", "height": 1080, "width": 1920, "fps": 60, "vcodec": "av01.0.09M.10.0.110.09.16.09.0", "acodec": "none", "dynamic_range": "HDR10", "filesize": 59521850, "filesize_approx": 59521843, "tbr": 4702.171, "protocol": "https", "quality": 9.0, "language_preference": -1, "audio_channels": null, "preference": null, "has_drm": false, "format_note": "1080p60 HDR"},
+{"format_id": "623", "ext": "mp4", "height": 1440, "width": 2560, "fps": 60.0, "vcodec": "vp09.00.50.08", "acodec": "none", "dynamic_range": "SDR", "tbr": 19895.643, "protocol": "m3u8_native", "quality": 10, "preference": null, "has_drm": false},
+{"format_id": "308", "ext": "webm", "height": 1440, "width": 2560, "fps": 60, "vcodec": "vp9", "acodec": "none", "dynamic_range": "SDR", "filesize": 129454876, "filesize_approx": 129454871, "tbr": 10226.715, "protocol": "https", "quality": 10.0, "language_preference": -1, "audio_channels": null, "preference": null, "has_drm": false, "format_note": "1440p60"},
+{"format_id": "639", "ext": "mp4", "height": 1440, "width": 2560, "fps": 60.0, "vcodec": "vp09.02.50.10.01.09.16.09.00", "acodec": "none", "dynamic_range": "HDR10", "tbr": 17375.387, "protocol": "m3u8_native", "quality": 10, "preference": null, "has_drm": false},
+{"format_id": "336", "ext": "webm", "height": 1440, "width": 2560, "fps": 60, "vcodec": "vp9.2", "acodec": "none", "dynamic_range": "HDR10", "filesize": 196989732, "filesize_approx": 196989728, "tbr": 15561.854, "protocol": "https", "quality": 10.0, "language_preference": -1, "audio_channels": null, "preference": null, "has_drm": false, "format_note": "1440p60 HDR"},
+{"format_id": "700", "ext": "mp4", "height": 1440, "width": 2560, "fps": 60, "vcodec": "av01.0.12M.10.0.110.09.16.09.0", "acodec": "none", "dynamic_range": "HDR10", "filesize": 170901105, "filesize_approx": 170901100, "tbr": 13501.03, "protocol": "https", "quality": 10.0, "language_preference": -1, "audio_channels": null, "preference": null, "has_drm": false, "format_note": "1440p60 HDR"},
+{"format_id": "628", "ext": "mp4", "height": 2160, "width": 3840, "fps": 60.0, "vcodec": "vp09.00.51.08", "acodec": "none", "dynamic_range": "SDR", "tbr": 34734.393, "protocol": "m3u8_native", "quality": 11, "preference": null, "has_drm": false},
+{"format_id": "315", "ext": "webm", "height": 2160, "width": 3840, "fps": 60, "vcodec": "vp9", "acodec": "none", "dynamic_range": "SDR", "filesize": 291017325, "filesize_approx": 291017320, "tbr": 22989.874, "protocol": "https", "quality": 11.0, "language_preference": -1, "audio_channels": null, "preference": null, "has_drm": false, "format_note": "2160p60"},
+{"format_id": "642", "ext": "mp4", "height": 2160, "width": 3840, "fps": 60.0, "vcodec": "vp09.02.51.10.01.09.16.09.00", "acodec": "none", "dynamic_range": "HDR10", "tbr": 30739.959, "protocol": "m3u8_native", "quality": 11, "preference": null, "has_drm": false},
+{"format_id": "337", "ext": "webm", "height": 2160, "width": 3840, "fps": 60, "vcodec": "vp9.2", "acodec": "none", "dynamic_range": "HDR10", "filesize": 350083762, "filesize_approx": 350083754, "tbr": 27656.022, "protocol": "https", "quality": 11.0, "language_preference": -1, "audio_channels": null, "preference": null, "has_drm": false, "format_note": "2160p60 HDR"},
+{"format_id": "701", "ext": "mp4", "height": 2160, "width": 3840, "fps": 60, "vcodec": "av01.0.13M.10.0.110.09.16.09.0", "acodec": "none", "dynamic_range": "HDR10", "filesize": 303941999, "filesize_approx": 303941988, "tbr": 24011.138, "protocol": "https", "quality": 11.0, "language_preference": -1, "audio_channels": null, "preference": null, "has_drm": false, "format_note": "2160p60 HDR"}]}
diff --git a/crates/tools/tests/fixtures/youtube-4k60-portrait.json b/crates/tools/tests/fixtures/youtube-4k60-portrait.json
new file mode 100644
index 00000000..9b1d4443
--- /dev/null
+++ b/crates/tools/tests/fixtures/youtube-4k60-portrait.json
@@ -0,0 +1,45 @@
+{"id": "7gggLYH38QA", "title": "A portrait 4K60 video (#801)", "duration": 181, "format_id": "401+251", "formats": [
+{"format_id": "233", "ext": "mp4", "vcodec": "none", "tbr": null, "protocol": "m3u8_native", "quality": -1, "preference": null, "has_drm": false, "format_note": "Default, low"},
+{"format_id": "234", "ext": "mp4", "vcodec": "none", "tbr": null, "protocol": "m3u8_native", "quality": -1, "preference": null, "has_drm": false, "format_note": "Default, high"},
+{"format_id": "139", "ext": "m4a", "height": null, "width": null, "fps": null, "vcodec": "none", "acodec": "mp4a.40.5", "dynamic_range": null, "filesize": 1106675, "filesize_approx": 1106670, "tbr": 48.82, "protocol": "https", "quality": 2.0, "language_preference": -1, "audio_channels": 2, "preference": null, "has_drm": false, "format_note": "low"},
+{"format_id": "249", "ext": "webm", "height": null, "width": null, "fps": null, "vcodec": "none", "acodec": "opus", "dynamic_range": null, "filesize": 920430, "filesize_approx": 920409, "tbr": 40.627, "protocol": "https", "quality": 2.0, "language_preference": -1, "audio_channels": 2, "preference": null, "has_drm": false, "format_note": "low"},
+{"format_id": "250", "ext": "webm", "height": null, "width": null, "fps": null, "vcodec": "none", "acodec": "opus", "dynamic_range": null, "filesize": 1144954, "filesize_approx": 1144944, "tbr": 50.538, "protocol": "https", "quality": 2.0, "language_preference": -1, "audio_channels": 2, "preference": null, "has_drm": false, "format_note": "low"},
+{"format_id": "140", "ext": "m4a", "height": null, "width": null, "fps": null, "vcodec": "none", "acodec": "mp4a.40.2", "dynamic_range": null, "filesize": 2934637, "filesize_approx": 2934618, "tbr": 129.508, "protocol": "https", "quality": 3.0, "language_preference": -1, "audio_channels": 2, "preference": null, "has_drm": false, "format_note": "medium"},
+{"format_id": "251", "ext": "webm", "height": null, "width": null, "fps": null, "vcodec": "none", "acodec": "opus", "dynamic_range": null, "filesize": 2113634, "filesize_approx": 2113632, "tbr": 93.296, "protocol": "https", "quality": 3.0, "language_preference": -1, "audio_channels": 2, "preference": null, "has_drm": false, "format_note": "medium"},
+{"format_id": "602", "ext": "mp4", "height": 256, "width": 144, "fps": 15.0, "vcodec": "vp09.00.10.08", "acodec": "none", "dynamic_range": "SDR", "tbr": 399.992, "protocol": "m3u8_native", "quality": 0, "preference": null, "has_drm": false},
+{"format_id": "269", "ext": "mp4", "height": 256, "width": 144, "fps": 30.0, "vcodec": "avc1.4D400C", "acodec": "none", "dynamic_range": "SDR", "tbr": 217.525, "protocol": "m3u8_native", "quality": 0, "preference": null, "has_drm": false},
+{"format_id": "160", "ext": "mp4", "height": 256, "width": 144, "fps": 30, "vcodec": "avc1.4D400C", "acodec": "none", "dynamic_range": "SDR", "filesize": 2557584, "filesize_approx": 2557582, "tbr": 112.897, "protocol": "https", "quality": 0.0, "language_preference": -1, "audio_channels": null, "preference": null, "has_drm": false, "format_note": "144p"},
+{"format_id": "603", "ext": "mp4", "height": 256, "width": 144, "fps": 30.0, "vcodec": "vp09.00.11.08", "acodec": "none", "dynamic_range": "SDR", "tbr": 1082.617, "protocol": "m3u8_native", "quality": 0, "preference": null, "has_drm": false},
+{"format_id": "278", "ext": "webm", "height": 256, "width": 144, "fps": 30, "vcodec": "vp9", "acodec": "none", "dynamic_range": "SDR", "filesize": 3968997, "filesize_approx": 3968980, "tbr": 175.199, "protocol": "https", "quality": 0.0, "language_preference": -1, "audio_channels": null, "preference": null, "has_drm": false, "format_note": "144p"},
+{"format_id": "394", "ext": "mp4", "height": 256, "width": 144, "fps": 30, "vcodec": "av01.0.00M.08", "acodec": "none", "dynamic_range": "SDR", "filesize": 1958144, "filesize_approx": 1958131, "tbr": 86.436, "protocol": "https", "quality": 0.0, "language_preference": -1, "audio_channels": null, "preference": null, "has_drm": false, "format_note": "144p"},
+{"format_id": "229", "ext": "mp4", "height": 426, "width": 240, "fps": 30.0, "vcodec": "avc1.4D4015", "acodec": "none", "dynamic_range": "SDR", "tbr": 387.951, "protocol": "m3u8_native", "quality": 5, "preference": null, "has_drm": false},
+{"format_id": "133", "ext": "mp4", "height": 426, "width": 240, "fps": 30, "vcodec": "avc1.4D4015", "acodec": "none", "dynamic_range": "SDR", "filesize": 5218872, "filesize_approx": 5218853, "tbr": 230.371, "protocol": "https", "quality": 5.0, "language_preference": -1, "audio_channels": null, "preference": null, "has_drm": false, "format_note": "240p"},
+{"format_id": "604", "ext": "mp4", "height": 426, "width": 240, "fps": 30.0, "vcodec": "vp09.00.20.08", "acodec": "none", "dynamic_range": "SDR", "tbr": 630.59, "protocol": "m3u8_native", "quality": 5, "preference": null, "has_drm": false},
+{"format_id": "242", "ext": "webm", "height": 426, "width": 240, "fps": 30, "vcodec": "vp9", "acodec": "none", "dynamic_range": "SDR", "filesize": 6038324, "filesize_approx": 6038321, "tbr": 266.544, "protocol": "https", "quality": 5.0, "language_preference": -1, "audio_channels": null, "preference": null, "has_drm": false, "format_note": "240p"},
+{"format_id": "395", "ext": "mp4", "height": 426, "width": 240, "fps": 30, "vcodec": "av01.0.00M.08", "acodec": "none", "dynamic_range": "SDR", "filesize": 4340140, "filesize_approx": 4340122, "tbr": 191.582, "protocol": "https", "quality": 5.0, "language_preference": -1, "audio_channels": null, "preference": null, "has_drm": false, "format_note": "240p"},
+{"format_id": "230", "ext": "mp4", "height": 640, "width": 360, "fps": 30.0, "vcodec": "avc1.4D401E", "acodec": "none", "dynamic_range": "SDR", "tbr": 812.491, "protocol": "m3u8_native", "quality": 6, "preference": null, "has_drm": false},
+{"format_id": "134", "ext": "mp4", "height": 640, "width": 360, "fps": 30, "vcodec": "avc1.4D401E", "acodec": "none", "dynamic_range": "SDR", "filesize": 11284331, "filesize_approx": 11284314, "tbr": 498.113, "protocol": "https", "quality": 6.0, "language_preference": -1, "audio_channels": null, "preference": null, "has_drm": false, "format_note": "360p"},
+{"format_id": "605", "ext": "mp4", "height": 640, "width": 360, "fps": 30.0, "vcodec": "vp09.00.21.08", "acodec": "none", "dynamic_range": "SDR", "tbr": 1512.927, "protocol": "m3u8_native", "quality": 6, "preference": null, "has_drm": false},
+{"format_id": "243", "ext": "webm", "height": 640, "width": 360, "fps": 30, "vcodec": "vp9", "acodec": "none", "dynamic_range": "SDR", "filesize": 13564478, "filesize_approx": 13564474, "tbr": 598.764, "protocol": "https", "quality": 6.0, "language_preference": -1, "audio_channels": null, "preference": null, "has_drm": false, "format_note": "360p"},
+{"format_id": "396", "ext": "mp4", "height": 640, "width": 360, "fps": 30, "vcodec": "av01.0.01M.08", "acodec": "none", "dynamic_range": "SDR", "filesize": 9265926, "filesize_approx": 9265922, "tbr": 409.017, "protocol": "https", "quality": 6.0, "language_preference": -1, "audio_channels": null, "preference": null, "has_drm": false, "format_note": "360p"},
+{"format_id": "231", "ext": "mp4", "height": 854, "width": 480, "fps": 30.0, "vcodec": "avc1.4D401F", "acodec": "none", "dynamic_range": "SDR", "tbr": 1314.999, "protocol": "m3u8_native", "quality": 7, "preference": null, "has_drm": false},
+{"format_id": "135", "ext": "mp4", "height": 854, "width": 480, "fps": 30, "vcodec": "avc1.4D401F", "acodec": "none", "dynamic_range": "SDR", "filesize": 21434075, "filesize_approx": 21434064, "tbr": 946.144, "protocol": "https", "quality": 7.0, "language_preference": -1, "audio_channels": null, "preference": null, "has_drm": false, "format_note": "480p"},
+{"format_id": "606", "ext": "mp4", "height": 854, "width": 480, "fps": 30.0, "vcodec": "vp09.00.30.08", "acodec": "none", "dynamic_range": "SDR", "tbr": 1454.387, "protocol": "m3u8_native", "quality": 7, "preference": null, "has_drm": false},
+{"format_id": "244", "ext": "webm", "height": 854, "width": 480, "fps": 30, "vcodec": "vp9", "acodec": "none", "dynamic_range": "SDR", "filesize": 19154930, "filesize_approx": 19154923, "tbr": 845.538, "protocol": "https", "quality": 7.0, "language_preference": -1, "audio_channels": null, "preference": null, "has_drm": false, "format_note": "480p"},
+{"format_id": "397", "ext": "mp4", "height": 854, "width": 480, "fps": 30, "vcodec": "av01.0.04M.08", "acodec": "none", "dynamic_range": "SDR", "filesize": 18722680, "filesize_approx": 18722660, "tbr": 826.457, "protocol": "https", "quality": 7.0, "language_preference": -1, "audio_channels": null, "preference": null, "has_drm": false, "format_note": "480p"},
+{"format_id": "311", "ext": "mp4", "height": 1280, "width": 720, "fps": 60.0, "vcodec": "avc1.640020", "acodec": "none", "dynamic_range": "SDR", "tbr": 4078.365, "protocol": "m3u8_native", "quality": 8, "preference": null, "has_drm": false},
+{"format_id": "298", "ext": "mp4", "height": 1280, "width": 720, "fps": 60, "vcodec": "avc1.640020", "acodec": "none", "dynamic_range": "SDR", "filesize": 67771036, "filesize_approx": 67771015, "tbr": 2991.553, "protocol": "https", "quality": 8.0, "language_preference": -1, "audio_channels": null, "preference": null, "has_drm": false, "format_note": "720p60"},
+{"format_id": "612", "ext": "mp4", "height": 1280, "width": 720, "fps": 60.0, "vcodec": "vp09.00.40.08", "acodec": "none", "dynamic_range": "SDR", "tbr": 5421.605, "protocol": "m3u8_native", "quality": 8, "preference": null, "has_drm": false},
+{"format_id": "302", "ext": "webm", "height": 1280, "width": 720, "fps": 60, "vcodec": "vp9", "acodec": "none", "dynamic_range": "SDR", "filesize": 72090148, "filesize_approx": 72090137, "tbr": 3182.208, "protocol": "https", "quality": 8.0, "language_preference": -1, "audio_channels": null, "preference": null, "has_drm": false, "format_note": "720p60"},
+{"format_id": "398", "ext": "mp4", "height": 1280, "width": 720, "fps": 60, "vcodec": "av01.0.08M.08", "acodec": "none", "dynamic_range": "SDR", "filesize": 67750962, "filesize_approx": 67750944, "tbr": 2990.667, "protocol": "https", "quality": 8.0, "language_preference": -1, "audio_channels": null, "preference": null, "has_drm": false, "format_note": "720p60"},
+{"format_id": "312", "ext": "mp4", "height": 1920, "width": 1080, "fps": 60.0, "vcodec": "avc1.64002A", "acodec": "none", "dynamic_range": "SDR", "tbr": 8511.568, "protocol": "m3u8_native", "quality": 9, "preference": null, "has_drm": false},
+{"format_id": "299", "ext": "mp4", "height": 1920, "width": 1080, "fps": 60, "vcodec": "avc1.64002A", "acodec": "none", "dynamic_range": "SDR", "filesize": 117587291, "filesize_approx": 117587277, "tbr": 5190.546, "protocol": "https", "quality": 9.0, "language_preference": -1, "audio_channels": null, "preference": null, "has_drm": false, "format_note": "1080p60"},
+{"format_id": "617", "ext": "mp4", "height": 1920, "width": 1080, "fps": 60.0, "vcodec": "vp09.00.41.08", "acodec": "none", "dynamic_range": "SDR", "tbr": 35781.224, "protocol": "m3u8_native", "quality": 9, "preference": null, "has_drm": false},
+{"format_id": "303", "ext": "webm", "height": 1920, "width": 1080, "fps": 60, "vcodec": "vp9", "acodec": "none", "dynamic_range": "SDR", "filesize": 182634380, "filesize_approx": 182634361, "tbr": 8061.859, "protocol": "https", "quality": 9.0, "language_preference": -1, "audio_channels": null, "preference": null, "has_drm": false, "format_note": "1080p60"},
+{"format_id": "399", "ext": "mp4", "height": 1920, "width": 1080, "fps": 60, "vcodec": "av01.0.09M.08", "acodec": "none", "dynamic_range": "SDR", "filesize": 113286768, "filesize_approx": 113286754, "tbr": 5000.712, "protocol": "https", "quality": 9.0, "language_preference": -1, "audio_channels": null, "preference": null, "has_drm": false, "format_note": "1080p60"},
+{"format_id": "623", "ext": "mp4", "height": 2560, "width": 1440, "fps": 60.0, "vcodec": "vp09.00.50.08", "acodec": "none", "dynamic_range": "SDR", "tbr": 32328.871, "protocol": "m3u8_native", "quality": 10, "preference": null, "has_drm": false},
+{"format_id": "308", "ext": "webm", "height": 2560, "width": 1440, "fps": 60, "vcodec": "vp9", "acodec": "none", "dynamic_range": "SDR", "filesize": 346734803, "filesize_approx": 346734794, "tbr": 15305.592, "protocol": "https", "quality": 10.0, "language_preference": -1, "audio_channels": null, "preference": null, "has_drm": false, "format_note": "1440p60"},
+{"format_id": "400", "ext": "mp4", "height": 2560, "width": 1440, "fps": 60, "vcodec": "av01.0.12M.08", "acodec": "none", "dynamic_range": "SDR", "filesize": 277812172, "filesize_approx": 277812156, "tbr": 12263.204, "protocol": "https", "quality": 10.0, "language_preference": -1, "audio_channels": null, "preference": null, "has_drm": false, "format_note": "1440p60"},
+{"format_id": "628", "ext": "mp4", "height": 3840, "width": 2160, "fps": 60.0, "vcodec": "vp09.00.51.08", "acodec": "none", "dynamic_range": "SDR", "tbr": 179937.438, "protocol": "m3u8_native", "quality": 11, "preference": null, "has_drm": false},
+{"format_id": "315", "ext": "webm", "height": 3840, "width": 2160, "fps": 60, "vcodec": "vp9", "acodec": "none", "dynamic_range": "SDR", "filesize": 1144096984, "filesize_approx": 1144096970, "tbr": 50502.81, "protocol": "https", "quality": 11.0, "language_preference": -1, "audio_channels": null, "preference": null, "has_drm": false, "format_note": "2160p60"},
+{"format_id": "401", "ext": "mp4", "height": 3840, "width": 2160, "fps": 60, "vcodec": "av01.0.13M.08", "acodec": "none", "dynamic_range": "SDR", "filesize": 555978141, "filesize_approx": 555978124, "tbr": 24542.026, "protocol": "https", "quality": 11.0, "language_preference": -1, "audio_channels": null, "preference": null, "has_drm": false, "format_note": "2160p60"}]}
diff --git a/docs/automation-api.schema.json b/docs/automation-api.schema.json
index bd7be116..e488714d 100644
--- a/docs/automation-api.schema.json
+++ b/docs/automation-api.schema.json
@@ -650,18 +650,29 @@
"VideoChoice": {
"description": "One quality the browser's quality menu offers.",
"properties": {
+ "approx": {
+ "description": "`size` is an estimate (a stream's bitrate times its length, a conversion's), shown as\nabout (\"~532 MB\"); otherwise it is the bytes of exactly the streams this downloads (#801).",
+ "type": "boolean"
+ },
"audio": {
"default": false,
"description": "Only the sound (an audio file, a conversion to MP3, Opus or FLAC): the menu lists these\napart from the videos. False from an app older than the field.",
"type": "boolean"
},
+ "codec": {
+ "description": "The picture's codec as people name it: `AV1`, `VP9`, `H.264`, `H.265`… (#755). None\nfrom an app older than the field.",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
"ext": {
"default": "",
"description": "The file's type (`mp4`, `mp3`).",
"type": "string"
},
"fps": {
- "description": "Frames a second, when above 31 (60 fps is worth saying, 30 isn't).",
+ "description": "Frames a second, rounded (an app older than #755 said it only above 31).",
"format": "uint32",
"minimum": 0,
"type": [
@@ -696,9 +707,16 @@
"description": "The sound as the site sends it (not converted): the button's list says \"original\".",
"type": "boolean"
},
+ "range": {
+ "description": "The picture's dynamic range when worth saying: `HDR`, `Dolby Vision`, or `SDR` beside an\nHDR choice of the same height (#755).",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
"size": {
"default": null,
- "description": "Bytes, exact or estimated; null when unknown.",
+ "description": "Bytes, exact or estimated (`approx`); null when unknown.",
"format": "uint64",
"minimum": 0,
"type": [
diff --git a/docs/command-line.md b/docs/command-line.md
index 52dc03f3..06e913da 100644
--- a/docs/command-line.md
+++ b/docs/command-line.md
@@ -78,7 +78,7 @@ With `--json` (before or after the command), every command prints JSON instead o
| `get`, `resume` | `{"event": "through", "service"}` first when the download goes through a debrid account, then a `{"event": "progress", "downloaded", "size", "speed", "connections", "segments"}` line every half second, then `{"event": "done", "path", "size", "seconds"}`, or `{"event": "paused", "state"}` after `Ctrl+C` (`state` is the file `resume` takes). |
| `video-get` | `{"event": "progress", "downloaded", "size", "speed"}` lines, then `{"event": "done", "path", "subtitles", "subtitle_problems"}`: the subtitle files saved beside it, and the languages the site refused (`{"code", "name", "reason", "beside"}`; `beside`: they came on a second try, beside the video instead of in it). |
| `torrent-get` | `{"event": "progress", "phase", "downloaded", "size", "speed", "peers", "peers_seen"}` lines, then `{"event": "done", "path", "size"}`, or `{"event": "stopped", "downloaded", "seconds"}` with `--seconds`. |
-| `video-info` | `{"title", "choices": [{"label", "format", "size"}], "subtitles": [{"code", "name", "automatic"}]}`; a choice's `format` is what `video-get -f` takes, a subtitle's `code` what `--subs` takes. |
+| `video-info` | `{"title", "choices": [{"label", "format", "size", "approx", "height", "fps", "codec", "range"}], "subtitles": [{"code", "name", "automatic"}]}`; a choice's `format` is what `video-get -f` takes (the very formats it was sized from, as `401+251`, then the nearest should those be gone), `approx` says its `size` is an estimate, `codec` is `AV1`, `VP9`, `H.264`…, `range` is `HDR` (or `SDR` beside an HDR choice); a subtitle's `code` is what `--subs` takes. |
| `torrent-info` | `{"name", "info_hash", "size", "files": [{"index", "size", "path"}]}`. |
| `torrent-create` | `{"info_hash", "path"}`. |
| `install-ytdlp`, `install-ffmpeg` | `{"tool", "version", "path"}`. |
diff --git a/docs/video.md b/docs/video.md
index b68580b8..cfb35e63 100644
--- a/docs/video.md
+++ b/docs/video.md
@@ -42,8 +42,10 @@ Already have yt-dlp or ffmpeg for another program? Use those instead of a second
## Choose the quality
-1. Wait for the list. It shows each resolution with its size, best first, then the sound alone:
- - **Audio only, original**: the site's own file, not converted (M4A, or WebM with Opus inside, as the site serves it). The best sound there is, in the smallest file.
+1. Wait for the list. It shows each quality with its size, best first, then the sound alone:
+ - A video's line says its resolution, its codec, its frame rate and whether it is HDR: `2160p · AV1 · 60 fps · HDR`. A resolution that comes in several (AV1, VP9 and H.264, HDR and SDR) has a line for each: AV1 makes the smallest file, H.264 plays on the most devices, and an HDR video looks washed out on a screen without HDR. `SDR` is said only beside an HDR line of the same resolution.
+ - The size is that of exactly what downloads, the video and its sound. A size with `~` before it (`~532 MB`) is only an estimate: the site didn't say the size, so it comes from the stream's bitrate and length.
+ - **Audio only, original**: the site's own file, not converted, once for each type the site has it in (WebM with Opus inside, M4A), the best first. The best sound there is, in the smallest file.
- **Audio only MP3** at its best variable bitrate (VBR) and at 320, 256, 192 and 128 kbps, for players that only take MP3.
- **Audio only OPUS**: an `.opus` file. When the site's sound is Opus already (YouTube's usually is), it's only moved into that file, not converted, so nothing is lost.
- **Audio only FLAC**: a lossless `.flac` file, for a library or a program that wants FLAC. It can't add quality: the site's sound is already compressed with losses, and FLAC keeps it exactly as it came, in a file several times bigger. The window says so when you choose it.
diff --git a/extension/video.js b/extension/video.js
index 4556070c..3748a20b 100644
--- a/extension/video.js
+++ b/extension/video.js
@@ -195,11 +195,18 @@
}
}
+ // A quality's size: exactly the bytes of the streams it downloads, or "~" before one the app
+ // only estimates (`approx`, #801: "~532 MB"); "" when unknown.
+ function choiceSize(c, lang) {
+ const size = sizeText(c && c.size, lang);
+ return size && c.approx === true ? `~${size}` : size;
+ }
+
// What a quality's row says: the app's name for it (in the app's language) and its size. Only
// ever set as text, never as markup.
function rowText(choice, lang) {
const c = choice && typeof choice === "object" ? choice : {};
- return { name: String(c.label ?? "").slice(0, 200), size: sizeText(c.size, lang) };
+ return { name: String(c.label ?? "").slice(0, 200), size: choiceSize(c, lang) };
}
// Which of the app's qualities go in which tab: `choice.audio === true` is sound only, anything
@@ -650,8 +657,8 @@
// ---- the button's words (its chip, its tip, the menu's rows): plain functions, run as they are
// by tools/extension/test.mjs. A quality is one of the app's choices (`label`, `ext`, `size`,
- // `audio`, and from a newer app `height`, `fps`, `kbps`); the video's own plain file is
- // {file: true, height, ext}.
+ // `audio`, and from a newer app `height`, `fps`, `kbps`, then `codec`, `range`, `approx`); the
+ // video's own plain file is {file: true, height, ext}.
// A quality's short name: 4K and 8K as people say them, else the picture's height, the sound,
// or the app's own label (a file known only by its type).
@@ -666,16 +673,22 @@
return String(c.label ?? "").slice(0, 200);
}
- // What else the menu says of a quality: its file type, its frame rate, its sound's bitrate.
- // An older app's choice (no height) says it all in its label: nothing more.
+ // What else the menu says of a quality: its file type, its codec, its frame rate and its
+ // range (#755: "VP9 · 60 fps · HDR"), its sound's bitrate. The type goes without saying when
+ // it is MP4 and the codec is said (every merged video is an MP4). An older app's choice (no
+ // height) says it all in its label: nothing more.
function qualityMeta(c, t) {
if (!c || typeof c !== "object") return "";
// The sound's rows say what they are in their label; their bitrate when the app says it.
- // (fps and kbps are the same in every language.)
+ // (fps, kbps, codecs and HDR are the same in every language.)
if (c.audio === true) return Number(c.kbps) > 0 ? `${Math.round(c.kbps)} kbps` : "";
if (!c.height && !c.file) return "";
- const parts = [String(c.ext || "").toUpperCase()];
+ const word = (x) => (typeof x === "string" ? x.trim().slice(0, 24) : "");
+ const codec = word(c.codec);
+ const ext = String(c.ext || "").toUpperCase();
+ const parts = [codec && ext === "MP4" ? "" : ext, codec];
if (Number(c.fps) > 0) parts.push(`${Math.round(c.fps)} fps`);
+ parts.push(word(c.range));
return parts.filter(Boolean).join(" · ");
}
@@ -702,7 +715,7 @@
if (!c) return look && look.state === "pending" ? t("video_tip_best") : t("video_download");
const name = qualityName(c, t);
const what = c.height || c.file ? [name, String(c.ext || "").toUpperCase()].filter(Boolean).join(" ") : name;
- const size = sizeText(c.size, lang);
+ const size = choiceSize(c, lang);
return t("video_tip", size ? `${what} · ${size}` : what);
}
@@ -1823,7 +1836,7 @@ button:focus-visible { outline: none; }
mi.append(arrowIcon.cloneNode(true));
const name = c ? [qualityName(c, t), c.height || c.file ? String(c.ext || "").toUpperCase() : ""].filter(Boolean).join(" ") : "";
const what = [name, c && c.fps ? `${Math.round(c.fps)} fps` : ""].filter(Boolean).join(" · ");
- b.append(mi, span("lead", t("video_download_best")), span("f", what), span("z", c ? sizeText(c.size, lang) : ""));
+ b.append(mi, span("lead", t("video_download_best")), span("f", what), span("z", c ? choiceSize(c, lang) : ""));
return b;
}
const arrowIcon = $(".tpl svg");
diff --git a/i18n/af.tsv b/i18n/af.tsv
index 083cac3c..6d0dd55e 100644
--- a/i18n/af.tsv
+++ b/i18n/af.tsv
@@ -270,6 +270,11 @@
#. a download's server's round trip: {ms} a number of milliseconds, {reach} near, medium or far
#, machine
about {ms} ms ({reach}) ongeveer {ms} ms ({reach})
+#. text in the Download video window
+#. a file size that is only an estimate, as a screen reader says it in the Download video window's list of qualities; {size} is "532 MB"
+#. {size} = a file size such as "4.2 MB" (keep the braces as they are)
+#, machine
+ about {size} ongeveer {size}
#. checkbox in the Add torrent window
#. Torrent settings: other peers may connect to this computer
#, machine
@@ -3990,6 +3995,7 @@
#, machine
Size Grootte
#. text in the Download video window
+#. the video's file size is not known
#, machine
size unknown grootte onbekend
#. text in a download's Properties window
diff --git a/i18n/am.tsv b/i18n/am.tsv
index 44e38953..eb9eef2c 100644
--- a/i18n/am.tsv
+++ b/i18n/am.tsv
@@ -270,6 +270,11 @@
#. a download's server's round trip: {ms} a number of milliseconds, {reach} near, medium or far
#, machine
about {ms} ms ({reach}) ወደ {ms} ሚሴ ({reach})
+#. text in the Download video window
+#. a file size that is only an estimate, as a screen reader says it in the Download video window's list of qualities; {size} is "532 MB"
+#. {size} = a file size such as "4.2 MB" (keep the braces as they are)
+#, machine
+ about {size} በግምት {size}
#. checkbox in the Add torrent window
#. Torrent settings: other peers may connect to this computer
#, machine
@@ -3990,6 +3995,7 @@
#, machine
Size መጠን
#. text in the Download video window
+#. the video's file size is not known
#, machine
size unknown መጠኑ አይታወቅም
#. text in a download's Properties window
diff --git a/i18n/ar.tsv b/i18n/ar.tsv
index aebd008b..a4633e14 100644
--- a/i18n/ar.tsv
+++ b/i18n/ar.tsv
@@ -219,6 +219,11 @@
#. text in whereis.rs
#. a download's server's round trip: {ms} a number of milliseconds, {reach} near, medium or far
about {ms} ms ({reach}) حوالي {ms} مللي ثانية ({reach})
+#. text in the Download video window
+#. a file size that is only an estimate, as a screen reader says it in the Download video window's list of qualities; {size} is "532 MB"
+#. {size} = a file size such as "4.2 MB" (keep the braces as they are)
+#, machine
+ about {size} حوالي {size}
#. checkbox in the Add torrent window
#. Torrent settings: other peers may connect to this computer
Accept incoming connections قبول الاتصالات الواردة
@@ -3043,6 +3048,7 @@
#. column title: file size
Size الحجم
#. text in the Download video window
+#. the video's file size is not known
size unknown الحجم غير معروف
#. text in a download's Properties window
Size: الحجم:
diff --git a/i18n/as.tsv b/i18n/as.tsv
index a73b8888..0b127521 100644
--- a/i18n/as.tsv
+++ b/i18n/as.tsv
@@ -270,6 +270,11 @@
#. a download's server's round trip: {ms} a number of milliseconds, {reach} near, medium or far
#, machine
about {ms} ms ({reach}) প্ৰায় {ms} মি.ছে. ({reach})
+#. text in the Download video window
+#. a file size that is only an estimate, as a screen reader says it in the Download video window's list of qualities; {size} is "532 MB"
+#. {size} = a file size such as "4.2 MB" (keep the braces as they are)
+#, machine
+ about {size} প্ৰায় {size}
#. checkbox in the Add torrent window
#. Torrent settings: other peers may connect to this computer
#, machine
@@ -3990,6 +3995,7 @@
#, machine
Size আকাৰ
#. text in the Download video window
+#. the video's file size is not known
#, machine
size unknown আকাৰ অজ্ঞাত
#. text in a download's Properties window
diff --git a/i18n/az.tsv b/i18n/az.tsv
index 433561b3..1786b1ac 100644
--- a/i18n/az.tsv
+++ b/i18n/az.tsv
@@ -270,6 +270,11 @@
#. a download's server's round trip: {ms} a number of milliseconds, {reach} near, medium or far
#, machine
about {ms} ms ({reach}) təxminən {ms} ms ({reach})
+#. text in the Download video window
+#. a file size that is only an estimate, as a screen reader says it in the Download video window's list of qualities; {size} is "532 MB"
+#. {size} = a file size such as "4.2 MB" (keep the braces as they are)
+#, machine
+ about {size} təxminən {size}
#. checkbox in the Add torrent window
#. Torrent settings: other peers may connect to this computer
#, machine
@@ -3990,6 +3995,7 @@
#, machine
Size Ölçü
#. text in the Download video window
+#. the video's file size is not known
#, machine
size unknown ölçü naməlum
#. text in a download's Properties window
diff --git a/i18n/be.tsv b/i18n/be.tsv
index bfaea7b5..698b4db9 100644
--- a/i18n/be.tsv
+++ b/i18n/be.tsv
@@ -270,6 +270,11 @@
#. a download's server's round trip: {ms} a number of milliseconds, {reach} near, medium or far
#, machine
about {ms} ms ({reach}) каля {ms} мс ({reach})
+#. text in the Download video window
+#. a file size that is only an estimate, as a screen reader says it in the Download video window's list of qualities; {size} is "532 MB"
+#. {size} = a file size such as "4.2 MB" (keep the braces as they are)
+#, machine
+ about {size} каля {size}
#. checkbox in the Add torrent window
#. Torrent settings: other peers may connect to this computer
#, machine
@@ -3990,6 +3995,7 @@
#, machine
Size Памер
#. text in the Download video window
+#. the video's file size is not known
#, machine
size unknown памер невядомы
#. text in a download's Properties window
diff --git a/i18n/bg.tsv b/i18n/bg.tsv
index 449ba247..74a99602 100644
--- a/i18n/bg.tsv
+++ b/i18n/bg.tsv
@@ -270,6 +270,11 @@
#. a download's server's round trip: {ms} a number of milliseconds, {reach} near, medium or far
#, machine
about {ms} ms ({reach}) около {ms} ms ({reach})
+#. text in the Download video window
+#. a file size that is only an estimate, as a screen reader says it in the Download video window's list of qualities; {size} is "532 MB"
+#. {size} = a file size such as "4.2 MB" (keep the braces as they are)
+#, machine
+ about {size} около {size}
#. checkbox in the Add torrent window
#. Torrent settings: other peers may connect to this computer
#, machine
@@ -3990,6 +3995,7 @@
#, machine
Size Размер
#. text in the Download video window
+#. the video's file size is not known
#, machine
size unknown неизвестен размер
#. text in a download's Properties window
diff --git a/i18n/bn.tsv b/i18n/bn.tsv
index d6699ab5..f39742e1 100644
--- a/i18n/bn.tsv
+++ b/i18n/bn.tsv
@@ -270,6 +270,11 @@
#. a download's server's round trip: {ms} a number of milliseconds, {reach} near, medium or far
#, machine
about {ms} ms ({reach}) প্রায় {ms} ms ({reach})
+#. text in the Download video window
+#. a file size that is only an estimate, as a screen reader says it in the Download video window's list of qualities; {size} is "532 MB"
+#. {size} = a file size such as "4.2 MB" (keep the braces as they are)
+#, machine
+ about {size} প্রায় {size}
#. checkbox in the Add torrent window
#. Torrent settings: other peers may connect to this computer
#, machine
@@ -3990,6 +3995,7 @@
#, machine
Size আকার
#. text in the Download video window
+#. the video's file size is not known
#, machine
size unknown আকার অজানা
#. text in a download's Properties window
diff --git a/i18n/bs.tsv b/i18n/bs.tsv
index b036f0d2..4ca6f14e 100644
--- a/i18n/bs.tsv
+++ b/i18n/bs.tsv
@@ -270,6 +270,11 @@
#. a download's server's round trip: {ms} a number of milliseconds, {reach} near, medium or far
#, machine
about {ms} ms ({reach}) oko {ms} ms ({reach})
+#. text in the Download video window
+#. a file size that is only an estimate, as a screen reader says it in the Download video window's list of qualities; {size} is "532 MB"
+#. {size} = a file size such as "4.2 MB" (keep the braces as they are)
+#, machine
+ about {size} oko {size}
#. checkbox in the Add torrent window
#. Torrent settings: other peers may connect to this computer
#, machine
@@ -3990,6 +3995,7 @@
#, machine
Size Veličina
#. text in the Download video window
+#. the video's file size is not known
#, machine
size unknown veličina nepoznata
#. text in a download's Properties window
diff --git a/i18n/ca-es-valencia.tsv b/i18n/ca-es-valencia.tsv
index 8ec6012c..d3562196 100644
--- a/i18n/ca-es-valencia.tsv
+++ b/i18n/ca-es-valencia.tsv
@@ -270,6 +270,11 @@
#. a download's server's round trip: {ms} a number of milliseconds, {reach} near, medium or far
#, machine
about {ms} ms ({reach}) uns {ms} ms ({reach})
+#. text in the Download video window
+#. a file size that is only an estimate, as a screen reader says it in the Download video window's list of qualities; {size} is "532 MB"
+#. {size} = a file size such as "4.2 MB" (keep the braces as they are)
+#, machine
+ about {size} aproximadament {size}
#. checkbox in the Add torrent window
#. Torrent settings: other peers may connect to this computer
#, machine
@@ -3990,6 +3995,7 @@
#, machine
Size Grandària
#. text in the Download video window
+#. the video's file size is not known
#, machine
size unknown grandària desconeguda
#. text in a download's Properties window
diff --git a/i18n/ca.tsv b/i18n/ca.tsv
index ed5690ec..9da9928b 100644
--- a/i18n/ca.tsv
+++ b/i18n/ca.tsv
@@ -270,6 +270,11 @@
#. a download's server's round trip: {ms} a number of milliseconds, {reach} near, medium or far
#, machine
about {ms} ms ({reach}) aproximadament {ms} ms ({reach})
+#. text in the Download video window
+#. a file size that is only an estimate, as a screen reader says it in the Download video window's list of qualities; {size} is "532 MB"
+#. {size} = a file size such as "4.2 MB" (keep the braces as they are)
+#, machine
+ about {size} aproximadament {size}
#. checkbox in the Add torrent window
#. Torrent settings: other peers may connect to this computer
#, machine
@@ -3990,6 +3995,7 @@
#, machine
Size Mida
#. text in the Download video window
+#. the video's file size is not known
#, machine
size unknown mida desconeguda
#. text in a download's Properties window
diff --git a/i18n/chr.tsv b/i18n/chr.tsv
index 71d3bb83..0e331fb7 100644
--- a/i18n/chr.tsv
+++ b/i18n/chr.tsv
@@ -270,6 +270,11 @@
#. a download's server's round trip: {ms} a number of milliseconds, {reach} near, medium or far
#, machine
about {ms} ms ({reach}) ᎾᏍᎩ {ms} ms ({reach})
+#. text in the Download video window
+#. a file size that is only an estimate, as a screen reader says it in the Download video window's list of qualities; {size} is "532 MB"
+#. {size} = a file size such as "4.2 MB" (keep the braces as they are)
+#, machine
+ about {size} ᎢᎦᎢ {size}
#. checkbox in the Add torrent window
#. Torrent settings: other peers may connect to this computer
#, machine
@@ -3990,6 +3995,7 @@
#, machine
Size ᎦᏟᏗ
#. text in the Download video window
+#. the video's file size is not known
#, machine
size unknown ᎦᏟᏗ ᏂᎦᏔᎲᎾ
#. text in a download's Properties window
@@ -6597,6 +6603,10 @@ menu E&xport Ꮧ&ᏓᏟᏍᏔᏅᎯ ᎢᏗᏁᏟᏴᏍᏗ
#, machine
menu Edit queue ᏗᏓᏟᏍᏔᏅᎯ ᎢᏗᏁᏟᏴᏍᏗ
#. menu command in the main window
+#. View → Theme: a style theme's name (a white canvas, emerald fills, 6-point corners), a name: keep "Emerald" as written
+#, machine
+menu Emerald ᎡᎻᎳᎵ
+#. menu command in the main window
#. verb: unpack the downloaded archive (zip, 7z, rar) into its folder
#, machine
menu Extract ᏗᎦᎴᏴᏔᏅᎯ
diff --git a/i18n/cs.tsv b/i18n/cs.tsv
index f7db07a5..77020505 100644
--- a/i18n/cs.tsv
+++ b/i18n/cs.tsv
@@ -270,6 +270,11 @@
#. a download's server's round trip: {ms} a number of milliseconds, {reach} near, medium or far
#, machine
about {ms} ms ({reach}) přibližně {ms} ms ({reach})
+#. text in the Download video window
+#. a file size that is only an estimate, as a screen reader says it in the Download video window's list of qualities; {size} is "532 MB"
+#. {size} = a file size such as "4.2 MB" (keep the braces as they are)
+#, machine
+ about {size} přibližně {size}
#. checkbox in the Add torrent window
#. Torrent settings: other peers may connect to this computer
#, machine
@@ -3990,6 +3995,7 @@
#, machine
Size Velikost
#. text in the Download video window
+#. the video's file size is not known
#, machine
size unknown velikost neznámá
#. text in a download's Properties window
diff --git a/i18n/cy.tsv b/i18n/cy.tsv
index 0134568c..45c6bbc7 100644
--- a/i18n/cy.tsv
+++ b/i18n/cy.tsv
@@ -270,6 +270,11 @@
#. a download's server's round trip: {ms} a number of milliseconds, {reach} near, medium or far
#, machine
about {ms} ms ({reach}) tua {ms} ms ({reach})
+#. text in the Download video window
+#. a file size that is only an estimate, as a screen reader says it in the Download video window's list of qualities; {size} is "532 MB"
+#. {size} = a file size such as "4.2 MB" (keep the braces as they are)
+#, machine
+ about {size} tua {size}
#. checkbox in the Add torrent window
#. Torrent settings: other peers may connect to this computer
#, machine
@@ -3990,6 +3995,7 @@
#, machine
Size Maint
#. text in the Download video window
+#. the video's file size is not known
#, machine
size unknown maint anhysbys
#. text in a download's Properties window
diff --git a/i18n/da.tsv b/i18n/da.tsv
index d9f4b04a..1f398ad0 100644
--- a/i18n/da.tsv
+++ b/i18n/da.tsv
@@ -270,6 +270,11 @@
#. a download's server's round trip: {ms} a number of milliseconds, {reach} near, medium or far
#, machine
about {ms} ms ({reach}) ca. {ms} ms ({reach})
+#. text in the Download video window
+#. a file size that is only an estimate, as a screen reader says it in the Download video window's list of qualities; {size} is "532 MB"
+#. {size} = a file size such as "4.2 MB" (keep the braces as they are)
+#, machine
+ about {size} ca. {size}
#. checkbox in the Add torrent window
#. Torrent settings: other peers may connect to this computer
#, machine
@@ -3990,6 +3995,7 @@
#, machine
Size Størrelse
#. text in the Download video window
+#. the video's file size is not known
#, machine
size unknown størrelse ukendt
#. text in a download's Properties window
diff --git a/i18n/de.tsv b/i18n/de.tsv
index 8e7ee1b6..684f7620 100644
--- a/i18n/de.tsv
+++ b/i18n/de.tsv
@@ -270,6 +270,11 @@
#. a download's server's round trip: {ms} a number of milliseconds, {reach} near, medium or far
#, machine
about {ms} ms ({reach}) ca. {ms} ms ({reach})
+#. text in the Download video window
+#. a file size that is only an estimate, as a screen reader says it in the Download video window's list of qualities; {size} is "532 MB"
+#. {size} = a file size such as "4.2 MB" (keep the braces as they are)
+#, machine
+ about {size} ca. {size}
#. checkbox in the Add torrent window
#. Torrent settings: other peers may connect to this computer
#, machine
@@ -3990,6 +3995,7 @@
#, machine
Size Größe
#. text in the Download video window
+#. the video's file size is not known
#, machine
size unknown Größe unbekannt
#. text in a download's Properties window
diff --git a/i18n/el.tsv b/i18n/el.tsv
index 5de2da18..14cb0fb0 100644
--- a/i18n/el.tsv
+++ b/i18n/el.tsv
@@ -270,6 +270,11 @@
#. a download's server's round trip: {ms} a number of milliseconds, {reach} near, medium or far
#, machine
about {ms} ms ({reach}) περίπου {ms} ms ({reach})
+#. text in the Download video window
+#. a file size that is only an estimate, as a screen reader says it in the Download video window's list of qualities; {size} is "532 MB"
+#. {size} = a file size such as "4.2 MB" (keep the braces as they are)
+#, machine
+ about {size} περίπου {size}
#. checkbox in the Add torrent window
#. Torrent settings: other peers may connect to this computer
#, machine
@@ -3990,6 +3995,7 @@
#, machine
Size Μέγεθος
#. text in the Download video window
+#. the video's file size is not known
#, machine
size unknown άγνωστο μέγεθος
#. text in a download's Properties window
diff --git a/i18n/en.tsv b/i18n/en.tsv
index ee12718a..c4f36b16 100644
--- a/i18n/en.tsv
+++ b/i18n/en.tsv
@@ -209,6 +209,10 @@
#. text in whereis.rs
#. a download's server's round trip: {ms} a number of milliseconds, {reach} near, medium or far
about {ms} ms ({reach}) about {ms} ms ({reach})
+#. text in the Download video window
+#. a file size that is only an estimate, as a screen reader says it in the Download video window's list of qualities; {size} is "532 MB"
+#. {size} = a file size such as "4.2 MB" (keep the braces as they are)
+ about {size} about {size}
#. checkbox in the Add torrent window
#. Torrent settings: other peers may connect to this computer
Accept incoming connections Accept incoming connections
@@ -2951,6 +2955,7 @@
#. column title: file size
Size Size
#. text in the Download video window
+#. the video's file size is not known
size unknown size unknown
#. text in a download's Properties window
Size: Size:
diff --git a/i18n/es-mx.tsv b/i18n/es-mx.tsv
index 5758b11f..9ea89bcc 100644
--- a/i18n/es-mx.tsv
+++ b/i18n/es-mx.tsv
@@ -270,6 +270,11 @@
#. a download's server's round trip: {ms} a number of milliseconds, {reach} near, medium or far
#, machine
about {ms} ms ({reach}) aproximadamente {ms} ms ({reach})
+#. text in the Download video window
+#. a file size that is only an estimate, as a screen reader says it in the Download video window's list of qualities; {size} is "532 MB"
+#. {size} = a file size such as "4.2 MB" (keep the braces as they are)
+#, machine
+ about {size} aproximadamente {size}
#. checkbox in the Add torrent window
#. Torrent settings: other peers may connect to this computer
#, machine
@@ -3990,6 +3995,7 @@
#, machine
Size Tamaño
#. text in the Download video window
+#. the video's file size is not known
#, machine
size unknown tamaño desconocido
#. text in a download's Properties window
diff --git a/i18n/es.tsv b/i18n/es.tsv
index fbf9934c..cd62c153 100644
--- a/i18n/es.tsv
+++ b/i18n/es.tsv
@@ -270,6 +270,11 @@
#. a download's server's round trip: {ms} a number of milliseconds, {reach} near, medium or far
#, machine
about {ms} ms ({reach}) unos {ms} ms ({reach})
+#. text in the Download video window
+#. a file size that is only an estimate, as a screen reader says it in the Download video window's list of qualities; {size} is "532 MB"
+#. {size} = a file size such as "4.2 MB" (keep the braces as they are)
+#, machine
+ about {size} aproximadamente {size}
#. checkbox in the Add torrent window
#. Torrent settings: other peers may connect to this computer
#, machine
@@ -3990,6 +3995,7 @@
#, machine
Size Tamaño
#. text in the Download video window
+#. the video's file size is not known
#, machine
size unknown tamaño desconocido
#. text in a download's Properties window
diff --git a/i18n/et.tsv b/i18n/et.tsv
index 7bc1acb2..c2667c2f 100644
--- a/i18n/et.tsv
+++ b/i18n/et.tsv
@@ -270,6 +270,11 @@
#. a download's server's round trip: {ms} a number of milliseconds, {reach} near, medium or far
#, machine
about {ms} ms ({reach}) umbes {ms} ms ({reach})
+#. text in the Download video window
+#. a file size that is only an estimate, as a screen reader says it in the Download video window's list of qualities; {size} is "532 MB"
+#. {size} = a file size such as "4.2 MB" (keep the braces as they are)
+#, machine
+ about {size} umbes {size}
#. checkbox in the Add torrent window
#. Torrent settings: other peers may connect to this computer
#, machine
@@ -3990,6 +3995,7 @@
#, machine
Size Suurus
#. text in the Download video window
+#. the video's file size is not known
#, machine
size unknown suurus teadmata
#. text in a download's Properties window
diff --git a/i18n/eu.tsv b/i18n/eu.tsv
index b8f0fada..81a16f1b 100644
--- a/i18n/eu.tsv
+++ b/i18n/eu.tsv
@@ -270,6 +270,11 @@
#. a download's server's round trip: {ms} a number of milliseconds, {reach} near, medium or far
#, machine
about {ms} ms ({reach}) gutxi gorabehera {ms} ms ({reach})
+#. text in the Download video window
+#. a file size that is only an estimate, as a screen reader says it in the Download video window's list of qualities; {size} is "532 MB"
+#. {size} = a file size such as "4.2 MB" (keep the braces as they are)
+#, machine
+ about {size} gutxi gorabehera {size}
#. checkbox in the Add torrent window
#. Torrent settings: other peers may connect to this computer
#, machine
@@ -3990,6 +3995,7 @@
#, machine
Size Tamaina
#. text in the Download video window
+#. the video's file size is not known
#, machine
size unknown tamaina ezezaguna
#. text in a download's Properties window
diff --git a/i18n/fa.tsv b/i18n/fa.tsv
index 4a7e14eb..83f56db6 100644
--- a/i18n/fa.tsv
+++ b/i18n/fa.tsv
@@ -270,6 +270,11 @@
#. a download's server's round trip: {ms} a number of milliseconds, {reach} near, medium or far
#, machine
about {ms} ms ({reach}) حدود {ms} میلی‌ثانیه ({reach})
+#. text in the Download video window
+#. a file size that is only an estimate, as a screen reader says it in the Download video window's list of qualities; {size} is "532 MB"
+#. {size} = a file size such as "4.2 MB" (keep the braces as they are)
+#, machine
+ about {size} حدود {size}
#. checkbox in the Add torrent window
#. Torrent settings: other peers may connect to this computer
#, machine
@@ -3990,6 +3995,7 @@
#, machine
Size اندازه
#. text in the Download video window
+#. the video's file size is not known
#, machine
size unknown اندازه نامعلوم
#. text in a download's Properties window
diff --git a/i18n/fi.tsv b/i18n/fi.tsv
index e7107d6b..8d9b0718 100644
--- a/i18n/fi.tsv
+++ b/i18n/fi.tsv
@@ -270,6 +270,11 @@
#. a download's server's round trip: {ms} a number of milliseconds, {reach} near, medium or far
#, machine
about {ms} ms ({reach}) noin {ms} ms ({reach})
+#. text in the Download video window
+#. a file size that is only an estimate, as a screen reader says it in the Download video window's list of qualities; {size} is "532 MB"
+#. {size} = a file size such as "4.2 MB" (keep the braces as they are)
+#, machine
+ about {size} noin {size}
#. checkbox in the Add torrent window
#. Torrent settings: other peers may connect to this computer
#, machine
@@ -3990,6 +3995,7 @@
#, machine
Size Koko
#. text in the Download video window
+#. the video's file size is not known
#, machine
size unknown koko tuntematon
#. text in a download's Properties window
diff --git a/i18n/fil.tsv b/i18n/fil.tsv
index dea519cc..6113cc9a 100644
--- a/i18n/fil.tsv
+++ b/i18n/fil.tsv
@@ -270,6 +270,11 @@
#. a download's server's round trip: {ms} a number of milliseconds, {reach} near, medium or far
#, machine
about {ms} ms ({reach}) humigit-kumulang {ms} ms ({reach})
+#. text in the Download video window
+#. a file size that is only an estimate, as a screen reader says it in the Download video window's list of qualities; {size} is "532 MB"
+#. {size} = a file size such as "4.2 MB" (keep the braces as they are)
+#, machine
+ about {size} humigit-kumulang {size}
#. checkbox in the Add torrent window
#. Torrent settings: other peers may connect to this computer
#, machine
@@ -3990,6 +3995,7 @@
#, machine
Size Laki
#. text in the Download video window
+#. the video's file size is not known
#, machine
size unknown hindi alam ang laki
#. text in a download's Properties window
diff --git a/i18n/fr-ca.tsv b/i18n/fr-ca.tsv
index 49adba8b..91b086f2 100644
--- a/i18n/fr-ca.tsv
+++ b/i18n/fr-ca.tsv
@@ -270,6 +270,11 @@
#. a download's server's round trip: {ms} a number of milliseconds, {reach} near, medium or far
#, machine
about {ms} ms ({reach}) environ {ms} ms ({reach})
+#. text in the Download video window
+#. a file size that is only an estimate, as a screen reader says it in the Download video window's list of qualities; {size} is "532 MB"
+#. {size} = a file size such as "4.2 MB" (keep the braces as they are)
+#, machine
+ about {size} environ {size}
#. checkbox in the Add torrent window
#. Torrent settings: other peers may connect to this computer
#, machine
@@ -3990,6 +3995,7 @@
#, machine
Size Taille
#. text in the Download video window
+#. the video's file size is not known
#, machine
size unknown taille inconnue
#. text in a download's Properties window
diff --git a/i18n/fr.tsv b/i18n/fr.tsv
index eb13ccbc..11e5a922 100644
--- a/i18n/fr.tsv
+++ b/i18n/fr.tsv
@@ -270,6 +270,11 @@
#. a download's server's round trip: {ms} a number of milliseconds, {reach} near, medium or far
#, machine
about {ms} ms ({reach}) environ {ms} ms ({reach})
+#. text in the Download video window
+#. a file size that is only an estimate, as a screen reader says it in the Download video window's list of qualities; {size} is "532 MB"
+#. {size} = a file size such as "4.2 MB" (keep the braces as they are)
+#, machine
+ about {size} environ {size}
#. checkbox in the Add torrent window
#. Torrent settings: other peers may connect to this computer
#, machine
@@ -3990,6 +3995,7 @@
#, machine
Size Taille
#. text in the Download video window
+#. the video's file size is not known
#, machine
size unknown taille inconnue
#. text in a download's Properties window
diff --git a/i18n/ga.tsv b/i18n/ga.tsv
index f9be534f..5020f7b0 100644
--- a/i18n/ga.tsv
+++ b/i18n/ga.tsv
@@ -270,6 +270,11 @@
#. a download's server's round trip: {ms} a number of milliseconds, {reach} near, medium or far
#, machine
about {ms} ms ({reach}) thart ar {ms} ms ({reach})
+#. text in the Download video window
+#. a file size that is only an estimate, as a screen reader says it in the Download video window's list of qualities; {size} is "532 MB"
+#. {size} = a file size such as "4.2 MB" (keep the braces as they are)
+#, machine
+ about {size} thart ar {size}
#. checkbox in the Add torrent window
#. Torrent settings: other peers may connect to this computer
#, machine
@@ -3990,6 +3995,7 @@
#, machine
Size Méid
#. text in the Download video window
+#. the video's file size is not known
#, machine
size unknown méid anaithnid
#. text in a download's Properties window
diff --git a/i18n/gd.tsv b/i18n/gd.tsv
index b2a45670..aacfb0a1 100644
--- a/i18n/gd.tsv
+++ b/i18n/gd.tsv
@@ -270,6 +270,11 @@
#. a download's server's round trip: {ms} a number of milliseconds, {reach} near, medium or far
#, machine
about {ms} ms ({reach}) mu {ms} ms ({reach})
+#. text in the Download video window
+#. a file size that is only an estimate, as a screen reader says it in the Download video window's list of qualities; {size} is "532 MB"
+#. {size} = a file size such as "4.2 MB" (keep the braces as they are)
+#, machine
+ about {size} mu {size}
#. checkbox in the Add torrent window
#. Torrent settings: other peers may connect to this computer
#, machine
@@ -3990,6 +3995,7 @@
#, machine
Size Meud
#. text in the Download video window
+#. the video's file size is not known
#, machine
size unknown meud neo-aithnichte
#. text in a download's Properties window
diff --git a/i18n/gl.tsv b/i18n/gl.tsv
index 6a48dcbb..74934a7c 100644
--- a/i18n/gl.tsv
+++ b/i18n/gl.tsv
@@ -270,6 +270,11 @@
#. a download's server's round trip: {ms} a number of milliseconds, {reach} near, medium or far
#, machine
about {ms} ms ({reach}) uns {ms} ms ({reach})
+#. text in the Download video window
+#. a file size that is only an estimate, as a screen reader says it in the Download video window's list of qualities; {size} is "532 MB"
+#. {size} = a file size such as "4.2 MB" (keep the braces as they are)
+#, machine
+ about {size} aproximadamente {size}
#. checkbox in the Add torrent window
#. Torrent settings: other peers may connect to this computer
#, machine
@@ -3990,6 +3995,7 @@
#, machine
Size Tamaño
#. text in the Download video window
+#. the video's file size is not known
#, machine
size unknown tamaño descoñecido
#. text in a download's Properties window
diff --git a/i18n/gu.tsv b/i18n/gu.tsv
index c4b4e8c4..8c3814ef 100644
--- a/i18n/gu.tsv
+++ b/i18n/gu.tsv
@@ -270,6 +270,11 @@
#. a download's server's round trip: {ms} a number of milliseconds, {reach} near, medium or far
#, machine
about {ms} ms ({reach}) લગભગ {ms} મિલીસેકન્ડ ({reach})
+#. text in the Download video window
+#. a file size that is only an estimate, as a screen reader says it in the Download video window's list of qualities; {size} is "532 MB"
+#. {size} = a file size such as "4.2 MB" (keep the braces as they are)
+#, machine
+ about {size} લગભગ {size}
#. checkbox in the Add torrent window
#. Torrent settings: other peers may connect to this computer
#, machine
@@ -3990,6 +3995,7 @@
#, machine
Size કદ
#. text in the Download video window
+#. the video's file size is not known
#, machine
size unknown કદ અજ્ઞાત
#. text in a download's Properties window
diff --git a/i18n/he.tsv b/i18n/he.tsv
index 70e37ccf..b7c4a616 100644
--- a/i18n/he.tsv
+++ b/i18n/he.tsv
@@ -242,6 +242,11 @@
#. a download's server's round trip: {ms} a number of milliseconds, {reach} near, medium or far
#, machine
about {ms} ms ({reach}) כ- {ms} אלפיות שנייה ({reach})
+#. text in the Download video window
+#. a file size that is only an estimate, as a screen reader says it in the Download video window's list of qualities; {size} is "532 MB"
+#. {size} = a file size such as "4.2 MB" (keep the braces as they are)
+#, machine
+ about {size} כ-{size}
#. checkbox in the Add torrent window
#. Torrent settings: other peers may connect to this computer
#, machine
@@ -3962,6 +3967,7 @@
#, machine
Size גודל
#. text in the Download video window
+#. the video's file size is not known
#, machine
size unknown גודל לא ידוע
#. text in a download's Properties window
@@ -6569,6 +6575,10 @@ menu E&xport &ייצוא
#, machine
menu Edit queue ערוך תור
#. menu command in the main window
+#. View → Theme: a style theme's name (a white canvas, emerald fills, 6-point corners), a name: keep "Emerald" as written
+#, machine
+menu Emerald אמרלד
+#. menu command in the main window
#. verb: unpack the downloaded archive (zip, 7z, rar) into its folder
#, machine
menu Extract חלץ
diff --git a/i18n/hi.tsv b/i18n/hi.tsv
index e57e024b..6d5bc113 100644
--- a/i18n/hi.tsv
+++ b/i18n/hi.tsv
@@ -265,6 +265,11 @@
#. a download's server's round trip: {ms} a number of milliseconds, {reach} near, medium or far
#, machine
about {ms} ms ({reach}) लगभग {ms} मि.से. ({reach})
+#. text in the Download video window
+#. a file size that is only an estimate, as a screen reader says it in the Download video window's list of qualities; {size} is "532 MB"
+#. {size} = a file size such as "4.2 MB" (keep the braces as they are)
+#, machine
+ about {size} लगभग {size}
#. checkbox in the Add torrent window
#. Torrent settings: other peers may connect to this computer
#, machine
@@ -3985,6 +3990,7 @@
#, machine
Size आकार
#. text in the Download video window
+#. the video's file size is not known
#, machine
size unknown आकार अज्ञात
#. text in a download's Properties window
diff --git a/i18n/hr.tsv b/i18n/hr.tsv
index 2ffd12b4..7f144460 100644
--- a/i18n/hr.tsv
+++ b/i18n/hr.tsv
@@ -270,6 +270,11 @@
#. a download's server's round trip: {ms} a number of milliseconds, {reach} near, medium or far
#, machine
about {ms} ms ({reach}) oko {ms} ms ({reach})
+#. text in the Download video window
+#. a file size that is only an estimate, as a screen reader says it in the Download video window's list of qualities; {size} is "532 MB"
+#. {size} = a file size such as "4.2 MB" (keep the braces as they are)
+#, machine
+ about {size} oko {size}
#. checkbox in the Add torrent window
#. Torrent settings: other peers may connect to this computer
#, machine
@@ -1383,6 +1388,11 @@
#. the trailing ... means it is still going on: keep it
#, machine
Downloading and verifying yt-dlp... Preuzimanje i provjera yt-dlp-a...
+#. text in helpers.rs
+#. Video helpers: MDM's own yt-dlp is being downloaded
+#. the trailing ... means it is still going on: keep it
+#, machine
+ Downloading MDM's own copy... Preuzimanje MDM-ove kopije...
#. text in the Help menu's windows (About, updates, shortcuts, Tell a friend)
#. Check for updates, while Update now downloads; {percent} like "42%"
#, machine
@@ -1578,6 +1588,10 @@
#. message or event log entry in the main window; text in the Options window
#, machine
Export Izvoz
+#. button in the Options window
+#. the trailing ... means it opens a window: keep it
+#, machine
+ Export... Izvezi...
#. text in the Options window
#, machine
Extend the availability of Manifest 2 Chrome extensions Proširite dostupnost Manifest 2 Chrome proširenja
@@ -2071,6 +2085,10 @@
#. message or event log entry in the main window; text in the Options window
#, machine
Import Uvezi
+#. button in the Options window
+#. the trailing ... means it opens a window: keep it
+#, machine
+ Import... Uvezi...
#. value in a column's filter list in the download list
#, machine
In a queue U redu čekanja
@@ -2445,6 +2463,10 @@
#. crash report window: looking on GitHub for an issue about the same problem
#, machine
Looking for this problem on GitHub… Traženje ovog problema na GitHubu…
+#. text in the Options window
+#. the trailing ... means it is still going on: keep it
+#, machine
+ Looking for your default browser... Traženje zadanog preglednika...
#. text in the Download video window
#. the trailing ... means it is still going on: keep it
#, machine
@@ -3973,6 +3995,7 @@
#, machine
Size Veličina
#. text in the Download video window
+#. the video's file size is not known
#, machine
size unknown nepoznata veličina
#. text in a download's Properties window
diff --git a/i18n/hu.tsv b/i18n/hu.tsv
index 59d0ff16..859867f6 100644
--- a/i18n/hu.tsv
+++ b/i18n/hu.tsv
@@ -270,6 +270,11 @@
#. a download's server's round trip: {ms} a number of milliseconds, {reach} near, medium or far
#, machine
about {ms} ms ({reach}) körülbelül {ms} ms ({reach})
+#. text in the Download video window
+#. a file size that is only an estimate, as a screen reader says it in the Download video window's list of qualities; {size} is "532 MB"
+#. {size} = a file size such as "4.2 MB" (keep the braces as they are)
+#, machine
+ about {size} körülbelül {size}
#. checkbox in the Add torrent window
#. Torrent settings: other peers may connect to this computer
#, machine
@@ -3990,6 +3995,7 @@
#, machine
Size Méret
#. text in the Download video window
+#. the video's file size is not known
#, machine
size unknown ismeretlen méret
#. text in a download's Properties window
diff --git a/i18n/hy.tsv b/i18n/hy.tsv
index ebcc2d3a..7a38f0ae 100644
--- a/i18n/hy.tsv
+++ b/i18n/hy.tsv
@@ -270,6 +270,11 @@
#. a download's server's round trip: {ms} a number of milliseconds, {reach} near, medium or far
#, machine
about {ms} ms ({reach}) մոտ {ms} մվ ({reach})
+#. text in the Download video window
+#. a file size that is only an estimate, as a screen reader says it in the Download video window's list of qualities; {size} is "532 MB"
+#. {size} = a file size such as "4.2 MB" (keep the braces as they are)
+#, machine
+ about {size} մոտ {size}
#. checkbox in the Add torrent window
#. Torrent settings: other peers may connect to this computer
#, machine
@@ -3990,6 +3995,7 @@
#, machine
Size Չափ
#. text in the Download video window
+#. the video's file size is not known
#, machine
size unknown չափն անհայտ է
#. text in a download's Properties window
diff --git a/i18n/id.tsv b/i18n/id.tsv
index 5e6d971a..5cc64bf1 100644
--- a/i18n/id.tsv
+++ b/i18n/id.tsv
@@ -270,6 +270,11 @@
#. a download's server's round trip: {ms} a number of milliseconds, {reach} near, medium or far
#, machine
about {ms} ms ({reach}) sekitar {ms} ms ({reach})
+#. text in the Download video window
+#. a file size that is only an estimate, as a screen reader says it in the Download video window's list of qualities; {size} is "532 MB"
+#. {size} = a file size such as "4.2 MB" (keep the braces as they are)
+#, machine
+ about {size} sekitar {size}
#. checkbox in the Add torrent window
#. Torrent settings: other peers may connect to this computer
#, machine
@@ -3990,6 +3995,7 @@
#, machine
Size Ukuran
#. text in the Download video window
+#. the video's file size is not known
#, machine
size unknown ukuran tidak diketahui
#. text in a download's Properties window
diff --git a/i18n/is.tsv b/i18n/is.tsv
index e6b74064..0c8dd8c7 100644
--- a/i18n/is.tsv
+++ b/i18n/is.tsv
@@ -265,6 +265,11 @@
#. a download's server's round trip: {ms} a number of milliseconds, {reach} near, medium or far
#, machine
about {ms} ms ({reach}) um {ms} ms ({reach})
+#. text in the Download video window
+#. a file size that is only an estimate, as a screen reader says it in the Download video window's list of qualities; {size} is "532 MB"
+#. {size} = a file size such as "4.2 MB" (keep the braces as they are)
+#, machine
+ about {size} um {size}
#. checkbox in the Add torrent window
#. Torrent settings: other peers may connect to this computer
#, machine
@@ -3985,6 +3990,7 @@
#, machine
Size Stærð
#. text in the Download video window
+#. the video's file size is not known
#, machine
size unknown óþekkt stærð
#. text in a download's Properties window
diff --git a/i18n/it.tsv b/i18n/it.tsv
index d4f52c93..8eb513f0 100644
--- a/i18n/it.tsv
+++ b/i18n/it.tsv
@@ -213,6 +213,11 @@
#. text in whereis.rs
#. a download's server's round trip: {ms} a number of milliseconds, {reach} near, medium or far
about {ms} ms ({reach}) circa {ms} ms ({reach})
+#. text in the Download video window
+#. a file size that is only an estimate, as a screen reader says it in the Download video window's list of qualities; {size} is "532 MB"
+#. {size} = a file size such as "4.2 MB" (keep the braces as they are)
+#, machine
+ about {size} circa {size}
#. checkbox in the Add torrent window
#. Torrent settings: other peers may connect to this computer
Accept incoming connections Accetta connessioni in ingresso
@@ -2982,6 +2987,7 @@
#. column title: file size
Size Dimensione
#. text in the Download video window
+#. the video's file size is not known
size unknown dimensione sconosciuta
#. text in a download's Properties window
Size: Dimensione:
diff --git a/i18n/ja.tsv b/i18n/ja.tsv
index a2d4b045..ae9622a9 100644
--- a/i18n/ja.tsv
+++ b/i18n/ja.tsv
@@ -270,6 +270,11 @@
#. a download's server's round trip: {ms} a number of milliseconds, {reach} near, medium or far
#, machine
about {ms} ms ({reach}) 約 {ms} ミリ秒 ({reach})
+#. text in the Download video window
+#. a file size that is only an estimate, as a screen reader says it in the Download video window's list of qualities; {size} is "532 MB"
+#. {size} = a file size such as "4.2 MB" (keep the braces as they are)
+#, machine
+ about {size} 約 {size}
#. checkbox in the Add torrent window
#. Torrent settings: other peers may connect to this computer
#, machine
@@ -3990,6 +3995,7 @@
#, machine
Size サイズ
#. text in the Download video window
+#. the video's file size is not known
#, machine
size unknown サイズ不明
#. text in a download's Properties window
diff --git a/i18n/ka.tsv b/i18n/ka.tsv
index 8fdd9c57..331ebff6 100644
--- a/i18n/ka.tsv
+++ b/i18n/ka.tsv
@@ -270,6 +270,11 @@
#. a download's server's round trip: {ms} a number of milliseconds, {reach} near, medium or far
#, machine
about {ms} ms ({reach}) დაახლოებით {ms} მწმ ({reach})
+#. text in the Download video window
+#. a file size that is only an estimate, as a screen reader says it in the Download video window's list of qualities; {size} is "532 MB"
+#. {size} = a file size such as "4.2 MB" (keep the braces as they are)
+#, machine
+ about {size} დაახლოებით {size}
#. checkbox in the Add torrent window
#. Torrent settings: other peers may connect to this computer
#, machine
@@ -3990,6 +3995,7 @@
#, machine
Size ზომა
#. text in the Download video window
+#. the video's file size is not known
#, machine
size unknown ზომა უცნობია
#. text in a download's Properties window
diff --git a/i18n/kk.tsv b/i18n/kk.tsv
index 9207123c..5da64e8b 100644
--- a/i18n/kk.tsv
+++ b/i18n/kk.tsv
@@ -270,6 +270,11 @@
#. a download's server's round trip: {ms} a number of milliseconds, {reach} near, medium or far
#, machine
about {ms} ms ({reach}) шамамен {ms} мс ({reach})
+#. text in the Download video window
+#. a file size that is only an estimate, as a screen reader says it in the Download video window's list of qualities; {size} is "532 MB"
+#. {size} = a file size such as "4.2 MB" (keep the braces as they are)
+#, machine
+ about {size} шамамен {size}
#. checkbox in the Add torrent window
#. Torrent settings: other peers may connect to this computer
#, machine
@@ -3990,6 +3995,7 @@
#, machine
Size Өлшемі
#. text in the Download video window
+#. the video's file size is not known
#, machine
size unknown өлшемі белгісіз
#. text in a download's Properties window
diff --git a/i18n/km.tsv b/i18n/km.tsv
index 8c585413..7987ec52 100644
--- a/i18n/km.tsv
+++ b/i18n/km.tsv
@@ -270,6 +270,11 @@
#. a download's server's round trip: {ms} a number of milliseconds, {reach} near, medium or far
#, machine
about {ms} ms ({reach}) ប្រហែល {ms} ម.វ. ( {reach} )
+#. text in the Download video window
+#. a file size that is only an estimate, as a screen reader says it in the Download video window's list of qualities; {size} is "532 MB"
+#. {size} = a file size such as "4.2 MB" (keep the braces as they are)
+#, machine
+ about {size} ប្រហែល {size}
#. checkbox in the Add torrent window
#. Torrent settings: other peers may connect to this computer
#, machine
@@ -3990,6 +3995,7 @@
#, machine
Size ទំហំ
#. text in the Download video window
+#. the video's file size is not known
#, machine
size unknown មិនស្គាល់ទំហំ
#. text in a download's Properties window
diff --git a/i18n/kn.tsv b/i18n/kn.tsv
index 87768a6d..ebb016cb 100644
--- a/i18n/kn.tsv
+++ b/i18n/kn.tsv
@@ -270,6 +270,11 @@
#. a download's server's round trip: {ms} a number of milliseconds, {reach} near, medium or far
#, machine
about {ms} ms ({reach}) ಸುಮಾರು {ms} ms ({reach})
+#. text in the Download video window
+#. a file size that is only an estimate, as a screen reader says it in the Download video window's list of qualities; {size} is "532 MB"
+#. {size} = a file size such as "4.2 MB" (keep the braces as they are)
+#, machine
+ about {size} ಸುಮಾರು {size}
#. checkbox in the Add torrent window
#. Torrent settings: other peers may connect to this computer
#, machine
@@ -3990,6 +3995,7 @@
#, machine
Size ಗಾತ್ರ
#. text in the Download video window
+#. the video's file size is not known
#, machine
size unknown ಗಾತ್ರ ತಿಳಿದಿಲ್ಲ
#. text in a download's Properties window
diff --git a/i18n/ko.tsv b/i18n/ko.tsv
index 8649681c..eab70925 100644
--- a/i18n/ko.tsv
+++ b/i18n/ko.tsv
@@ -270,6 +270,11 @@
#. a download's server's round trip: {ms} a number of milliseconds, {reach} near, medium or far
#, machine
about {ms} ms ({reach}) 약 {ms}ms({reach})
+#. text in the Download video window
+#. a file size that is only an estimate, as a screen reader says it in the Download video window's list of qualities; {size} is "532 MB"
+#. {size} = a file size such as "4.2 MB" (keep the braces as they are)
+#, machine
+ about {size} 약 {size}
#. checkbox in the Add torrent window
#. Torrent settings: other peers may connect to this computer
#, machine
@@ -3990,6 +3995,7 @@
#, machine
Size 크기
#. text in the Download video window
+#. the video's file size is not known
#, machine
size unknown 크기 알 수 없음
#. text in a download's Properties window
diff --git a/i18n/kok.tsv b/i18n/kok.tsv
index 849e9b93..19022720 100644
--- a/i18n/kok.tsv
+++ b/i18n/kok.tsv
@@ -270,6 +270,11 @@
#. a download's server's round trip: {ms} a number of milliseconds, {reach} near, medium or far
#, machine
about {ms} ms ({reach}) सुमार {ms} ms ({reach})
+#. text in the Download video window
+#. a file size that is only an estimate, as a screen reader says it in the Download video window's list of qualities; {size} is "532 MB"
+#. {size} = a file size such as "4.2 MB" (keep the braces as they are)
+#, machine
+ about {size} सुमार {size}
#. checkbox in the Add torrent window
#. Torrent settings: other peers may connect to this computer
#, machine
@@ -3990,6 +3995,7 @@
#, machine
Size आकार
#. text in the Download video window
+#. the video's file size is not known
#, machine
size unknown आकार खबर ना
#. text in a download's Properties window
diff --git a/i18n/lb.tsv b/i18n/lb.tsv
index fe036eef..c34a290d 100644
--- a/i18n/lb.tsv
+++ b/i18n/lb.tsv
@@ -270,6 +270,11 @@
#. a download's server's round trip: {ms} a number of milliseconds, {reach} near, medium or far
#, machine
about {ms} ms ({reach}) ongeféier {ms} ms ({reach})
+#. text in the Download video window
+#. a file size that is only an estimate, as a screen reader says it in the Download video window's list of qualities; {size} is "532 MB"
+#. {size} = a file size such as "4.2 MB" (keep the braces as they are)
+#, machine
+ about {size} ongeféier {size}
#. checkbox in the Add torrent window
#. Torrent settings: other peers may connect to this computer
#, machine
@@ -3990,6 +3995,7 @@
#, machine
Size Gréisst
#. text in the Download video window
+#. the video's file size is not known
#, machine
size unknown Gréisst onbekannt
#. text in a download's Properties window
diff --git a/i18n/lo.tsv b/i18n/lo.tsv
index b83d5ce8..ec3c5d82 100644
--- a/i18n/lo.tsv
+++ b/i18n/lo.tsv
@@ -270,6 +270,11 @@
#. a download's server's round trip: {ms} a number of milliseconds, {reach} near, medium or far
#, machine
about {ms} ms ({reach}) ປະມານ {ms} ມິນລິວິນາທີ ({reach})
+#. text in the Download video window
+#. a file size that is only an estimate, as a screen reader says it in the Download video window's list of qualities; {size} is "532 MB"
+#. {size} = a file size such as "4.2 MB" (keep the braces as they are)
+#, machine
+ about {size} ປະມານ {size}
#. checkbox in the Add torrent window
#. Torrent settings: other peers may connect to this computer
#, machine
@@ -3990,6 +3995,7 @@
#, machine
Size ຂະໜາດ
#. text in the Download video window
+#. the video's file size is not known
#, machine
size unknown ບໍ່ຮູ້ຂະໜາດ
#. text in a download's Properties window
diff --git a/i18n/lt.tsv b/i18n/lt.tsv
index e5d783f9..a6fccc3a 100644
--- a/i18n/lt.tsv
+++ b/i18n/lt.tsv
@@ -270,6 +270,11 @@
#. a download's server's round trip: {ms} a number of milliseconds, {reach} near, medium or far
#, machine
about {ms} ms ({reach}) apie {ms} ms ({reach})
+#. text in the Download video window
+#. a file size that is only an estimate, as a screen reader says it in the Download video window's list of qualities; {size} is "532 MB"
+#. {size} = a file size such as "4.2 MB" (keep the braces as they are)
+#, machine
+ about {size} apie {size}
#. checkbox in the Add torrent window
#. Torrent settings: other peers may connect to this computer
#, machine
@@ -3990,6 +3995,7 @@
#, machine
Size Dydis
#. text in the Download video window
+#. the video's file size is not known
#, machine
size unknown dydis nežinomas
#. text in a download's Properties window
diff --git a/i18n/lv.tsv b/i18n/lv.tsv
index 3a167389..aff2be7f 100644
--- a/i18n/lv.tsv
+++ b/i18n/lv.tsv
@@ -270,6 +270,11 @@
#. a download's server's round trip: {ms} a number of milliseconds, {reach} near, medium or far
#, machine
about {ms} ms ({reach}) aptuveni {ms} ms ({reach})
+#. text in the Download video window
+#. a file size that is only an estimate, as a screen reader says it in the Download video window's list of qualities; {size} is "532 MB"
+#. {size} = a file size such as "4.2 MB" (keep the braces as they are)
+#, machine
+ about {size} aptuveni {size}
#. checkbox in the Add torrent window
#. Torrent settings: other peers may connect to this computer
#, machine
@@ -3990,6 +3995,7 @@
#, machine
Size Lielums
#. text in the Download video window
+#. the video's file size is not known
#, machine
size unknown izmērs nav zināms
#. text in a download's Properties window
diff --git a/i18n/mi.tsv b/i18n/mi.tsv
index f4162459..ff3c907b 100644
--- a/i18n/mi.tsv
+++ b/i18n/mi.tsv
@@ -265,6 +265,11 @@
#. a download's server's round trip: {ms} a number of milliseconds, {reach} near, medium or far
#, machine
about {ms} ms ({reach}) tata ki te {ms} ms ({reach})
+#. text in the Download video window
+#. a file size that is only an estimate, as a screen reader says it in the Download video window's list of qualities; {size} is "532 MB"
+#. {size} = a file size such as "4.2 MB" (keep the braces as they are)
+#, machine
+ about {size} tata ki te {size}
#. checkbox in the Add torrent window
#. Torrent settings: other peers may connect to this computer
#, machine
@@ -3985,6 +3990,7 @@
#, machine
Size Rahi
#. text in the Download video window
+#. the video's file size is not known
#, machine
size unknown kāore i te mōhiotia te rahi
#. text in a download's Properties window
diff --git a/i18n/mk.tsv b/i18n/mk.tsv
index 5559ea67..204bc1af 100644
--- a/i18n/mk.tsv
+++ b/i18n/mk.tsv
@@ -270,6 +270,11 @@
#. a download's server's round trip: {ms} a number of milliseconds, {reach} near, medium or far
#, machine
about {ms} ms ({reach}) околу {ms} ms ({reach})
+#. text in the Download video window
+#. a file size that is only an estimate, as a screen reader says it in the Download video window's list of qualities; {size} is "532 MB"
+#. {size} = a file size such as "4.2 MB" (keep the braces as they are)
+#, machine
+ about {size} околу {size}
#. checkbox in the Add torrent window
#. Torrent settings: other peers may connect to this computer
#, machine
@@ -3990,6 +3995,7 @@
#, machine
Size Големина
#. text in the Download video window
+#. the video's file size is not known
#, machine
size unknown големина непозната
#. text in a download's Properties window
diff --git a/i18n/ml.tsv b/i18n/ml.tsv
index ecef8ea5..f197755f 100644
--- a/i18n/ml.tsv
+++ b/i18n/ml.tsv
@@ -270,6 +270,11 @@
#. a download's server's round trip: {ms} a number of milliseconds, {reach} near, medium or far
#, machine
about {ms} ms ({reach}) ഏകദേശം {ms} ms ({reach})
+#. text in the Download video window
+#. a file size that is only an estimate, as a screen reader says it in the Download video window's list of qualities; {size} is "532 MB"
+#. {size} = a file size such as "4.2 MB" (keep the braces as they are)
+#, machine
+ about {size} ഏകദേശം {size}
#. checkbox in the Add torrent window
#. Torrent settings: other peers may connect to this computer
#, machine
@@ -3990,6 +3995,7 @@
#, machine
Size വലുപ്പം
#. text in the Download video window
+#. the video's file size is not known
#, machine
size unknown വലുപ്പം അജ്ഞാതം
#. text in a download's Properties window
diff --git a/i18n/mr.tsv b/i18n/mr.tsv
index e9e71b34..d48b333a 100644
--- a/i18n/mr.tsv
+++ b/i18n/mr.tsv
@@ -270,6 +270,11 @@
#. a download's server's round trip: {ms} a number of milliseconds, {reach} near, medium or far
#, machine
about {ms} ms ({reach}) सुमारे {ms} मि.से. ({reach})
+#. text in the Download video window
+#. a file size that is only an estimate, as a screen reader says it in the Download video window's list of qualities; {size} is "532 MB"
+#. {size} = a file size such as "4.2 MB" (keep the braces as they are)
+#, machine
+ about {size} सुमारे {size}
#. checkbox in the Add torrent window
#. Torrent settings: other peers may connect to this computer
#, machine
@@ -3990,6 +3995,7 @@
#, machine
Size आकार
#. text in the Download video window
+#. the video's file size is not known
#, machine
size unknown आकार अज्ञात
#. text in a download's Properties window
diff --git a/i18n/ms.tsv b/i18n/ms.tsv
index e6f7a64e..c17fc196 100644
--- a/i18n/ms.tsv
+++ b/i18n/ms.tsv
@@ -270,6 +270,11 @@
#. a download's server's round trip: {ms} a number of milliseconds, {reach} near, medium or far
#, machine
about {ms} ms ({reach}) kira-kira {ms} ms ({reach})
+#. text in the Download video window
+#. a file size that is only an estimate, as a screen reader says it in the Download video window's list of qualities; {size} is "532 MB"
+#. {size} = a file size such as "4.2 MB" (keep the braces as they are)
+#, machine
+ about {size} kira-kira {size}
#. checkbox in the Add torrent window
#. Torrent settings: other peers may connect to this computer
#, machine
@@ -3990,6 +3995,7 @@
#, machine
Size Saiz
#. text in the Download video window
+#. the video's file size is not known
#, machine
size unknown saiz tidak diketahui
#. text in a download's Properties window
diff --git a/i18n/mt.tsv b/i18n/mt.tsv
index 02453d48..86d9d14c 100644
--- a/i18n/mt.tsv
+++ b/i18n/mt.tsv
@@ -270,6 +270,11 @@
#. a download's server's round trip: {ms} a number of milliseconds, {reach} near, medium or far
#, machine
about {ms} ms ({reach}) madwar {ms} ms ({reach})
+#. text in the Download video window
+#. a file size that is only an estimate, as a screen reader says it in the Download video window's list of qualities; {size} is "532 MB"
+#. {size} = a file size such as "4.2 MB" (keep the braces as they are)
+#, machine
+ about {size} madwar {size}
#. checkbox in the Add torrent window
#. Torrent settings: other peers may connect to this computer
#, machine
@@ -3990,6 +3995,7 @@
#, machine
Size Daqs
#. text in the Download video window
+#. the video's file size is not known
#, machine
size unknown daqs mhux magħruf
#. text in a download's Properties window
diff --git a/i18n/nb.tsv b/i18n/nb.tsv
index 87eebe4a..4f9da3e0 100644
--- a/i18n/nb.tsv
+++ b/i18n/nb.tsv
@@ -270,6 +270,11 @@
#. a download's server's round trip: {ms} a number of milliseconds, {reach} near, medium or far
#, machine
about {ms} ms ({reach}) omtrent {ms} ms ({reach})
+#. text in the Download video window
+#. a file size that is only an estimate, as a screen reader says it in the Download video window's list of qualities; {size} is "532 MB"
+#. {size} = a file size such as "4.2 MB" (keep the braces as they are)
+#, machine
+ about {size} omtrent {size}
#. checkbox in the Add torrent window
#. Torrent settings: other peers may connect to this computer
#, machine
@@ -3990,6 +3995,7 @@
#, machine
Size Størrelse
#. text in the Download video window
+#. the video's file size is not known
#, machine
size unknown størrelse ukjent
#. text in a download's Properties window
diff --git a/i18n/ne.tsv b/i18n/ne.tsv
index b25f0036..dd002601 100644
--- a/i18n/ne.tsv
+++ b/i18n/ne.tsv
@@ -270,6 +270,11 @@
#. a download's server's round trip: {ms} a number of milliseconds, {reach} near, medium or far
#, machine
about {ms} ms ({reach}) लगभग {ms} मि.से. ({reach})
+#. text in the Download video window
+#. a file size that is only an estimate, as a screen reader says it in the Download video window's list of qualities; {size} is "532 MB"
+#. {size} = a file size such as "4.2 MB" (keep the braces as they are)
+#, machine
+ about {size} लगभग {size}
#. checkbox in the Add torrent window
#. Torrent settings: other peers may connect to this computer
#, machine
@@ -3978,6 +3983,7 @@
#, machine
Size साइज
#. text in the Download video window
+#. the video's file size is not known
#, machine
size unknown साइज अज्ञात
#. text in a download's Properties window
diff --git a/i18n/nl.tsv b/i18n/nl.tsv
index 9b582b2e..2f91ad07 100644
--- a/i18n/nl.tsv
+++ b/i18n/nl.tsv
@@ -270,6 +270,11 @@
#. a download's server's round trip: {ms} a number of milliseconds, {reach} near, medium or far
#, machine
about {ms} ms ({reach}) ongeveer {ms} ms ({reach})
+#. text in the Download video window
+#. a file size that is only an estimate, as a screen reader says it in the Download video window's list of qualities; {size} is "532 MB"
+#. {size} = a file size such as "4.2 MB" (keep the braces as they are)
+#, machine
+ about {size} ongeveer {size}
#. checkbox in the Add torrent window
#. Torrent settings: other peers may connect to this computer
#, machine
@@ -3990,6 +3995,7 @@
#, machine
Size Grootte
#. text in the Download video window
+#. the video's file size is not known
#, machine
size unknown grootte onbekend
#. text in a download's Properties window
diff --git a/i18n/nn.tsv b/i18n/nn.tsv
index 13144e8f..cc525064 100644
--- a/i18n/nn.tsv
+++ b/i18n/nn.tsv
@@ -270,6 +270,11 @@
#. a download's server's round trip: {ms} a number of milliseconds, {reach} near, medium or far
#, machine
about {ms} ms ({reach}) omtrent {ms} ms ({reach})
+#. text in the Download video window
+#. a file size that is only an estimate, as a screen reader says it in the Download video window's list of qualities; {size} is "532 MB"
+#. {size} = a file size such as "4.2 MB" (keep the braces as they are)
+#, machine
+ about {size} omtrent {size}
#. checkbox in the Add torrent window
#. Torrent settings: other peers may connect to this computer
#, machine
@@ -3977,6 +3982,7 @@
#, machine
Size Storleik
#. text in the Download video window
+#. the video's file size is not known
#, machine
size unknown storleik ukjend
#. text in a download's Properties window
diff --git a/i18n/or.tsv b/i18n/or.tsv
index f4afed54..7d2abeef 100644
--- a/i18n/or.tsv
+++ b/i18n/or.tsv
@@ -270,6 +270,11 @@
#. a download's server's round trip: {ms} a number of milliseconds, {reach} near, medium or far
#, machine
about {ms} ms ({reach}) ପ୍ରାୟ {ms} ମିଲିସେକେଣ୍ଡ ({reach})
+#. text in the Download video window
+#. a file size that is only an estimate, as a screen reader says it in the Download video window's list of qualities; {size} is "532 MB"
+#. {size} = a file size such as "4.2 MB" (keep the braces as they are)
+#, machine
+ about {size} ପ୍ରାୟ {size}
#. checkbox in the Add torrent window
#. Torrent settings: other peers may connect to this computer
#, machine
@@ -3990,6 +3995,7 @@
#, machine
Size ଆକାର
#. text in the Download video window
+#. the video's file size is not known
#, machine
size unknown ଆକାର ଅଜ୍ଞାତ
#. text in a download's Properties window
diff --git a/i18n/pa.tsv b/i18n/pa.tsv
index dae64cd4..80c884a8 100644
--- a/i18n/pa.tsv
+++ b/i18n/pa.tsv
@@ -265,6 +265,11 @@
#. a download's server's round trip: {ms} a number of milliseconds, {reach} near, medium or far
#, machine
about {ms} ms ({reach}) ਲਗਭਗ {ms} ਮਿ.ਸੈ. ({reach})
+#. text in the Download video window
+#. a file size that is only an estimate, as a screen reader says it in the Download video window's list of qualities; {size} is "532 MB"
+#. {size} = a file size such as "4.2 MB" (keep the braces as they are)
+#, machine
+ about {size} ਲਗਭਗ {size}
#. checkbox in the Add torrent window
#. Torrent settings: other peers may connect to this computer
#, machine
@@ -3985,6 +3990,7 @@
#, machine
Size ਆਕਾਰ
#. text in the Download video window
+#. the video's file size is not known
#, machine
size unknown ਆਕਾਰ ਅਣਜਾਣ
#. text in a download's Properties window
diff --git a/i18n/pl.tsv b/i18n/pl.tsv
index 4c5d7be1..a9f11b78 100644
--- a/i18n/pl.tsv
+++ b/i18n/pl.tsv
@@ -270,6 +270,11 @@
#. a download's server's round trip: {ms} a number of milliseconds, {reach} near, medium or far
#, machine
about {ms} ms ({reach}) około {ms} ms ({reach})
+#. text in the Download video window
+#. a file size that is only an estimate, as a screen reader says it in the Download video window's list of qualities; {size} is "532 MB"
+#. {size} = a file size such as "4.2 MB" (keep the braces as they are)
+#, machine
+ about {size} około {size}
#. checkbox in the Add torrent window
#. Torrent settings: other peers may connect to this computer
#, machine
@@ -3990,6 +3995,7 @@
#, machine
Size Rozmiar
#. text in the Download video window
+#. the video's file size is not known
#, machine
size unknown rozmiar nieznany
#. text in a download's Properties window
diff --git a/i18n/pt-br.tsv b/i18n/pt-br.tsv
index 076a55f8..17096f22 100644
--- a/i18n/pt-br.tsv
+++ b/i18n/pt-br.tsv
@@ -270,6 +270,11 @@
#. a download's server's round trip: {ms} a number of milliseconds, {reach} near, medium or far
#, machine
about {ms} ms ({reach}) cerca de {ms} ms ({reach})
+#. text in the Download video window
+#. a file size that is only an estimate, as a screen reader says it in the Download video window's list of qualities; {size} is "532 MB"
+#. {size} = a file size such as "4.2 MB" (keep the braces as they are)
+#, machine
+ about {size} cerca de {size}
#. checkbox in the Add torrent window
#. Torrent settings: other peers may connect to this computer
#, machine
@@ -3990,6 +3995,7 @@
#, machine
Size Tamanho
#. text in the Download video window
+#. the video's file size is not known
#, machine
size unknown tamanho desconhecido
#. text in a download's Properties window
diff --git a/i18n/pt.tsv b/i18n/pt.tsv
index c8f7a23f..2493d899 100644
--- a/i18n/pt.tsv
+++ b/i18n/pt.tsv
@@ -270,6 +270,11 @@
#. a download's server's round trip: {ms} a number of milliseconds, {reach} near, medium or far
#, machine
about {ms} ms ({reach}) cerca de {ms} ms ({reach})
+#. text in the Download video window
+#. a file size that is only an estimate, as a screen reader says it in the Download video window's list of qualities; {size} is "532 MB"
+#. {size} = a file size such as "4.2 MB" (keep the braces as they are)
+#, machine
+ about {size} cerca de {size}
#. checkbox in the Add torrent window
#. Torrent settings: other peers may connect to this computer
#, machine
@@ -3990,6 +3995,7 @@
#, machine
Size Tamanho
#. text in the Download video window
+#. the video's file size is not known
#, machine
size unknown tamanho desconhecido
#. text in a download's Properties window
diff --git a/i18n/quz.tsv b/i18n/quz.tsv
index adf8ed98..26cada40 100644
--- a/i18n/quz.tsv
+++ b/i18n/quz.tsv
@@ -270,6 +270,11 @@
#. a download's server's round trip: {ms} a number of milliseconds, {reach} near, medium or far
#, machine
about {ms} ms ({reach}) yaqa {ms} ms ({reach})
+#. text in the Download video window
+#. a file size that is only an estimate, as a screen reader says it in the Download video window's list of qualities; {size} is "532 MB"
+#. {size} = a file size such as "4.2 MB" (keep the braces as they are)
+#, machine
+ about {size} yaqa {size}
#. checkbox in the Add torrent window
#. Torrent settings: other peers may connect to this computer
#, machine
@@ -3990,6 +3995,7 @@
#, machine
Size Sayay
#. text in the Download video window
+#. the video's file size is not known
#, machine
size unknown sayay mana riqsisqa
#. text in a download's Properties window
diff --git a/i18n/ro.tsv b/i18n/ro.tsv
index 1f81f25f..6fef4963 100644
--- a/i18n/ro.tsv
+++ b/i18n/ro.tsv
@@ -270,6 +270,11 @@
#. a download's server's round trip: {ms} a number of milliseconds, {reach} near, medium or far
#, machine
about {ms} ms ({reach}) aproximativ {ms} ms ({reach})
+#. text in the Download video window
+#. a file size that is only an estimate, as a screen reader says it in the Download video window's list of qualities; {size} is "532 MB"
+#. {size} = a file size such as "4.2 MB" (keep the braces as they are)
+#, machine
+ about {size} aproximativ {size}
#. checkbox in the Add torrent window
#. Torrent settings: other peers may connect to this computer
#, machine
@@ -3989,6 +3994,7 @@
#, machine
Size Dimensiune
#. text in the Download video window
+#. the video's file size is not known
#, machine
size unknown dimensiune necunoscută
#. text in a download's Properties window
diff --git a/i18n/ru.tsv b/i18n/ru.tsv
index ee6aeae5..2d79088a 100644
--- a/i18n/ru.tsv
+++ b/i18n/ru.tsv
@@ -270,6 +270,11 @@
#. a download's server's round trip: {ms} a number of milliseconds, {reach} near, medium or far
#, machine
about {ms} ms ({reach}) около {ms} мс ({reach})
+#. text in the Download video window
+#. a file size that is only an estimate, as a screen reader says it in the Download video window's list of qualities; {size} is "532 MB"
+#. {size} = a file size such as "4.2 MB" (keep the braces as they are)
+#, machine
+ about {size} около {size}
#. checkbox in the Add torrent window
#. Torrent settings: other peers may connect to this computer
#, machine
@@ -3990,6 +3995,7 @@
#, machine
Size Размер
#. text in the Download video window
+#. the video's file size is not known
#, machine
size unknown размер неизвестен
#. text in a download's Properties window
diff --git a/i18n/sk.tsv b/i18n/sk.tsv
index 89d4d425..22959a29 100644
--- a/i18n/sk.tsv
+++ b/i18n/sk.tsv
@@ -270,6 +270,11 @@
#. a download's server's round trip: {ms} a number of milliseconds, {reach} near, medium or far
#, machine
about {ms} ms ({reach}) približne {ms} ms ({reach})
+#. text in the Download video window
+#. a file size that is only an estimate, as a screen reader says it in the Download video window's list of qualities; {size} is "532 MB"
+#. {size} = a file size such as "4.2 MB" (keep the braces as they are)
+#, machine
+ about {size} približne {size}
#. checkbox in the Add torrent window
#. Torrent settings: other peers may connect to this computer
#, machine
@@ -3990,6 +3995,7 @@
#, machine
Size Veľkosť
#. text in the Download video window
+#. the video's file size is not known
#, machine
size unknown veľkosť neznáma
#. text in a download's Properties window
diff --git a/i18n/sl.tsv b/i18n/sl.tsv
index e024c645..b2a41df8 100644
--- a/i18n/sl.tsv
+++ b/i18n/sl.tsv
@@ -270,6 +270,11 @@
#. a download's server's round trip: {ms} a number of milliseconds, {reach} near, medium or far
#, machine
about {ms} ms ({reach}) približno {ms} ms ({reach})
+#. text in the Download video window
+#. a file size that is only an estimate, as a screen reader says it in the Download video window's list of qualities; {size} is "532 MB"
+#. {size} = a file size such as "4.2 MB" (keep the braces as they are)
+#, machine
+ about {size} približno {size}
#. checkbox in the Add torrent window
#. Torrent settings: other peers may connect to this computer
#, machine
@@ -3990,6 +3995,7 @@
#, machine
Size Velikost
#. text in the Download video window
+#. the video's file size is not known
#, machine
size unknown velikost neznana
#. text in a download's Properties window
diff --git a/i18n/sq.tsv b/i18n/sq.tsv
index f46c4b39..4202b345 100644
--- a/i18n/sq.tsv
+++ b/i18n/sq.tsv
@@ -270,6 +270,11 @@
#. a download's server's round trip: {ms} a number of milliseconds, {reach} near, medium or far
#, machine
about {ms} ms ({reach}) rreth {ms} ms ({reach})
+#. text in the Download video window
+#. a file size that is only an estimate, as a screen reader says it in the Download video window's list of qualities; {size} is "532 MB"
+#. {size} = a file size such as "4.2 MB" (keep the braces as they are)
+#, machine
+ about {size} rreth {size}
#. checkbox in the Add torrent window
#. Torrent settings: other peers may connect to this computer
#, machine
@@ -3990,6 +3995,7 @@
#, machine
Size Madhësia
#. text in the Download video window
+#. the video's file size is not known
#, machine
size unknown madhësia e panjohur
#. text in a download's Properties window
diff --git a/i18n/sr-latn.tsv b/i18n/sr-latn.tsv
index 28498803..d883ff00 100644
--- a/i18n/sr-latn.tsv
+++ b/i18n/sr-latn.tsv
@@ -270,6 +270,11 @@
#. a download's server's round trip: {ms} a number of milliseconds, {reach} near, medium or far
#, machine
about {ms} ms ({reach}) oko {ms} ms ({reach})
+#. text in the Download video window
+#. a file size that is only an estimate, as a screen reader says it in the Download video window's list of qualities; {size} is "532 MB"
+#. {size} = a file size such as "4.2 MB" (keep the braces as they are)
+#, machine
+ about {size} oko {size}
#. checkbox in the Add torrent window
#. Torrent settings: other peers may connect to this computer
#, machine
@@ -3990,6 +3995,7 @@
#, machine
Size Veličina
#. text in the Download video window
+#. the video's file size is not known
#, machine
size unknown veličina nepoznata
#. text in a download's Properties window
diff --git a/i18n/sr.tsv b/i18n/sr.tsv
index a518959e..77effdf8 100644
--- a/i18n/sr.tsv
+++ b/i18n/sr.tsv
@@ -270,6 +270,11 @@
#. a download's server's round trip: {ms} a number of milliseconds, {reach} near, medium or far
#, machine
about {ms} ms ({reach}) око {ms} ms ({reach})
+#. text in the Download video window
+#. a file size that is only an estimate, as a screen reader says it in the Download video window's list of qualities; {size} is "532 MB"
+#. {size} = a file size such as "4.2 MB" (keep the braces as they are)
+#, machine
+ about {size} око {size}
#. checkbox in the Add torrent window
#. Torrent settings: other peers may connect to this computer
#, machine
@@ -3990,6 +3995,7 @@
#, machine
Size Величина
#. text in the Download video window
+#. the video's file size is not known
#, machine
size unknown непозната величина
#. text in a download's Properties window
diff --git a/i18n/sv.tsv b/i18n/sv.tsv
index 62a206d9..020f8412 100644
--- a/i18n/sv.tsv
+++ b/i18n/sv.tsv
@@ -270,6 +270,11 @@
#. a download's server's round trip: {ms} a number of milliseconds, {reach} near, medium or far
#, machine
about {ms} ms ({reach}) cirka {ms} ms ({reach})
+#. text in the Download video window
+#. a file size that is only an estimate, as a screen reader says it in the Download video window's list of qualities; {size} is "532 MB"
+#. {size} = a file size such as "4.2 MB" (keep the braces as they are)
+#, machine
+ about {size} cirka {size}
#. checkbox in the Add torrent window
#. Torrent settings: other peers may connect to this computer
#, machine
@@ -3990,6 +3995,7 @@
#, machine
Size Storlek
#. text in the Download video window
+#. the video's file size is not known
#, machine
size unknown storlek okänd
#. text in a download's Properties window
diff --git a/i18n/ta.tsv b/i18n/ta.tsv
index 5fc0985f..726ed2f0 100644
--- a/i18n/ta.tsv
+++ b/i18n/ta.tsv
@@ -270,6 +270,11 @@
#. a download's server's round trip: {ms} a number of milliseconds, {reach} near, medium or far
#, machine
about {ms} ms ({reach}) சுமார் {ms} மி.வி ({reach})
+#. text in the Download video window
+#. a file size that is only an estimate, as a screen reader says it in the Download video window's list of qualities; {size} is "532 MB"
+#. {size} = a file size such as "4.2 MB" (keep the braces as they are)
+#, machine
+ about {size} சுமார் {size}
#. checkbox in the Add torrent window
#. Torrent settings: other peers may connect to this computer
#, machine
@@ -3990,6 +3995,7 @@
#, machine
Size அளவு
#. text in the Download video window
+#. the video's file size is not known
#, machine
size unknown அளவு தெரியவில்லை
#. text in a download's Properties window
diff --git a/i18n/te.tsv b/i18n/te.tsv
index 26519467..c8b3ef09 100644
--- a/i18n/te.tsv
+++ b/i18n/te.tsv
@@ -270,6 +270,11 @@
#. a download's server's round trip: {ms} a number of milliseconds, {reach} near, medium or far
#, machine
about {ms} ms ({reach}) సుమారు {ms} మి.సె. ({reach})
+#. text in the Download video window
+#. a file size that is only an estimate, as a screen reader says it in the Download video window's list of qualities; {size} is "532 MB"
+#. {size} = a file size such as "4.2 MB" (keep the braces as they are)
+#, machine
+ about {size} సుమారు {size}
#. checkbox in the Add torrent window
#. Torrent settings: other peers may connect to this computer
#, machine
@@ -3990,6 +3995,7 @@
#, machine
Size పరిమాణం
#. text in the Download video window
+#. the video's file size is not known
#, machine
size unknown పరిమాణం తెలియదు
#. text in a download's Properties window
diff --git a/i18n/th.tsv b/i18n/th.tsv
index 2d940647..f55be7c5 100644
--- a/i18n/th.tsv
+++ b/i18n/th.tsv
@@ -270,6 +270,11 @@
#. a download's server's round trip: {ms} a number of milliseconds, {reach} near, medium or far
#, machine
about {ms} ms ({reach}) ประมาณ {ms} มิลลิวินาที ({reach})
+#. text in the Download video window
+#. a file size that is only an estimate, as a screen reader says it in the Download video window's list of qualities; {size} is "532 MB"
+#. {size} = a file size such as "4.2 MB" (keep the braces as they are)
+#, machine
+ about {size} ประมาณ {size}
#. checkbox in the Add torrent window
#. Torrent settings: other peers may connect to this computer
#, machine
@@ -3990,6 +3995,7 @@
#, machine
Size ขนาด
#. text in the Download video window
+#. the video's file size is not known
#, machine
size unknown ไม่ทราบขนาด
#. text in a download's Properties window
diff --git a/i18n/tr.tsv b/i18n/tr.tsv
index 7742ed24..2f6bb68b 100644
--- a/i18n/tr.tsv
+++ b/i18n/tr.tsv
@@ -270,6 +270,11 @@
#. a download's server's round trip: {ms} a number of milliseconds, {reach} near, medium or far
#, machine
about {ms} ms ({reach}) yaklaşık {ms} ms ({reach})
+#. text in the Download video window
+#. a file size that is only an estimate, as a screen reader says it in the Download video window's list of qualities; {size} is "532 MB"
+#. {size} = a file size such as "4.2 MB" (keep the braces as they are)
+#, machine
+ about {size} yaklaşık {size}
#. checkbox in the Add torrent window
#. Torrent settings: other peers may connect to this computer
#, machine
@@ -3990,6 +3995,7 @@
#, machine
Size Boyut
#. text in the Download video window
+#. the video's file size is not known
#, machine
size unknown boyut bilinmiyor
#. text in a download's Properties window
diff --git a/i18n/tt.tsv b/i18n/tt.tsv
index fc087c96..dfdd3806 100644
--- a/i18n/tt.tsv
+++ b/i18n/tt.tsv
@@ -270,6 +270,11 @@
#. a download's server's round trip: {ms} a number of milliseconds, {reach} near, medium or far
#, machine
about {ms} ms ({reach}) якынча {ms} мс ({reach})
+#. text in the Download video window
+#. a file size that is only an estimate, as a screen reader says it in the Download video window's list of qualities; {size} is "532 MB"
+#. {size} = a file size such as "4.2 MB" (keep the braces as they are)
+#, machine
+ about {size} якынча {size}
#. checkbox in the Add torrent window
#. Torrent settings: other peers may connect to this computer
#, machine
@@ -3990,6 +3995,7 @@
#, machine
Size Зурлык
#. text in the Download video window
+#. the video's file size is not known
#, machine
size unknown зурлыгы билгесез
#. text in a download's Properties window
diff --git a/i18n/ug.tsv b/i18n/ug.tsv
index 95628931..f6bf3499 100644
--- a/i18n/ug.tsv
+++ b/i18n/ug.tsv
@@ -270,6 +270,11 @@
#. a download's server's round trip: {ms} a number of milliseconds, {reach} near, medium or far
#, machine
about {ms} ms ({reach}) تەخمىنەن {ms} ms ({reach})
+#. text in the Download video window
+#. a file size that is only an estimate, as a screen reader says it in the Download video window's list of qualities; {size} is "532 MB"
+#. {size} = a file size such as "4.2 MB" (keep the braces as they are)
+#, machine
+ about {size} تەخمىنەن {size}
#. checkbox in the Add torrent window
#. Torrent settings: other peers may connect to this computer
#, machine
@@ -3990,6 +3995,7 @@
#, machine
Size چوڭلۇقى
#. text in the Download video window
+#. the video's file size is not known
#, machine
size unknown چوڭلۇقى نامەلۇم
#. text in a download's Properties window
diff --git a/i18n/uk.tsv b/i18n/uk.tsv
index 3c40d4ef..106f1416 100644
--- a/i18n/uk.tsv
+++ b/i18n/uk.tsv
@@ -270,6 +270,11 @@
#. a download's server's round trip: {ms} a number of milliseconds, {reach} near, medium or far
#, machine
about {ms} ms ({reach}) приблизно {ms} мс ({reach})
+#. text in the Download video window
+#. a file size that is only an estimate, as a screen reader says it in the Download video window's list of qualities; {size} is "532 MB"
+#. {size} = a file size such as "4.2 MB" (keep the braces as they are)
+#, machine
+ about {size} приблизно {size}
#. checkbox in the Add torrent window
#. Torrent settings: other peers may connect to this computer
#, machine
@@ -3990,6 +3995,7 @@
#, machine
Size Розмір
#. text in the Download video window
+#. the video's file size is not known
#, machine
size unknown розмір невідомий
#. text in a download's Properties window
diff --git a/i18n/ur.tsv b/i18n/ur.tsv
index 758b94b3..865564da 100644
--- a/i18n/ur.tsv
+++ b/i18n/ur.tsv
@@ -265,6 +265,11 @@
#. a download's server's round trip: {ms} a number of milliseconds, {reach} near, medium or far
#, machine
about {ms} ms ({reach}) تقریبا {ms} ملی سیکنڈ ({reach})
+#. text in the Download video window
+#. a file size that is only an estimate, as a screen reader says it in the Download video window's list of qualities; {size} is "532 MB"
+#. {size} = a file size such as "4.2 MB" (keep the braces as they are)
+#, machine
+ about {size} تقریبا {size}
#. checkbox in the Add torrent window
#. Torrent settings: other peers may connect to this computer
#, machine
@@ -3985,6 +3990,7 @@
#, machine
Size سائز
#. text in the Download video window
+#. the video's file size is not known
#, machine
size unknown سائز نامعلوم
#. text in a download's Properties window
diff --git a/i18n/uz.tsv b/i18n/uz.tsv
index 6d801478..4f0ca781 100644
--- a/i18n/uz.tsv
+++ b/i18n/uz.tsv
@@ -270,6 +270,11 @@
#. a download's server's round trip: {ms} a number of milliseconds, {reach} near, medium or far
#, machine
about {ms} ms ({reach}) taxminan {ms} ms ({reach})
+#. text in the Download video window
+#. a file size that is only an estimate, as a screen reader says it in the Download video window's list of qualities; {size} is "532 MB"
+#. {size} = a file size such as "4.2 MB" (keep the braces as they are)
+#, machine
+ about {size} taxminan {size}
#. checkbox in the Add torrent window
#. Torrent settings: other peers may connect to this computer
#, machine
@@ -3990,6 +3995,7 @@
#, machine
Size Hajmi
#. text in the Download video window
+#. the video's file size is not known
#, machine
size unknown hajmi nomaʼlum
#. text in a download's Properties window
diff --git a/i18n/vi.tsv b/i18n/vi.tsv
index f4af0e37..75e826be 100644
--- a/i18n/vi.tsv
+++ b/i18n/vi.tsv
@@ -270,6 +270,11 @@
#. a download's server's round trip: {ms} a number of milliseconds, {reach} near, medium or far
#, machine
about {ms} ms ({reach}) khoảng {ms} mili giây ({reach})
+#. text in the Download video window
+#. a file size that is only an estimate, as a screen reader says it in the Download video window's list of qualities; {size} is "532 MB"
+#. {size} = a file size such as "4.2 MB" (keep the braces as they are)
+#, machine
+ about {size} khoảng {size}
#. checkbox in the Add torrent window
#. Torrent settings: other peers may connect to this computer
#, machine
@@ -3990,6 +3995,7 @@
#, machine
Size Kích cỡ
#. text in the Download video window
+#. the video's file size is not known
#, machine
size unknown kích thước không xác định
#. text in a download's Properties window
diff --git a/i18n/zh-hans.tsv b/i18n/zh-hans.tsv
index 6622ddc0..da96204f 100644
--- a/i18n/zh-hans.tsv
+++ b/i18n/zh-hans.tsv
@@ -270,6 +270,11 @@
#. a download's server's round trip: {ms} a number of milliseconds, {reach} near, medium or far
#, machine
about {ms} ms ({reach}) 约 {ms} 毫秒 ({reach})
+#. text in the Download video window
+#. a file size that is only an estimate, as a screen reader says it in the Download video window's list of qualities; {size} is "532 MB"
+#. {size} = a file size such as "4.2 MB" (keep the braces as they are)
+#, machine
+ about {size} 约 {size}
#. checkbox in the Add torrent window
#. Torrent settings: other peers may connect to this computer
#, machine
@@ -3990,6 +3995,7 @@
#, machine
Size 大小
#. text in the Download video window
+#. the video's file size is not known
#, machine
size unknown 大小未知
#. text in a download's Properties window
diff --git a/i18n/zh-hant.tsv b/i18n/zh-hant.tsv
index de09c5cc..7bcd904c 100644
--- a/i18n/zh-hant.tsv
+++ b/i18n/zh-hant.tsv
@@ -270,6 +270,11 @@
#. a download's server's round trip: {ms} a number of milliseconds, {reach} near, medium or far
#, machine
about {ms} ms ({reach}) 約 {ms} 毫秒 ({reach})
+#. text in the Download video window
+#. a file size that is only an estimate, as a screen reader says it in the Download video window's list of qualities; {size} is "532 MB"
+#. {size} = a file size such as "4.2 MB" (keep the braces as they are)
+#, machine
+ about {size} 約 {size}
#. checkbox in the Add torrent window
#. Torrent settings: other peers may connect to this computer
#, machine
@@ -3990,6 +3995,7 @@
#, machine
Size 大小
#. text in the Download video window
+#. the video's file size is not known
#, machine
size unknown 大小未知
#. text in a download's Properties window
diff --git a/tools/extension/e2e.mjs b/tools/extension/e2e.mjs
index c915d1b9..a539a1f1 100644
--- a/tools/extension/e2e.mjs
+++ b/tools/extension/e2e.mjs
@@ -29,7 +29,8 @@
// streams found only when asked, by the button and the media list, a text decoy never), media (the
// toolbar button's list of the media a tab loaded: streams, files, a protected stream; #38),
// qualities (the button's menu: a stream's qualities looked up by MDM, with their sizes; the one
-// picked downloads with its progress window only, MDM's main window hidden), video (shown,
+// picked downloads with its progress window only, MDM's main window hidden), page (the menu on a
+// real video page, E2E_VIDEO_PAGE, and the line E2E_VIDEO_PICK downloaded: off by default), video (shown,
// clicked, dragged, kept; "never on the site" in the last browser; the button's clicks go through
// its menu's "Open in…" to the Download video window, as in csp, hls, streams, sniffed and
// inplace), panelOptions (the button follows Options in an open tab: off, on, the site listed;
@@ -2582,6 +2583,10 @@ const CASES = {
const sounds = { rows: m.rows.filter((r) => r.kind === "audio") };
if (!pictures.rows.length || pictures.rows.some((r) => !picture.test(r.name))) throw new Error(`VIDEO lists a sound: ${JSON.stringify(pictures.rows.map((r) => r.name))}`);
if (!sounds.rows.length || sounds.rows.some((r) => picture.test(r.name))) throw new Error(`AUDIO lists a picture: ${JSON.stringify(sounds.rows.map((r) => r.name))}`);
+ // #755: each picture's line says its codec (the lab's variants are H.264); #801: a stream's
+ // sizes come from its bitrate, so each is marked as about ("~").
+ if (pictures.rows.some((r) => !/\bH\.264\b/.test(r.name))) throw new Error(`a picture's line without its codec: ${JSON.stringify(pictures.rows.map((r) => r.name))}`);
+ if (pictures.rows.some((r) => !r.size.startsWith("~"))) throw new Error(`a stream's estimate not marked as about: ${JSON.stringify(pictures.rows.map((r) => r.size))}`);
await sleep(500);
if (shots) await snap("list", await t.session.picks());
// 360p from VIDEO (the click later takes the best, 720p: not the same download).
@@ -2621,6 +2626,67 @@ const CASES = {
}
},
+ // E2E_VIDEO_PAGE=<a video's page>: the button's qualities' menu on a real site (a pull
+ // request's screenshots and its real check; the network's, so never by default): the lines the
+ // menu shows, then, with E2E_VIDEO_PICK=<a pattern of a line's words>, that line picked and
+ // downloaded to its end, its file's size beside the line's (#801: the size shown is the size
+ // that comes). E2E_SHOTS as in `qualities`: <lang>-page-list.png (the menu), page-pick.png
+ // (the line about to be picked, scrolled to).
+ async page(t) {
+ const address = process.env.E2E_VIDEO_PAGE;
+ if (!address) throw new Skip("no E2E_VIDEO_PAGE");
+ if (!ytdlp) throw new Skip("no yt-dlp (E2E_YTDLP or PATH)");
+ if (!ffmpeg) throw new Skip("no ffmpeg (E2E_FFMPEG or PATH)");
+ if (!WIN) throw new Skip(NO_UIA);
+ await stopApp();
+ fs.rmSync(path.join(data, "ipc.json"), { force: true });
+ spawn(appExe, ["/startup"], { env: process.env, stdio: "ignore", detached: false });
+ try {
+ await until("the test instance, in the notification area", 20000, () => mdmList().then(() => true, () => false));
+ await t.session.navigate(address);
+ const v = await until("the page's video", 30000, () => rect(t.session, "video"));
+ const b = await hover(t.session, v);
+ if (!b) throw new Error("no button over the page's video");
+ await until("the best quality on the button's chip", 120000, async () => {
+ const p = await t.session.pill(PILL_STATE);
+ return p && p.state === "ready" && p.chip ? p : null;
+ });
+ await clickArrow(t.session);
+ const m = await until("the qualities in the menu", 300000, async () => {
+ const p = await t.session.picks("row");
+ if (p && !p.busy && !p.rows.length) throw new Error(`the menu shows no qualities: "${p.note}"`);
+ return p && p.rows.length ? p : null;
+ });
+ const shots = process.env.E2E_SHOTS && t.session.shot ? path.resolve(process.env.E2E_SHOTS) : "";
+ const lang = process.env.E2E_LANG || "en";
+ const snap = (name, p) => t.session.shot(path.join(shots, `${lang}-${name}.png`), { l: p.box.l - 10, t: p.box.t - 10, r: p.box.r + 10, b: p.box.b + 10 });
+ await sleep(500);
+ if (shots) await snap("page-list", await t.session.picks());
+ const lines = m.rows.map((r) => `${r.name} = ${r.size}`);
+ const pick = process.env.E2E_VIDEO_PICK;
+ if (!pick) return lines.join("; ");
+ const wanted = new RegExp(pick);
+ const row = m.rows.find((r) => r.kind !== "top" && wanted.test(r.name));
+ if (!row) throw new Error(`no line like ${pick}: ${lines.join("; ")}`);
+ // Where it is now (the first lines are in the menu's view).
+ const now = await t.session.picks();
+ const seen = now.rows.find((r) => r.choice === row.choice) || row;
+ if (shots) await snap("page-pick", now);
+ const before = new Set((await mdmList()).map((d) => d.id));
+ await t.session.mouse(seen.x, seen.y, "click");
+ const item = await until("the line picked, in MDM's list", 30000, async () => (await mdmList()).find((d) => !before.has(d.id)));
+ const done = await until("the download's end", 20 * 60000, async () => {
+ const d = (await mdmList()).find((x) => x.id === item.id);
+ if (d && d.status === "Error") throw new Error(`the download failed: ${d.error}`);
+ return d && d.status === "Complete" ? d : null;
+ });
+ const bytes = fs.statSync(done.path).size;
+ return `${lines.join("; ")}; picked "${seen.name}" (${seen.size}): ${done.file}, ${bytes} bytes`;
+ } finally {
+ await stopApp();
+ }
+ },
+
// Before `video`, which ends with "Never on this site" for the lab in the last browser.
async panelOptions(t) {
return videoButtonFollowsOptions(t.session);
diff --git a/tools/extension/test.mjs b/tools/extension/test.mjs
index f27649d3..66f24b46 100644
--- a/tools/extension/test.mjs
+++ b/tools/extension/test.mjs
@@ -1731,7 +1731,7 @@ function samplePage(html) {
assert.deepEqual(grp(undefined), { tabbed: false, video: [], audio: [], all: [], start: "video" });
assert.deepEqual(grp(mixed, 3), { tabbed: true, video: [0, 1], audio: [2], all: [0, 1, 2], start: "video" }, "the cap keeps the app's order");
// A row: the app's name for the quality as it is (set as text), its size in the browser's language.
- const { sizeText, rowText } = make(["sizeText", "rowText"], "{ sizeText, rowText }");
+ const { sizeText, rowText } = make(["sizeText", "choiceSize", "rowText"], "{ sizeText, rowText }");
assert.equal(sizeText(187500000, "en"), "178.8 MB");
assert.equal(sizeText(3 * 2 ** 30, "en"), "3 GB");
assert.equal(sizeText(null, "en"), "");
@@ -1924,8 +1924,8 @@ function samplePage(html) {
assert.ok(source.includes(`t("${key}")`), `video.js uses ${key}`);
}
{
- const w = make(["sizeText", "qualityName", "qualityMeta", "bestOf", "chipFor", "tipFor", "durationText", "headerLine", "moveIn", "fitsWords"],
- "{ qualityName, qualityMeta, bestOf, chipFor, tipFor, durationText, headerLine, moveIn, fitsWords }");
+ const w = make(["sizeText", "choiceSize", "qualityName", "qualityMeta", "bestOf", "chipFor", "tipFor", "durationText", "headerLine", "moveIn", "fitsWords"],
+ "{ choiceSize, qualityName, qualityMeta, bestOf, chipFor, tipFor, durationText, headerLine, moveIn, fitsWords }");
const tt = (k, ...a) => (a.length ? `${k}(${a.join(",")})` : k);
const hd = { label: "1080p 60fps MP4", ext: "mp4", size: 412000000, audio: false, height: 1080, fps: 60 };
const k4 = { label: "2160p MP4", ext: "mp4", height: 2160 };
@@ -1938,6 +1938,20 @@ function samplePage(html) {
assert.equal(w.qualityMeta(sound, tt), "128 kbps");
assert.equal(w.qualityMeta(mp3, tt), "", "a conversion says it in its label");
assert.equal(w.qualityMeta(older, tt), "", "an older app's label says it all");
+ // #755: the codec, frame rate and range, the type only when it isn't MP4 (or no codec is
+ // said); each line of one height its own.
+ const av1 = { label: "2160p · AV1 · 60 fps · HDR", ext: "mp4", height: 2160, fps: 60, codec: "AV1", range: "HDR", size: 305554961 };
+ const vp9 = { label: "2160p · VP9 · 60 fps · SDR", ext: "mp4", height: 2160, fps: 60, codec: "VP9", range: "SDR", size: 292630287 };
+ assert.equal(w.qualityMeta(av1, tt), "AV1 · 60 fps · HDR");
+ assert.equal(w.qualityMeta(vp9, tt), "VP9 · 60 fps · SDR");
+ assert.equal(w.qualityMeta({ height: 360, ext: "webm", codec: "VP9", fps: 30 }, tt), "WEBM · VP9 · 30 fps", "a type other than MP4 is said");
+ assert.equal(w.qualityMeta({ height: 720, ext: "mp4", codec: 7, range: { x: 1 } }, tt), "MP4", "only text is shown");
+ assert.equal(w.qualityMeta({ height: 720, ext: "mp4", codec: "H.264".repeat(9) }, tt).length, 24, "a codec's name is cut");
+ // #801: an estimate is marked; an exact size isn't; an older app's has no mark.
+ assert.equal(w.choiceSize({ size: 557842432, approx: true }, "en"), "~532 MB");
+ assert.equal(w.choiceSize({ size: 557842432 }, "en"), "532 MB");
+ assert.equal(w.choiceSize({ size: null, approx: true }, "en"), "");
+ assert.equal(w.choiceSize(null, "en"), "");
// The list's sound lines: the type, then the bitrate, and "original" for the sound as the site
// sends it (with or without a bitrate); a conversion's VBR.
const lw = make(["qualityName", "qualityMeta", "lineWords"], "lineWords");
@@ -1957,6 +1971,7 @@ function samplePage(html) {
assert.deepEqual(w.chipFor({ file: true, height: 720, ext: "mp4" }, tt), { text: "720p", hd: true });
assert.equal(w.chipFor({ state: "failed" }, tt), null);
assert.equal(w.tipFor(ready, tt, "en"), "video_tip(1080p MP4 · 392.9 MB)");
+ assert.equal(w.tipFor({ state: "ready", choices: [{ ...hd, approx: true }] }, tt, "en"), "video_tip(1080p MP4 · ~392.9 MB)");
assert.equal(w.tipFor({ state: "pending" }, tt, "en"), "video_tip_best");
assert.equal(w.tipFor(null, tt, "en"), "video_download");
assert.deepEqual([596, 3723, 0, null, "x"].map(w.durationText), ["9:56", "1:02:03", "", "", ""]);