Skip to content

Instantly share code, notes, and snippets.

@protrolium
Created January 14, 2023 00:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save protrolium/025464e060632c011932eeb4f8bfe064 to your computer and use it in GitHub Desktop.
Save protrolium/025464e060632c011932eeb4f8bfe064 to your computer and use it in GitHub Desktop.
some tasks with videogrep

list video subtitles

yt-dlp --list-subs [video url]

download video subtitles with yt-dlp after downloading video

yt-dlp --skip-download --write-sub --write-auto-sub --sub-lang "en.*" [video url]

rename .vtt or srt to match video name

check video for most frequent words with --ngrams [int]

`videogrep -i path/to/file --ngrams 1

set options and padding

`videogrep -i path/to/file --search 'search phrase' -st fragment -p 0.1 -o test.mp4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment