<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body>
Lately I have experimented with PAL DV to DVD rendering, both using
ffmpeg/DeVeDE, and now using CinGG mpeg2enc/FFMPEG<br>
<br>
I hope someone can help to clarify the following questions and debug
possible issues regarding DVD Rendering with CinGG:<br>
<br>
<br>
1. dvd.m2v and dvd.mpg<br>
Why are there two video files created, dvd.m2v w/o Audio and dvd.mpg
w/Audio, and which one is used for what?<br>
<blockquote><font face="monospace">tree -sh dvd_20230528-115747<br>
dvd_20230528-115747<br>
├── [ 16M] dvd.ac3<br>
├── [3.4K] dvd.jobs<br>
├── [562M] dvd.m2v<br>
├── [588M] dvd.mpg<br>
├── [ 733] dvd.sh<br>
├── [6.5K] dvd.xml<br>
└── [4.0K] iso<br>
├── [4.0K] AUDIO_TS<br>
└── [4.0K] VIDEO_TS<br>
├── [6.0K] VIDEO_TS.BUP<br>
├── [6.0K] VIDEO_TS.IFO<br>
├── [ 18K] VTS_01_0.BUP<br>
├── [ 18K] VTS_01_0.IFO<br>
└── [588M] VTS_01_1.VOB<br>
</font><br>
</blockquote>
2. Deinterlacing:<br>
<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>
<blockquote> <font face="monospace">ffprobe -hide_banner dvd.m2v<br>
Input #0, mpegvideo, from 'dvd.m2v':<br>
Duration: N/A, bitrate: N/A<br>
Stream #0:0: Video: mpeg2video (Main), yuv420p(tv, bt470bg,
top first), 720x576 [SAR 64:45 DAR 16:9], 25 fps, 25 tbr, 1200k
tbn<br>
Side data:<br>
cpb: bitrate max/min/avg: 8000000/0/0 buffer size: 1835008
vbv_delay: N/A<br>
<br>
<br>
ffprobe -hide_banner dvd.mpg<br>
[mpeg @ 0x55a756c7af00] start time for stream 0 is not set in
estimate_timings_from_pts<br>
Input #0, mpeg, from 'dvd.mpg':<br>
Duration: 00:09:56.44, start: 0.160000, bitrate: 8305 kb/s<br>
Stream #0:0[0x1bf]: Data: dvd_nav_packet<br>
Stream #0:1[0x1e0]: Video: mpeg2video (Main), yuv420p(tv,
bt470bg, top first), 720x576 [SAR 64:45 DAR 16:9], 25 fps, 25
tbr, 90k tbn<br>
Side data:<br>
cpb: bitrate max/min/avg: 8000000/0/0 buffer size: 1835008
vbv_delay: N/A<br>
Stream #0:2[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 224
kb/s<br>
Unsupported codec with id 98312 for input stream 0<br>
<br>
<br>
mediainfo dvd.m2v | egrep "Color|pixels|Scan"<br>
Width : 720 pixels<br>
Height : 576 pixels<br>
Color space : YUV<br>
Scan type : Interlaced<br>
Scan order : Top Field First<br>
Color primaries : BT.601 PAL<br>
<br>
<br>
mediainfo dvd.mpg | egrep "Color|pixels|Scan"<br>
Width : 720 pixels<br>
Height : 576 pixels<br>
Color space : YUV<br>
Scan type : Interlaced<br>
Scan order : Top Field First<br>
Color primaries : BT.601 PAL<br>
<br>
</font></blockquote>
While corresponding deinterlacing with the optional FFMPEG DVD
Rendering comes out as Progressive?<br>
<blockquote><font face="monospace">ffprobe -hide_banner dvd.m2v<br>
Input #0, mpegvideo, from 'dvd.m2v':<br>
Duration: N/A, bitrate: N/A<br>
Stream #0:0: Video: mpeg2video (Main), yuv420p(tv,
bt470bg/unknown/unknown, progressive), 720x576 [SAR 64:45 DAR
16:9], 25 fps, 25 tbr, 1200k tbn<br>
Side data:<br>
cpb: bitrate max/min/avg: 9000000/0/0 buffer size: 1835008
vbv_delay: N/A<br>
</font><br>
<font face="monospace">ffprobe -hide_banner dvd.mpg<br>
[mpeg @ 0x561effba3f00] start time for stream 0 is not set in
estimate_timings_from_pts<br>
Input #0, mpeg, from 'dvd.mpg':<br>
Duration: 00:09:56.42, start: 0.160000, bitrate: 8266 kb/s<br>
Stream #0:0[0x1bf]: Data: dvd_nav_packet<br>
Stream #0:1[0x1e0]: Video: mpeg2video (Main), yuv420p(tv,
bt470bg/unknown/unknown, 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, 224
kb/s<br>
</font><br>
<font face="monospace">mediainfo dvd.m2v | egrep
"Color|pixels|Scan"<br>
Width : 720 pixels<br>
Height : 576 pixels<br>
Color space : YUV<br>
Scan type : Progressive<br>
<br>
mediainfo dvd.mpg | egrep "Color|pixels|Scan"<br>
Width : 720 pixels<br>
Height : 576 pixels<br>
Color space : YUV<br>
Scan type : Progressive<br>
<br>
</font></blockquote>
3. Dvd Interlaced Chroma <br>
<br>
With reference to the CinGG manual<br>
<a class="moz-txt-link-freetext" href="https://cinelerra-gg.org/download/CinelerraGG_Manual/Dvd_Interlaced_Chroma.html">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>
<br>
<br>
4. Missing FFMPEG output<br>
<br>
According to the manual:<br>
<a class="moz-txt-link-freetext"
href="https://cinelerra-gg.org/download/CinelerraGG_Manual/DVD_Bluray_Creation.html">https://cinelerra-gg.org/download/CinelerraGG_Manual/DVD_Bluray_Creation.html</a>
<br>
<blockquote>
I<i>t is also highly recommended to run the CINELERRA-GG startup
from a terminal window, instead of the icon, in order to see
informative messages of how to actually write the output (at
prompt: keyin <install_directory_path/bin/cin).
</i><br>
<br>
</blockquote>
For the default mpeg2enc DVD rendering there is output like<br>
<blockquote>mpeg2enc -v 0 -b 8000 -q 1 -a 3 -F 3 -H -I 1 -M 8 -z t
-f 8 -g 15 -G 15 -R 0 -o
'/home/terje/Videoklipp/DVD/dvd_mpeg2enc_20230527-184531/dvd.m2v'<br>
</blockquote>
For the optional FFMEG DVD Rendering it would be nice to also get
the actual "ffmpeg code line" as terminal output, both for learning,
customizing and debugging.<br>
Is that possible ?<br>
<br>
<br>
<br>
<br>
<br>
<br>
</body>
</html>