В сообщении от Tuesday 17 November 2020 00:49:44 Terje J. Hanssen via Cin 
написал(а):
> While HDV and FHD video can rendered for Blu-ray media, the widespread 
> DVD can only playback SD video content.
> 
> HDV camcorders can during tape playback 1440x1080 anamorphic HDV 
> content, downconvert it to Widescreen Anamorphic 16:9 video.
> Is it possible to get a Preset for DV(D) wide 16:9 video?

I tried to cook up something - but I'm not sure if frame rate for PAL 16:9 
progressive should be 25 or 50 ...

https://cloud.mail.ru/public/3N3y/2ZHx1JXEC


        { N_("PAL 576i (16:9) - DV(D)"),        2, 2, 48000,    1, 1, 25,
                720,576,   16,9, ILACE_MODE_BOTTOM_FIRST, BC_YUVA8888 },
        { N_("PAL 576p (16:9) - DV(D)"),        2, 2, 48000,    1, 1, 25,
                720,576,   16,9, ILACE_MODE_NOTINTERLACED, BC_YUVA8888 },

for now I settled on 25 ...

I tried to re-encode

http://samples.mplayerhq.hu/MPEG2/dothack2.mpg

with PAL 576i - 16:9 preset and it come out as 

mplayer /dev/shm/test02.mpeg
MPlayer SVN-r38202-10.0.1 (C) 2000-2020 MPlayer Team
parse error at line 423
do_connect: could not connect to socket
connect: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.

Playing /dev/shm/test02.mpeg.
libavformat version 58.64.100 (internal)
libavformat file format detected.
[mpeg @ 0x574b7520]stream 1 : no PTS found at end of file, duration not set
[lavf] stream 0: video (mpeg2video), -vid 0
[lavf] stream 1: audio (mp2), -aid 0
VIDEO:  [MPG2]  720x576  0bpp  25.000 fps    0.0 kbps ( 0.0 kbyte/s)
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
libavcodec version 58.112.101 (internal)
Selected video codec: [ffmpeg2] vfm: ffmpeg (FFmpeg MPEG-2)
==========================================================================
Load subtitles in /dev/shm/
==========================================================================
Forced audio codec: mad
Opening audio decoder: [libmad] libmad mpeg audio decoder
AUDIO: 48000 Hz, 2 ch, s16le, 384.0 kbit/25.00% (ratio: 48000->192000)
Selected audio codec: [mad] afm: libmad (libMAD MPEG layer 1-2-3)
==========================================================================
AO: [alsa] 48000Hz 2ch s16le (2 bytes per sample)
Starting playback...
The selected video_out device is incompatible with this codec.
Try appending the scale filter to your filter list,
e.g. -vf spp,scale instead of -vf spp.
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
VO: [vdpau] 720x576 => 1024x576 Planar YV12
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
VO: [vdpau] 720x576 => 1024x576 Planar YV12

 mediainfo /dev/shm/test02.mpeg
General
Complete name                            : /dev/shm/test02.mpeg
Format                                   : MPEG-PS
File size                                : 7.65 MiB
Duration                                 : 17 s 16 ms
Overall bit rate mode                    : Variable
Overall bit rate                         : 3 771 kb/s

Video
ID                                       : 224 (0xE0)
Format                                   : MPEG Video
Format version                           : Version 2
Format profile                           : Main@Main
Format settings, BVOP                    : No
Format settings, Matrix                  : Default
Format settings, GOP                     : N=12
Duration                                 : 17 s 0 ms
Bit rate mode                            : Variable
Bit rate                                 : 3 312 kb/s
Width                                    : 720 pixels
Height                                   : 576 pixels
Display aspect ratio                     : 16:9
Frame rate                               : 25.000 FPS
Standard                                 : PAL
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Progressive
Compression mode                         : Lossy
Bits/(Pixel*Frame)                       : 0.319
Time code of first frame                 : 00:00:00:00
Time code source                         : Group of pictures header
GOP, Open/Closed                         : Open
GOP, Open/Closed of first frame          : Closed
Stream size                              : 6.71 MiB (88%)
Matrix coefficients                      : BT.601

Audio
ID                                       : 192 (0xC0)
Format                                   : MPEG Audio
Format version                           : Version 1
Format profile                           : Layer 2
Duration                                 : 17 s 16 ms
Bit rate mode                            : Constant
Bit rate                                 : 384 kb/s
Channel(s)                               : 2 channels
Sampling rate                            : 48.0 kHz
Frame rate                               : 41.667 FPS (1152 SPF)
Compression mode                         : Lossy
Delay relative to video                  : -10 ms
Stream size                              : 798 KiB (10%)

hm .... it says progressive : /

There already 16:9 encodig presets in Create DVD wizard (? window where you can 
select few options inluding telecine, etc. try alt-d in main window)

> 
> 
> References
> ------------------
> MPEG-2 DVD-Video (Application)
> https://en.wikipedia.org/wiki/MPEG-2#DVD-Video
> 
> 16:9 is the only widescreen aspect ratio natively supported by the DVD 
> format. Anamorphic DVD transfers store the information as 5:4 (PAL) or
> 3:2 (NTSC) square pixels, which is set to expand to either 16:9 or 4:3, 
> which the television or video player handles. For example, a PAL DVD
> with a full frame image may contain a video resolution of 720×576 (5:4 
> ratio), but a video player software will stretch this to 1024×576 square
> pixels with a 16:9 flag in order to recreate the correct aspect ratio.
> 
> https://en.wikipedia.org/wiki/16:9
> 
> -------
> 
> DVD Video - Widescreen Anamorphic 16:9 16x9
> 
> A DVD labeled as "Widescreen Anamorphic" contains video that has the 
> same frame size in pixels as traditional fullscreen video, but uses
> wider pixels. The shape of the pixels is called pixel aspect ratio and 
> is encoded in the video stream for a DVD player to correctly identify
> the proportions of the video. If an anamorphic DVD video is played on  
> standard 4:3 television without adjustment, the image will look
> horizontally squeezed.
> 
> Although currently there is no labeling standard, DVDs with content 
> originally produced in an aspect ratio wider than 1.33:1 are typically
> labeled "Anamorphic Widescreen," "Enhanced for 16:9 televisions," 
> "Enhanced for widescreen televisions," or similar. If not so labeled,
> the DVD is intended for a 4:3 display ("fullscreen"), and will be 
> letterboxed or panned and scanned.
> 
> https://en.wikipedia.org/wiki/Anamorphic_widescreen#DVD_Video
> 
> 
> Terje J. H
> 


diff --git a/cinelerra-5.1/cinelerra/defaultformats.h b/cinelerra-5.1/cinelerra/defaultformats.h
index 61bd2165..28352b03 100644
--- a/cinelerra-5.1/cinelerra/defaultformats.h
+++ b/cinelerra-5.1/cinelerra/defaultformats.h
@@ -39,19 +39,59 @@ struct formatpresets
 };
 
 static struct formatpresets format_presets[] = {
-	{ N_("1080P/60"),		2, 2, 48000,	1, 1, 60000.0 / 1001,
+	{ N_("1080p/60"),		2, 2, 48000,	1, 1, 60,
 		1920,1080, 16,9, ILACE_MODE_NOTINTERLACED, BC_YUVA8888 },
-	{ N_("1080P/24"),		6, 6, 48000,	1, 1, 24,
+	{ N_("1080p/59.94"),		2, 2, 48000,	1, 1, 60000.0 / 1001,
 		1920,1080, 16,9, ILACE_MODE_NOTINTERLACED, BC_YUVA8888 },
-	{ N_("1080I"),		2, 2, 48000,	1, 1, 30000.0 / 1001,
+	{ N_("1080p/50"),		2, 2, 48000,	1, 1, 50,
+		1920,1080, 16,9, ILACE_MODE_NOTINTERLACED, BC_YUVA8888 },
+	{ N_("1080p/30"),		6, 6, 48000,	1, 1, 30,
+		1920,1080, 16,9, ILACE_MODE_NOTINTERLACED, BC_YUVA8888 },
+	{ N_("1080p/29.97"),		6, 6, 48000,	1, 1, 30000.0 / 1001,
+		1920,1080, 16,9, ILACE_MODE_NOTINTERLACED, BC_YUVA8888 },
+	{ N_("1080p/25"),		6, 6, 48000,	1, 1, 25,
+		1920,1080, 16,9, ILACE_MODE_NOTINTERLACED, BC_YUVA8888 },
+	{ N_("1080p/24"),		6, 6, 48000,	1, 1, 24,
+		1920,1080, 16,9, ILACE_MODE_NOTINTERLACED, BC_YUVA8888 },
+	{ N_("1080p/23.976"),		6, 6, 48000,	1, 1, 24000.0 / 1001,
+		1920,1080, 16,9, ILACE_MODE_NOTINTERLACED, BC_YUVA8888 },
+	{ N_("1080i/60"),		2, 2, 48000,	1, 1, 60,
+		1920,1080, 16,9, ILACE_MODE_BOTTOM_FIRST, BC_YUVA8888 },
+	{ N_("1080i/50"),		2, 2, 48000,	1, 1, 50,
+		1920,1080, 16,9, ILACE_MODE_BOTTOM_FIRST, BC_YUVA8888 },
+	{ N_("1080i/30"),		2, 2, 48000,	1, 1, 30,
 		1920,1080, 16,9, ILACE_MODE_BOTTOM_FIRST, BC_YUVA8888 },
-	{ N_("720P/60"),	2, 2, 48000,	1, 1, 60000.0 / 1001,
+	{ N_("1080i/29.97"),		2, 2, 48000,	1, 1, 30000.0 / 1001,
+		1920,1080, 16,9, ILACE_MODE_BOTTOM_FIRST, BC_YUVA8888 },
+	{ N_("1080i/25"),		2, 2, 48000,	1, 1, 25,
+		1920,1080, 16,9, ILACE_MODE_BOTTOM_FIRST, BC_YUVA8888 },
+	{ N_("1080i/24"),		2, 2, 48000,	1, 1, 24,
+		1920,1080, 16,9, ILACE_MODE_BOTTOM_FIRST, BC_YUVA8888 },
+	{ N_("HDV 1080i/29.97"),		2, 2, 48000,	1, 1, 30000.0 / 1001,
+		1440,1080, 16,9, ILACE_MODE_TOP_FIRST, BC_YUVA8888 },
+	{ N_("HDV 1080i/25"),		2, 2, 48000,	1, 1, 25,
+		1440,1080, 16,9, ILACE_MODE_TOP_FIRST, BC_YUVA8888 },
+	{ N_("(HDV) 720p/60"),	2, 2, 48000,	1, 1, 60000.0 / 1001,
+		1280,720,  16,9, ILACE_MODE_NOTINTERLACED, BC_YUVA8888 },
+	{ N_("(HDV 10 bit) 720p/60"),	2, 2, 48000,	1, 1, 60000.0 / 1001,
+		1280,720,  16,9, ILACE_MODE_NOTINTERLACED, BC_RGBA_FLOAT },
+	{ N_("(HDV) 720p/50"),	2, 2, 48000,	1, 1, 50,
+		1280,720,  16,9, ILACE_MODE_NOTINTERLACED, BC_YUVA8888 },
+	{ N_("(HDV) 720p/29.97"),	2, 2, 48000,	1, 1, 30000.0 / 1001,
+		1280,720,  16,9, ILACE_MODE_NOTINTERLACED, BC_YUVA8888 },
+	{ N_("(HDV) 720p/25"),	2, 2, 48000,	1, 1, 25,
+		1280,720,  16,9, ILACE_MODE_NOTINTERLACED, BC_YUVA8888 },
+	{ N_("(HDV) 720p/23.976"),	2, 2, 48000,	1, 1, 24000.0 / 1001,
 		1280,720,  16,9, ILACE_MODE_NOTINTERLACED, BC_YUVA8888 },
-	{ N_("PAL 576I - DV(D)"),	2, 2, 48000,	1, 1, 25,
+	{ N_("PAL 576i - DV(D)"),	2, 2, 48000,	1, 1, 25,
 		720,576,   4,3, ILACE_MODE_BOTTOM_FIRST, BC_YUVA8888 },
-	{ N_("NTSC 480P - DV(D)"),	2, 2, 48000,	1, 1, 60000.0 / 1001,
+	{ N_("PAL 576i (16:9) - DV(D)"),	2, 2, 48000,	1, 1, 25,
+		720,576,   16,9, ILACE_MODE_BOTTOM_FIRST, BC_YUVA8888 },
+	{ N_("PAL 576p (16:9) - DV(D)"),	2, 2, 48000,	1, 1, 25,
+		720,576,   16,9, ILACE_MODE_NOTINTERLACED, BC_YUVA8888 },
+	{ N_("NTSC 480p - DV(D)"),	2, 2, 48000,	1, 1, 60000.0 / 1001,
 		720,480,   4,3, ILACE_MODE_NOTINTERLACED, BC_YUVA8888 },
-	{ N_("NTSC 480I - DV(D)"),	2, 2, 48000,	1, 1, 30000.0 / 1001,
+	{ N_("NTSC 480i - DV(D)"),	2, 2, 48000,	1, 1, 30000.0 / 1001,
 		720,480,   4,3, ILACE_MODE_BOTTOM_FIRST, BC_YUVA8888 },
 	{ N_("YouTube"),		1, 1, 48000,	1, 1, 30000.0 / 1001,
 		424,318,   4,3, ILACE_MODE_NOTINTERLACED, BC_YUVA8888 },
-- 
Cin mailing list
[email protected]
https://lists.cinelerra-gg.org/mailman/listinfo/cin

Reply via email to