From d793bca3eac6b933bb695e1fdb3135acaa1d9206 Mon Sep 17 00:00:00 2001 From: Malin Freeborn Date: Fri, 28 Feb 2025 17:10:25 +0100 Subject: [PATCH] search video audio --- data/search_video_audio.md | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 data/search_video_audio.md diff --git a/data/search_video_audio.md b/data/search_video_audio.md new file mode 100644 index 0000000..9ffb6df --- /dev/null +++ b/data/search_video_audio.md @@ -0,0 +1,33 @@ +--- +title: "Search Video Audio" +tags: [ "data", "video" ] +--- + +Check subtitles available: + +```sh +url='https://videos.domainepublic.net/videos/watch/d9567d5b-1add-477c-bce3-a58cef84c28c' +yt-dlp --list-subs "$url" | grep --max-count=1 '^en' +``` + +The original language often displays with `-orig`, e.g. `en-orig (Original)`. + +``` +Language Formats +ar vtt +az vtt +bg vtt +ca vtt +cs vtt +da vtt +de vtt +el vtt +en vtt +``` + +Search youtube.com for videos on a topic, and download subtitles: + +```sh +url="$(ytfzf -I l "$search" )" && \ +yt-dlp --write-subs --sub-format 'ass/srt/best/vtt' --sub-langs "en.*" --skip-download "$url" +```