Just recompiled cin with this patch and (after
adding logleve=debug to bin/ffmpeg/encode.opts ) I have:
bash-5.1$ bin/cin
Cinelerra Infinity - built: Nov 15 2024 10:55:42
git://
git.cinelerra-gg.org/goodguy/cinelerra.git
(c) 2006-2019 Heroine Virtual Ltd. by Adam Williams
2007-2020 mods for Cinelerra-GG by W.P.Morrow aka
goodguy
2003-2017 mods for Cinelerra-CV by CinelerraCV team
2015-2024 mods for Cinelerra-GG by Cinelerra-GG team
Libav version: Lavc61.3.100
Cinelerra is free software, covered by the GNU General
Public License,
and you are welcome to change it and/or distribute
copies of it under
certain conditions. There is absolutely no warranty for
Cinelerra.
RenderFarmClient::main_loop: client started
[AVHWDeviceContext @ 0xd7b03740] Trying to use DRM
render node for device 0.
[AVHWDeviceContext @ 0xd7b03740] libva: VA-API version
1.19.0
[AVHWDeviceContext @ 0xd7b03740] libva: Trying to open
/usr/lib/dri/nouveau_drv_video.so
[AVHWDeviceContext @ 0xd7b03740] libva: Found init
function __vaDriverInit_1_19
[AVHWDeviceContext @ 0xd7b03740] libva: va_openDriver()
returns 0
[AVHWDeviceContext @ 0xd7b03740] Initialised VAAPI
connection: version 1.19
[AVHWDeviceContext @ 0xd7b03740] Format 0x3231564e ->
nv12.
[AVHWDeviceContext @ 0xd7b03740] Format 0x30313050 ->
p010le.
[AVHWDeviceContext @ 0xd7b03740] Format 0x36313050 ->
unknown.
[AVHWDeviceContext @ 0xd7b03740] Format 0x30323449 ->
yuv420p.
[AVHWDeviceContext @ 0xd7b03740] Format 0x32315659 ->
yuv420p.
[AVHWDeviceContext @ 0xd7b03740] Format 0x56595559 ->
unknown.
[AVHWDeviceContext @ 0xd7b03740] Format 0x32595559 ->
yuyv422.
[AVHWDeviceContext @ 0xd7b03740] Format 0x59565955 ->
uyvy422.
[AVHWDeviceContext @ 0xd7b03740] Format 0x41524742 ->
bgra.
[AVHWDeviceContext @ 0xd7b03740] Format 0x41424752 ->
rgba.
[AVHWDeviceContext @ 0xd7b03740] Format 0x58524742 ->
bgr0.
[AVHWDeviceContext @ 0xd7b03740] Format 0x58424752 ->
rgb0.
[AVHWDeviceContext @ 0xd7b03740] VAAPI driver: Mesa
Gallium driver 22.1.7 for NV106.
[AVHWDeviceContext @ 0xd7b03740] Driver not found in
known nonstandard list, using standard behaviour.
[AVHWFramesContext @ 0xd7b30900] Created surface 0x1.
[AVHWFramesContext @ 0xd7b30900] Direct mapping
disabled: deriving image does not work: 1 (operation
failed).
[hevc_vaapi @ 0xd7b0ca40] Input surface format is nv12.
[hevc_vaapi @ 0xd7b0ca40] Compatible profile
VAProfileHEVCMain (17) is not supported by driver.
[hevc_vaapi @ 0xd7b0ca40] Compatible profile
VAProfileHEVCMain (17) is not supported by driver.
[hevc_vaapi @ 0xd7b0ca40] No usable encoding profile
found.
FFMPEG::open_encoder err: Function not implemented
int FFMPEG::open_encoder(const char*, const char*):
open failed hevc_vaapi:/dev/shm/vaapi-test.mp4
Render::render_single: Session finished.
Total excess of backups: -50
[AVIOContext @ 0xf4139c40] Statistics: 196608 bytes
read, 0 seeks
[AVIOContext @ 0xf413a680] Statistics: 196608 bytes
read, 0 seeks
[AVIOContext @ 0xda276c00] Statistics: 294912 bytes
read, 0 seeks
[AVIOContext @ 0xda2e6dc0] Statistics: 196608 bytes
read, 0 seeks
[AVIOContext @ 0xe4ed3e80] Statistics: 18991217 bytes
read, 18 seeks
[AVIOContext @ 0xe4e0a280] Statistics: 196608 bytes
read, 0 seeks
Session time: 0:00:29
Cpu time: user: 0:00:14.957 sys: 0:00:01.831
note that it says HevcMain
bash-5.1$ CIN_10BIT_ENC=p010le bin/cin
Cinelerra Infinity - built: Nov 15 2024 10:55:42
git://
git.cinelerra-gg.org/goodguy/cinelerra.git
(c) 2006-2019 Heroine Virtual Ltd. by Adam Williams
2007-2020 mods for Cinelerra-GG by W.P.Morrow aka
goodguy
2003-2017 mods for Cinelerra-CV by CinelerraCV team
2015-2024 mods for Cinelerra-GG by Cinelerra-GG team
Libav version: Lavc61.3.100
Cinelerra is free software, covered by the GNU General
Public License,
and you are welcome to change it and/or distribute
copies of it under
certain conditions. There is absolutely no warranty for
Cinelerra.
RenderFarmClient::main_loop: client started
[AVHWDeviceContext @ 0xd4bfd880] Trying to use DRM
render node for device 0.
[AVHWDeviceContext @ 0xd4bfd880] libva: VA-API version
1.19.0
[AVHWDeviceContext @ 0xd4bfd880] libva: Trying to open
/usr/lib/dri/nouveau_drv_video.so
[AVHWDeviceContext @ 0xd4bfd880] libva: Found init
function __vaDriverInit_1_19
[AVHWDeviceContext @ 0xd4bfd880] libva: va_openDriver()
returns 0
[AVHWDeviceContext @ 0xd4bfd880] Initialised VAAPI
connection: version 1.19
[AVHWDeviceContext @ 0xd4bfd880] Format 0x3231564e ->
nv12.
[AVHWDeviceContext @ 0xd4bfd880] Format 0x30313050 ->
p010le.
[AVHWDeviceContext @ 0xd4bfd880] Format 0x36313050 ->
unknown.
[AVHWDeviceContext @ 0xd4bfd880] Format 0x30323449 ->
yuv420p.
[AVHWDeviceContext @ 0xd4bfd880] Format 0x32315659 ->
yuv420p.
[AVHWDeviceContext @ 0xd4bfd880] Format 0x56595559 ->
unknown.
[AVHWDeviceContext @ 0xd4bfd880] Format 0x32595559 ->
yuyv422.
[AVHWDeviceContext @ 0xd4bfd880] Format 0x59565955 ->
uyvy422.
[AVHWDeviceContext @ 0xd4bfd880] Format 0x41524742 ->
bgra.
[AVHWDeviceContext @ 0xd4bfd880] Format 0x41424752 ->
rgba.
[AVHWDeviceContext @ 0xd4bfd880] Format 0x58524742 ->
bgr0.
[AVHWDeviceContext @ 0xd4bfd880] Format 0x58424752 ->
rgb0.
[AVHWDeviceContext @ 0xd4bfd880] VAAPI driver: Mesa
Gallium driver 22.1.7 for NV106.
[AVHWDeviceContext @ 0xd4bfd880] Driver not found in
known nonstandard list, using standard behaviour.
[AVHWFramesContext @ 0xce249500] Created surface 0x1.
[AVHWFramesContext @ 0xce249500] Direct mapping
possible.
[hevc_vaapi @ 0xce2a60c0] Input surface format is
p010le.
[hevc_vaapi @ 0xce2a60c0] Compatible profile
VAProfileHEVCMain10 (18) is not supported by driver.
[hevc_vaapi @ 0xce2a60c0] Compatible profile
VAProfileHEVCMain10 (18) is not supported by driver.
[hevc_vaapi @ 0xce2a60c0] No usable encoding profile
found.
FFMPEG::open_encoder err: Function not implemented
int FFMPEG::open_encoder(const char*, const char*):
open failed hevc_vaapi:/dev/shm/vaapi-test.mp4
Render::render_single: Session finished.
Total excess of backups: -50
[AVIOContext @ 0xd6e988c0] Statistics: 196608 bytes
read, 0 seeks
[AVIOContext @ 0xf403aa40] Statistics: 196608 bytes
read, 0 seeks
[AVIOContext @ 0xe4e86ec0] Statistics: 294912 bytes
read, 0 seeks
[AVIOContext @ 0xe4ed9cc0] Statistics: 196608 bytes
read, 0 seeks
[AVIOContext @ 0xef74cfc0] Statistics: 18991217 bytes
read, 18 seeks
[AVIOContext @ 0xef709c00] Statistics: 196608 bytes
read, 0 seeks
Session time: 0:00:24
Cpu time: user: 0:00:15.011 sys: 0:00:01.294
note what it says HevcMain10 ofc those are 'dry runs'
because I do not have hardware ...
--------------------------
My third Cin test using nv12
/Cin
# CIN_10BIT_ENC=nv12 bin/cin
Cinelerra Infinity - built: Nov 13 2024
20:54:33
hevc_vaapi_8b420.mp4
cin_hw_dev=vaapi
format=nv12,hwupload
# profile=main
# global_quality=22
** rendered 1780 frames in 41.675 secs,
42.711 fps
FFMPEG::open_decoder: some stream times
estimated: /Videoklipp/Cineform/cfhd01.mkv
ffprobe -hide_banner
hd01_hevc_vaapi_8b420.mp4
Stream #0:0[0x1](und): Video: hevc (Rext)
(hev1 / 0x31766568), yuv422p10le(tv,
bt709/unknown/unknown, top coded first
(swapped)), 1920x1080 [SAR 1:1 DAR 16:9],
24375 kb/s, 25 fps, 25 tbr, 12800 tbn
(default)
===========================
Some output for verification:
/Cin/cinelerra
# egrep -i "10bit|tenbit|nv12|p010|y210"
ffmpeg.C
GET_HW_PIXFMT(nv12, AV_PIX_FMT_NV12)
case AV_PIX_FMT_NV12:
ctx->get_format = get_hw_nv12; return
*p;
const char *tenbit_enc =
getenv("CIN_10BIT_ENC");
frames_ctx->sw_format =
AV_PIX_FMT_NV12;
if(tenbit_enc)
frames_ctx->sw_format =
av_get_pix_fmt(tenbit_enc);
picture->format =
AV_PIX_FMT_NV12;
----------------------
git
log 2>&1 | tee
git_log_after_another_10bit_patch
Top of the output:
commit
4d42448cc128d7d18e34eb97d4234e73b9acb360
Author: Andrew Randrianasulu <randrianasulu@gmail.com>
Date: Thu Nov 14 16:18:24 2024 +0300
yet another 10bit attempt
commit
e5a5a6da907dbcd40d8612bdbfeea1a2a0ae6cc8
Author: Andrew Randrianasulu <randrianasulu@gmail.com>
Date: Fri Oct 18 10:07:33 2024 +0300
Add onevpl support to build system
=========================