Videogrep.sh

Audio editors, music players, video players, burning software, etc.
Post Reply
Message
Author
User avatar
sc0ttman
Posts: 2812
Joined: Wed 16 Sep 2009, 05:44
Location: UK

Videogrep.sh

#1 Post by sc0ttman »

https://github.com/sc0ttj/videogrep.sh

Search videos for matching words or phrases, and generate a cut-down version in the
~/videogrep_output/ directory, containing only the matching dialogue.

For example, keep only the bits of a video where people say "banana".

---

Dependencies

bash - it's a bash script
egrep - for finding matches in the subtitles
ffprobe for getting video information like dimensions, aspect ratio (in FFMPEG package)
bc - for calculating accurate video frame rates
mencoder - for creating the generated video
mplayer - for playing the generated video

---

Usage:

Code: Select all

videogrep.sh <video-file> <search-term> [padding-start] [padding-end]
---

Video requirements

Put the videos you want to search, and their subtitle files, in a directory together.
The source videos must have accompanying subtitles files, in either .srt or .sub format!
The subtitle file names must also match the videos to which they refer.

Here's a valid example (videogrep will find the subtitles OK):

Code: Select all

./some_vids/my-cool-video-1080p.mp4
./some_vids/my-cool-video-1080p.srt
NOTE: Many YouTube videos have subtitles. You can download YouTube videos and their subtitles using various websites.
[b][url=https://bit.ly/2KjtxoD]Pkg[/url], [url=https://bit.ly/2U6dzxV]mdsh[/url], [url=https://bit.ly/2G49OE8]Woofy[/url], [url=http://goo.gl/bzBU1]Akita[/url], [url=http://goo.gl/SO5ug]VLC-GTK[/url], [url=https://tiny.cc/c2hnfz]Search[/url][/b]

Post Reply