<div dir="auto"><div><br><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">пн, 5 июн. 2023 г., 20:18 Terje J. Hanssen <<a href="mailto:terjejhanssen@gmail.com">terjejhanssen@gmail.com</a>>:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>
<br>
<br>
<div>Den 05.06.2023 16:14, skrev Andrew
Randrianasulu:<br>
</div>
<blockquote type="cite">
<div dir="auto">
<div><br>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">пн, 5 июн. 2023 г., 15:34
Andrew Randrianasulu <<a href="mailto:randrianasulu@gmail.com" rel="noreferrer
noreferrer noreferrer noreferrer" target="_blank">randrianasulu@gmail.com</a>>:<br>
</div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="auto">
<div><br>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">пн, 5 июн. 2023
г., 15:31 Terje J. Hanssen <<a href="mailto:terjejhanssen@gmail.com" rel="noreferrer noreferrer noreferrer
noreferrer noreferrer" target="_blank">terjejhanssen@gmail.com</a>>:<br>
</div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div> <br>
<br>
<div>Den 04.06.2023 21:58, skrev Andrew
Randrianasulu:<br>
</div>
<blockquote type="cite">
<div dir="auto">
<div><br>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">вс, 4
июн. 2023 г., 15:07 Terje J. Hanssen
<<a href="mailto:terjejhanssen@gmail.com" rel="noreferrer noreferrer
noreferrer noreferrer noreferrer
noreferrer noreferrer" target="_blank">terjejhanssen@gmail.com</a>>:<br>
</div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
<br>
Den 31.05.2023 07:24, skrev Andrew
Randrianasulu via Cin:<br>
> I ......<br>
><br>
> ===<br>
><br>
> and mpeg2enc line looked like
this<br>
><br>
> FileMPEG::open_file: Running<br>
>
/dev/shm/cinelerra/cinelerra-5.1/bin//mpeg2enc
-v 0 -b 8000 -q 1 -a 2<br>
> -F 3 -H -c -I 1 -M 4 -z b -f 8 -g
15 -G 15 -R 0 -o<br>
>
'/dev/shm/tmp/dvd_20230531-081921/dvd.m2v'<br>
><br>
><br>
<br>
Is it possible to get the mpeg2enc
command line to test it with a dv <br>
input file directly outside Cinelerra?<br>
</blockquote>
</div>
</div>
<div dir="auto"><br>
</div>
<div dir="auto">try line like this?</div>
<div dir="auto"><br>
</div>
<div dir="auto">
<pre>ffmpeg -i input.dv -f yuv4mpegpipe - \</pre>
<pre> |mpeg2enc {flags and output file as shown }</pre>
</div>
<div dir="auto"><br>
</div>
</div>
</blockquote>
<br>
Yes, this fixed the BFF issue, but still
Interlaced and 4:3 format.<br>
Stream #0:0: Video: mpeg2video (Main),
yuv420p(tv, bt470bg, bottom first), 720x576 [SAR
16:15 DAR 4:3], 25 fps, 25 tbr, 1200k tbn<br>
<br>
What I want is to get and try Progressive and
16:9 wide format. By cropping 720x576 to
720x405, bottom 65 and top 106 (top) preserves
the displayed timestam at bottom.<br>
</div>
</blockquote>
</div>
</div>
<div dir="auto"><br>
</div>
<div dir="auto"><br>
</div>
<div dir="auto">Then you should try ffmpeg's
deinterlacing and cropping before passing it to
mpeg2enc.</div>
</div>
</blockquote>
</div>
</div>
</div>
</blockquote>
<br>
I tried <br>
ffmpeg -i dv01.dv -aspect 16:9 -vf crop=iw-0-0:ih-106-65:0:106 -f
yuv4mpegpipe -<br>
that resulted in interlaced bff:<br>
Stream #0:0: Video: mpeg2video (Main), yuv420p(tv, bt470bg, bottom
first), 720x404 [SAR 101:135 DAR 4:3], 25 fps, 25 tbr, 1200k tbn<br></div></blockquote></div></div><div dir="auto"><br></div><div dir="auto">I think mpeg2enc part of full cmd line need their own tweaks relative to one you get from cingg, for progressive and aspect ratio corrected output .....</div><div dir="auto"><br></div><div dir="auto"><br></div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>
<br>
In comparision the ffmpeg command line I have used is:<br>
ffmpeg -i dv01.dv -f dvd -target pal-dvd -aspect 16:9 -vb 8000k
-mbd rd -trellis 1 -cmp 0 -subcmp 2 -vf crop=iw-0-0:ih-106-65:0:106
dvd-wide-dv01.mpg<br>
which results in progressive and DAR 16:9, but still not so good
edge quality<br>
<br>
Stream #0:0[0x1bf]: Data: dvd_nav_packet<br>
Stream #0:1[0x1e0]: Video: mpeg2video (Main), yuv420p(tv,
progressive), 720x576 [SAR 64:45 DAR 16:9], 25 fps, 25 tbr, 90k tbn<br>
Side data:<br>
cpb: bitrate max/min/avg: 9000000/0/0 buffer size: 1835008
vbv_delay: N/A<br>
Stream #0:2[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 448 kb/s<br>
Unsupported codec with id 98312 for input stream 0<br>
<br>
<br>
<br>
<blockquote type="cite">
<div dir="auto">
<div dir="auto"><br>
</div>
<div dir="auto"><a href="http://macilatthefront.blogspot.com/2021/05/which-deinterlacing-algorithm-is-best.html?m=1" rel="noreferrer noreferrer noreferrer noreferrer" target="_blank">http://macilatthefront.blogspot.com/2021/05/which-deinterlacing-algorithm-is-best.html?m=1</a><br>
</div>
<div dir="auto"><br>
</div>
<div dir="auto">talks about some algos on ffmpeg I never
considered:</div>
<div dir="auto"><br>
</div>
<div dir="auto">
<h3><span style="font-size:21.06px">Estdif / </span>Bwdif</h3>
<div dir="auto">
<div dir="auto">TS. bwdif V->V
Deinterlace the input image.</div>
<div dir="auto"> TSC estdif V->V Apply
Edge Slope Tracing deinterlace.</div>
</div>
<div dir="auto"><br>
</div>
</div>
<div dir="auto"><br>
</div>
</div>
</blockquote>
<br>
Yes, of interest if I knew how to put this into the ffmpeg command
line above, with reference to the blog:<br>
<i><b>Bwdif (FFMPEG): </b></i><i>Good at reconstructing smooth lines
and retaining overall image detail with SD content, faster than
QTGMC but not as good.<br>
</i><i><b><a href="https://macilatthefront.blogspot.com/2021/01/deinterlacing-with-avisynth-and-qtgmc.html" target="_blank" rel="noreferrer">QTGMC</a>:</b>
Best retention of original image detail and handling of edge case
artifacts,<br>
<br>
</i>
<blockquote type="cite">
<div dir="auto">
<div dir="auto">
<div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="auto">
<div dir="auto"><br>
</div>
<div dir="auto"><br>
</div>
<div dir="auto">Can you clarify even with my patches AND
deinterlacing checkbox set in dvd creation window and
"use ffmpeg" unchecked you still get interlaced?</div>
<div dir="auto"><br>
</div>
<div dir="auto"><br>
</div>
</div>
</blockquote>
</div>
</div>
</div>
</blockquote>
<br>
I can do it, when it is included with the next Cin apps.<br>
<br>
<blockquote type="cite">
<div dir="auto">
<div dir="auto">
<div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="auto">
<div dir="auto"><br>
</div>
<div dir="auto">
<div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div> <br>
<br>
<blockquote type="cite">
<div dir="auto">
<div dir="auto">quite amazing ffmpeg in this
most basic case still works after nearly
20 years, line stolen (and modified) from</div>
<div dir="auto"><br>
</div>
<div dir="auto"><a href="https://avva.livejournal.com/1188593.html" rel="noreferrer noreferrer noreferrer
noreferrer noreferrer noreferrer" target="_blank">https://avva.livejournal.com/1188593.html</a><br>
</div>
<div dir="auto"><br>
</div>
<div dir="auto"><br>
</div>
</div>
</blockquote>
Creating DVD with typical ffmpeg decoding to raw
video piped to mpeg2enc for encoding has been
the usual way as described in the Cin-CV manual
<br>
<a href="http://cinelerra-cv.wikidot.com/cincv-manual-en:rendering-files#11" rel="noreferrer noreferrer noreferrer
noreferrer noreferrer noreferrer" target="_blank">http://cinelerra-cv.wikidot.com/cincv-manual-en:rendering-files#11</a><br>
<br>
and is also included in Ruh's dvd guid sec. 3.4<br>
<a href="https://www.qsl.net/n1gg/linux/video/linuxdvdguide.html#3" rel="noreferrer noreferrer noreferrer
noreferrer noreferrer noreferrer" target="_blank">https://www.qsl.net/n1gg/linux/video/linuxdvdguide.html#3</a><br>
<br>
mpeg2enc is said to give some higher quality at
high bitrate that ffmpeg.<br>
The drawback is it is slow and audio and to be
added and multiplexed<br>
<br>
<br>
<blockquote type="cite">
<div dir="auto">
<div dir="auto">For ffmpeg as I said cingg
does NOT use command line ffmpeg, so you
need to modify profile parameters in
dvd.dvd file.</div>
<div dir="auto"><br>
</div>
<div dir="auto"><br>
</div>
</div>
</blockquote>
<blockquote type="cite">
<div dir="auto">
<div dir="auto">
<div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"> And
preferably also a corresponding ffmpeg
command line.<br>
<br>
I had already created a .mpg video
file, interlaced and bff, and it was <br>
no better, so I think deinterlaced
(progressive) will be best.<br>
</blockquote>
</div>
</div>
<div dir="auto"><br>
</div>
<div dir="auto">your call!</div>
<div dir="auto"><br>
</div>
<div dir="auto">Happy coding!</div>
<div dir="auto">
<div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"> <br>
<br>
<br>
</blockquote>
</div>
</div>
</div>
</blockquote>
<br>
</div>
</blockquote>
</div>
</div>
</div>
</blockquote>
</div>
</div>
</div>
</blockquote>
<br>
</div>
</blockquote></div></div></div>