Skip to content

Commit

Permalink
fix: add read-subtitles softlink (#21)
Browse files Browse the repository at this point in the history
* fix: add read-subtitles softlink

* minor fixes in docs
  • Loading branch information
jveldboom authored Oct 10, 2023
1 parent 4e45797 commit 8ebd5ff
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ RUN cd /app && npm install --omit=dev

# add commands to global space
RUN ln -s /app/clean.js /usr/bin/clean \
&& ln -s /app/cut-video.js /usr/bin/cut-video
&& ln -s /app/cut-video.js /usr/bin/cut-video \
&& ln -s /app/read-subtitles.js /usr/bin/read-subtitles

WORKDIR /data
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ Allows you to manually create a list of timestamps to cut the video.

Usage:
```shell
docker run --rm -it -v $(pwd):/data video-swear-jar:v1 \
docker run --rm -it -v $(pwd):/data jveldboom/video-swear-jar:v1 \
cut-video --timestamp timestamps.txt --video video.mkv
```

Expand All @@ -61,7 +61,7 @@ Reads a subtitle file and prints out the lines with swear words. Useful if you w

Usage:
```shell
docker run --rm -it -v $(pwd):/data video-swear-jar:v1 \
docker run --rm -it -v $(pwd):/data jveldboom/video-swear-jar:v1 \
read-subtitles --subtitles path/to/subtitle.srt
```

Expand All @@ -72,7 +72,7 @@ This is the `whisper` CLI if you need to further customize the command. Visit ht

Usage:
```shell
docker run --rm -it -v $(pwd):/data video-swear-jar:v1 \
docker run --rm -it -v $(pwd):/data jveldboom/video-swear-jar:v1 \
whisper my-video.mp4 \
--model tiny.en \
--language en \
Expand All @@ -83,7 +83,7 @@ docker run --rm -it -v $(pwd):/data video-swear-jar:v1 \
### ffmpeg
Usage:
```shell
docker run --rm -it -v $(pwd):/data video-swear-jar:v1 \
docker run --rm -it -v $(pwd):/data jveldboom/video-swear-jar:v1 \
ffmpeg -i input.mp4 output.avi
```

Expand Down

0 comments on commit 8ebd5ff

Please sign in to comment.