Tested all patches with or without Deinterlace and with Format changed to Bottom Field First.  Everything seemed to work and created DVD media and played on player attached to TV.

Not sure about adding "-c" to the mpeg2enc but it did not cause any problems.
Thanks, I will check in to GIT the next time I boot the desktop.

On Tue, May 30, 2023 at 11:31 PM Andrew Randrianasulu <randrianasulu@gmail.com> wrote:
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
<randrianasulu@gmail.com> wrote:
>
>
>
> ср, 31 мая 2023 г., 03:30 Phyllis Smith <phylsmith2017@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 <randrianasulu@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 ...
>>>
>>>