Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vmaf: Don't force input frame rate. #215

Merged
merged 3 commits into from
Jul 27, 2024

Conversation

WhitePeter
Copy link
Contributor

Remove the input option -r from ffmpeg command and rely on PTS of the respective containers. Add settb filter to establish common timebase for different containers.

Different timestamp syncing:
Use the absolute nearest timestamp for frame selection in libvmaf. Also stop at the end of the shortest stream, which sometimes helps with n_subsample>1 when, for some reason, ffmpeg fails with no score to parse. Both options can be overridden by --vmaf.

In case the VMAF score obtained using this new approach are lower than expected, adding --vmaf ts_sync_mode=default should be tried.

This is supposed to address some issues (#108, #141) which, this author believes, are due to (periodic) de-synchronization of frames in libvmaf caused by rounding errors in the timestamp calculation. It should also now be possible to compare videos with different frame rates with the help of --reference-vfilter=fps=<fps(distorted)>, which is an actual use case as @mr44er pointed out.

Remove the input option `-r` from ffmpeg command and rely on PTS of the
respective containers. Add `settb` filter to establish common timebase
for different containers.

Different timestamp syncing:
Use the absolute nearest timestamp for frame selection in libvmaf. Also
stop at the end of the shortest stream, which sometimes helps with
n_subsample>1 when, for some reason, ffmpeg fails with no score to
parse. Both options can be overridden by `--vmaf`.

In case the VMAF score obtained using this new approach are lower than
expected, adding `--vmaf ts_sync_mode=default` should be tried.
@alexheretic
Copy link
Owner

Thanks, looks good.

I'll do some before/after testing

@alexheretic
Copy link
Owner

test-vids all look good

Test results

test-vids/4kmedia-sony-new-york-fashion-demo.mp4

main

[2024-07-27T08:52:17Z INFO  ab_av1::command::sample_encode] encoding sample 1/1 crf 20
[2024-07-27T08:52:17Z DEBUG ab_av1::ffmpeg] cmd `ffmpeg -y -i /home/alex/tmp/.ab-av1-aZ1Jc9LCbgS7/4kmedia-sony-new-york-fashion-demo.sample45+1199f.mkv -c:v libsvtav1 -svtav1-params scd=0 -crf 20 -pix_fmt yuv420p10le -preset 12 -an /home/alex/tmp/.ab-av1-aZ1Jc9LCbgS7/4kmedia-sony-new-york-fashion-demo.sample45+1199f.av1.crf20.12.mp4`
[2024-07-27T08:52:33Z INFO  ab_av1::command::sample_encode] 47%, 35 fps, eta 18 seconds
[2024-07-27T08:52:47Z INFO  ab_av1::vmaf] vmaf 4kmedia-sony-new-york-fashion-demo.sample45+1199f.av1.crf20.12.mp4 vs reference 4kmedia-sony-new-york-fashion-demo.sample45+1199f.mkv
[2024-07-27T08:52:47Z DEBUG ab_av1::vmaf] cmd `ffmpeg -r 24 -i /home/alex/tmp/.ab-av1-aZ1Jc9LCbgS7/4kmedia-sony-new-york-fashion-demo.sample45+1199f.av1.crf20.12.mp4 -r 24 -i /home/alex/tmp/.ab-av1-aZ1Jc9LCbgS7/4kmedia-sony-new-york-fashion-demo.sample45+1199f.mkv -filter_complex [0:v]format=yuv420p10le,setpts=PTS-STARTPTS[dis];[1:v]format=yuv420p10le,setpts=PTS-STARTPTS[ref];[dis][ref]libvmaf=n_threads=16:model=version=vmaf_4k_v0.6.1 -f null -`
[2024-07-27T08:53:03Z INFO  ab_av1::vmaf] 64%, 19 fps, eta 9 seconds
[2024-07-27T08:53:19Z INFO  ab_av1::vmaf] 130%, 19 fps, eta 0 seconds
[2024-07-27T08:53:48Z INFO  ab_av1::command::sample_encode] crf 20 VMAF 97.94 predicted video stream size 522.05 MiB (56%) taking 3 minutes
VMAF 97.94 predicted video stream size 522.05 MiB (56%) taking 3 minutes

215

[2024-07-27T08:53:48Z INFO  ab_av1::command::sample_encode] encoding sample 1/1 crf 20
[2024-07-27T08:53:48Z DEBUG ab_av1::ffmpeg] cmd `ffmpeg -y -i /home/alex/tmp/.ab-av1-bXnvAor8t8r4/4kmedia-sony-new-york-fashion-demo.sample45+1199f.mkv -c:v libsvtav1 -svtav1-params scd=0 -crf 20 -pix_fmt yuv420p10le -preset 12 -an /home/alex/tmp/.ab-av1-bXnvAor8t8r4/4kmedia-sony-new-york-fashion-demo.sample45+1199f.av1.crf20.12.mp4`
[2024-07-27T08:54:04Z INFO  ab_av1::command::sample_encode] 46%, 35 fps, eta 19 seconds
[2024-07-27T08:54:19Z INFO  ab_av1::vmaf] vmaf 4kmedia-sony-new-york-fashion-demo.sample45+1199f.av1.crf20.12.mp4 vs reference 4kmedia-sony-new-york-fashion-demo.sample45+1199f.mkv
[2024-07-27T08:54:19Z DEBUG ab_av1::vmaf] cmd `ffmpeg -i /home/alex/tmp/.ab-av1-bXnvAor8t8r4/4kmedia-sony-new-york-fashion-demo.sample45+1199f.av1.crf20.12.mp4 -i /home/alex/tmp/.ab-av1-bXnvAor8t8r4/4kmedia-sony-new-york-fashion-demo.sample45+1199f.mkv -filter_complex [0:v]format=yuv420p10le,setpts=PTS-STARTPTS,settb=AVTB[dis];[1:v]format=yuv420p10le,setpts=PTS-STARTPTS,settb=AVTB[ref];[dis][ref]libvmaf=shortest=true:ts_sync_mode=nearest:n_threads=16:model=version=vmaf_4k_v0.6.1 -f null -`
[2024-07-27T08:54:35Z INFO  ab_av1::vmaf] 26%, 19 fps, eta 47 seconds
[2024-07-27T08:54:51Z INFO  ab_av1::vmaf] 52%, 19 fps, eta 30 seconds
[2024-07-27T08:55:20Z INFO  ab_av1::command::sample_encode] crf 20 VMAF 97.94 predicted video stream size 522.05 MiB (56%) taking 3 minutes
VMAF 97.94 predicted video stream size 522.05 MiB (56%) taking 3 minutes

test-vids/4kmedia-spacex-launch-demo.mp4

main

[2024-07-27T08:55:21Z INFO  ab_av1::command::sample_encode] encoding sample 1/1 crf 20
[2024-07-27T08:55:21Z DEBUG ab_av1::ffmpeg] cmd `ffmpeg -y -i /home/alex/tmp/.ab-av1-hAZnpbKi5mWu/4kmedia-spacex-launch-demo.sample53+600f.mkv -c:v libsvtav1 -svtav1-params scd=0 -crf 20 -pix_fmt yuv420p10le -preset 12 -an /home/alex/tmp/.ab-av1-hAZnpbKi5mWu/4kmedia-spacex-launch-demo.sample53+600f.av1.crf20.12.mp4`
[2024-07-27T08:55:34Z INFO  ab_av1::vmaf] vmaf 4kmedia-spacex-launch-demo.sample53+600f.av1.crf20.12.mp4 vs reference 4kmedia-spacex-launch-demo.sample53+600f.mkv
[2024-07-27T08:55:34Z DEBUG ab_av1::vmaf] cmd `ffmpeg -r 24 -i /home/alex/tmp/.ab-av1-hAZnpbKi5mWu/4kmedia-spacex-launch-demo.sample53+600f.av1.crf20.12.mp4 -r 24 -i /home/alex/tmp/.ab-av1-hAZnpbKi5mWu/4kmedia-spacex-launch-demo.sample53+600f.mkv -filter_complex [0:v]format=yuv420p10le,setpts=PTS-STARTPTS[dis];[1:v]format=yuv420p10le,setpts=PTS-STARTPTS[ref];[dis][ref]libvmaf=n_threads=16:model=version=vmaf_4k_v0.6.1 -f null -`
[2024-07-27T08:55:50Z INFO  ab_av1::vmaf] 70%, 21 fps, eta 7 seconds
[2024-07-27T08:56:02Z INFO  ab_av1::command::sample_encode] crf 20 VMAF 98.07 predicted video stream size 46.15 MiB (26%) taking 83 seconds
VMAF 98.07 predicted video stream size 46.15 MiB (26%) taking 83 seconds

215

[2024-07-27T08:56:02Z INFO  ab_av1::command::sample_encode] encoding sample 1/1 crf 20
[2024-07-27T08:56:02Z DEBUG ab_av1::ffmpeg] cmd `ffmpeg -y -i /home/alex/tmp/.ab-av1-f3RrAkkSxWs0/4kmedia-spacex-launch-demo.sample53+600f.mkv -c:v libsvtav1 -svtav1-params scd=0 -crf 20 -pix_fmt yuv420p10le -preset 12 -an /home/alex/tmp/.ab-av1-f3RrAkkSxWs0/4kmedia-spacex-launch-demo.sample53+600f.av1.crf20.12.mp4`
[2024-07-27T08:56:16Z INFO  ab_av1::vmaf] vmaf 4kmedia-spacex-launch-demo.sample53+600f.av1.crf20.12.mp4 vs reference 4kmedia-spacex-launch-demo.sample53+600f.mkv
[2024-07-27T08:56:16Z DEBUG ab_av1::vmaf] cmd `ffmpeg -i /home/alex/tmp/.ab-av1-f3RrAkkSxWs0/4kmedia-spacex-launch-demo.sample53+600f.av1.crf20.12.mp4 -i /home/alex/tmp/.ab-av1-f3RrAkkSxWs0/4kmedia-spacex-launch-demo.sample53+600f.mkv -filter_complex [0:v]format=yuv420p10le,setpts=PTS-STARTPTS,settb=AVTB[dis];[1:v]format=yuv420p10le,setpts=PTS-STARTPTS,settb=AVTB[ref];[dis][ref]libvmaf=shortest=true:ts_sync_mode=nearest:n_threads=16:model=version=vmaf_4k_v0.6.1 -f null -`
[2024-07-27T08:56:32Z INFO  ab_av1::vmaf] 56%, 21 fps, eta 13 seconds
[2024-07-27T08:56:44Z INFO  ab_av1::command::sample_encode] crf 20 VMAF 98.07 predicted video stream size 46.15 MiB (26%) taking 84 seconds
VMAF 98.07 predicted video stream size 46.15 MiB (26%) taking 84 seconds

test-vids/pixabay-bridge-23544.mp4

main

[2024-07-27T08:56:45Z INFO  ab_av1::command::sample_encode] encoding sample 1/1 crf 20
[2024-07-27T08:56:45Z DEBUG ab_av1::ffmpeg] cmd `ffmpeg -y -i /home/alex/tmp/.ab-av1-OZZ7sG2gpkEH/pixabay-bridge-23544.sample5+600f.mkv -c:v libsvtav1 -svtav1-params scd=0 -crf 20 -pix_fmt yuv420p10le -preset 12 -an /home/alex/tmp/.ab-av1-OZZ7sG2gpkEH/pixabay-bridge-23544.sample5+600f.av1.crf20.12.mp4`
[2024-07-27T08:57:01Z INFO  ab_av1::command::sample_encode] 91%, 34 fps, eta 2 seconds
[2024-07-27T08:57:02Z INFO  ab_av1::vmaf] vmaf pixabay-bridge-23544.sample5+600f.av1.crf20.12.mp4 vs reference pixabay-bridge-23544.sample5+600f.mkv
[2024-07-27T08:57:02Z DEBUG ab_av1::vmaf] cmd `ffmpeg -r 24 -i /home/alex/tmp/.ab-av1-OZZ7sG2gpkEH/pixabay-bridge-23544.sample5+600f.av1.crf20.12.mp4 -r 24 -i /home/alex/tmp/.ab-av1-OZZ7sG2gpkEH/pixabay-bridge-23544.sample5+600f.mkv -filter_complex [0:v]format=yuv420p10le,setpts=PTS-STARTPTS[dis];[1:v]format=yuv420p10le,setpts=PTS-STARTPTS[ref];[dis][ref]libvmaf=n_threads=16:model=version=vmaf_4k_v0.6.1 -f null -`
[2024-07-27T08:57:18Z INFO  ab_av1::vmaf] 64%, 19 fps, eta 9 seconds
[2024-07-27T08:57:33Z INFO  ab_av1::command::sample_encode] crf 20 VMAF 98.46 predicted video stream size 90.11 MiB (91%) taking 27 seconds
VMAF 98.46 predicted video stream size 90.11 MiB (91%) taking 27 seconds

215

[2024-07-27T08:57:33Z INFO  ab_av1::command::sample_encode] encoding sample 1/1 crf 20
[2024-07-27T08:57:33Z DEBUG ab_av1::ffmpeg] cmd `ffmpeg -y -i /home/alex/tmp/.ab-av1-HZjY5uubX6Bi/pixabay-bridge-23544.sample5+600f.mkv -c:v libsvtav1 -svtav1-params scd=0 -crf 20 -pix_fmt yuv420p10le -preset 12 -an /home/alex/tmp/.ab-av1-HZjY5uubX6Bi/pixabay-bridge-23544.sample5+600f.av1.crf20.12.mp4`
[2024-07-27T08:57:49Z INFO  ab_av1::command::sample_encode] 88%, 33 fps, eta 2 seconds
[2024-07-27T08:57:50Z INFO  ab_av1::vmaf] vmaf pixabay-bridge-23544.sample5+600f.av1.crf20.12.mp4 vs reference pixabay-bridge-23544.sample5+600f.mkv
[2024-07-27T08:57:50Z DEBUG ab_av1::vmaf] cmd `ffmpeg -i /home/alex/tmp/.ab-av1-HZjY5uubX6Bi/pixabay-bridge-23544.sample5+600f.av1.crf20.12.mp4 -i /home/alex/tmp/.ab-av1-HZjY5uubX6Bi/pixabay-bridge-23544.sample5+600f.mkv -filter_complex [0:v]format=yuv420p10le,setpts=PTS-STARTPTS,settb=AVTB[dis];[1:v]format=yuv420p10le,setpts=PTS-STARTPTS,settb=AVTB[ref];[dis][ref]libvmaf=shortest=true:ts_sync_mode=nearest:n_threads=16:model=version=vmaf_4k_v0.6.1 -f null -`
[2024-07-27T08:58:07Z INFO  ab_av1::vmaf] 52%, 19 fps, eta 15 seconds
[2024-07-27T08:58:21Z INFO  ab_av1::command::sample_encode] crf 20 VMAF 98.46 predicted video stream size 90.11 MiB (91%) taking 27 seconds
VMAF 98.46 predicted video stream size 90.11 MiB (91%) taking 27 seconds

test-vids/pixabay-elevator-3735.mp4

main

[2024-07-27T08:58:21Z INFO  ab_av1::command::sample_encode] encoding sample 1/1 crf 20
[2024-07-27T08:58:21Z DEBUG ab_av1::ffmpeg] cmd `ffmpeg -y -i /home/alex/tmp/.ab-av1-owrmdNruLqlk/pixabay-elevator-3735.sample12+500f.mkv -c:v libsvtav1 -svtav1-params scd=0 -crf 20 -pix_fmt yuv420p10le -preset 12 -an /home/alex/tmp/.ab-av1-owrmdNruLqlk/pixabay-elevator-3735.sample12+500f.av1.crf20.12.mp4`
[2024-07-27T08:58:25Z INFO  ab_av1::vmaf] vmaf pixabay-elevator-3735.sample12+500f.av1.crf20.12.mp4 vs reference pixabay-elevator-3735.sample12+500f.mkv
[2024-07-27T08:58:25Z DEBUG ab_av1::vmaf] cmd `ffmpeg -r 24 -i /home/alex/tmp/.ab-av1-owrmdNruLqlk/pixabay-elevator-3735.sample12+500f.av1.crf20.12.mp4 -r 24 -i /home/alex/tmp/.ab-av1-owrmdNruLqlk/pixabay-elevator-3735.sample12+500f.mkv -filter_complex [0:v]format=yuv420p10le,setpts=PTS-STARTPTS[dis];[1:v]format=yuv420p10le,setpts=PTS-STARTPTS[ref];[dis][ref]libvmaf=n_threads=16 -f null -`
[2024-07-27T08:58:31Z INFO  ab_av1::command::sample_encode] crf 20 VMAF 97.49 predicted video stream size 27.77 MiB (138%) taking 8 seconds
VMAF 97.49 predicted video stream size 27.77 MiB (138%) taking 8 seconds

215

[2024-07-27T08:58:32Z INFO  ab_av1::command::sample_encode] encoding sample 1/1 crf 20
[2024-07-27T08:58:32Z DEBUG ab_av1::ffmpeg] cmd `ffmpeg -y -i /home/alex/tmp/.ab-av1-gDhJWzunslw5/pixabay-elevator-3735.sample12+500f.mkv -c:v libsvtav1 -svtav1-params scd=0 -crf 20 -pix_fmt yuv420p10le -preset 12 -an /home/alex/tmp/.ab-av1-gDhJWzunslw5/pixabay-elevator-3735.sample12+500f.av1.crf20.12.mp4`
[2024-07-27T08:58:35Z INFO  ab_av1::vmaf] vmaf pixabay-elevator-3735.sample12+500f.av1.crf20.12.mp4 vs reference pixabay-elevator-3735.sample12+500f.mkv
[2024-07-27T08:58:35Z DEBUG ab_av1::vmaf] cmd `ffmpeg -i /home/alex/tmp/.ab-av1-gDhJWzunslw5/pixabay-elevator-3735.sample12+500f.av1.crf20.12.mp4 -i /home/alex/tmp/.ab-av1-gDhJWzunslw5/pixabay-elevator-3735.sample12+500f.mkv -filter_complex [0:v]format=yuv420p10le,setpts=PTS-STARTPTS,settb=AVTB[dis];[1:v]format=yuv420p10le,setpts=PTS-STARTPTS,settb=AVTB[ref];[dis][ref]libvmaf=shortest=true:ts_sync_mode=nearest:n_threads=16 -f null -`
[2024-07-27T08:58:42Z INFO  ab_av1::command::sample_encode] crf 20 VMAF 97.49 predicted video stream size 27.77 MiB (138%) taking 8 seconds
VMAF 97.49 predicted video stream size 27.77 MiB (138%) taking 8 seconds

test-vids/pixabay-lemon-82602.mp4

main

[2024-07-27T08:58:42Z INFO  ab_av1::command::sample_encode] encoding sample 1/1 crf 20
[2024-07-27T08:58:42Z DEBUG ab_av1::ffmpeg] cmd `ffmpeg -y -i /home/alex/tmp/.ab-av1-pamwLNa85eMm/pixabay-lemon-82602.sample16+500f.mkv -c:v libsvtav1 -svtav1-params scd=0 -crf 20 -pix_fmt yuv420p10le -preset 12 -an /home/alex/tmp/.ab-av1-pamwLNa85eMm/pixabay-lemon-82602.sample16+500f.av1.crf20.12.mp4`
[2024-07-27T08:58:55Z INFO  ab_av1::vmaf] vmaf pixabay-lemon-82602.sample16+500f.av1.crf20.12.mp4 vs reference pixabay-lemon-82602.sample16+500f.mkv
[2024-07-27T08:58:55Z DEBUG ab_av1::vmaf] cmd `ffmpeg -r 24 -i /home/alex/tmp/.ab-av1-pamwLNa85eMm/pixabay-lemon-82602.sample16+500f.av1.crf20.12.mp4 -r 24 -i /home/alex/tmp/.ab-av1-pamwLNa85eMm/pixabay-lemon-82602.sample16+500f.mkv -filter_complex [0:v]format=yuv420p10le,setpts=PTS-STARTPTS[dis];[1:v]format=yuv420p10le,setpts=PTS-STARTPTS[ref];[dis][ref]libvmaf=n_threads=16:model=version=vmaf_4k_v0.6.1 -f null -`
[2024-07-27T08:59:11Z INFO  ab_av1::vmaf] 66%, 20 fps, eta 8 seconds
[2024-07-27T08:59:21Z INFO  ab_av1::command::sample_encode] crf 20 VMAF 96.28 predicted video stream size 43.60 MiB (48%) taking 36 seconds
VMAF 96.28 predicted video stream size 43.60 MiB (48%) taking 36 seconds

215

[2024-07-27T08:59:21Z INFO  ab_av1::command::sample_encode] encoding sample 1/1 crf 20
[2024-07-27T08:59:21Z DEBUG ab_av1::ffmpeg] cmd `ffmpeg -y -i /home/alex/tmp/.ab-av1-P0OZ7DLxtBSr/pixabay-lemon-82602.sample16+500f.mkv -c:v libsvtav1 -svtav1-params scd=0 -crf 20 -pix_fmt yuv420p10le -preset 12 -an /home/alex/tmp/.ab-av1-P0OZ7DLxtBSr/pixabay-lemon-82602.sample16+500f.av1.crf20.12.mp4`
[2024-07-27T08:59:35Z INFO  ab_av1::vmaf] vmaf pixabay-lemon-82602.sample16+500f.av1.crf20.12.mp4 vs reference pixabay-lemon-82602.sample16+500f.mkv
[2024-07-27T08:59:35Z DEBUG ab_av1::vmaf] cmd `ffmpeg -i /home/alex/tmp/.ab-av1-P0OZ7DLxtBSr/pixabay-lemon-82602.sample16+500f.av1.crf20.12.mp4 -i /home/alex/tmp/.ab-av1-P0OZ7DLxtBSr/pixabay-lemon-82602.sample16+500f.mkv -filter_complex [0:v]format=yuv420p10le,setpts=PTS-STARTPTS,settb=AVTB[dis];[1:v]format=yuv420p10le,setpts=PTS-STARTPTS,settb=AVTB[ref];[dis][ref]libvmaf=shortest=true:ts_sync_mode=nearest:n_threads=16:model=version=vmaf_4k_v0.6.1 -f null -`
[2024-07-27T08:59:51Z INFO  ab_av1::vmaf] 63%, 20 fps, eta 9 seconds
[2024-07-27T09:00:00Z INFO  ab_av1::command::sample_encode] crf 20 VMAF 96.28 predicted video stream size 43.60 MiB (48%) taking 37 seconds
VMAF 96.28 predicted video stream size 43.60 MiB (48%) taking 37 seconds

test-vids/pixabay-nature-31377.mp4

main

[2024-07-27T09:00:01Z INFO  ab_av1::command::sample_encode] encoding sample 1/1 crf 20
[2024-07-27T09:00:01Z DEBUG ab_av1::ffmpeg] cmd `ffmpeg -y -i /home/alex/tmp/.ab-av1-ReJALxcmm5d6/pixabay-nature-31377.sample4+480f.mkv -c:v libsvtav1 -svtav1-params scd=0 -crf 20 -pix_fmt yuv420p10le -preset 12 -an /home/alex/tmp/.ab-av1-ReJALxcmm5d6/pixabay-nature-31377.sample4+480f.av1.crf20.12.mp4`
[2024-07-27T09:00:17Z INFO  ab_av1::command::sample_encode] 60%, 18 fps, eta 11 seconds
[2024-07-27T09:00:24Z INFO  ab_av1::vmaf] vmaf pixabay-nature-31377.sample4+480f.av1.crf20.12.mp4 vs reference pixabay-nature-31377.sample4+480f.mkv
[2024-07-27T09:00:24Z DEBUG ab_av1::vmaf] cmd `ffmpeg -r 24 -i /home/alex/tmp/.ab-av1-ReJALxcmm5d6/pixabay-nature-31377.sample4+480f.av1.crf20.12.mp4 -r 24 -i /home/alex/tmp/.ab-av1-ReJALxcmm5d6/pixabay-nature-31377.sample4+480f.mkv -filter_complex [0:v]format=yuv420p10le,setpts=PTS-STARTPTS[dis];[1:v]format=yuv420p10le,setpts=PTS-STARTPTS[ref];[dis][ref]libvmaf=n_threads=16:model=version=vmaf_4k_v0.6.1 -f null -`
[2024-07-27T09:00:40Z INFO  ab_av1::vmaf] 57%, 17 fps, eta 12 seconds
[2024-07-27T09:00:53Z INFO  ab_av1::command::sample_encode] crf 20 VMAF 99.95 predicted video stream size 546.73 MiB (540%) taking 34 seconds
VMAF 99.95 predicted video stream size 546.73 MiB (540%) taking 34 seconds

215

[2024-07-27T09:00:53Z INFO  ab_av1::command::sample_encode] encoding sample 1/1 crf 20
[2024-07-27T09:00:53Z DEBUG ab_av1::ffmpeg] cmd `ffmpeg -y -i /home/alex/tmp/.ab-av1-eSJCpu7esC3M/pixabay-nature-31377.sample4+480f.mkv -c:v libsvtav1 -svtav1-params scd=0 -crf 20 -pix_fmt yuv420p10le -preset 12 -an /home/alex/tmp/.ab-av1-eSJCpu7esC3M/pixabay-nature-31377.sample4+480f.av1.crf20.12.mp4`
[2024-07-27T09:01:09Z INFO  ab_av1::command::sample_encode] 59%, 18 fps, eta 11 seconds
[2024-07-27T09:01:17Z INFO  ab_av1::vmaf] vmaf pixabay-nature-31377.sample4+480f.av1.crf20.12.mp4 vs reference pixabay-nature-31377.sample4+480f.mkv
[2024-07-27T09:01:17Z DEBUG ab_av1::vmaf] cmd `ffmpeg -i /home/alex/tmp/.ab-av1-eSJCpu7esC3M/pixabay-nature-31377.sample4+480f.av1.crf20.12.mp4 -i /home/alex/tmp/.ab-av1-eSJCpu7esC3M/pixabay-nature-31377.sample4+480f.mkv -filter_complex [0:v]format=yuv420p10le,setpts=PTS-STARTPTS,settb=AVTB[dis];[1:v]format=yuv420p10le,setpts=PTS-STARTPTS,settb=AVTB[ref];[dis][ref]libvmaf=shortest=true:ts_sync_mode=nearest:n_threads=16:model=version=vmaf_4k_v0.6.1 -f null -`
[2024-07-27T09:01:33Z INFO  ab_av1::vmaf] 59%, 18 fps, eta 11 seconds
[2024-07-27T09:01:44Z INFO  ab_av1::command::sample_encode] crf 20 VMAF 99.95 predicted video stream size 546.73 MiB (540%) taking 34 seconds
VMAF 99.95 predicted video stream size 546.73 MiB (540%) taking 34 seconds

test-vids/pixabay-sunrise-83880.mp4

main

[2024-07-27T09:01:44Z INFO  ab_av1::command::sample_encode] encoding sample 1/1 crf 20
[2024-07-27T09:01:44Z DEBUG ab_av1::ffmpeg] cmd `ffmpeg -y -i /home/alex/tmp/.ab-av1-ggoR32inpL95/pixabay-sunrise-83880.sample6+2398f.mkv -c:v libsvtav1 -svtav1-params scd=0 -crf 20 -pix_fmt yuv420p10le -preset 12 -an /home/alex/tmp/.ab-av1-ggoR32inpL95/pixabay-sunrise-83880.sample6+2398f.av1.crf20.12.mp4`
[2024-07-27T09:01:54Z INFO  ab_av1::vmaf] vmaf pixabay-sunrise-83880.sample6+2398f.av1.crf20.12.mp4 vs reference pixabay-sunrise-83880.sample6+2398f.mkv
[2024-07-27T09:01:54Z DEBUG ab_av1::vmaf] cmd `ffmpeg -r 24 -i /home/alex/tmp/.ab-av1-ggoR32inpL95/pixabay-sunrise-83880.sample6+2398f.av1.crf20.12.mp4 -r 24 -i /home/alex/tmp/.ab-av1-ggoR32inpL95/pixabay-sunrise-83880.sample6+2398f.mkv -filter_complex [0:v]format=yuv420p10le,setpts=PTS-STARTPTS[dis];[1:v]format=yuv420p10le,setpts=PTS-STARTPTS[ref];[dis][ref]libvmaf=n_threads=16 -f null -`
[2024-07-27T09:02:10Z INFO  ab_av1::vmaf] 274%, 82 fps, eta 0 seconds
[2024-07-27T09:02:24Z INFO  ab_av1::command::sample_encode] crf 20 VMAF 96.38 predicted video stream size 8.63 MiB (94%) taking 17 seconds
VMAF 96.38 predicted video stream size 8.63 MiB (94%) taking 17 seconds

215

[2024-07-27T09:02:24Z INFO  ab_av1::command::sample_encode] encoding sample 1/1 crf 20
[2024-07-27T09:02:24Z DEBUG ab_av1::ffmpeg] cmd `ffmpeg -y -i /home/alex/tmp/.ab-av1-n76oN7jjOWHu/pixabay-sunrise-83880.sample6+2398f.mkv -c:v libsvtav1 -svtav1-params scd=0 -crf 20 -pix_fmt yuv420p10le -preset 12 -an /home/alex/tmp/.ab-av1-n76oN7jjOWHu/pixabay-sunrise-83880.sample6+2398f.av1.crf20.12.mp4`
[2024-07-27T09:02:34Z INFO  ab_av1::vmaf] vmaf pixabay-sunrise-83880.sample6+2398f.av1.crf20.12.mp4 vs reference pixabay-sunrise-83880.sample6+2398f.mkv
[2024-07-27T09:02:34Z DEBUG ab_av1::vmaf] cmd `ffmpeg -i /home/alex/tmp/.ab-av1-n76oN7jjOWHu/pixabay-sunrise-83880.sample6+2398f.av1.crf20.12.mp4 -i /home/alex/tmp/.ab-av1-n76oN7jjOWHu/pixabay-sunrise-83880.sample6+2398f.mkv -filter_complex [0:v]format=yuv420p10le,setpts=PTS-STARTPTS,settb=AVTB[dis];[1:v]format=yuv420p10le,setpts=PTS-STARTPTS,settb=AVTB[ref];[dis][ref]libvmaf=shortest=true:ts_sync_mode=nearest:n_threads=16 -f null -`
[2024-07-27T09:02:50Z INFO  ab_av1::vmaf] 55%, 82 fps, eta 13 seconds
[2024-07-27T09:03:03Z INFO  ab_av1::command::sample_encode] crf 20 VMAF 96.38 predicted video stream size 8.63 MiB (94%) taking 17 seconds
VMAF 96.38 predicted video stream size 8.63 MiB (94%) taking 17 seconds

test-vids/pixabay-turntable-8453.mp4

main

[2024-07-27T09:03:03Z INFO  ab_av1::command::sample_encode] encoding sample 1/1 crf 20
[2024-07-27T09:03:03Z DEBUG ab_av1::ffmpeg] cmd `ffmpeg -y -i /home/alex/tmp/.ab-av1-Q7CDus6ksvec/pixabay-turntable-8453.sample14+500f.mkv -c:v libsvtav1 -svtav1-params scd=0 -crf 20 -pix_fmt yuv420p10le -preset 12 -an /home/alex/tmp/.ab-av1-Q7CDus6ksvec/pixabay-turntable-8453.sample14+500f.av1.crf20.12.mp4`
[2024-07-27T09:03:07Z INFO  ab_av1::vmaf] vmaf pixabay-turntable-8453.sample14+500f.av1.crf20.12.mp4 vs reference pixabay-turntable-8453.sample14+500f.mkv
[2024-07-27T09:03:07Z DEBUG ab_av1::vmaf] cmd `ffmpeg -r 24 -i /home/alex/tmp/.ab-av1-Q7CDus6ksvec/pixabay-turntable-8453.sample14+500f.av1.crf20.12.mp4 -r 24 -i /home/alex/tmp/.ab-av1-Q7CDus6ksvec/pixabay-turntable-8453.sample14+500f.mkv -filter_complex [0:v]format=yuv420p10le,setpts=PTS-STARTPTS[dis];[1:v]format=yuv420p10le,setpts=PTS-STARTPTS[ref];[dis][ref]libvmaf=n_threads=16 -f null -`
[2024-07-27T09:03:13Z INFO  ab_av1::command::sample_encode] crf 20 VMAF 93.81 predicted video stream size 3.77 MiB (24%) taking 7 seconds
VMAF 93.81 predicted video stream size 3.77 MiB (24%) taking 7 seconds

215

[2024-07-27T09:03:13Z INFO  ab_av1::command::sample_encode] encoding sample 1/1 crf 20
[2024-07-27T09:03:13Z DEBUG ab_av1::ffmpeg] cmd `ffmpeg -y -i /home/alex/tmp/.ab-av1-769DJazwrFRK/pixabay-turntable-8453.sample14+500f.mkv -c:v libsvtav1 -svtav1-params scd=0 -crf 20 -pix_fmt yuv420p10le -preset 12 -an /home/alex/tmp/.ab-av1-769DJazwrFRK/pixabay-turntable-8453.sample14+500f.av1.crf20.12.mp4`
[2024-07-27T09:03:16Z INFO  ab_av1::vmaf] vmaf pixabay-turntable-8453.sample14+500f.av1.crf20.12.mp4 vs reference pixabay-turntable-8453.sample14+500f.mkv
[2024-07-27T09:03:16Z DEBUG ab_av1::vmaf] cmd `ffmpeg -i /home/alex/tmp/.ab-av1-769DJazwrFRK/pixabay-turntable-8453.sample14+500f.av1.crf20.12.mp4 -i /home/alex/tmp/.ab-av1-769DJazwrFRK/pixabay-turntable-8453.sample14+500f.mkv -filter_complex [0:v]format=yuv420p10le,setpts=PTS-STARTPTS,settb=AVTB[dis];[1:v]format=yuv420p10le,setpts=PTS-STARTPTS,settb=AVTB[ref];[dis][ref]libvmaf=shortest=true:ts_sync_mode=nearest:n_threads=16 -f null -`
[2024-07-27T09:03:22Z INFO  ab_av1::command::sample_encode] crf 20 VMAF 93.81 predicted video stream size 3.77 MiB (24%) taking 7 seconds
VMAF 93.81 predicted video stream size 3.77 MiB (24%) taking 7 seconds

src/vmaf.rs Outdated Show resolved Hide resolved
src/vmaf.rs Outdated Show resolved Hide resolved
remove commented out lines
@alexheretic alexheretic merged commit a7b1f03 into alexheretic:main Jul 27, 2024
2 checks passed
@alexheretic
Copy link
Owner

Note: This has essentially been reverted by #254 since there were reported regressions without it. However, you will be able to toggle the behaviour off if desired.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants