7

GitHub - o-oconnell/mp4grep: Command-line tool that searches audio/video files.

 2 years ago
source link: https://github.com/o-oconnell/mp4grep
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

mp4grep

mp4grep is a search tool that transcribes and searches audio and video files for a regex pattern. mp4grep isn't just for mp4 files! It also supports mp3, mp4, ogg, webm, mov, and wav.

Screenshot of search results

Compatible transcription models

mp4grep depends on Vosk to transcribe audio. By default, mp4grep ships with a 40 MB lightweight English model. If you want to transcribe dialects of English or other languages with accuracy, you will need to use a different model (specify with --model). You can download other models from Vosk's official list.

Installation

  1. Download mp4grep and unzip it in the location that you want to install it: unzip mp4grep-v0.1.0.zip

  2. Add mp4grep to your PATH, and set its environment variables:

cd mp4grep-v0.1.0

source install.sh

This script adds mp4grep to your path and sets some environment variables.

  1. Use mp4grep to search! mp4grep "the birch canoe" harvard_sentences.mp4

Pull requests

Pull requests are welcome. Please open a pull request if you have a bug to fix or a cool idea.

Platforms

mp4grep currently supports Linux.


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK