<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<font face="Courier New, Courier, monospace"><br>
</font><font face="Courier New, Courier, monospace"> </font><font
face="Courier New, Courier, monospace"> </font><br>
<font face="Courier New, Courier, monospace"> </font>
<div class="moz-cite-prefix"><font face="Courier New, Courier,
monospace">Den 07.12.2022 00:13, skrev Andrew Randrianasulu:<br>
</font></div>
<blockquote type="cite"
cite="mid:CA+rFky6XZSqc6oVMbQgrLLmP4=EeBCh2B0v982EB7riJEU4OTQ@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="auto">
<div><font face="Courier New, Courier, monospace">may be try
field_order as recommended here</font></div>
<div dir="auto"><font face="Courier New, Courier, monospace"><br>
</font></div>
<div dir="auto"><font face="Courier New, Courier, monospace"><a
href="https://forum.videohelp.com/threads/396483-ffmpeg-changes-interlaced-to-progressive"
moz-do-not-send="true" class="moz-txt-link-freetext">https://forum.videohelp.com/threads/396483-ffmpeg-changes-interlaced-to-progressive</a></font></div>
<div dir="auto"><font face="Courier New, Courier, monospace"><br>
</font></div>
<div dir="auto"><font face="Courier New, Courier, monospace">?<br>
</font></div>
</div>
</blockquote>
<br>
<font face="Courier New, Courier, monospace">I tried to add
'-field_order bb'</font><br>
<br>
<font face="Courier New, Courier, monospace"> ffmpeg -i dv28.dv -c:v
mpeg2video -c:a copy -mpegts_m2ts_mode 1 -field_order bb
dv28-mpeg2-SD-bluray.mts</font><br>
<font face="Courier New, Courier, monospace">...........</font><br>
<font face="Courier New, Courier, monospace">Stream #0:0: Video:
mpeg2video (Main), yuv420p(bottom first), 720x576 [SAR 16:15 DAR
4:3], q=2-31, 200 kb/s, 25 fps, 90k tbn</font><br>
<font face="Courier New, Courier, monospace"> Metadata:</font><br>
<font face="Courier New, Courier, monospace"> encoder :
Lavc59.37.100 mpeg2video</font><br>
<font face="Courier New, Courier, monospace"> Side data:</font><br>
<font face="Courier New, Courier, monospace"> cpb: bitrate
max/min/avg: 0/0/200000 buffer size: 0 vbv_delay: N/A</font><br>
<font face="Courier New, Courier, monospace"> Stream #0:1: Audio:
pcm_s16le, 48000 Hz, stereo, s16, 1536 kb/s</font><br>
<br>
<font face="Courier New, Courier, monospace">[mpegts @
0x564149f05bc0] Stream 1, codec pcm_s16le, is muxed as a private
data stream and may not be recognized upon reading.</font><br>
<font face="Courier New, Courier, monospace">...............</font><br>
<br>
<br>
<font face="Courier New, Courier, monospace">I tried also the other
-field_order values according to the ffmpeg manual: 'tt', 'tb',
'bt' </font><br>
<font face="Courier New, Courier, monospace"> </font><font
face="Courier New, Courier, monospace">but all changed the input
DV interlaced videdo to Scan type Progressive MPEG-2 output video,
as in first post below.</font><br>
<br>
<br>
<font face="Courier New, Courier, monospace">A side notes;<br>
1080i HDV (scan order tff) copied to Blu-ray MPEG-2 did work
interlaced.<br>
</font><br>
<font face="Courier New, Courier, monospace">According to wikipedia
the supported SD formats on Blu-ray video are interlaced 720×576
25i and 720×480 29.97i, 4:3 or 16:9</font><br>
<font face="Courier New, Courier, monospace">Yet, the SD VOB (dvd)
progressive mpeg-2 video I encoded to BD, did playback in my
Blu-ray hardware player.</font><br>
<font face="Courier New, Courier, monospace"> </font><br>
<br>
<font face="Courier New, Courier, monospace"> </font><br>
<font face="Courier New, Courier, monospace"> </font>
<blockquote type="cite"
cite="mid:CA+rFky6XZSqc6oVMbQgrLLmP4=EeBCh2B0v982EB7riJEU4OTQ@mail.gmail.com">
<div dir="auto">
<div dir="auto"><font face="Courier New, Courier, monospace"><br>
</font>
<div class="gmail_quote" dir="auto">
<div dir="ltr" class="gmail_attr"><font face="Courier New,
Courier, monospace">ср, 7 дек. 2022 г., 01:53 Terje J.
Hanssen via Cin <<a
href="mailto:cin@lists.cinelerra-gg.org"
moz-do-not-send="true" class="moz-txt-link-freetext">cin@lists.cinelerra-gg.org</a>>:<br>
</font></div>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex"><font
face="Courier New, Courier, monospace">With HDV 'in the
Blu-ray box' I would like to test if it possible to use
<br>
equivalent procedures for DV to SD-Blu-ray video.<br>
</font> <font face="Courier New, Courier, monospace"><br>
That is continue as an alternative to the 2021 thread
here:<br>
</font> <font face="Courier New, Courier, monospace"><a
href="https://lists.cinelerra-gg.org/pipermail/cin/2021-December/004268.html"
rel="noreferrer noreferrer" target="_blank"
moz-do-not-send="true" class="moz-txt-link-freetext">https://lists.cinelerra-gg.org/pipermail/cin/2021-December/004268.html</a><br>
</font> <font face="Courier New, Courier, monospace"><br>
Blu-ray compliant MPEG-2 SD video with LPCM audio<br>
-------------------------------------------------<br>
</font> <font face="Courier New, Courier, monospace"><br>
1) Encode DV to MPEG-2 video and copy PCM audio as is to
a VOB/MPG format:<br>
</font> <font face="Courier New, Courier, monospace"><br>
ffmpeg -i dv28.dv -c:v mpeg2video -refs 1 -bf 2 -b:v 25M
-maxrate 25M<br>
-minrate 25M -bufsize 45M -muxrate 45M -dc 10 -c:a
pcm_s16be -f vob <br>
dv28_25mbps.mpg<br>
</font> <font face="Courier New, Courier, monospace"><br>
2) tsMuxer<br>
As FFMpeg (then) would not allow to mux PCM or remux MPG
to M2TS, I <br>
tested tsMuxer,<br>
see the attached screenshot: tsMuxer_SD_M2TS<br>
Input file: dv28_25mbps.mpg<br>
Tracs: MPEG-2 video stream and LPCM audio stream<br>
Output: dv28_25mbps.iso<br>
</font> <font face="Courier New, Courier, monospace"><br>
------------------------<br>
</font> <font face="Courier New, Courier, monospace"><br>
Using Mediainfo to compare the source dv28.dv ffmpeg
input file with its <br>
output file dv28_25mbps.mpg (intermediate) and with the
resulting <br>
dv28_25mbps.iso, show that the interlaced dv video was
changed to <br>
progressive VOB/BVOB dvd video.<br>
</font> <font face="Courier New, Courier, monospace"><br>
> mediainfo dv28.dv | egrep
'Format|Scan|Width|Height|Bit'<br>
Format : DV<br>
Format : DV<br>
Bit rate mode : Constant<br>
Bit rate : 24.4 Mb/s<br>
Width : 720 pixels<br>
Height : 576 pixels<br>
Bit depth : 8 bits<br>
Scan type : Interlaced<br>
Scan order : Bottom Field
First<br>
Bits/(Pixel*Frame) : 2.357<br>
Format : PCM<br>
Format settings : Big / Signed<br>
Bit rate mode : Constant<br>
Bit rate : 1 536 kb/s<br>
Bit depth : 16 bits<br>
</font> <font face="Courier New, Courier, monospace"><br>
> mediainfo dv28_25mbps.mpg | egrep
'Format|Scan|Width|Height|Bit'<br>
Format : MPEG-PS<br>
Format : MPEG Video<br>
Format version : Version 2<br>
Format profile : Main@Main<br>
Format settings : BVOP<br>
Format settings, BVOP : Yes<br>
Format settings, Matrix : Default<br>
Format settings, GOP : M=3, N=12<br>
Bit rate mode : Variable<br>
Bit rate : 24.7 Mb/s<br>
Width : 720 pixels<br>
Height : 576 pixels<br>
Bit depth : 8 bits<br>
Scan type : Progressive<br>
Bits/(Pixel*Frame) : 2.384<br>
Format : PCM<br>
Format settings : Big / Signed<br>
Bit rate mode : Constant<br>
Bit rate : 1 536 kb/s<br>
Bit depth : 16 bits<br>
</font> <font face="Courier New, Courier, monospace"><br>
> mediainfo dv28_25mbps.iso | egrep
'Format|Scan|Width|Height|Bit'<br>
Format : MPEG Video<br>
Format version : Version 2<br>
Format : MPEG Video<br>
Format version : Version 2<br>
Format profile : Main@Main<br>
Format settings : BVOP<br>
Format settings, BVOP : Yes<br>
Format settings, Matrix : Default<br>
Format settings, GOP : M=3, N=12<br>
Bit rate mode : Variable<br>
Bit rate : 28.0 Mb/s<br>
Width : 720 pixels<br>
Height : 576 pixels<br>
Bit depth : 8 bits<br>
Scan type : Progressive<br>
Bits/(Pixel*Frame) : 2.703<br>
</font> <font face="Courier New, Courier, monospace"><br>
-----------------------------------<br>
</font> <font face="Courier New, Courier, monospace"><br>
That is, suggestion how to merge/customize the newer
ffmpeg HDV to <br>
Blu-ray procedure<br>
ffmpeg -i hdv.m2t -c:v copy -c:a pcm_bluray
-mpegts_m2ts_mode 1 output.mts<br>
</font> <font face="Courier New, Courier, monospace"><br>
for SD-DV to keep it interlaced and get dv28_25mbps.m2ts
muxed directly?<br>
</font> <font face="Courier New, Courier, monospace"><br>
------------------<br>
</font> <font face="Courier New, Courier, monospace"><br>
I did a first try with the following line, without
taking care of <br>
25mbps, but got lost the pcm audio to a privat stream
(change mode?).<br>
Additional the vido is not kept interlaced.<br>
</font> <font face="Courier New, Courier, monospace"><br>
</font> <font face="Courier New, Courier, monospace"><br>
ffmpeg version 5.1.2 Copyright (c) 2000-2022 the FFmpeg
developers<br>
built with gcc 12 (SUSE Linux)<br>
..........snip<br>
[dv @ 0x55b59acfeb80] Estimating duration from bitrate,
this may be <br>
inaccurate<br>
Input #0, dv, from 'dv28.dv':<br>
Metadata:<br>
timecode : 00:00:00:00<br>
Duration: 00:02:16.64, start: 0.000000, bitrate:
28800 kb/s<br>
Stream #0:0: Video: dvvideo, yuv420p, 720x576 [SAR
16:15 DAR 4:3], <br>
25000 kb/s, 25 fps, 25 tbr, 25 tbn<br>
Stream #0:1: Audio: pcm_s16le, 48000 Hz, stereo, s16,
1536 kb/s<br>
Stream mapping:<br>
Stream #0:0 -> #0:0 (dvvideo (native) ->
mpeg2video (native))<br>
Stream #0:1 -> #0:1 (copy)<br>
Press [q] to stop, [?] for help<br>
Output #0, mpegts, to 'dv28-mpeg2-SD-bluray.mts':<br>
Metadata:<br>
timecode : 00:00:00:00<br>
encoder : Lavf59.27.100<br>
Stream #0:0: Video: mpeg2video (Main), yuv420p(bottom
coded first <br>
(swapped)), 720x576 [SAR 16:15 DAR 4:3], q=2-31, 200
kb/s, 25 fps, 90k tbn<br>
Metadata:<br>
encoder : Lavc59.37.100 mpeg2video<br>
Side data:<br>
cpb: bitrate max/min/avg: 0/0/200000 buffer size:
0 vbv_delay: N/A<br>
Stream #0:1: Audio: pcm_s16le, 48000 Hz, stereo, s16,
1536 kb/s<br>
[mpegts @ 0x55b59ad3dd40] Stream 1, codec pcm_s16le, is
muxed as a <br>
private data stream and may not be recognized upon
reading.<br>
frame= 3416 fps=586 q=31.0 Lsize= 39336kB
time=00:02:16.64 <br>
bitrate=2358.3kbits/s speed=23.4x<br>
video:11070kB audio:25620kB subtitle:0kB other
streams:0kB global <br>
headers:0kB muxing overhead: 7.211923%<br>
terje@localhost:/run/media/terje/Seagate_4TB_back/data/Video-test/SD_Blu-ray>
<br>
</font> <font face="Courier New, Courier, monospace"><br>
terje@localhost:/run/media/terje/Seagate_4TB_back/data/Video-test/SD_Blu-ray>
<br>
ffmpeg -i dv28-mpeg2-SD-bluray.mts 2>&1
>/dev/null | egrep "Video|Audio"<br>
Stream #0:0[0x1011]: Video: mpeg2video (Main)
([2][0][0][0] / <br>
0x0002), yuv420p(tv, progressive), 720x576 [SAR 16:15
DAR 4:3], 25 fps, <br>
25 tbr, 90k tbn<br>
</font> <font face="Courier New, Courier, monospace"><br>
</font> <font face="Courier New, Courier, monospace"><br>
mediainfo dv28-mpeg2-SD-bluray.mts | egrep
'Format|Scan|Width|Height|Bit'<br>
Format : BDAV<br>
Format/Info : Blu-ray Video<br>
Format : MPEG Video<br>
Format version : Version 2<br>
Format profile : Main@Main<br>
Format settings, BVOP : No<br>
Format settings, Matrix : Default<br>
Format settings, GOP : Variable<br>
Bit rate mode : Variable<br>
Bit rate : 2 257 kb/s<br>
Width : 720 pixels<br>
Height : 576 pixels<br>
Bit depth : 8 bits<br>
Scan type : Progressive<br>
Bits/(Pixel*Frame) : 0.218<br>
Format : MPEG Video /<br>
</font> <font face="Courier New, Courier, monospace"><br>
</font> <font face="Courier New, Courier, monospace"><br>
</font> <font face="Courier New, Courier, monospace"><br>
</font> <font face="Courier New, Courier, monospace"><br>
</font> <font face="Courier New, Courier, monospace"><br>
</font> <font face="Courier New, Courier, monospace"><br>
-- <br>
Cin mailing list<br>
</font> <font face="Courier New, Courier, monospace"><a
href="mailto:Cin@lists.cinelerra-gg.org"
target="_blank" rel="noreferrer"
moz-do-not-send="true" class="moz-txt-link-freetext">Cin@lists.cinelerra-gg.org</a><br>
</font> <font face="Courier New, Courier, monospace"><a
href="https://lists.cinelerra-gg.org/mailman/listinfo/cin"
rel="noreferrer noreferrer" target="_blank"
moz-do-not-send="true" class="moz-txt-link-freetext">https://lists.cinelerra-gg.org/mailman/listinfo/cin</a><br>
</font> </blockquote>
</div>
</div>
</div>
</blockquote>
<br>
<font face="Courier New, Courier, monospace"> </font>
</body>
</html>