Releases: o-oconnell/mp4grep
mp4grep 0.1.5 for x86 Linux
Small fixes, mainly that a directory can be passed as an argument and all 16000 Hz wav files within will be transcribed concurrently. Install and build instructions are the same as the previous release.
mp4grep 0.1.4 for x86 Linux
Instructions for building mp4grep have not changed since the previous release (see https://github.com/o-oconnell/mp4grep/releases/tag/0.1.3-linux).
However, this release adds some small improvements and also contains a pre-built binary of mp4grep for x86 Linux, which means you do not need to install the OCaml compiler if you only want to install mp4grep.
Installation steps, if you do not want to build:
-
Download and decompress the code, then enter the resulting directory.
-
(Optionally) set your $PATH to bin/mp4grep (it must be in this directory relative to the Vosk .so under
lib
). -
Set your MP4GREP_CACHE and MP4GREP_MODEL environment variables to a convenient directory for text files and a Vosk model, respectively (see https://alphacephei.com/vosk/models for model downloads).
-
If you do not already, make sure you have ffmpeg and gcc installed. This has been tested on x86 Lubuntu 21.10 and x86 Ubuntu 20.04.
After that, you should be good to go! Open an issue if you're having problems, and remember this has only been compiled for x86 Linux. You may need to refer to the build instructions (https://github.com/o-oconnell/mp4grep/releases/tag/0.1.3-linux) for other architectures.
mp4grep 0.1.3 for Linux
mp4grep in OCaml. Installation and dependencies:
Installation
-
Install Opam
-
Create a new switch (version of the compiler) by running
opam switch create mp4grep 4.12.0+domains+effects
. This version is necessary as mp4grep will be updated to take advantage of multicore domains in OCaml. -
Install parmap on your new switch:
opam install parmap
. -
Download mp4grep, untar/zip it, and cd into its directory.
-
Execute
source configure.sh --prefix [location to install mp4grep]
. On Linux a good choice might be~/.local/bin
, which is often in your $PATH. -
Run
make install
. -
You will need to specify your Vosk-compatible transcription model and directory for cached transcriptions by setting MP4GREP_MODEL and MP4GREP_CACHE. You'll probably want to export them in your .bashrc or .zshrc as well:
export MP4GREP_MODEL=/full/path/of/model
,export MP4GREP_CACHE=/full/path/of/cache/dir
.
mp4grep-convert
The mp4grep executable only takes single-channel, 16000 Hz wav files as input. Running make install
also provides you with mp4grep-convert
, which is a Bash script that will take directories or audio files as its arguments, extract audio files from directories, and convert them to wav files using ffmpeg.
Dependencies
OCaml 4.12.0+domains+effects, parmap 1.2.4, and ffmpeg. The Makefile assumes that you have installed parmap using Opam, and looks under OPAM_INSTALL_PREFIX for it. You will have to modify the topmost ocamlc
command in the Makefile if you have installed it another way.
mp4grep v0.1.1
Fixed timestamp formatting issue. Added --clear-cache option. Added --transcribe and --transcribe-to-file options for printing transcriptions without search.
Download mp4grep-0.1.1.zip. Run unzip mp4grep-0.1.1.zip
. Then, cd mp4grep-0.1.1
and source install.sh
.
This and prior versions of mp4grep depend on Java 11+
mp4grep v0.1.0
Download mp4grep-0.1.0.zip. Run unzip mp4grep-0.1.0.zip
. Then, cd mp4grep-0.1.0
and source install.sh
.