I tried to edit in place ff_options before batchrender job was created.
It seems to work but need real (on real hardware player + TV) testing ...
From 76632cfe8671fbea24e5950d604dfc1fe886ac14 Mon Sep 17 00:00:00 2001
From: Andrew Randrianasulu <[email protected]>
Date: Tue, 16 Jan 2024 10:01:29 +0300
Subject: [PATCH 4/4] Make 1440 formats also 16:9
---
cinelerra-5.1/cinelerra/bdcreate.C | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/cinelerra-5.1/cinelerra/bdcreate.C b/cinelerra-5.1/cinelerra/bdcreate.C
index dac7e442..13a062ad 100644
--- a/cinelerra-5.1/cinelerra/bdcreate.C
+++ b/cinelerra-5.1/cinelerra/bdcreate.C
@@ -80,10 +80,10 @@ static struct bd_format {
{ "1920x1080 25i", 1920,1080, 25., 1, ILACE_MODE_TOP_FIRST },
{ "1920x1080 25p*", 1920,1080, 25., 1, ILACE_MODE_FAKE_INTERLACE },
{ "1920x1080 23.976p", 1920,1080, 23.976, 1, ILACE_MODE_NOTINTERLACED },
- { "1440x1080 29.97i", 1440,1080, 29.97, -1, ILACE_MODE_TOP_FIRST },
- { "1440x1080 25i", 1440,1080, 25., -1, ILACE_MODE_TOP_FIRST },
- { "1440x1080 24p", 1440,1080, 24., -1, ILACE_MODE_NOTINTERLACED },
- { "1440x1080 23.976p", 1440,1080, 23.976,-1, ILACE_MODE_NOTINTERLACED },
+ { "1440x1080 29.97i", 1440,1080, 29.97, 1, ILACE_MODE_TOP_FIRST },
+ { "1440x1080 25i", 1440,1080, 25., 1, ILACE_MODE_TOP_FIRST },
+ { "1440x1080 24p", 1440,1080, 24., 1, ILACE_MODE_NOTINTERLACED },
+ { "1440x1080 23.976p", 1440,1080, 23.976, 1, ILACE_MODE_NOTINTERLACED },
{ "1280x720 59.94p", 1280,720, 59.94, 1, ILACE_MODE_NOTINTERLACED },
{ "1280x720 50p", 1280,720, 50., 1, ILACE_MODE_NOTINTERLACED },
{ "1280x720 29.97p*", 1280,720, 29.97, 1, ILACE_MODE_NOTINTERLACED },
--
2.35.8
From 908cf23fde169cf834d3e8136b57820f25fbc046 Mon Sep 17 00:00:00 2001
From: Andrew Randrianasulu <[email protected]>
Date: Tue, 16 Jan 2024 09:45:51 +0300
Subject: [PATCH 2/4] Fix aspect ratio for wide BD render ?
---
cinelerra-5.1/cinelerra/bdcreate.C | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/cinelerra-5.1/cinelerra/bdcreate.C b/cinelerra-5.1/cinelerra/bdcreate.C
index 10bc496b..a3869657 100644
--- a/cinelerra-5.1/cinelerra/bdcreate.C
+++ b/cinelerra-5.1/cinelerra/bdcreate.C
@@ -432,6 +432,11 @@ int CreateBD_Thread::create_bd_jobs(ArrayList<BatchRenderJob*> *jobs, const char
FFMPEG::set_option_path(option_path, "video/%s", asset->vcodec);
FFMPEG::load_options(option_path, asset->ff_video_options,
sizeof(asset->ff_video_options));
+ char aspect_line[100];
+ float par = (float)((float)asset->width / (float)asset->height);
+ sprintf(aspect_line, "aspect=%f\n", asset->aspect_ratio/par);
+ strcat(asset->ff_video_options, aspect_line);
+ //printf("Aspect line: %s par: %f width: %i height: %i\n ", aspect_line, par, asset->width, asset->height);
asset->ff_video_bitrate = vid_bitrate;
asset->ff_video_quality = -1;
return 0;
--
2.35.8
From 8788741cc392626f3f253451d9e80e85d8267de4 Mon Sep 17 00:00:00 2001
From: Andrew Randrianasulu <[email protected]>
Date: Tue, 16 Jan 2024 09:56:01 +0300
Subject: [PATCH 3/4] Only add aspect= line to options if wide (16:9)
---
cinelerra-5.1/cinelerra/bdcreate.C | 2 ++
1 file changed, 2 insertions(+)
diff --git a/cinelerra-5.1/cinelerra/bdcreate.C b/cinelerra-5.1/cinelerra/bdcreate.C
index a3869657..dac7e442 100644
--- a/cinelerra-5.1/cinelerra/bdcreate.C
+++ b/cinelerra-5.1/cinelerra/bdcreate.C
@@ -432,11 +432,13 @@ int CreateBD_Thread::create_bd_jobs(ArrayList<BatchRenderJob*> *jobs, const char
FFMPEG::set_option_path(option_path, "video/%s", asset->vcodec);
FFMPEG::load_options(option_path, asset->ff_video_options,
sizeof(asset->ff_video_options));
+ if(session->aspect_w == 16) {
char aspect_line[100];
float par = (float)((float)asset->width / (float)asset->height);
sprintf(aspect_line, "aspect=%f\n", asset->aspect_ratio/par);
strcat(asset->ff_video_options, aspect_line);
//printf("Aspect line: %s par: %f width: %i height: %i\n ", aspect_line, par, asset->width, asset->height);
+ }
asset->ff_video_bitrate = vid_bitrate;
asset->ff_video_quality = -1;
return 0;
--
2.35.8
From 8ca40e1c620fc261ee4e92264cc031a7e1b4493e Mon Sep 17 00:00:00 2001
From: Andrew Randrianasulu <[email protected]>
Date: Tue, 16 Jan 2024 08:09:28 +0300
Subject: [PATCH 1/4] Add SD 16:9 formats to BD render ?
---
cinelerra-5.1/cinelerra/bdcreate.C | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/cinelerra-5.1/cinelerra/bdcreate.C b/cinelerra-5.1/cinelerra/bdcreate.C
index 2a9de685..10bc496b 100644
--- a/cinelerra-5.1/cinelerra/bdcreate.C
+++ b/cinelerra-5.1/cinelerra/bdcreate.C
@@ -94,6 +94,11 @@ static struct bd_format {
{ "720x576 25p*", 720,576, 25., 0, ILACE_MODE_NOTINTERLACED },
{ "720x480 29.97i", 720,480, 29.97, 0, ILACE_MODE_BOTTOM_FIRST },
{ "720x480 29.97p*", 720,480, 29.97, 0, ILACE_MODE_NOTINTERLACED },
+ { "720x576(w) 25i", 720,576, 25., 1, ILACE_MODE_BOTTOM_FIRST },
+ { "720x576(w) 25p*", 720,576, 25., 1, ILACE_MODE_NOTINTERLACED },
+ { "720x480(w) 29.97i", 720,480, 29.97, 1, ILACE_MODE_BOTTOM_FIRST },
+ { "720x480(w) 29.97p*", 720,480, 29.97, 1, ILACE_MODE_NOTINTERLACED },
+
};
static struct bd_profile {
--
2.35.8
--
Cin mailing list
[email protected]
https://lists.cinelerra-gg.org/mailman/listinfo/cin