m-ab-s / media-autobuild_suite

This Windows Batchscript helps setup a Mingw-w64 compiler environment for building ffmpeg and other media tools under Windows.
GNU General Public License v3.0
1.53k stars 263 forks source link

[Question] x265 "includes svt-hevc encoder if enabled", how? #1405

Closed Selur closed 4 years ago

Selur commented 5 years ago

Main page states that x265 "includes svt-hevc encoder if enabled", how do I enable stv-hevc so it is included in x265? Atm. my ini file looks like this:

[compiler list]
msys2Arch=2
arch=3
license2=2
standalone=1
vpx2=1
aom=1
rav1e=1
dav1d=2
x2643=4
x2652=1
other265=1
svthevc=1
xvc=1
vvc=1
svtav1=1
flac=1
fdkaac=1
faac=1
mediainfo=1
soxB=1
ffmpegB2=1
ffmpegUpdate=1
ffmpegChoice=1
mp4box=1
rtmpdump=2
mplayer2=1
mpv=2
bmx=2
curl=2
ffmbc=1
cyanrip2=2
redshift=2
ripgrep=2
jq=2
dssim=2
avs2=1
cores=16
deleteSource=1
strip=1
pack=2
logging=1
updateSuite=1
timeStamp=1
ccache=1
noMintty=2

my ffmpeg_options.txt looks like this:

# Lines starting with this character are ignored

# Basic built-in options, can be removed if you delete "--disable-autodetect"
--disable-autodetect
--enable-amf
--enable-bzlib
--enable-cuda
--enable-cuvid
--enable-d3d11va
--enable-dxva2
--enable-iconv
--enable-lzma
--enable-nvenc
--enable-schannel
--enable-zlib
--enable-sdl2
--disable-debug
--enable-ffnvcodec
--enable-nvdec

# Common options
--enable-gmp
--enable-libmp3lame
--enable-libopus
--enable-libvorbis
--enable-libvpx
--enable-libx264
--enable-libx265
--enable-libdav1d

# Zeranoe
--enable-fontconfig
--enable-gnutls
--enable-libass
--enable-libbluray
--enable-libfreetype
--enable-libmfx
--enable-libmysofa
--enable-libopencore-amrnb
--enable-libopencore-amrwb
--enable-libopenjpeg
--enable-libsnappy
--enable-libsoxr
--enable-libspeex
--enable-libtheora
--enable-libtwolame
--enable-libvidstab
--enable-libvo-amrwbenc
--enable-libwavpack
--enable-libwebp
--enable-libxml2
--enable-libzimg
--enable-libshine
--enable-gpl
--enable-openssl
--enable-libtls
--enable-avisynth
--enable-mbedtls
--enable-libxvid
--enable-libaom
--enable-libopenmpt
--enable-version3

# Full
#--enable-chromaprint
#--enable-cuda-nvcc
#--enable-decklink
#--enable-frei0r
#--enable-libbs2b
#--enable-libcaca
#--enable-libcdio
#--enable-libfdk-aac
#--enable-libflite
#--enable-libfribidi
#--enable-libgme
#--enable-libgsm
#--enable-libilbc
--enable-libkvazaar
#--enable-libmodplug
#--enable-libnpp
#--enable-libopenh264
#--enable-librtmp
#--enable-librubberband
#--enable-libssh
#--enable-libtesseract
--enable-libxavs
--enable-libxavs2
#--enable-libzmq
#--enable-libzvbi
#--enable-opencl
#--enable-opengl
#--enable-libvmaf
#--enable-libcodec2
#--enable-libsrt
#--enable-ladspa
--enable-vapoursynth
##--enable-liblensfun
#--enable-libndi_newtek

I ran script, but x265 does not show '--svt' as option in it's help. -> What am I missing?

Selur commented 5 years ago

Okay, I noticed removing the ffmpeg_options.txt causes the script to create it new with '--enable-libsvthevc' and '--enable-libsvtav1' in it, but this should only influence ffmpeg, right?

1480c1 commented 5 years ago

https://github.com/m-ab-s/media-autobuild_suite/pull/1337

There was a way to have x265 compile with SVT-HEVC so that you could do x265 -svt ... and x265 would parse the commands and libSvtHevcEnc to encoding so you could use x265 syntax etc, but it's broken on x265 side and I'm not knowledgeable enough about x265's side to generate patches to fix their cmake stuff

Selur commented 5 years ago

Ah okay, so it is broken. I thought this was fixed since there wasn't any error. Okay, so I'll wait for them to fix this upstream.

1480c1 commented 4 years ago

Since they recently supposedly fixed it, I can try again soon

1480c1 commented 4 years ago

Not sure if upstream is willing to maintain using x265 with svt-hevc so I will not add them together