SVT-HEVC icon indicating copy to clipboard operation
SVT-HEVC copied to clipboard

Issue while compile on windows

Open luca2125 opened this issue 3 years ago • 21 comments

Hi,

I have followed the instruction here:

https://github.com/OpenVisualCloud/SVT-HEVC/tree/master/ffmpeg_plugin

and i have paste the script (for both) and here the result:

$ git clone https://github.com/FFmpeg/FFmpeg ffmpeg
# The patch n4.4-0001-lavc-svt_hevc-add-libsvt-hevc-encoder-wrapper.patch has been validated on n4.2/n4.3/n4.4 release tag
git checkout n4.2
or
git checkout n4.3
or
git checkout n4.4

git am ../SVT-HEVC/ffmpeg_plugin/n4.4-0001-lavc-svt_hevc-add-libsvt-hevc-encoder-wrapper.patch

# If the above patch failed when you work on master branch or newer version of FFmpeg,
# please try the patch for master branch: master-0001-lavc-svt_hevc-add-libsvt-hevc-encoder-wrapper.patch
git am ../SVT-HEVC/ffmpeg_plugin/master-0001-lavc-svt_hevc-add-libsvt-hevc-encoder-wrapper.patch

./configure --enable-libsvthevc
make -j $(nproc)Cloning into 'ffmpeg'...
remote: Enumerating objects: 628771, done.
remote: Counting objects: 100% (368/368), done.
remote: Compressing objects: 100% (147/147), done.
remote: Total 628771 (delta 243), reused 316 (delta 221), pack-reused 628403
Receiving objects: 100% (628771/628771), 260.09 MiB | 13.87 MiB/s, done.
Resolving deltas: 100% (493738/493738), done.
Updating files: 100% (7462/7462), done.

MarcoPanza@DESKTOP-AFA7QK7 MINGW64 /c/a
$ cd ffmpeg

MarcoPanza@DESKTOP-AFA7QK7 MINGW64 /c/a/ffmpeg (master)
$

MarcoPanza@DESKTOP-AFA7QK7 MINGW64 /c/a/ffmpeg (master)
been validated on n4.2/n4.3/n4.4 release tagbsvt-hevc-encoder-wrapper.patch has b

MarcoPanza@DESKTOP-AFA7QK7 MINGW64 /c/a/ffmpeg (master)
$ git checkout n4.2
Updating files: 100% (3303/3303), done.
Note: switching to 'n4.2'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by switching back to a branch.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -c with the switch command. Example:

  git switch -c <new-branch-name>

Or undo this operation with:

  git switch -

Turn off this advice by setting config variable advice.detachedHead to false

HEAD is now at 75384bc464 configure: cuda_llvm: fix include path for MSYS2

MarcoPanza@DESKTOP-AFA7QK7 MINGW64 /c/a/ffmpeg ((n4.2))
$ or
bash: or: command not found

MarcoPanza@DESKTOP-AFA7QK7 MINGW64 /c/a/ffmpeg ((n4.2))
$ git checkout n4.3
Previous HEAD position was 75384bc464 configure: cuda_llvm: fix include path for MSYS2
HEAD is now at 8e12af29d1 avcodec/tiff: Check stride for dng

MarcoPanza@DESKTOP-AFA7QK7 MINGW64 /c/a/ffmpeg ((n4.3))
$ or
bash: or: command not found

MarcoPanza@DESKTOP-AFA7QK7 MINGW64 /c/a/ffmpeg ((n4.3))
$ git checkout n4.4
Updating files: 100% (2026/2026), done.
Previous HEAD position was 8e12af29d1 avcodec/tiff: Check stride for dng
HEAD is now at dc91b913b6 RELEASE_NOTES: Based on the version from 4.3

MarcoPanza@DESKTOP-AFA7QK7 MINGW64 /c/a/ffmpeg ((n4.4))
$

MarcoPanza@DESKTOP-AFA7QK7 MINGW64 /c/a/ffmpeg ((n4.4))
er-wrapper.patchHEVC/ffmpeg_plugin/n4.4-0001-lavc-svt_hevc-add-libsvt-hevc-encode
Committer identity unknown

*** Please tell me who you are.

Run

  git config --global user.email "[email protected]"
  git config --global user.name "Your Name"

to set your account's default identity.
Omit --global to set the identity only in this repository.

fatal: unable to auto-detect email address (got 'MarcoPanza@DESKTOP-AFA7QK7.(none)')

MarcoPanza@DESKTOP-AFA7QK7 MINGW64 /c/a/ffmpeg ((n4.4))
$

MarcoPanza@DESKTOP-AFA7QK7 MINGW64 /c/a/ffmpeg ((n4.4))
 FFmpeg,he above patch failed when you work on master branch or newer version of

MarcoPanza@DESKTOP-AFA7QK7 MINGW64 /c/a/ffmpeg ((n4.4))
-hevc-encoder-wrapper.patchr master branch: master-0001-lavc-svt_hevc-add-libsvt-

MarcoPanza@DESKTOP-AFA7QK7 MINGW64 /c/a/ffmpeg ((n4.4))
oder-wrapper.patchVC/ffmpeg_plugin/master-0001-lavc-svt_hevc-add-libsvt-hevc-enco
Committer identity unknown

*** Please tell me who you are.

Run

  git config --global user.email "[email protected]"
  git config --global user.name "Your Name"

to set your account's default identity.
Omit --global to set the identity only in this repository.

fatal: unable to auto-detect email address (got 'MarcoPanza@DESKTOP-AFA7QK7.(none)')

MarcoPanza@DESKTOP-AFA7QK7 MINGW64 /c/a/ffmpeg ((n4.4))
$

MarcoPanza@DESKTOP-AFA7QK7 MINGW64 /c/a/ffmpeg ((n4.4))
$ ./configure --enable-libsvthevc
Unknown option "--enable-libsvthevc".
See ./configure --help for available options.

MarcoPanza@DESKTOP-AFA7QK7 MINGW64 /c/a/ffmpeg ((n4.4))
$ make -j $(nproc)
Makefile:177: /tests/Makefile: No such file or directory
make: *** No rule to make target '/tests/Makefile'.  Stop.

MarcoPanza@DESKTOP-AFA7QK7 MINGW64 /c/a/ffmpeg ((n4.4))

can you help me please ?

luca2125 avatar Jun 23 '21 16:06 luca2125

use git apply instead of git am

1480c1 avatar Jun 23 '21 16:06 1480c1

thank you for your very fast reponse !!

the result was changed but still not work

$ git clone https://github.com/FFmpeg/FFmpeg ffmpeg
# The patch n4.4-0001-lavc-svt_hevc-add-libsvt-hevc-encoder-wrapper.patch has been validated on n4.2/n4.3/n4.4 release tag
Cloning into 'ffmpeg'...
git checkout n4.2
or
git checkout n4.3
or
git checkout n4.4

git apply ../SVT-HEVC/ffmpeg_plugin/n4.4-0001-lavc-svt_hevc-add-libsvt-hevc-encoder-wrapper.patch

# If the above patch failed when you work on master branch or newer version of FFmpeg,
# please try the patch for master branch: master-0001-lavc-svt_hevc-add-libsvt-hevc-encoder-wrapper.patch
git apply ../SVT-HEVC/ffmpeg_plugin/master-0001-lavc-svt_hevc-add-libsvt-hevc-encoder-wrapper.patch

./configure --enable-libsvthevc
make -j $(nproc)
remote: Enumerating objects: 628771, done.
remote: Counting objects: 100% (367/367), done.
remote: Compressing objects: 100% (145/145), done.
remote: Total 628771 (delta 243), reused 317 (delta 222), pack-reused 628404
Receiving objects: 100% (628771/628771), 260.39 MiB | 20.58 MiB/s, done.
Resolving deltas: 100% (493743/493743), done.
Updating files: 100% (7462/7462), done.

MarcoPanza@DESKTOP-AFA7QK7 MINGW64 /c/a
$ cd ffmpeg

MarcoPanza@DESKTOP-AFA7QK7 MINGW64 /c/a/ffmpeg (master)
$

MarcoPanza@DESKTOP-AFA7QK7 MINGW64 /c/a/ffmpeg (master)
been validated on n4.2/n4.3/n4.4 release tagbsvt-hevc-encoder-wrapper.patch has b

MarcoPanza@DESKTOP-AFA7QK7 MINGW64 /c/a/ffmpeg (master)
$ git checkout n4.2
Updating files: 100% (3303/3303), done.
Note: switching to 'n4.2'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by switching back to a branch.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -c with the switch command. Example:

  git switch -c <new-branch-name>

Or undo this operation with:

  git switch -

Turn off this advice by setting config variable advice.detachedHead to false

HEAD is now at 75384bc464 configure: cuda_llvm: fix include path for MSYS2

MarcoPanza@DESKTOP-AFA7QK7 MINGW64 /c/a/ffmpeg ((n4.2))
$ or
bash: or: command not found

MarcoPanza@DESKTOP-AFA7QK7 MINGW64 /c/a/ffmpeg ((n4.2))
$ git checkout n4.3
Previous HEAD position was 75384bc464 configure: cuda_llvm: fix include path for MSYS2
HEAD is now at 8e12af29d1 avcodec/tiff: Check stride for dng

MarcoPanza@DESKTOP-AFA7QK7 MINGW64 /c/a/ffmpeg ((n4.3))
$ or
bash: or: command not found

MarcoPanza@DESKTOP-AFA7QK7 MINGW64 /c/a/ffmpeg ((n4.3))
$ git checkout n4.4
Previous HEAD position was 8e12af29d1 avcodec/tiff: Check stride for dng
HEAD is now at dc91b913b6 RELEASE_NOTES: Based on the version from 4.3

MarcoPanza@DESKTOP-AFA7QK7 MINGW64 /c/a/ffmpeg ((n4.4))
$

MarcoPanza@DESKTOP-AFA7QK7 MINGW64 /c/a/ffmpeg ((n4.4))
coder-wrapper.patchHEVC/ffmpeg_plugin/n4.4-0001-lavc-svt_hevc-add-libsvt-hevc-enc
error: can't open patch '../SVT-HEVC/ffmpeg_plugin/n4.4-0001-lavc-svt_hevc-add-libsvt-hevc-encoder-wrapper.patch': No such file or directory

MarcoPanza@DESKTOP-AFA7QK7 MINGW64 /c/a/ffmpeg ((n4.4))
$

MarcoPanza@DESKTOP-AFA7QK7 MINGW64 /c/a/ffmpeg ((n4.4))
 FFmpeg,he above patch failed when you work on master branch or newer version of

MarcoPanza@DESKTOP-AFA7QK7 MINGW64 /c/a/ffmpeg ((n4.4))
-hevc-encoder-wrapper.patchr master branch: master-0001-lavc-svt_hevc-add-libsvt-

MarcoPanza@DESKTOP-AFA7QK7 MINGW64 /c/a/ffmpeg ((n4.4))
encoder-wrapper.patchVC/ffmpeg_plugin/master-0001-lavc-svt_hevc-add-libsvt-hevc-e
error: can't open patch '../SVT-HEVC/ffmpeg_plugin/master-0001-lavc-svt_hevc-add-libsvt-hevc-encoder-wrapper.patch': No such file or directory

MarcoPanza@DESKTOP-AFA7QK7 MINGW64 /c/a/ffmpeg ((n4.4))
$

MarcoPanza@DESKTOP-AFA7QK7 MINGW64 /c/a/ffmpeg ((n4.4))
$ ./configure --enable-libsvthevc
Unknown option "--enable-libsvthevc".
See ./configure --help for available options.

MarcoPanza@DESKTOP-AFA7QK7 MINGW64 /c/a/ffmpeg ((n4.4))
$ make -j $(nproc)
Makefile:177: /tests/Makefile: No such file or directory
make: *** No rule to make target '/tests/Makefile'.  Stop.

MarcoPanza@DESKTOP-AFA7QK7 MINGW64 /c/a/ffmpeg ((n4.4))
$

luca2125 avatar Jun 23 '21 16:06 luca2125

try

git clone https://github.com/FFmpeg/FFmpeg ffmpeg
cd ffmpeg
git checkout n4.4
git apply ../SVT-HEVC/ffmpeg_plugin/n4.4-0001-lavc-svt_hevc-add-libsvt-hevc-encoder-wrapper.patch
./configure --enable-libsvthevc
make -j $(nproc)

and make sure you have SVT-HEVC cloned to the same directory has ffmpeg

1480c1 avatar Jun 23 '21 17:06 1480c1

Thank you I suspect that I have missing some step .. here the result:

MarcoPanza@DESKTOP-AFA7QK7 MINGW64 ~
$ cd c:\a

MarcoPanza@DESKTOP-AFA7QK7 MINGW64 /c/a
$ git clone https://github.com/FFmpeg/FFmpeg ffmpeg
git am ../SVT-HEVC/ffmpeg_plugin/n4.4-0001-lavc-svt_hevc-add-libsvt-hevc-encoder-wrapper.patch
./configure --enable-libsvthevc
make -j $(nproc)
Cloning into 'ffmpeg'...
remote: Enumerating objects: 628771, done.
remote: Counting objects: 100% (368/368), done.
remote: Compressing objects: 100% (147/147), done.
remote: Total 628771 (delta 243), reused 316 (delta 221), pack-reused 628403
Receiving objects: 100% (628771/628771), 260.09 MiB | 20.83 MiB/s, done.
Resolving deltas: 100% (493738/493738), done.
Updating files: 100% (7462/7462), done.

MarcoPanza@DESKTOP-AFA7QK7 MINGW64 /c/a
$ cd ffmpeg

MarcoPanza@DESKTOP-AFA7QK7 MINGW64 /c/a/ffmpeg (master)
$ git checkout n4.4
Note: switching to 'n4.4'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by switching back to a branch.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -c with the switch command. Example:

  git switch -c <new-branch-name>

Or undo this operation with:

  git switch -

Turn off this advice by setting config variable advice.detachedHead to false

HEAD is now at dc91b913b6 RELEASE_NOTES: Based on the version from 4.3

MarcoPanza@DESKTOP-AFA7QK7 MINGW64 /c/a/ffmpeg ((n4.4))
er-wrapper.patchHEVC/ffmpeg_plugin/n4.4-0001-lavc-svt_hevc-add-libsvt-hevc-encode
Committer identity unknown

*** Please tell me who you are.

Run

  git config --global user.email "[email protected]"
  git config --global user.name "Your Name"

to set your account's default identity.
Omit --global to set the identity only in this repository.

fatal: unable to auto-detect email address (got 'MarcoPanza@DESKTOP-AFA7QK7.(none)')

MarcoPanza@DESKTOP-AFA7QK7 MINGW64 /c/a/ffmpeg ((n4.4))
$ ./configure --enable-libsvthevc
Unknown option "--enable-libsvthevc".
See ./configure --help for available options.

MarcoPanza@DESKTOP-AFA7QK7 MINGW64 /c/a/ffmpeg ((n4.4))
$ make -j $(nproc)
Makefile:177: /tests/Makefile: No such file or directory
make: *** No rule to make target '/tests/Makefile'.  Stop.

MarcoPanza@DESKTOP-AFA7QK7 MINGW64 /c/a/ffmpeg ((n4.4))
$

I have only execute this scrit not else.

Here the the folder ffmpeg that have created this script:

script

luca2125 avatar Jun 23 '21 17:06 luca2125

change the git am line to git apply again, forgot you haven't setup git yet

1480c1 avatar Jun 23 '21 17:06 1480c1

Some result:

MarcoPanza@DESKTOP-AFA7QK7 MINGW64 /c/a
$ git clone https://github.com/FFmpeg/FFmpeg ffmpeg
git apply ../SVT-HEVC/ffmpeg_plugin/n4.4-0001-lavc-svt_hevc-add-libsvt-hevc-encoder-wrapper.patch
./configure --enable-libsvthevc
make -j $(nproc)
Cloning into 'ffmpeg'...
remote: Enumerating objects: 628771, done.
remote: Counting objects: 100% (368/368), done.
remote: Compressing objects: 100% (147/147), done.
remote: Total 628771 (delta 243), reused 316 (delta 221), pack-reused 628403
Receiving objects: 100% (628771/628771), 260.09 MiB | 12.17 MiB/s, done.
Resolving deltas: 100% (493738/493738), done.
Updating files: 100% (7462/7462), done.

MarcoPanza@DESKTOP-AFA7QK7 MINGW64 /c/a
$ cd ffmpeg

MarcoPanza@DESKTOP-AFA7QK7 MINGW64 /c/a/ffmpeg (master)
$ git checkout n4.4
Updating files: 100% (1835/1835), done.
Note: switching to 'n4.4'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by switching back to a branch.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -c with the switch command. Example:

  git switch -c <new-branch-name>

Or undo this operation with:

  git switch -

Turn off this advice by setting config variable advice.detachedHead to false

HEAD is now at dc91b913b6 RELEASE_NOTES: Based on the version from 4.3

MarcoPanza@DESKTOP-AFA7QK7 MINGW64 /c/a/ffmpeg ((n4.4))
coder-wrapper.patchHEVC/ffmpeg_plugin/n4.4-0001-lavc-svt_hevc-add-libsvt-hevc-enc
error: can't open patch '../SVT-HEVC/ffmpeg_plugin/n4.4-0001-lavc-svt_hevc-add-libsvt-hevc-encoder-wrapper.patch': No such file or directory

MarcoPanza@DESKTOP-AFA7QK7 MINGW64 /c/a/ffmpeg ((n4.4))
$ ./configure --enable-libsvthevc
Unknown option "--enable-libsvthevc".
See ./configure --help for available options.

MarcoPanza@DESKTOP-AFA7QK7 MINGW64 /c/a/ffmpeg ((n4.4))
$ make -j $(nproc)
Makefile:177: /tests/Makefile: No such file or directory
make: *** No rule to make target '/tests/Makefile'.  Stop.

MarcoPanza@DESKTOP-AFA7QK7 MINGW64 /c/a/ffmpeg ((n4.4))
$ ^C

MarcoPanza@DESKTOP-AFA7QK7 MINGW64 /c/a/ffmpeg ((n4.4))
$


I don't see that the folder "SVT-HEVC" inside ffmpeg folder as showed in the screenshot. Is normal ?

luca2125 avatar Jun 23 '21 17:06 luca2125

Have you cloned SVT-HEVC and installed it before?

1480c1 avatar Jun 23 '21 17:06 1480c1

no, how I can do it ?

luca2125 avatar Jun 23 '21 17:06 luca2125

git clone https://github.com/OpenVisualCloud/SVT-HEVC
cmake -B svt-hevc-build -S SVT-HEVC -G"Unix Makefiles" -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=OFF -DCMAKE_INSTALL_PREFIX="/c/a/SVT-INSTALL"
make -C svt-hevc-build install
git clone https://github.com/FFmpeg/FFmpeg ffmpeg
cd ffmpeg
git checkout n4.4
git apply ../SVT-HEVC/ffmpeg_plugin/n4.4-0001-lavc-svt_hevc-add-libsvt-hevc-encoder-wrapper.patch
./configure --enable-libsvthevc PKG_CONFIG_PATH="/c/a/SVT-INSTALL/lib/pkgconfig"
make -j $(nproc)

1480c1 avatar Jun 23 '21 17:06 1480c1

this time we have dome progress !! I have installed cgwin that seem work better then git bash:

MarcoPanza@DESKTOP-AFA7QK7 /cygdrive/c/a
$ git clone https://github.com/OpenVisualCloud/SVT-HEVC
git checkout n4.4
git apply ../SVT-HEVC/ffmpeg_plugin/n4.4-0001-lavc-svt_hevc-add-libsvt-hevc-encoder-wrapper.patch
./configure --enable-libsvthevc PKG_CONFIG_PATH="/c/a/SVT-INSTALL/lib/pkgconfig"
make -j $(nproc)
Cloning into 'SVT-HEVC'...
remote: Enumerating objects: 3626, done.
remote: Counting objects: 100% (55/55), done.
remote: Compressing objects: 100% (42/42), done.
remote: Total 3626 (delta 24), reused 26 (delta 13), pack-reused 3571
Receiving objects: 100% (3626/3626), 9.36 MiB | 14.92 MiB/s, done.
Resolving deltas: 100% (2586/2586), done.

MarcoPanza@DESKTOP-AFA7QK7 /cygdrive/c/a
$ cmake -B svt-hevc-build -S SVT-HEVC -G"Unix Makefiles" -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=OFF -DCMAKE_INSTALL_PREFIX="/c/a/SVT-INSTALL"
Cloning into 'ffmpeg'...
remote: Enumerating objects: 628771, done.
remote: Counting objects: 100% (368/368), done.
remote: Compressing objects: 100% (147/147), done.
remote: Total 628771 (delta 243), reused 316 (delta 221), pack-reused 628403
Receiving objects: 100% (628771/628771), 260.09 MiB | 12.95 MiB/s, done.
Resolving deltas: 100% (493738/493738), done.
Updating files: 100% (7462/7462), done.

MarcoPanza@DESKTOP-AFA7QK7 /cygdrive/c/a
$ cd ffmpeg

MarcoPanza@DESKTOP-AFA7QK7 /cygdrive/c/a/ffmpeg
$ git checkout n4.4
Note: switching to 'n4.4'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by switching back to a branch.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -c with the switch command. Example:

  git switch -c <new-branch-name>

Or undo this operation with:

  git switch -

Turn off this advice by setting config variable advice.detachedHead to false

HEAD is now at dc91b913b6 RELEASE_NOTES: Based on the version from 4.3

MarcoPanza@DESKTOP-AFA7QK7 /cygdrive/c/a/ffmpeg
coder-wrapper.patchHEVC/ffmpeg_plugin/n4.4-0001-lavc-svt_hevc-add-libsvt-hevc-enc
../SVT-HEVC/ffmpeg_plugin/n4.4-0001-lavc-svt_hevc-add-libsvt-hevc-encoder-wrapper.patch:88: trailing whitespace.
/*
../SVT-HEVC/ffmpeg_plugin/n4.4-0001-lavc-svt_hevc-add-libsvt-hevc-encoder-wrapper.patch:89: trailing whitespace.
* Scalable Video Technology for HEVC encoder library plugin
../SVT-HEVC/ffmpeg_plugin/n4.4-0001-lavc-svt_hevc-add-libsvt-hevc-encoder-wrapper.patch:90: trailing whitespace.
*
../SVT-HEVC/ffmpeg_plugin/n4.4-0001-lavc-svt_hevc-add-libsvt-hevc-encoder-wrapper.patch:91: trailing whitespace.
* Copyright (c) 2019 Intel Corporation
../SVT-HEVC/ffmpeg_plugin/n4.4-0001-lavc-svt_hevc-add-libsvt-hevc-encoder-wrapper.patch:92: trailing whitespace.
*
warning: configure has type 100644, expected 100755
warning: squelched 578 whitespace errors
warning: 583 lines add whitespace errors.

MarcoPanza@DESKTOP-AFA7QK7 /cygdrive/c/a/ffmpeg
g"./configure --enable-libsvthevc PKG_CONFIG_PATH="/c/a/SVT-INSTALL/lib/pkgconfig
./configure: line 9: $'\r': command not found
): No such file or directoryg: setlocale: LC_ALL: cannot change locale (C
': not a valid identifierort: `LC_ALL
./configure: line 13: $'\r': command not found
./configure: line 16: $'\r': command not found
./configure: line 17: syntax error near unexpected token `$'{\r''
'/configure: line 17: `try_exec(){

MarcoPanza@DESKTOP-AFA7QK7 /cygdrive/c/a/ffmpeg
$ make -j $(nproc)
-bash: make: command not found

MarcoPanza@DESKTOP-AFA7QK7 /cygdrive/c/a/ffmpeg

I don't sure if cgwin need to configure or is not necessary. on "configure" seem there is something that not work.

luca2125 avatar Jun 23 '21 18:06 luca2125

I don't know about cygwin much, so I can't help you there

1480c1 avatar Jun 23 '21 18:06 1480c1

thank you very much !! Last question there is a way to download directly the binary file for windows ?

luca2125 avatar Jun 23 '21 18:06 luca2125

Which files do you need? SvtHevcEncApp or ffmpeg?

1480c1 avatar Jun 23 '21 18:06 1480c1

if possible ffmpeg please.

luca2125 avatar Jun 23 '21 18:06 luca2125

https://jeremylee.sh/bin.html contains ffmpeg with libsvt_hevc now

1480c1 avatar Jun 23 '21 19:06 1480c1

thank you just tested, seem similar to default libx265 in term of speed and file size. What are the difference ?

luca2125 avatar Jun 23 '21 21:06 luca2125

Thank you Chris @1480c1 helping on the questions. @luca2125 what is your expectation?

tianjunwork avatar Jun 23 '21 22:06 tianjunwork

Thank you for all support, I have compared the result with libx265 at the some crf and preset:

https://drive.google.com/drive/folders/1IDI1a8l6D0uqTrKir0vbnMtmfpvmtpbL?usp=sharing

with libx265 on my CPU intel I5 6600t I get 0.5x speed similar to SVT-HEVC.

in both cases there are blocking artefact on very dark scenes on the first 20/40 seconds (to see it you need a dark room).

On SVT-HEVC this artefact seem more evident.

I ask if there is a way to reduce this artefact.

I have tried to use my GPU Nvidia GTX 1060, with cuda but the quality is very poor.

Becouse libx265 is a bit slow I looking for a alternative with a silimar quality and more speed and now I have tested SVT-HEVC.

At the moment my impression on SVT-HEVC is that share the some quality and the some speed of libx265.

But this can depend by my inexperience on using SVT-HEVC paramenters.

In this sample I see too much blocking, there is a way to reduce this blocking artefact with SVT-HEVC ?

Thanks !

luca2125 avatar Jun 24 '21 06:06 luca2125

Though SVT-HEVC can run on Windows Clint PC, which is not its main usage. Scalable Video Technology (SVT) is a software-based video coding technology that is highly optimized for Intel® Xeon® processors. Using the open source SVT-HEVC encoder, it is possible to spread video encoding processing across multiple Intel® Xeon® processors to achieve a real advantage of processing efficiency. To reduce artifact, you can try lower preset.

tianjunwork avatar Jun 24 '21 18:06 tianjunwork

thank you I have tried to do other tests and actrually my conclusion is the best setting is preset slow and qp=21.

The difference beetween medium and slow is tangible but at the some time I don't see too much defference beetween the slow and very slow (this is only my impression).

I see there is a paramater called "deblock". do you think can be useful change this parameter to reduce blocking at preset slow qp=21 ?

if yes what can be the setting ? or do you suggest to keep it as it ?

After many other A/B tests with libx265 for my opnion SVT-HEVC is much better then libx265: 3x times more faster at average and with less film grain and in general less noise.

libx265 have a "tune" option that I don't see it in SVT-HEVC, that sometimes was useful with libx265, but with SVT-HEVC don't seem necessary becouse seem already optimized.

If you have some personal suggest about what are the best setting to improve quality and time to encode, please let me know I. I need to process a large number of mkv files.

luca2125 avatar Jun 24 '21 19:06 luca2125

No problem. SVT-HEVC doesn't have a parameter called deblock. The test you are trying is on the right direction: tuning with preset and qp. -tune parameter is deprecated in SVT-HEVC. No need to use it. With ffmpeg SVT-HEVC plugin, the default parameters are already the setting for highest speed.

tianjunwork avatar Jun 24 '21 23:06 tianjunwork