<div dir="ltr"><div class="gmail_default" style="font-size:small">Andrew, changed to -I 2 and -z b in filempeg.C but ends up with "Error rendering data." and SIGPIPEs as shown far below. I was looking for an easy out but there appears to be none, so going back to testing ffmpeg 6.0, although that is what I have been using so really still testing by default !</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">I have not found any definitive source saying that DVDs do not handle Bottom Field First.<br></div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Cinelerra Infinity - built: May 27 2023 18:56:09<br>git://<a href="http://git.cinelerra-gg.org/goodguy/cinelerra.git">git.cinelerra-gg.org/goodguy/cinelerra.git</a><br>(c) 2006-2019 Heroine Virtual Ltd. by Adam Williams<br>2007-2020 mods for Cinelerra-GG by W.P.Morrow aka goodguy<br>Cinelerra is free software, covered by the GNU General Public License,<br>and you are welcome to change it and/or distribute copies of it under<br>certain conditions. There is absolutely no warranty for Cinelerra.<br><br>FileMPEG::open_file: Running /tmp/cinelerra-5.1/bin//mpeg2enc -v 0 -b 8000 -q 1 -a 2 -F 4 -H -I 2 -M 8 -z b -f 8 -g 15 -G 15 -R 0 -o '/tmp/dvd_20230529-182026/dvd.m2v'<br>signal_entry_recoverable: got SIGPIPE my pid=21664<br>signal_entry_recoverable: got SIGPIPE my pid=21664<br>signal_entry_recoverable: got SIGPIPE my pid=21664<br>signal_entry_recoverable: got SIGPIPE my pid=21664<br>signal_entry_recoverable: got SIGPIPE my pid=21664<br>signal_entry_recoverable: got SIGPIPE my pid=21664<br>signal_entry_recoverable: got SIGPIPE my pid=21664<br>signal_entry_recoverable: got SIGPIPE my pid=21664<br>signal_entry_recoverable: got SIGPIPE my pid=21664<br>signal_entry_recoverable: got SIGPIPE my pid=21664<br>Render::render_single: Session finished.<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, May 29, 2023 at 3:46 PM Andrew Randrianasulu <<a href="mailto:randrianasulu@gmail.com">randrianasulu@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="auto"><div><br><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">пн, 29 мая 2023 г., 23:47 Phyllis Smith <<a href="mailto:phylsmith2017@gmail.com" rel="noreferrer noreferrer" target="_blank">phylsmith2017@gmail.com</a>>:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><span class="gmail_default" style="font-size:small">More feedback to add to Andrew's reply.</span></div><div><span class="gmail_default" style="font-size:small"><br></span></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><span class="gmail_default" style="font-size:small"></span>2. Deinterlacing:</div></blockquote><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><blockquote type="cite"><div dir="auto"><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div>
<br>
The input PAL DV source file is Interlaced, Bottom Field
First<br>
<blockquote><font face="monospace">ffprobe:</font><br>
<font face="monospace"> Stream #0:0: Video: dvvideo,
none, 25000 kb/s, SAR 16:15 DAR 0:0, 25 fps, 25 tbr,
25 tbn</font><br>
<font face="monospace"> Stream #0:1: Audio:
pcm_s16le, 48000 Hz, stereo, s16, 1536 kb/s</font><br>
<font face="monospace">Unsupported codec with id 24
for input stream 0</font><br>
</blockquote>
<blockquote><font face="monospace">mediainfo:<br>
Width : 720
pixels<br>
Height : 576
pixels<br>
Color space : YUV<br>
Scan type :
Interlaced<br>
Scan order : Bottom
Field First<br>
</font></blockquote>
<br>
Why does deinterlacing with dvd default rendering
(mpeg2enc) still come out as Interlaced, but Top Field
first?<br>
</div>
</blockquote>
</div>
</div>
<div dir="auto"><br>
</div>
<div dir="auto"><br>
</div>
<div dir="auto">May be bug in mpeg2 output? Does it look
interlaced, or it just flag set wrongly?</div></div></blockquote></div></blockquote><div><span class="gmail_default" style="font-size:small">It does seem that it really is Top Field First all of the time when doing a DVD render despite whether or not the input is Top or Bottom first. I temporarily modified filempeg.C for the "mpegenc" line to change the -I parameter from 1 to 2 as in:</span></div><div><span class="gmail_default" style="font-size:small"> Running /tmp/cinelerra-5.1/bin//mpeg2enc -v 0 -b 8000 -q 1 -a 2 -F 4 -H <b>-I 1</b> -M 8 -z t -f 8 -g 15 -G 15 -R 0 -o '/tmp/dvd_20230529-140337/dvd.m2v'</span></div></div></div></blockquote></div></div><div dir="auto"><br></div><div dir="auto"><br></div><div dir="auto">try also to change " -z b" as recommended by manual</div><div dir="auto"><br></div><div dir="auto"><p><b>-z|--playback-field-order</b> b|t
</p><p>This flag overrides the field-order specified in the interlacing
tag of the input stream header. (If you need this option, it indicates a
problem in the
capturing/encoding process where the temporal order of the two fields in
each frame has been mislabeled. The effect of this is weird "juddering"
when playing
back the stream on a TV. Check the mjpeg-howto for more information
about interlacing problems.) </p><p><br></p><p>===</p><p><br></p><p>Also interesting settings are </p><p><br></p><p><b>-c|--closed-GOPs</b>
</p><p>Setting this flag causes the encoder to generate only "closed"
GOPs (Groups of Pictures) that can be decoded without reference to their
predecessor. This is
useful for streams that are supposed to be used in multi-angle DVD's and
applications where more easily edittable MPEG is required.
</p><p><b>-P|--force-b-b-p</b>
</p><p>This flag forces the GOP size selection to choose sizes that
ensure 2 B frames appear between adjacent I/P frames. Several common
MPEG-1 decoders can't
handle streams where less than 2 B-frames appear between I/P frames. </p><p><br></p><p>but be sure you modify correct profiles ...</p><p><br></p><p>Also, not sure if consumer DV especially can be bottom field first? Still, getting this setting from session parameters probably important , will look more into code ...</p><p><br></p></div><div dir="auto"><br></div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_quote"><div><span class="gmail_default" style="font-size:small"><br></span></div><div><span class="gmail_default" style="font-size:small">but that leads to a SIGPIPE and/or hangs in Cinelerra and when I run manually. I am not even sure that "-I 2" really preserves Bottom Field First as I can not tell from the documentation (Andrew?). Documentation on mpeg2enc is at:</span></div><div><span class="gmail_default" style="font-size:small"> <a href="https://linux.die.net/man/1/mpeg2enc" rel="noreferrer noreferrer noreferrer" target="_blank">https://linux.die.net/man/1/mpeg2enc</a></span></div><div><span class="gmail_default" style="font-size:small">specifically:</span></div><div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span class="gmail_default" style="font-size:small"></span><b>-I|--interlace-mode</b> 0|1|2
<p>Set the sequence picture structure and block encoding type for
MPEG-2 streams. By default, this value is inferred from the interlacing
tag of the input
stream. Setting 0 encodes frame-by-frame with support for interlaced
video turned off, and specifies that progressive chroma subsampling has
been used. Setting
1 encodes frame-by-frame with interlace-adapted motion compensation and
block encoding, and specifies that interlaced chroma subsampling has
been used. Setting
<b>2</b> encodes interlaced material field-by-field, which will produce more
accurate results for highly textured interlaced material with lots of
motion, at the
expense of generally less efficiency.
</p></blockquote><div> </div></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><blockquote type="cite"><div dir="auto">
</div>
</blockquote>
<br>
But the result is visually better than without deinterlacing, which
is awful jagged at camera movements zoom/pan, at least on my
2560x1440 res monitor using VLC.<br></div></blockquote><div><span class="gmail_default" style="font-size:small">I do not understand the above sentence. Which result is better? with deinterlacing or without deinterlacing?</span> <span class="gmail_default" style="font-size:small">So Progressive is better? which makes more sense to me in this day and age. As far as I read on the internet, DVDs can be either Progressive or Interlaced.</span></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><blockquote type="cite"><div dir="auto"><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div>3. Dvd Interlaced Chroma <br>
<br>
With reference to the CinGG manual<br>
<a href="https://cinelerra-gg.org/download/CinelerraGG_Manual/Dvd_Interlaced_Chroma.html" rel="noreferrer noreferrer noreferrer noreferrer noreferrer noreferrer" target="_blank">https://cinelerra-gg.org/download/CinelerraGG_Manual/Dvd_Interlaced_Chroma.html</a><br>
<br>
<blockquote><i>Now you can use the YUV420P DVD Interlace
Mode when rendering DV directly to mpeg2 through a
yuv4mpeg stream and when using video effects on HDV
video.</i><br>
<i>With this option enabled, improved chroma results
will be obtained from your DV or HDV source. Editing
DV or HDV and rendering it back to the same format
does not require any special handling. In order to
perform colorspace conversions correctly in
CINELERRA-GG and avoid Chroma errors for interlaced
4:2:0 video, check the box as follows:</i><br>
<br>
Settings → Performance → YUV420P DVD Interlace Mode <br>
</blockquote>
<br>
I can't find this option and is it relevant for DVD
rendering?<br>
</div>
</blockquote>
</div>
</div>
<div dir="auto"><br>
</div>
<div dir="auto"><br>
</div>
<div dir="auto"><br>
</div>
<div dir="auto">Its in Interface section ..</div>
<div dir="auto"><br>
</div>
<div dir="auto">I can attach screenshot separately.</div>
</div>
</blockquote>
<br>
Thx, I found it. Then there is a need to correct this in the manual.<br></div></blockquote><div><span class="gmail_default" style="font-size:small">Fixed this and checked into GIT for the manual (which will only be updated with the next release).</span></div><div><span class="gmail_default" style="font-size:small"></span> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div>
Wonder if there is a reason why YUV420P DVD Interlace Mode is not
set as default?<br></div></blockquote><div><span class="gmail_default" style="font-size:small">It is used in "filempeg.C"</span> <span class="gmail_default" style="font-size:small">and it is safer to not assume that it is needed. Read simple example/explanation at:</span></div><div><span class="gmail_default" style="font-size:small"></span></div><div> <span class="gmail_default" style="font-size:small"> </span><a href="https://renomath.org/ejolson/video/dv/chroma.html" rel="noreferrer noreferrer noreferrer" target="_blank">https://renomath.org/ejolson/video/dv/chroma.html</a></div></div></div>
</blockquote></div></div></div>
</blockquote></div>