dvdcreate and filempeg patches
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 ...
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. On Mon, May 29, 2023 at 7:26 PM Andrew Randrianasulu < [email protected]> 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 ...
ср, 31 мая 2023 г., 03:30 Phyllis Smith <[email protected]>:
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 < [email protected]> 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 ...
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 <[email protected]> wrote:
ср, 31 мая 2023 г., 03:30 Phyllis Smith <[email protected]>:
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 <[email protected]> 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 ...
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 < [email protected]> 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 <[email protected]> wrote:
ср, 31 мая 2023 г., 03:30 Phyllis Smith <[email protected]>:
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 <
[email protected]> 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 ...
сб, 3 июн. 2023 г., 02:07 Phyllis Smith <[email protected]>:
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.
"c" sets Closed GOP, not critical but some Windows authoring softwares and guides recommend it. 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 < [email protected]> 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 <[email protected]> wrote:
ср, 31 мая 2023 г., 03:30 Phyllis Smith <[email protected]>:
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 <
[email protected]> 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 ...
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? 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.
вс, 4 июн. 2023 г., 15:07 Terje J. Hanssen <[email protected]>:
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 } quite amazing ffmpeg in this most basic case still works after nearly 20 years, line stolen (and modified) from https://avva.livejournal.com/1188593.html 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!
Den 04.06.2023 21:58, skrev Andrew Randrianasulu:
вс, 4 июн. 2023 г., 15:07 Terje J. Hanssen <[email protected]>:
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.
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!
пн, 5 июн. 2023 г., 15:31 Terje J. Hanssen <[email protected]>:
Den 04.06.2023 21:58, skrev Andrew Randrianasulu:
вс, 4 июн. 2023 г., 15:07 Terje J. Hanssen <[email protected]>:
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. 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
https://avva.livejournal.com/1188593.html
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!
пн, 5 июн. 2023 г., 15:34 Andrew Randrianasulu <[email protected]>:
пн, 5 июн. 2023 г., 15:31 Terje J. Hanssen <[email protected]>:
Den 04.06.2023 21:58, skrev Andrew Randrianasulu:
вс, 4 июн. 2023 г., 15:07 Terje J. Hanssen <[email protected]>:
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.
http://macilatthefront.blogspot.com/2021/05/which-deinterlacing-algorithm-is... 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.
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
https://avva.livejournal.com/1188593.html
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!
пн, 5 июн. 2023 г., 17:14 Andrew Randrianasulu <[email protected]>:
пн, 5 июн. 2023 г., 15:34 Andrew Randrianasulu <[email protected]>:
пн, 5 июн. 2023 г., 15:31 Terje J. Hanssen <[email protected]>:
Den 04.06.2023 21:58, skrev Andrew Randrianasulu:
вс, 4 июн. 2023 г., 15:07 Terje J. Hanssen <[email protected]>:
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.
http://macilatthefront.blogspot.com/2021/05/which-deinterlacing-algorithm-is...
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
https://avva.livejournal.com/1188593.html
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!
Den 05.06.2023 16:14, skrev Andrew Randrianasulu:
пн, 5 июн. 2023 г., 15:34 Andrew Randrianasulu <[email protected]>:
пн, 5 июн. 2023 г., 15:31 Terje J. Hanssen <[email protected]>:
Den 04.06.2023 21:58, skrev Andrew Randrianasulu:
вс, 4 июн. 2023 г., 15:07 Terje J. Hanssen <[email protected]>:
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.
I tried ffmpeg -i dv01.dv -aspect 16:9 -vf crop=iw-0-0:ih-106-65:0:106 -f yuv4mpegpipe - that resulted in interlaced bff: Stream #0:0: Video: mpeg2video (Main), yuv420p(tv, bt470bg, bottom first), 720x404 [SAR 101:135 DAR 4:3], 25 fps, 25 tbr, 1200k tbn In comparision the ffmpeg command line I have used is: 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 which results in progressive and DAR 16:9, but still not so good edge quality Stream #0:0[0x1bf]: Data: dvd_nav_packet Stream #0:1[0x1e0]: Video: mpeg2video (Main), yuv420p(tv, progressive), 720x576 [SAR 64:45 DAR 16:9], 25 fps, 25 tbr, 90k tbn Side data: cpb: bitrate max/min/avg: 9000000/0/0 buffer size: 1835008 vbv_delay: N/A Stream #0:2[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 448 kb/s Unsupported codec with id 98312 for input stream 0
http://macilatthefront.blogspot.com/2021/05/which-deinterlacing-algorithm-is...
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.
Yes, of interest if I knew how to put this into the ffmpeg command line above, with reference to the blog: /*Bwdif (FFMPEG): *//Good at reconstructing smooth lines and retaining overall image detail with SD content, faster than QTGMC but not as good. //*QTGMC <https://macilatthefront.blogspot.com/2021/01/deinterlacing-with-avisynth-and-qtgmc.html>:* Best retention of original image detail and handling of edge case artifacts, /
Can you clarify even with my patches AND deinterlacing checkbox set in dvd creation window and "use ffmpeg" unchecked you still get interlaced?
I can do it, when it is included with the next Cin apps.
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!
пн, 5 июн. 2023 г., 20:18 Terje J. Hanssen <[email protected]>:
Den 05.06.2023 16:14, skrev Andrew Randrianasulu:
пн, 5 июн. 2023 г., 15:34 Andrew Randrianasulu <[email protected]>:
пн, 5 июн. 2023 г., 15:31 Terje J. Hanssen <[email protected]>:
Den 04.06.2023 21:58, skrev Andrew Randrianasulu:
вс, 4 июн. 2023 г., 15:07 Terje J. Hanssen <[email protected]>:
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.
I tried ffmpeg -i dv01.dv -aspect 16:9 -vf crop=iw-0-0:ih-106-65:0:106 -f yuv4mpegpipe - that resulted in interlaced bff: Stream #0:0: Video: mpeg2video (Main), yuv420p(tv, bt470bg, bottom first), 720x404 [SAR 101:135 DAR 4:3], 25 fps, 25 tbr, 1200k tbn
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 .....
In comparision the ffmpeg command line I have used is: 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 which results in progressive and DAR 16:9, but still not so good edge quality
Stream #0:0[0x1bf]: Data: dvd_nav_packet Stream #0:1[0x1e0]: Video: mpeg2video (Main), yuv420p(tv, progressive), 720x576 [SAR 64:45 DAR 16:9], 25 fps, 25 tbr, 90k tbn Side data: cpb: bitrate max/min/avg: 9000000/0/0 buffer size: 1835008 vbv_delay: N/A Stream #0:2[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 448 kb/s Unsupported codec with id 98312 for input stream 0
http://macilatthefront.blogspot.com/2021/05/which-deinterlacing-algorithm-is...
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.
Yes, of interest if I knew how to put this into the ffmpeg command line above, with reference to the blog: *Bwdif (FFMPEG): * *Good at reconstructing smooth lines and retaining overall image detail with SD content, faster than QTGMC but not as good. *
*QTGMC <https://macilatthefront.blogspot.com/2021/01/deinterlacing-with-avisynth-and-qtgmc.html>: Best retention of original image detail and handling of edge case artifacts, *
Can you clarify even with my patches AND deinterlacing checkbox set in dvd creation window and "use ffmpeg" unchecked you still get interlaced?
I can do it, when it is included with the next Cin apps.
quite amazing ffmpeg in this most basic case still works after nearly 20 years, line stolen (and modified) from
https://avva.livejournal.com/1188593.html
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!
пн, 5 июн. 2023 г., 20:23 Andrew Randrianasulu <[email protected]>:
пн, 5 июн. 2023 г., 20:18 Terje J. Hanssen <[email protected]>:
Den 05.06.2023 16:14, skrev Andrew Randrianasulu:
пн, 5 июн. 2023 г., 15:34 Andrew Randrianasulu <[email protected]>:
пн, 5 июн. 2023 г., 15:31 Terje J. Hanssen <[email protected]>:
Den 04.06.2023 21:58, skrev Andrew Randrianasulu:
вс, 4 июн. 2023 г., 15:07 Terje J. Hanssen <[email protected]>:
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.
I tried ffmpeg -i dv01.dv -aspect 16:9 -vf crop=iw-0-0:ih-106-65:0:106 -f yuv4mpegpipe - that resulted in interlaced bff: Stream #0:0: Video: mpeg2video (Main), yuv420p(tv, bt470bg, bottom first), 720x404 [SAR 101:135 DAR 4:3], 25 fps, 25 tbr, 1200k tbn
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 .....
In comparision the ffmpeg command line I have used is: 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 which results in progressive and DAR 16:9, but still not so good edge quality
May be "progressive" here is error, and ffmpeg still encodes interlaced-as-progressive, so VLC for example does not enable deinterlacer at playback automatically? Have you tried to add interlaced flags manually to ffmpeg's command line? Did you also tried to force deinterlacer in VLC? (or may be xine). I hope my next mail contain enough of filtering lines for you to try after interlaced crop.
Stream #0:0[0x1bf]: Data: dvd_nav_packet Stream #0:1[0x1e0]: Video: mpeg2video (Main), yuv420p(tv, progressive), 720x576 [SAR 64:45 DAR 16:9], 25 fps, 25 tbr, 90k tbn Side data: cpb: bitrate max/min/avg: 9000000/0/0 buffer size: 1835008 vbv_delay: N/A Stream #0:2[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 448 kb/s Unsupported codec with id 98312 for input stream 0
http://macilatthefront.blogspot.com/2021/05/which-deinterlacing-algorithm-is...
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.
Yes, of interest if I knew how to put this into the ffmpeg command line above, with reference to the blog: *Bwdif (FFMPEG): * *Good at reconstructing smooth lines and retaining overall image detail with SD content, faster than QTGMC but not as good. *
*QTGMC <https://macilatthefront.blogspot.com/2021/01/deinterlacing-with-avisynth-and-qtgmc.html>: Best retention of original image detail and handling of edge case artifacts, *
Can you clarify even with my patches AND deinterlacing checkbox set in dvd creation window and "use ffmpeg" unchecked you still get interlaced?
I can do it, when it is included with the next Cin apps.
quite amazing ffmpeg in this most basic case still works after nearly 20 years, line stolen (and modified) from
https://avva.livejournal.com/1188593.html
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!
Den 05.06.2023 20:51, skrev Andrew Randrianasulu:
пн, 5 июн. 2023 г., 20:23 Andrew Randrianasulu <[email protected]>:
пн, 5 июн. 2023 г., 20:18 Terje J. Hanssen <[email protected]>:
Den 05.06.2023 16:14, skrev Andrew Randrianasulu:
пн, 5 июн. 2023 г., 15:34 Andrew Randrianasulu <[email protected]>:
пн, 5 июн. 2023 г., 15:31 Terje J. Hanssen <[email protected]>:
Den 04.06.2023 21:58, skrev Andrew Randrianasulu:
вс, 4 июн. 2023 г., 15:07 Terje J. Hanssen <[email protected]>:
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.
I tried ffmpeg -i dv01.dv -aspect 16:9 -vf crop=iw-0-0:ih-106-65:0:106 -f yuv4mpegpipe - that resulted in interlaced bff: Stream #0:0: Video: mpeg2video (Main), yuv420p(tv, bt470bg, bottom first), 720x404 [SAR 101:135 DAR 4:3], 25 fps, 25 tbr, 1200k tbn
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 .....
Here were a lot to sort out: The dvd-wide-ffmpeg+mpeg2enc.m2v from here is also scaled or streched too high in vertical direction. VLC deinterlaced on playback (keyboard D) on interlaced m2v gives better quality.
In comparision the ffmpeg command line I have used is: 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: which results in progressive and DAR 16:9, but still not so good edge quality
May be "progressive" here is error, and ffmpeg still encodes interlaced-as-progressive, so VLC for example does not enable deinterlacer at playback automatically?
VLC Deinterlaced ON playback of Progressive dvd-wide-dv01.mpg results in more coarced jagged or saw-toothed round edges
Have you tried to add interlaced flags manually to ffmpeg's command line?
-flags +ilme+ildct gives interlaced bff
Did you also tried to force deinterlacer in VLC? (or may be xine).
I hope my next mail contain enough of filtering lines for you to try after interlaced crop.
Stream #0:0[0x1bf]: Data: dvd_nav_packet Stream #0:1[0x1e0]: Video: mpeg2video (Main), yuv420p(tv, progressive), 720x576 [SAR 64:45 DAR 16:9], 25 fps, 25 tbr, 90k tbn Side data: cpb: bitrate max/min/avg: 9000000/0/0 buffer size: 1835008 vbv_delay: N/A Stream #0:2[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 448 kb/s Unsupported codec with id 98312 for input stream 0
http://macilatthefront.blogspot.com/2021/05/which-deinterlacing-algorithm-is...
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.
Yes, of interest if I knew how to put this into the ffmpeg command line above, with reference to the blog: /*Bwdif (FFMPEG): *//Good at reconstructing smooth lines and retaining overall image detail with SD content, faster than QTGMC but not as good. //*QTGMC <https://macilatthefront.blogspot.com/2021/01/deinterlacing-with-avisynth-and-qtgmc.html>:* Best retention of original image detail and handling of edge case artifacts,
/
Can you clarify even with my patches AND deinterlacing checkbox set in dvd creation window and "use ffmpeg" unchecked you still get interlaced?
I can do it, when it is included with the next Cin apps.
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!
[snip]
Here were a lot to sort out:
The dvd-wide-ffmpeg+mpeg2enc.m2v from here is also scaled or streched too high in vertical direction.
may be add "expand" filter after crop, so image dimensions will be back to dvd standard? VLC deinterlaced on playback (keyboard D) on interlaced m2v gives better
quality.
In comparision the ffmpeg command line I have used is: 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: which results in progressive and DAR 16:9, but still not so good edge quality
May be "progressive" here is error, and ffmpeg still encodes interlaced-as-progressive, so VLC for example does not enable deinterlacer at playback automatically?
VLC Deinterlaced ON playback of Progressive dvd-wide-dv01.mpg results in more coarced jagged or saw-toothed round edges
Have you tried to add interlaced flags manually to ffmpeg's command line?
-flags +ilme+ildct gives interlaced bff
Yeah, I just suspect ffmpeg was defaulting to progressive flags in stream and progressive setting for mpeg2 encoder WITHOUT automatically inserting deinterlacer, so result was plainly wrong. Metadata copy by default was apparently fixed in 4.4, yet interlace may remain corner case ... [snip]
Den 06.06.2023 17:54, skrev Andrew Randrianasulu:
[snip]
Here were a lot to sort out:
The dvd-wide-ffmpeg+mpeg2enc.m2v from here is also scaled or streched too high in vertical direction.
may be add "expand" filter after crop, so image dimensions will be back to dvd standard?
VLC deinterlaced on playback (keyboard D) on interlaced m2v gives better quality.
In comparision the ffmpeg command line I have used is: 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: which results in progressive and DAR 16:9, but still not so good edge quality
May be "progressive" here is error, and ffmpeg still encodes interlaced-as-progressive, so VLC for example does not enable deinterlacer at playback automatically?
VLC Deinterlaced ON playback of Progressive dvd-wide-dv01.mpg results in more coarced jagged or saw-toothed round edges
Have you tried to add interlaced flags manually to ffmpeg's command line?
-flags +ilme+ildct gives interlaced bff
Yeah, I just suspect ffmpeg was defaulting to progressive flags in stream and progressive setting for mpeg2 encoder WITHOUT automatically inserting deinterlacer, so result was plainly wrong.
Metadata copy by default was apparently fixed in 4.4, yet interlace may remain corner case ...
[snip]
I hope this sum up of the 4 variants I get from Cin DVD creating, using the current unpatched version: Input file: PAL DV interlaced 4:3 Output DVD cropped to 16x9 The dvd folder file names below are else descriptive Deinterlaced checked (di): 1) mediainfo ./dvd_wide_cin_di-ffmpeg_20230608-184940/dvd.mpg | grep Scan Scan type : Progressive 2) mediainfo ./dvd_wide_cin_di_mpeg2enc_20230608-201519/dvd.mpg | grep Scan Scan type : Interlaced Scan order : Top Field First Non deinterlaced (unchecked): 3) mediainfo ./dvd_wide_cin_ffmpeg_20230608-203740/dvd.mpg | grep Scan Scan type : Progressive 4) mediainfo ./dvd_wide_cin_mpeg2enc_20230608-191936/dvd.mpg | grep Scan Scan type : Interlaced Scan order : Top Field First Obviously 2) and 3) are wrong Are they fixed in the patched version? 5) Which de-interlace filters are used in CinGG with mpeg2enc and ffmpeg? I.e some users claims that Bwdif is better than Yadif for ffmpeg.
пт, 9 июн. 2023 г., 18:59 Terje J. Hanssen <[email protected]>:
[snip]
I hope this sum up of the 4 variants I get from Cin DVD creating, using the current unpatched version:
Input file: PAL DV interlaced 4:3 Output DVD cropped to 16x9
The dvd folder file names below are else descriptive
Deinterlaced checked (di):
1) mediainfo ./dvd_wide_cin_di-ffmpeg_20230608-184940/dvd.mpg | grep Scan Scan type : Progressive
2) mediainfo ./dvd_wide_cin_di_mpeg2enc_20230608-201519/dvd.mpg | grep Scan Scan type : Interlaced Scan order : Top Field First
Non deinterlaced (unchecked):
3) mediainfo ./dvd_wide_cin_ffmpeg_20230608-203740/dvd.mpg | grep Scan Scan type : Progressive
4) mediainfo ./dvd_wide_cin_mpeg2enc_20230608-191936/dvd.mpg | grep Scan Scan type : Interlaced Scan order : Top Field First
Obviously 2) and 3) are wrong Are they fixed in the patched version?
2) should be fixed, 3) is something I'll try to investigate.
5) Which de-interlace filters are used in CinGG with mpeg2enc and ffmpeg?
If you check "deinterlace" box in DVD creation window - internal cinelerra's deinterlacer (you can configure it just before confirming batch render in second window). In general I think you can try other types of deinterlacers manually.
I.e some users claims that Bwdif is better than Yadif for ffmpeg.
new patch on top of already applied, for me with "use ffmpeg" and deinterlacer it sets correctly main session to progressive and renders from it (exact location is important, I was getting same tff result if I put those lines under ffmpeg branch, much after resample/rechanelling.) I hope setting full session to progressive is ok in this case because we add deinterlacer over whole vid track ... Should study deinterlacer's setting so they also can be set according to session params ... before I overwrite them ... пт, 9 июн. 2023 г., 19:44 Andrew Randrianasulu <[email protected]>:
пт, 9 июн. 2023 г., 18:59 Terje J. Hanssen <[email protected]>:
[snip]
I hope this sum up of the 4 variants I get from Cin DVD creating, using the current unpatched version:
Input file: PAL DV interlaced 4:3 Output DVD cropped to 16x9
The dvd folder file names below are else descriptive
Deinterlaced checked (di):
1) mediainfo ./dvd_wide_cin_di-ffmpeg_20230608-184940/dvd.mpg | grep Scan Scan type : Progressive
2) mediainfo ./dvd_wide_cin_di_mpeg2enc_20230608-201519/dvd.mpg | grep Scan Scan type : Interlaced Scan order : Top Field First
Non deinterlaced (unchecked):
3) mediainfo ./dvd_wide_cin_ffmpeg_20230608-203740/dvd.mpg | grep Scan Scan type : Progressive
4) mediainfo ./dvd_wide_cin_mpeg2enc_20230608-191936/dvd.mpg | grep Scan Scan type : Interlaced Scan order : Top Field First
Obviously 2) and 3) are wrong Are they fixed in the patched version?
2) should be fixed, 3) is something I'll try to investigate.
5) Which de-interlace filters are used in CinGG with mpeg2enc and ffmpeg?
If you check "deinterlace" box in DVD creation window - internal cinelerra's deinterlacer (you can configure it just before confirming batch render in second window).
In general I think you can try other types of deinterlacers manually.
I.e some users claims that Bwdif is better than Yadif for ffmpeg.
Andrew, testing with this latest patch in seems OK. In 1 case, it looked like "use ffmpeg / do not interlace" looked worse on the dvd/TV player than without the mod in, but a second dvd creation showed no worse. So it was probably just the dvd media itself which is a re-writable dvd that I use over and over and over. I will check this mod in next time I reboot the desktop. Not sure why "use ffmpeg" is even an option because it looked quite a bit worse than using mpeg2enc.C! On Fri, Jun 9, 2023 at 7:08 PM Andrew Randrianasulu via Cin < [email protected]> wrote:
new patch on top of already applied, for me with "use ffmpeg" and deinterlacer it sets correctly main session to progressive and renders from it (exact location is important, I was getting same tff result if I put those lines under ffmpeg branch, much after resample/rechanelling.)
I hope setting full session to progressive is ok in this case because we add deinterlacer over whole vid track ... Should study deinterlacer's setting so they also can be set according to session params ... before I overwrite them ...
пт, 9 июн. 2023 г., 19:44 Andrew Randrianasulu <[email protected]>:
пт, 9 июн. 2023 г., 18:59 Terje J. Hanssen <[email protected]>:
[snip]
I hope this sum up of the 4 variants I get from Cin DVD creating, using the current unpatched version:
Input file: PAL DV interlaced 4:3 Output DVD cropped to 16x9
The dvd folder file names below are else descriptive
Deinterlaced checked (di):
1) mediainfo ./dvd_wide_cin_di-ffmpeg_20230608-184940/dvd.mpg | grep Scan Scan type : Progressive
2) mediainfo ./dvd_wide_cin_di_mpeg2enc_20230608-201519/dvd.mpg | grep Scan Scan type : Interlaced Scan order : Top Field First
Non deinterlaced (unchecked):
3) mediainfo ./dvd_wide_cin_ffmpeg_20230608-203740/dvd.mpg | grep Scan Scan type : Progressive
4) mediainfo ./dvd_wide_cin_mpeg2enc_20230608-191936/dvd.mpg | grep Scan Scan type : Interlaced Scan order : Top Field First
Obviously 2) and 3) are wrong Are they fixed in the patched version?
2) should be fixed, 3) is something I'll try to investigate.
5) Which de-interlace filters are used in CinGG with mpeg2enc and ffmpeg?
If you check "deinterlace" box in DVD creation window - internal cinelerra's deinterlacer (you can configure it just before confirming batch render in second window).
In general I think you can try other types of deinterlacers manually.
I.e some users claims that Bwdif is better than Yadif for ffmpeg.
--
Cin mailing list [email protected] https://lists.cinelerra-gg.org/mailman/listinfo/cin
сб, 10 июн. 2023 г., 21:53 Phyllis Smith <[email protected]>:
Andrew, testing with this latest patch in seems OK. In 1 case, it looked like "use ffmpeg / do not interlace" looked worse on the dvd/TV player than without the mod in, but a second dvd creation showed no worse. So it was probably just the dvd media itself which is a re-writable dvd that I use over and over and over.
I will check this mod in next time I reboot the desktop. Not sure why "use ffmpeg" is even an option because it looked quite a bit worse than using mpeg2enc.C!
But it much faster! Also, I guess we can trade some of this speed with quality settings ... from ffmpeg/video/mpeg2_hq.mpeg sc_threshold=-30000 dc=10 bf=2 trellis=2 mbd=rd cmp=2 subcmp=2 try to add those to raw.dvd profile?
On Fri, Jun 9, 2023 at 7:08 PM Andrew Randrianasulu via Cin < [email protected]> wrote:
new patch on top of already applied, for me with "use ffmpeg" and deinterlacer it sets correctly main session to progressive and renders from it (exact location is important, I was getting same tff result if I put those lines under ffmpeg branch, much after resample/rechanelling.)
I hope setting full session to progressive is ok in this case because we add deinterlacer over whole vid track ... Should study deinterlacer's setting so they also can be set according to session params ... before I overwrite them ...
пт, 9 июн. 2023 г., 19:44 Andrew Randrianasulu <[email protected]>:
пт, 9 июн. 2023 г., 18:59 Terje J. Hanssen <[email protected]>:
[snip]
I hope this sum up of the 4 variants I get from Cin DVD creating, using the current unpatched version:
Input file: PAL DV interlaced 4:3 Output DVD cropped to 16x9
The dvd folder file names below are else descriptive
Deinterlaced checked (di):
1) mediainfo ./dvd_wide_cin_di-ffmpeg_20230608-184940/dvd.mpg | grep Scan Scan type : Progressive
2) mediainfo ./dvd_wide_cin_di_mpeg2enc_20230608-201519/dvd.mpg | grep Scan Scan type : Interlaced Scan order : Top Field First
Non deinterlaced (unchecked):
3) mediainfo ./dvd_wide_cin_ffmpeg_20230608-203740/dvd.mpg | grep Scan Scan type : Progressive
4) mediainfo ./dvd_wide_cin_mpeg2enc_20230608-191936/dvd.mpg | grep Scan Scan type : Interlaced Scan order : Top Field First
Obviously 2) and 3) are wrong Are they fixed in the patched version?
2) should be fixed, 3) is something I'll try to investigate.
5) Which de-interlace filters are used in CinGG with mpeg2enc and ffmpeg?
If you check "deinterlace" box in DVD creation window - internal cinelerra's deinterlacer (you can configure it just before confirming batch render in second window).
In general I think you can try other types of deinterlacers manually.
I.e some users claims that Bwdif is better than Yadif for ffmpeg.
--
Cin mailing list [email protected] https://lists.cinelerra-gg.org/mailman/listinfo/cin
Den 09.06.2023 18:44, skrev Andrew Randrianasulu:
пт, 9 июн. 2023 г., 18:59 Terje J. Hanssen <[email protected]>:
[snip]
5) Which de-interlace filters are used in CinGG with mpeg2enc and ffmpeg?
If you check "deinterlace" box in DVD creation window - internal cinelerra's deinterlacer (you can configure it just before confirming batch render in second window).
I had a look in the wrench Cin video compression box. Nothing there told me something about known deinterlace filters ......? Some other optional parameters of interest (searched to find them in the manual), correct me here ..... * Color model optional: yuv 422 (inpput source? I would expect this can be of interest if i.e a better yuy2 conversion can be achieved?) * Format preset (target? what's the difference between DVD and DVD NAV?) * Denoise: Video and/or audio? If this help on typical mic wind noise issues it would be nice?
In general I think you can try other types of deinterlacers manually.
Yes, of course - I also try this manual combination ffmpeg/devede
I.e some users claims that Bwdif is better than Yadif for ffmpeg.
сб, 10 июн. 2023 г., 11:08 Terje J. Hanssen <[email protected]>:
Den 09.06.2023 18:44, skrev Andrew Randrianasulu:
пт, 9 июн. 2023 г., 18:59 Terje J. Hanssen <[email protected]>:
[snip]
5) Which de-interlace filters are used in CinGG with mpeg2enc and ffmpeg?
If you check "deinterlace" box in DVD creation window - internal cinelerra's deinterlacer (you can configure it just before confirming batch render in second window).
I had a look in the wrench Cin video compression box. Nothing there told me something about known deinterlace filters ......?
Sorry, I mean on timeline there will be auto-added deinterlace filter. So, you can configure it ...
Some other optional parameters of interest (searched to find them in the manual), correct me here .....
* Color model optional: yuv 422 (inpput source? I would expect this can be of interest if i.e a better yuy2 conversion can be achieved?) * Format preset (target? what's the difference between DVD and DVD NAV?)
from man mpeg2enc difference seems to be about inclusion of navigation packets, so later you can use this mpeg2 file on DVD with menus ... * Denoise: Video and/or audio? If this help on typical mic wind noise
issues it would be nice?
I think only video ...
In general I think you can try other types of deinterlacers manually.
Yes, of course - I also try this manual combination ffmpeg/devede
I.e some users claims that Bwdif is better than Yadif for ffmpeg.
Den 10.06.2023 13:34, skrev Andrew Randrianasulu:
пт, 9 июн. 2023 г., 18:59 Terje J. Hanssen <[email protected]>:
[snip]
5) Which de-interlace filters are used in CinGG with mpeg2enc and ffmpeg?
If you check "deinterlace" box in DVD creation window - internal cinelerra's deinterlacer (you can configure it just before confirming batch render in second window).
I had a look in the wrench Cin video compression box. Nothing there told me something about known deinterlace filters ......?
Sorry, I mean on timeline there will be auto-added deinterlace filter. So, you can configure it ...
Sorry, it's me ....... After checking the deinterlace button as in Fig 14.2 (DVD) https://cinelerra-gg.org/download/CinelerraGG_Manual/DVD_Bluray_Creation.htm... there is a Deinterlace line on the time line (main program window) with two buttons: Preset Edit and Show controls But no known deinterlace filter names?
пн, 12 июн. 2023 г., 13:07 Terje J. Hanssen <[email protected]>:
Den 10.06.2023 13:34, skrev Andrew Randrianasulu:
пт, 9 июн. 2023 г., 18:59 Terje J. Hanssen <[email protected]>:
[snip]
5) Which de-interlace filters are used in CinGG with mpeg2enc and ffmpeg?
If you check "deinterlace" box in DVD creation window - internal cinelerra's deinterlacer (you can configure it just before confirming batch render in second window).
I had a look in the wrench Cin video compression box. Nothing there told me something about known deinterlace filters ......?
Sorry, I mean on timeline there will be auto-added deinterlace filter. So, you can configure it ...
Sorry, it's me ....... After checking the deinterlace button as in Fig 14.2 (DVD)
https://cinelerra-gg.org/download/CinelerraGG_Manual/DVD_Bluray_Creation.htm...
there is a Deinterlace line on the time line (main program window) with two buttons: Preset Edit and Show controls But no known deinterlace filter names?
Well, I think it was intended as "quick" solution for burning string of vids. I think you can check deinterlace-cv plugin also, in addition to ffmpeg filters.
Can you clarify even with my patches AND deinterlacing checkbox set in dvd creation window and "use ffmpeg" unchecked you still get interlaced?
Confusing results that I did not consider. I will thoroughly investigate "before and after" tomorrow and let you know what is happening. (I should have done this earlier).
Andrew, after many, many runs and actual DVD media creation with these patches in, I am almost certain that all is working well and now there is the choice of creating BFF media. So answer to question of "do you still get interlaced" is "YES" as far as I can tell. Here are some of the results / differences seen when use "mediainfo": 1) GOP, Open/Closed : Open -------------------> Before GOP, Open/Closed of first frame : Closed -------------------> Before GOP, Open/Closed : Closed -------------------> After is just this 1 line which makes sense 2) Scan type is a little confusing though: Before -----> it always read Interlaced for all, whether or not the Deinterlace box was checked or not After ------> if Deinterlace box is checked, it reads Interlace After ------> if Deinterlace box is NOT checked, it reads Interlace IF input is interlaced BUT Progressive if input media is not interlaced. Does the above make sense? (I think I stated it correctly). In the DVD media I tested on a really old non-digital TV with a DVD player, the BFF media looked about the same as the TFF media, even when original media was BFF or TFF. But the old TV was so bad looking, that I am not sure it was a good test. Playing Interlaced DVD media on a new digital TV with a DVD player, looked decent but that is probably due to the software in the digital TV. Playing DVD media on a new digital TV where the original input was interlaced and CinGG had the Deinterlace box checked, did result in some small jagged areas but mostly visible only when stop or step. RECOMMENDATION: if not editing the input media so you do not need an NLE, i.e. CinGG, probably should refer to ffmpeg, dvdauthor, or those forums that apply direct copies of media exclusively for creating DVDs. On Mon, Jun 5, 2023 at 5:49 PM Phyllis Smith <[email protected]> wrote:
Can you clarify even with my patches AND deinterlacing checkbox set in dvd
creation window and "use ffmpeg" unchecked you still get interlaced?
Confusing results that I did not consider. I will thoroughly investigate "before and after" tomorrow and let you know what is happening. (I should have done this earlier).
чт, 8 июн. 2023 г., 21:43 Phyllis Smith <[email protected]>:
Andrew, after many, many runs and actual DVD media creation with these patches in, I am almost certain that all is working well and now there is the choice of creating BFF media. So answer to question of "do you still get interlaced" is "YES" as far as I can tell. Here are some of the results / differences seen when use "mediainfo":
1) GOP, Open/Closed : Open -------------------> Before GOP, Open/Closed of first frame : Closed -------------------> Before GOP, Open/Closed : Closed -------------------> After is just this 1 line which makes sense 2) Scan type is a little confusing though: Before -----> it always read Interlaced for all, whether or not the Deinterlace box was checked or not After ------> if Deinterlace box is checked, it reads Interlace
I think it should be set to Progressive if deinterlace checked .... Sorry, back to double-checking my logic .. After ------> if Deinterlace box is NOT checked, it reads Interlace
IF input is interlaced BUT Progressive if input media is not interlaced. Does the above make sense? (I think I stated it correctly).
In the DVD media I tested on a really old non-digital TV with a DVD player, the BFF media looked about the same as the TFF media, even when original media was BFF or TFF. But the old TV was so bad looking, that I am not sure it was a good test.
Playing Interlaced DVD media on a new digital TV with a DVD player, looked decent but that is probably due to the software in the digital TV.
Playing DVD media on a new digital TV where the original input was interlaced and CinGG had the Deinterlace box checked, did result in some small jagged areas but mostly visible only when stop or step.
RECOMMENDATION: if not editing the input media so you do not need an NLE, i.e. CinGG, probably should refer to ffmpeg, dvdauthor, or those forums that apply direct copies of media exclusively for creating DVDs.
On Mon, Jun 5, 2023 at 5:49 PM Phyllis Smith <[email protected]> wrote:
Can you clarify even with my patches AND deinterlacing checkbox set in
dvd creation window and "use ffmpeg" unchecked you still get interlaced?
Confusing results that I did not consider. I will thoroughly investigate "before and after" tomorrow and let you know what is happening. (I should have done this earlier).
пт, 9 июн. 2023 г., 15:43 Andrew Randrianasulu <[email protected]>:
чт, 8 июн. 2023 г., 21:43 Phyllis Smith <[email protected]>:
Andrew, after many, many runs and actual DVD media creation with these patches in, I am almost certain that all is working well and now there is the choice of creating BFF media. So answer to question of "do you still get interlaced" is "YES" as far as I can tell. Here are some of the results / differences seen when use "mediainfo":
1) GOP, Open/Closed : Open -------------------> Before GOP, Open/Closed of first frame : Closed -------------------> Before GOP, Open/Closed : Closed -------------------> After is just this 1 line which makes sense 2) Scan type is a little confusing though: Before -----> it always read Interlaced for all, whether or not the Deinterlace box was checked or not After ------> if Deinterlace box is checked, it reads Interlace
I think it should be set to Progressive if deinterlace checked ....
Sorry, back to double-checking my logic ..
It seems with m2ts source and deinterlace on I get this mpeg2enc line: Running /data/data/com.termux/files/home/cinelerra/cinelerra-5.1/bin//mpeg2enc -v 0 -b 8000 -q 1 -a 2 -F 3 -H -c -I 0 -M 8 -f 8 -g 15 -G 15 -R 0 -o '/data/data/com.termux/files/home/tmp/dvd_20230609-161131/dvd.m2v' no "-z" , also "I" equals zero but mediainfo still says: Scan type : Progressive Scan order : Top Field First yet ffprobe says Input #0, mpegvideo, from '/data/data/com.termux/files/home/tmp/dvd_20230609-161131/dvd.m2v': Duration: N/A, bitrate: N/A Stream #0:0: Video: mpeg2video (Main), yuv420p(tv, bt470bg, progressive), 720x576 [SAR 16:15 DAR 4:3], 25 fps, 25 tbr, 1200k tbn Side data: cpb: bitrate max/min/avg: 8000000/0/0 buffer size: 1835008 vbv_delay: N/A I was dumb I selected pal 4:3 instead of pal 16:9 in dvd master .... So, may be this is bug (o-feature) in mediainfo? Anyway, those parameters can be changed if you click on wrench icon on video (mpeg) stream in second-stage window where batch files already set up.
After ------> if Deinterlace box is NOT checked, it reads Interlace
IF input is interlaced BUT Progressive if input media is not interlaced. Does the above make sense? (I think I stated it correctly).
In the DVD media I tested on a really old non-digital TV with a DVD player, the BFF media looked about the same as the TFF media, even when original media was BFF or TFF. But the old TV was so bad looking, that I am not sure it was a good test.
Playing Interlaced DVD media on a new digital TV with a DVD player, looked decent but that is probably due to the software in the digital TV.
Playing DVD media on a new digital TV where the original input was interlaced and CinGG had the Deinterlace box checked, did result in some small jagged areas but mostly visible only when stop or step.
RECOMMENDATION: if not editing the input media so you do not need an NLE, i.e. CinGG, probably should refer to ffmpeg, dvdauthor, or those forums that apply direct copies of media exclusively for creating DVDs.
On Mon, Jun 5, 2023 at 5:49 PM Phyllis Smith <[email protected]> wrote:
Can you clarify even with my patches AND deinterlacing checkbox set in
dvd creation window and "use ffmpeg" unchecked you still get interlaced?
Confusing results that I did not consider. I will thoroughly investigate "before and after" tomorrow and let you know what is happening. (I should have done this earlier).
It is good the way you have it. Before the patch, when progressive media was input and the Deinterlace box was NOT checked, "mediainfo" always displayed "Interlaced, Top Field First". Mediainfo is not always 100%. On Fri, Jun 9, 2023 at 8:12 AM Andrew Randrianasulu <[email protected]> wrote:
пт, 9 июн. 2023 г., 15:43 Andrew Randrianasulu <[email protected]>:
чт, 8 июн. 2023 г., 21:43 Phyllis Smith <[email protected]>:
Andrew, after many, many runs and actual DVD media creation with these patches in, I am almost certain that all is working well and now there is the choice of creating BFF media. So answer to question of "do you still get interlaced" is "YES" as far as I can tell. Here are some of the results / differences seen when use "mediainfo":
1) GOP, Open/Closed : Open -------------------> Before GOP, Open/Closed of first frame : Closed -------------------> Before GOP, Open/Closed : Closed -------------------> After is just this 1 line which makes sense 2) Scan type is a little confusing though: Before -----> it always read Interlaced for all, whether or not the Deinterlace box was checked or not After ------> if Deinterlace box is checked, it reads Interlace
I think it should be set to Progressive if deinterlace checked ....
Sorry, back to double-checking my logic ..
It seems with m2ts source and deinterlace on I get this mpeg2enc line:
Running /data/data/com.termux/files/home/cinelerra/cinelerra-5.1/bin//mpeg2enc -v 0 -b 8000 -q 1 -a 2 -F 3 -H -c -I 0 -M 8 -f 8 -g 15 -G 15 -R 0 -o '/data/data/com.termux/files/home/tmp/dvd_20230609-161131/dvd.m2v'
no "-z" , also "I" equals zero
but mediainfo still says:
Scan type : Progressive Scan order : Top Field First
yet ffprobe says
Input #0, mpegvideo, from '/data/data/com.termux/files/home/tmp/dvd_20230609-161131/dvd.m2v': Duration: N/A, bitrate: N/A Stream #0:0: Video: mpeg2video (Main), yuv420p(tv, bt470bg, progressive), 720x576 [SAR 16:15 DAR 4:3], 25 fps, 25 tbr, 1200k tbn Side data: cpb: bitrate max/min/avg: 8000000/0/0 buffer size: 1835008 vbv_delay: N/A
I was dumb I selected pal 4:3 instead of pal 16:9 in dvd master ....
So, may be this is bug (o-feature) in mediainfo?
Anyway, those parameters can be changed if you click on wrench icon on video (mpeg) stream in second-stage window where batch files already set up.
After ------> if Deinterlace box is NOT checked, it reads
Interlace IF input is interlaced BUT Progressive if input media is not interlaced. Does the above make sense? (I think I stated it correctly).
In the DVD media I tested on a really old non-digital TV with a DVD player, the BFF media looked about the same as the TFF media, even when original media was BFF or TFF. But the old TV was so bad looking, that I am not sure it was a good test.
Playing Interlaced DVD media on a new digital TV with a DVD player, looked decent but that is probably due to the software in the digital TV.
Playing DVD media on a new digital TV where the original input was interlaced and CinGG had the Deinterlace box checked, did result in some small jagged areas but mostly visible only when stop or step.
RECOMMENDATION: if not editing the input media so you do not need an NLE, i.e. CinGG, probably should refer to ffmpeg, dvdauthor, or those forums that apply direct copies of media exclusively for creating DVDs.
On Mon, Jun 5, 2023 at 5:49 PM Phyllis Smith <[email protected]> wrote:
Can you clarify even with my patches AND deinterlacing checkbox set in
dvd creation window and "use ffmpeg" unchecked you still get interlaced?
Confusing results that I did not consider. I will thoroughly investigate "before and after" tomorrow and let you know what is happening. (I should have done this earlier).
Den 09.06.2023 16:40, skrev Phyllis Smith:
It is good the way you have it. Before the patch, when progressive media was input and the Deinterlace box was NOT checked, "mediainfo" always displayed "Interlaced, Top Field First". Mediainfo is not always 100%.
Phyllis; In comparision, how is the video detected with ffmpeg -filter:v idet http://www.aktau.be/2013/09/22/detecting-interlaced-video-with-ffmpeg/
On Fri, Jun 9, 2023 at 8:12 AM Andrew Randrianasulu <[email protected]> wrote:
пт, 9 июн. 2023 г., 15:43 Andrew Randrianasulu <[email protected]>:
чт, 8 июн. 2023 г., 21:43 Phyllis Smith <[email protected]>:
Andrew, after many, many runs and actual DVD media creation with these patches in, I am almost certain that all is working well and now there is the choice of creating BFF media. So answer to question of "do you still get interlaced" is "YES" as far as I can tell. Here are some of the results / differences seen when use "mediainfo":
1) GOP, Open/Closed : Open -------------------> Before GOP, Open/Closed of first frame : Closed -------------------> Before GOP, Open/Closed : Closed -------------------> After is just this 1 line which makes sense 2) Scan type is a little confusing though: Before -----> it always read Interlaced for all, whether or not the Deinterlace box was checked or not After ------> if Deinterlace box is checked, it reads Interlace
I think it should be set to Progressive if deinterlace checked ....
Sorry, back to double-checking my logic ..
It seems with m2ts source and deinterlace on I get this mpeg2enc line:
Running /data/data/com.termux/files/home/cinelerra/cinelerra-5.1/bin//mpeg2enc -v 0 -b 8000 -q 1 -a 2 -F 3 -H -c -I 0 -M 8 -f 8 -g 15 -G 15 -R 0 -o '/data/data/com.termux/files/home/tmp/dvd_20230609-161131/dvd.m2v'
no "-z" , also "I" equals zero
but mediainfo still says:
Scan type : Progressive Scan order : Top Field First
yet ffprobe says
Input #0, mpegvideo, from '/data/data/com.termux/files/home/tmp/dvd_20230609-161131/dvd.m2v': Duration: N/A, bitrate: N/A Stream #0:0: Video: mpeg2video (Main), yuv420p(tv, bt470bg, progressive), 720x576 [SAR 16:15 DAR 4:3], 25 fps, 25 tbr, 1200k tbn Side data: cpb: bitrate max/min/avg: 8000000/0/0 buffer size: 1835008 vbv_delay: N/A
I was dumb I selected pal 4:3 instead of pal 16:9 in dvd master ....
So, may be this is bug (o-feature) in mediainfo?
Anyway, those parameters can be changed if you click on wrench icon on video (mpeg) stream in second-stage window where batch files already set up.
After ------> if Deinterlace box is NOT checked, it reads Interlace IF input is interlaced BUT Progressive if input media is not interlaced. Does the above make sense? (I think I stated it correctly).
In the DVD media I tested on a really old non-digital TV with a DVD player, the BFF media looked about the same as the TFF media, even when original media was BFF or TFF. But the old TV was so bad looking, that I am not sure it was a good test.
Playing Interlaced DVD media on a new digital TV with a DVD player, looked decent but that is probably due to the software in the digital TV.
Playing DVD media on a new digital TV where the original input was interlaced and CinGG had the Deinterlace box checked, did result in some small jagged areas but mostly visible only when stop or step.
RECOMMENDATION: if not editing the input media so you do not need an NLE, i.e. CinGG, probably should refer to ffmpeg, dvdauthor, or those forums that apply direct copies of media exclusively for creating DVDs.
On Mon, Jun 5, 2023 at 5:49 PM Phyllis Smith <[email protected]> wrote:
Can you clarify even with my patches AND deinterlacing checkbox set in dvd creation window and "use ffmpeg" unchecked you still get interlaced?
Confusing results that I did not consider. I will thoroughly investigate "before and after" tomorrow and let you know what is happening. (I should have done this earlier).
t is good the way you have it. Before the patch, when progressive media was input and the Deinterlace box was NOT checked, "mediainfo" always displayed "Interlaced, Top Field First". Mediainfo is not always 100%.
Phyllis; In comparision, how is the video detected with ffmpeg -filter:v idet
I checked a couple of CinGG dvd_... created directories (since I have been doing so much testing, did not want to check all 50 though). Displaying result of one: *Mediainfo results: * Scan type : Interlaced Scan order : Top Field First *ffmpeg -filter:v idet -frames:v 100 ... of same file:* Input #0, mpegvideo, from '/tmp/dvd_20230606-101640/dvd.m2v': Duration: N/A, bitrate: N/A Stream #0:0: Video: mpeg2video (Main), yuv420p(tv, smpte170m, *top first*), ... ... [Parsed_idet_0 @ 0x445b640] Repeated Fields: Neither: 101 Top: 0 Bottom: 0 [Parsed_idet_0 @ 0x445b640] Single frame detection: *TFF: 0 BFF: 0 Progressive: 69 Undetermined: 32* [Parsed_idet_0 @ 0x445b640] Multi frame detection: *TFF: 0 BFF: 0 Progressive: 86 Undetermined: 15* *BUT when run it over the entire file instead of just 100 frames:* Input #0, mpegvideo, from '/tmp/dvd_20230606-101640/dvd.m2v': Duration: N/A, bitrate: N/A Stream #0:0: Video: mpeg2video (Main), yuv420p(tv, smpte170m, *top first*), ... ... [Parsed_idet_0 @ 0x42c04c0] Repeated Fields: Neither: 679 Top: 0 Bottom: 0 [Parsed_idet_0 @ 0x42c04c0] Single frame detection: *TFF: 10 BFF: 3* Progressive: 487 Undetermined: 179 [Parsed_idet_0 @ 0x42c04c0] Multi frame detection: *TFF: 18 BFF: 4* Progressive: 642 Undetermined: 15 Getting too bogged down in interlacing -- the only thing that is important is what it actually looks like on the TV or monitor that it will actually be viewed on !!
participants (3)
-
Andrew Randrianasulu -
Phyllis Smith -
Terje J. Hanssen