пн, 5 июн. 2023 г., 17:14 Andrew Randrianasulu <randrianasulu@gmail.com>:


пн, 5 июн. 2023 г., 15:34 Andrew Randrianasulu <randrianasulu@gmail.com>:


пн, 5 июн. 2023 г., 15:31 Terje J. Hanssen <terjejhanssen@gmail.com>:


Den 04.06.2023 21:58, skrev Andrew Randrianasulu:


вс, 4 июн. 2023 г., 15:07 Terje J. Hanssen <terjejhanssen@gmail.com>:


Den 31.05.2023 07:24, skrev Andrew Randrianasulu via Cin:
> I ......
>
> ===
>
> 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'
>
>

Is it possible to get the mpeg2enc command line to test it with a dv
input file directly outside Cinelerra?

try line like this?

ffmpeg -i input.dv -f yuv4mpegpipe - \
 |mpeg2enc {flags and output file as shown }


Yes, this fixed the BFF issue, but still Interlaced and 4:3 format.
Stream #0:0: Video: mpeg2video (Main), yuv420p(tv, bt470bg, bottom first), 720x576 [SAR 16:15 DAR 4:3], 25 fps, 25 tbr, 1200k tbn

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.


Then you should try ffmpeg's deinterlacing and cropping before passing it to mpeg2enc.


talks about some algos on ffmpeg I never considered:

Estdif / Bwdif

TS. bwdif             V->V       Deinterlace the input image.
 TSC estdif            V->V       Apply Edge Slope Tracing deinterlace.

this one page talks about znedi3 neural network deinterlacer (need vapoursynth and nerves to debug, apparently)

http://wp.xin.at/archives/5287

mentions bwdif line like this:

-vf bwdif=”mode=send_field:deint=all:parity=bff”

next forum recommend

https://forum.mrmc.tv/viewtopic.php?t=1615

"Whenever I do any off-line deinterlacing in ffmpeg I use the video filter "w3fdif=complex:all" these days."

And shotcut users found sometimes  even "pp" subfilter may work.

https://forum.shotcut.org/t/technical-discussion-interlacing-revisited/8311

Note, I might be not fan of adding deint permanently exactly because field still not reached absolute maximum quality. What if you want to re-visit in 5 years with new state of art deinterlacing algo? I hope sources will still be around ....







Can you clarify even with my patches AND deinterlacing checkbox set in dvd creation window and "use ffmpeg" unchecked you still get interlaced?





quite amazing ffmpeg in this most basic case still works after nearly 20 years, line stolen (and modified)  from



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
http://cinelerra-cv.wikidot.com/cincv-manual-en:rendering-files#11

and is also included in Ruh's dvd guid sec. 3.4
https://www.qsl.net/n1gg/linux/video/linuxdvdguide.html#3

mpeg2enc is said to give some higher quality at high bitrate that ffmpeg.
The drawback is it is slow and audio and to be added and multiplexed


For ffmpeg as I said cingg does NOT  use command line ffmpeg, so you need to modify profile parameters in dvd.dvd file.


And preferably also a corresponding ffmpeg command line.

I had already created a .mpg video file, interlaced and bff, and it was
no better, so I think deinterlaced (progressive) will be best.

your call!

Happy coding!