I tried to add other xavc classes as mp4 profiles (see attached patch, do not forgot to make install after patching), but without altering bt709 x264 params line - may be we should comment it so it can be overridden by bt2020 colorimetry?
also, those does not set flavor sony, may be they should? I also try to develop xavc mxf profiles on desktop (those are from Termux, 3 fps encode at FHD ;) вт, 22 апр. 2025 г., 00:54 Andrew Randrianasulu <[email protected]>: > In attempt at speeding up hdr10 4k HEVC video playback I tried to > re-encode it into AVC-intra using this guide: > > > https://www.voukoder.org/forum/thread/1163-replicate-sony-s-xavc-i-s-format/ > > basically either > > ffmpeg -i input -c:v libx264 -avcintra-class 480 -pix_fmt yuv422p10le > -preset ultrafast -x264opts avcintra-flavor=sony -c:a pcm_s24le -ar > 48k output.mxf > > or for half size > > ffmpeg -i ~/K38_sdcard1/Documents/iPhone11_4K-recorder_59.940HDR10.mov > -s 1920x1080 -c:v libx264 -avcintra-class 200 -pix_fmt yuv422p10le > -preset ultrafast -x264opts avcintra-flavor=sony -c:a pcm_s24le -ar > 48k output-half.mxf > > Note, line errors out when I tried class 480 for 1920x1080 frame size > > Both files load into cingg > > Original file (4k hdr hevc, 59.94 fps) plays at around 22 fps at > output x11, project rgba-float. But seeking is sad. Not to mention > lack of tonemapping. > > First 4k avc-intra 4k reencode plays at around 33 fps and seeks much > better (no artefacts) > > 1920x1080 proxy plays at 60 fps, and if I check play every frame and > try 2x speed forward - at 83 Fps. > > But trying two FullHD tracks referencing same "proxy" file set to > different fade leves with project set to RGBA-float kills fps back to > 2-3 :) > > Encoding at ultrafast preset was 4.5 fps for 4k version and 12 fps for > FullHD version. > > Filesizes: > > du -h *.mxf > 1.0G output-half.mxf > 2.2G output.mxf > > this is just for > frame= 1149 > time=00:00:19.15 > > Well, I guess without some serious GPU upgrade this machine not gonna > play HDR 4k :) > > Regular 8 bit/SDR 4k somewhat plays in firefox (if file just av1, 24 > fps), at least on Linux where I can set GPU frequency a bit higher > than default on nouveau/libre drivers. >
From af73ea1b17d9f8f5ca83f792f881136cd3df59bf Mon Sep 17 00:00:00 2001 From: Andrew Randrianasulu <[email protected]> Date: Tue, 22 Apr 2025 01:24:25 +0300 Subject: [PATCH] More xavc intra - 200,300,480 --- cinelerra-5.1/ffmpeg/video/AVC_Intra_200.mp4 | 8 ++++++++ cinelerra-5.1/ffmpeg/video/AVC_Intra_300.mp4 | 7 +++++++ cinelerra-5.1/ffmpeg/video/AVC_Intra_480.mp4 | 7 +++++++ 3 files changed, 22 insertions(+) create mode 100644 cinelerra-5.1/ffmpeg/video/AVC_Intra_200.mp4 create mode 100644 cinelerra-5.1/ffmpeg/video/AVC_Intra_300.mp4 create mode 100644 cinelerra-5.1/ffmpeg/video/AVC_Intra_480.mp4 diff --git a/cinelerra-5.1/ffmpeg/video/AVC_Intra_200.mp4 b/cinelerra-5.1/ffmpeg/video/AVC_Intra_200.mp4 new file mode 100644 index 00000000..c34d880e --- /dev/null +++ b/cinelerra-5.1/ffmpeg/video/AVC_Intra_200.mp4 @@ -0,0 +1,8 @@ +mp4 libx264 +cin_pix_fmt=yuv422p10le +flags -global_header +keyint_min=0 +x264-params=keyint=0:colorprim=bt709:transfer=bt709:colormatrix=bt709 +avcintra-class=200 +bufsize=100000000 + diff --git a/cinelerra-5.1/ffmpeg/video/AVC_Intra_300.mp4 b/cinelerra-5.1/ffmpeg/video/AVC_Intra_300.mp4 new file mode 100644 index 00000000..6ec888a6 --- /dev/null +++ b/cinelerra-5.1/ffmpeg/video/AVC_Intra_300.mp4 @@ -0,0 +1,7 @@ +mp4 libx264 +cin_pix_fmt=yuv422p10le +flags -global_header +keyint_min=0 +x264-params=keyint=0:colorprim=bt709:transfer=bt709:colormatrix=bt709 +avcintra-class=300 +bufsize=100000000 diff --git a/cinelerra-5.1/ffmpeg/video/AVC_Intra_480.mp4 b/cinelerra-5.1/ffmpeg/video/AVC_Intra_480.mp4 new file mode 100644 index 00000000..d1b7faee --- /dev/null +++ b/cinelerra-5.1/ffmpeg/video/AVC_Intra_480.mp4 @@ -0,0 +1,7 @@ +mp4 libx264 +cin_pix_fmt=yuv422p10le +flags -global_header +keyint_min=0 +x264-params=keyint=0:colorprim=bt709:transfer=bt709:colormatrix=bt709 +avcintra-class=480 +bufsize=100000000 -- 2.49.0
-- Cin mailing list [email protected] https://lists.cinelerra-gg.org/mailman/listinfo/cin

