so I played around with vp9 enciding a bit more. apoarently there is vp9 lossless mode, and additionally libvpx can support high bit depth if configured so.
I also tried to remove (currently unused?) libavdevice build from ffmpeg, and fix termux breakage (libandroid-shmem lib was missing) try attached patches and check if vdpau/vaapi still works?
From ec275144c3eafa0b7f779d093950699937135d74 Mon Sep 17 00:00:00 2001 From: Andrew Randrianasulu <[email protected]> Date: Tue, 8 Mar 2022 05:56:40 +0300 Subject: [PATCH 1/3] vp9 alpha (420p) + lossless profil --- cinelerra-5.1/ffmpeg/video/vp9-alpha-lossless.webm | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 cinelerra-5.1/ffmpeg/video/vp9-alpha-lossless.webm diff --git a/cinelerra-5.1/ffmpeg/video/vp9-alpha-lossless.webm b/cinelerra-5.1/ffmpeg/video/vp9-alpha-lossless.webm new file mode 100644 index 00000000..ac7d086d --- /dev/null +++ b/cinelerra-5.1/ffmpeg/video/vp9-alpha-lossless.webm @@ -0,0 +1,3 @@ +webm libvpx-vp9 +cin_pix_fmt=yuva420p +lossless=1 -- 2.35.1
From ca291584e0e71043cb28adc95a51cfc3d1aa1137 Mon Sep 17 00:00:00 2001 From: Andrew Randrianasulu <[email protected]> Date: Tue, 8 Mar 2022 05:54:05 +0300 Subject: [PATCH 2/3] Remove libavdevice from ffmpeg build, fix landroid-shmem link on termux, libvpx high bit dept --- cinelerra-5.1/configure.ac | 3 +-- cinelerra-5.1/thirdparty/Makefile | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/cinelerra-5.1/configure.ac b/cinelerra-5.1/configure.ac index 163851d4..b36cb264 100644 --- a/cinelerra-5.1/configure.ac +++ b/cinelerra-5.1/configure.ac @@ -196,7 +196,6 @@ PKG_3RD([ffmpeg],[yes], [ libavutil/libavutil.a \ libavcodec/libavcodec.a \ libpostproc/libpostproc.a \ - libavdevice/libavdevice.a \ libavformat/libavformat.a \ libswscale/libswscale.a \ libavfilter/libavfilter.a \ @@ -1055,7 +1054,7 @@ fi if test [ "$(uname -o)"] = "Android" ; then # termux -EXTRA_LIBS+=' -liconv' +EXTRA_LIBS+=' -liconv -landroid-shmem' fi # intel lock elision bugs diff --git a/cinelerra-5.1/thirdparty/Makefile b/cinelerra-5.1/thirdparty/Makefile index ce41db9f..2e77d4d7 100644 --- a/cinelerra-5.1/thirdparty/Makefile +++ b/cinelerra-5.1/thirdparty/Makefile @@ -130,7 +130,7 @@ esound.mak_vars+= CFLAGS="" esound.ldflags=" -lm -lstdc++" fftw.cfg_params= --disable-fortran --enable-shared=no ffmpeg.cfg_params= \ - --enable-pthreads --enable-gpl --disable-ffplay \ + --enable-pthreads --disable-avdevice --enable-gpl --disable-ffplay \ $(call if_want,VAAPI,--enable-vaapi,--disable-vaapi) \ $(call if_want,VDPAU,--enable-vdpau,--disable-vdpau) \ $(call if_want,NV, --enable-nvenc --enable-nvdec --enable-ffnvcodec) \ -- 2.35.1
From c7402c0c406440f5d9bd3cf8834e68e7737c31aa Mon Sep 17 00:00:00 2001 From: Andrew Randrianasulu <[email protected]> Date: Tue, 8 Mar 2022 06:16:32 +0300 Subject: [PATCH 3/3] really enable libvpx vp9 high bit depth --- cinelerra-5.1/thirdparty/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cinelerra-5.1/thirdparty/Makefile b/cinelerra-5.1/thirdparty/Makefile index 2e77d4d7..b2e222d4 100644 --- a/cinelerra-5.1/thirdparty/Makefile +++ b/cinelerra-5.1/thirdparty/Makefile @@ -261,7 +261,7 @@ twolame.cfg_params?=--enable-shared=no x264.cfg_params?= --enable-static --enable-pic x265.cfg_vars?=$(call cmake_config,source) x265.cfg_params?= -DENABLE_SHARED=no -libvpx.cfg_params?= --enable-pic --disable-avx512 --disable-examples --disable-unit_tests +libvpx.cfg_params?= --enable-pic --disable-avx512 --enable-vp9-highbitdepth --disable-examples --disable-unit_tests DS:=$$$$$$$$ pkg_cfg=$(call bld_path,$(1),usr/local/lib/pkgconfig): -- 2.35.1
-- Cin mailing list [email protected] https://lists.cinelerra-gg.org/mailman/listinfo/cin

