I am very sorry, there was crasher in patch 2! Nw it works as intended at least mediainfo says (after I set format manually to BFF))
mediainfo /dev/shm/tmp/dvd_20230531-081921/dvd.mpg General Complete name : /dev/shm/tmp/dvd_20230531-081921/dvd.mpg Format : MPEG-PS File size : 5.19 MiB Duration : 5 s 240 ms Overall bit rate mode : Variable Overall bit rate : 8 311 kb/s Video ID : 224 (0xE0) Format : MPEG Video Format version : Version 2 Format profile : Main@Main Format settings : CustomMatrix Format settings, BVOP : No Format settings, Matrix : Custom Format settings, GOP : N=15 Format settings, picture structure : Frame Duration : 5 s 240 ms Bit rate mode : Variable Bit rate : 8 000 kb/s Width : 720 pixels Height : 576 pixels Display aspect ratio : 4:3 Frame rate : 25.000 FPS Standard : PAL Color space : YUV Chroma subsampling : 4:2:0 Bit depth : 8 bits Scan type : Interlaced Scan order : Bottom Field First Compression mode : Lossy Bits/(Pixel*Frame) : 0.772 Time code of first frame : 00:00:00:00 Time code source : Group of pictures header GOP, Open/Closed : Closed Stream size : 4.95 MiB (95%) Color primaries : BT.601 PAL Transfer characteristics : BT.470 System B/G Matrix coefficients : BT.470 System B/G === and mpeg2enc line looked like this FileMPEG::open_file: Running /dev/shm/cinelerra/cinelerra-5.1/bin//mpeg2enc -v 0 -b 8000 -q 1 -a 2 -F 3 -H -c -I 1 -M 4 -z b -f 8 -g 15 -G 15 -R 0 -o '/dev/shm/tmp/dvd_20230531-081921/dvd.m2v' On Wed, May 31, 2023 at 5:04 AM Andrew Randrianasulu <randrianas...@gmail.com> wrote: > > > > ср, 31 мая 2023 г., 03:30 Phyllis Smith <phylsmith2...@gmail.com>: >> >> Andrew, I applied these on my ffmpeg 6.0 version but have no results yet -- >> have not tried anything different but the default works just like before. >> More later. > > > Be sure to set session interlace mode in Format ... > Of course there is possibility I set those params in wrong order .. :/ >> >> >> On Mon, May 29, 2023 at 7:26 PM Andrew Randrianasulu >> <randrianas...@gmail.com> wrote: >>> >>> I tried to add few more flags to filempeg encoder settings, not touching -I >>> (as in Interlace, not small "l" as in level) for now >>> >>> I also tried to get interlace info from both session interlace mode and >>> deinterlace checkbox ... >>> >>>
From f0b7c9098c168ca2bc445df239258364b660e435 Mon Sep 17 00:00:00 2001 From: Andrew Randrianasulu <randrianas...@gmail.com> Date: Tue, 30 May 2023 04:20:47 +0300 Subject: [PATCH 2/3] Experimental: try to pass interlacing info for mpeg2/dvdcreate --- cinelerra-5.1/cinelerra/dvdcreate.C | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/cinelerra-5.1/cinelerra/dvdcreate.C b/cinelerra-5.1/cinelerra/dvdcreate.C index 52722841..9e7e589b 100644 --- a/cinelerra-5.1/cinelerra/dvdcreate.C +++ b/cinelerra-5.1/cinelerra/dvdcreate.C @@ -28,6 +28,7 @@ #include "edlsession.h" #include "file.h" #include "filexml.h" +#include "interlacemodes.h" #include "keyframe.h" #include "labels.h" #include "mainerror.h" @@ -466,12 +467,17 @@ int CreateDVD_Thread::create_dvd_jobs(ArrayList<BatchRenderJob*> *jobs, const ch asset->vmpeg_bitrate = vid_bitrate; asset->vmpeg_quantization = 15; asset->vmpeg_iframe_distance = 15; - asset->vmpeg_progressive = 0; + if(session->interlace_mode == ILACE_MODE_NOTINTERLACED || gui->thread->use_deinterlace) + { asset->vmpeg_progressive = 1; } else { + asset->vmpeg_progressive = 0; } asset->vmpeg_denoise = 0; asset->vmpeg_seq_codes = 0; asset->vmpeg_derivative = 2; asset->vmpeg_preset = 8; asset->vmpeg_field_order = 0; + if(session->interlace_mode == ILACE_MODE_BOTTOM_FIRST && !gui->thread->use_deinterlace) + { asset->vmpeg_field_order = 1; } + asset->vmpeg_field_order = 0; asset->vmpeg_pframe_distance = 0; use_farmed = job->farmed; job = new BatchRenderJob(mwindow->preferences, 0, 0); -- 2.35.7
From ca961e420f6160c7c1b5dfa2ec378775998cacea Mon Sep 17 00:00:00 2001 From: Andrew Randrianasulu <randrianas...@gmail.com> Date: Tue, 30 May 2023 02:53:07 +0300 Subject: [PATCH 1/3] Experimental: Add some more options to filempeg --- cinelerra-5.1/cinelerra/filempeg.C | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/cinelerra-5.1/cinelerra/filempeg.C b/cinelerra-5.1/cinelerra/filempeg.C index c728036a..49dfedea 100644 --- a/cinelerra-5.1/cinelerra/filempeg.C +++ b/cinelerra-5.1/cinelerra/filempeg.C @@ -632,6 +632,28 @@ int FileMPEG::open_file(int rd, int wr) sprintf(string, " -V 500"); strncat(mjpeg_command, string, sizeof(mjpeg_command)); } + + if(asset->vmpeg_preset == 13) /* set high profile for 1080 */ + { + sprintf(string, " -l high"); + strncat(mjpeg_command, string, sizeof(mjpeg_command)); + } + + if(asset->vmpeg_preset == 6) /* set -T for vcd */ + { + sprintf(string, " -T 35"); + strncat(mjpeg_command, string, sizeof(mjpeg_command)); + } + + if(asset->vmpeg_preset == 7) /* set -T for svcd */ + { + sprintf(string, " -T 120"); + strncat(mjpeg_command, string, sizeof(mjpeg_command)); + } + + sprintf(string, " -c"); /* set closed gop */ + strncat(mjpeg_command, string, sizeof(mjpeg_command)); + strncat(mjpeg_command, asset->vmpeg_progressive ? " -I 0" : " -I 1", -- 2.35.7
From bc0b176a7c754a2660656b6021bdccc2fda62708 Mon Sep 17 00:00:00 2001 From: Andrew Randrianasulu <randrianas...@gmail.com> Date: Wed, 31 May 2023 08:20:23 +0300 Subject: [PATCH 3/3] Experimental: Fix dvd bottom field first setting --- cinelerra-5.1/cinelerra/dvdcreate.C | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cinelerra-5.1/cinelerra/dvdcreate.C b/cinelerra-5.1/cinelerra/dvdcreate.C index 9e7e589b..ac9f5fdd 100644 --- a/cinelerra-5.1/cinelerra/dvdcreate.C +++ b/cinelerra-5.1/cinelerra/dvdcreate.C @@ -467,7 +467,7 @@ int CreateDVD_Thread::create_dvd_jobs(ArrayList<BatchRenderJob*> *jobs, const ch asset->vmpeg_bitrate = vid_bitrate; asset->vmpeg_quantization = 15; asset->vmpeg_iframe_distance = 15; - if(session->interlace_mode == ILACE_MODE_NOTINTERLACED || gui->thread->use_deinterlace) + if(session->interlace_mode == ILACE_MODE_NOTINTERLACED || use_deinterlace) { asset->vmpeg_progressive = 1; } else { asset->vmpeg_progressive = 0; } asset->vmpeg_denoise = 0; @@ -475,9 +475,9 @@ int CreateDVD_Thread::create_dvd_jobs(ArrayList<BatchRenderJob*> *jobs, const ch asset->vmpeg_derivative = 2; asset->vmpeg_preset = 8; asset->vmpeg_field_order = 0; - if(session->interlace_mode == ILACE_MODE_BOTTOM_FIRST && !gui->thread->use_deinterlace) - { asset->vmpeg_field_order = 1; } - asset->vmpeg_field_order = 0; + if(session->interlace_mode == ILACE_MODE_BOTTOM_FIRST && !use_deinterlace) + { asset->vmpeg_field_order = 1; } else { + asset->vmpeg_field_order = 0; } asset->vmpeg_pframe_distance = 0; use_farmed = job->farmed; job = new BatchRenderJob(mwindow->preferences, 0, 0); -- 2.35.7
-- Cin mailing list Cin@lists.cinelerra-gg.org https://lists.cinelerra-gg.org/mailman/listinfo/cin