-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
337 additions
and
117 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,3 +4,4 @@ _install/ | |
**.avi | ||
**.mp4 | ||
**.png | ||
**.jpg |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,4 @@ | |
*.mp4 | ||
_build/ | ||
_install/ | ||
*/CACHEDIR.TAG |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
FROM debian:stable AS builder | ||
FROM debian:12 AS builder | ||
LABEL org.opencontainers.image.authors="[email protected]" | ||
LABEL org.opencontainers.image.version="1.0.1" | ||
LABEL org.opencontainers.image.version="1.0.2" | ||
LABEL org.opencontainers.image.title="Fix horizontal shaking in digitized VHS videos" | ||
LABEL org.opencontainers.image.url="https://github.com/rsnitsch/vhs-deshaker" | ||
|
||
|
@@ -22,10 +22,10 @@ RUN cmake --install _build/ | |
# ----------------------------------- | ||
|
||
FROM debian:stable | ||
RUN apt-get update && apt-get -y upgrade && apt-get install -y libopencv-core4.5 \ | ||
libopencv-highgui4.5 \ | ||
libopencv-imgproc4.5 \ | ||
libopencv-videoio4.5 \ | ||
RUN apt-get update && apt-get -y upgrade && apt-get install -y libopencv-core406 \ | ||
libopencv-highgui406 \ | ||
libopencv-imgproc406 \ | ||
libopencv-videoio406 \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
COPY --from=builder /vhs-deshaker/_install/bin/vhs-deshaker /usr/bin/vhs-deshaker | ||
WORKDIR /videos | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# TODOs | ||
|
||
## Features | ||
|
||
- add `--col-range` commandline option | ||
- add `--framerate` commandline option (replacing the previously used *positional* framerate parameter) | ||
- add commandline parameter to set `TARGET_LINE_START`. This is the regular/ideal width of the pure black | ||
area at the left and right sides of the video frames. So it could get a new name like `PURE_BLACK_WIDTH` | ||
and get a corresponding commandline option `--pure-black-width`. | ||
- add `--min-segment-length` commandline option (parameter for `denoise_line_starts`) | ||
- `draw_line_starts` should use a better visualization for negative line_starts. Idea: For a row with negative line_start value, fill up the pixels from the *opposite* side with a bright (e.g. red) color that | ||
indicates the area where information is lost. Actually this idea should be expanded to all **extreme** line_start values. (big positive line_starts are also leading to data loss.) | ||
|
||
## Refactoring / Code cleanup | ||
|
||
- `line_ends` do not actually refer to end positions, instead they're just line_starts | ||
determined by scanning from the end (right side) of the rows. this distinction should be made clearer | ||
because I bet it will utterly confuse some people. | ||
- `draw_line_starts` adds to the confusion because you can pass `line_ends` with an `x_offset` to draw | ||
the edge at the right side of the image frame |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.