[Cin] another 10 bit encoding patch
Terje J. Hanssen
terjejhanssen at gmail.com
Fri Nov 15 01:21:18 CET 2024
Den 14.11.2024 22:21, skrev Andrew Randrianasulu:
>
>
> чт, 14 нояб. 2024 г., 23:41 Terje J. Hanssen <terjejhanssen at gmail.com>:
>
>
>
>
> Den 14.11.2024 18:38, skrev Andrew Randrianasulu:
>>
>>
>> чт, 14 нояб. 2024 г., 20:27 Terje J. Hanssen
>> <terjejhanssen at gmail.com>:
>>
>> Thank you for the patch.
>>
>> A few clarification questions in between before I start:
>>
>> Den 14.11.2024 14:21, skrev Andrew Randrianasulu:
>>
>> > you need to reset your git tree,
>> >
>> > something like
>> >
>> > git reset --hard 2037bf63cdf25462ca606f4a28636e12df77c2a0
>>
>> I did use "git reset --hard" without number at the end for
>> the previous
>> patch
>>
>> What number here, should I find mine somewhere in my git tree?
>>
>>
>>
>> you can fig them in 'git log' screen, you should have two more
>> patches on top of "ORIGIN" line
>
> Sorry, I'm still a bit confused by the latter "you should have two
> more patches on top of "ORIGIN" line"
> Here is the top from my git log" output:
>
> commit 68eb98be2183738684f1f4da2729d1ff9989ad16
> Author: Andrew Randrianasulu <randrianasulu at gmail.com>
> <mailto:randrianasulu at gmail.com>
> Date: Sun Oct 27 19:43:06 2024 +0300
>
> Experimental: try 10bit vaapi encoding
>
> commit e5a5a6da907dbcd40d8612bdbfeea1a2a0ae6cc8
> Author: Andrew Randrianasulu <randrianasulu at gmail.com>
> <mailto:randrianasulu at gmail.com>
> Date: Fri Oct 18 10:07:33 2024 +0300
>
> Add onevpl support to build system
>
> commit 8681d13675f32e870ab3632eaf89105415fb3961
> Author: Andrew Randrianasulu <randrianasulu at gmail.com>
> <mailto:randrianasulu at gmail.com>
> Date: Wed Oct 23 16:36:19 2024 +0300
>
> Add DESCRIPTION
>
> commit 90138debee46e0b91adeb5d8a400158b131b0d61
> Author: Andrew Randrianasulu <randrianasulu at gmail.com>
> <mailto:randrianasulu at gmail.com>
> Date: Wed Oct 23 16:29:58 2024 +0300
>
> Add BUGS
>
> commit 318c884532617e32904d6f4ec05a2b73832f418e
> Author: Andrew Randrianasulu <randrianasulu at gmail.com>
> <mailto:randrianasulu at gmail.com>
> Date: Wed Oct 23 16:22:58 2024 +0300
>
> Update README build instructions
>
>
> ah.
>
> you can just git reset --hard e5a5a6da907dbcd40d8612bdbfeea1a2a0ae6cc8
>
>
> inother words just reset tree to state without old 10bit patch.
>
> then apply new.
>
> if you can't see line with
>
> (origin/master, origin/HEAD)
>
> you can scroll down (by cursor arrows)
>
> or search by pressing "/" and typing your search word and pressing enter.
>
> but I think you can just reset tree to "add onevpl" commit.
Sorry, if I lost something - because it does not change something so far:
All three attempts result all in yuv422p10le as the previous 10bit hack did.
My summary follows:
/Cin
# git reset --hard e5a5a6da907dbcd40d8612bdbfeea1a2a0ae6cc8
HEAD is now at e5a5a6da Add onevpl support to build system
# git am 0001-yet-another-10bit-attempt.patch
Applying: yet another 10bit attempt
I didn't undestand Cingg should be recompiled additional after this patch(?)
--------------------------
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 at gmail.com>
Date: Thu Nov 14 16:18:24 2024 +0300
yet another 10bit attempt
commit e5a5a6da907dbcd40d8612bdbfeea1a2a0ae6cc8
Author: Andrew Randrianasulu <randrianasulu at gmail.com>
Date: Fri Oct 18 10:07:33 2024 +0300
Add onevpl support to build system
=========================
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.cinelerra-gg.org/pipermail/cin/attachments/20241115/2e3419f6/attachment-0001.htm>
More information about the Cin
mailing list