Skip to content

Commit

Permalink
Omit audio, subtitle & data streams in VMAF calls to work around poss…
Browse files Browse the repository at this point in the history
…ible ffmpeg memory leaks (#255)
  • Loading branch information
alexheretic authored Dec 23, 2024
1 parent 4297032 commit 5e58946
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
* Support negative `--preset` args.
* Add `--vmaf-fps`: Frame rate override used to analyse both reference & distorted videos. Default 25.
* Omit data streams when outputting to matroska (.mkv or .webm).
* Omit audio, subtitle & data streams in VMAF calls to work around possible ffmpeg memory leaks.
* mpeg2video: map `--crf` to ffmpeg `-q` and set default crf range to 2-30.

# v0.8.0
Expand Down
5 changes: 5 additions & 0 deletions src/vmaf.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@ pub fn run(
.arg2_opt("-r", fps)
.arg2("-i", reference)
.arg2("-filter_complex", filter_complex)
// Workaround unused streams causing ffmpeg memory leaks
// See https://github.com/alexheretic/ab-av1/issues/189
.arg("-an")
.arg("-sn")
.arg("-dn")
.arg2("-f", "null")
.arg("-")
.stdin(Stdio::null());
Expand Down

0 comments on commit 5e58946

Please sign in to comment.