<div dir="auto"><div>may be try field_order as recommended here</div><div dir="auto"><br></div><div dir="auto"><a href="https://forum.videohelp.com/threads/396483-ffmpeg-changes-interlaced-to-progressive">https://forum.videohelp.com/threads/396483-ffmpeg-changes-interlaced-to-progressive</a></div><div dir="auto"><br></div><div dir="auto">?<br><br><div class="gmail_quote" dir="auto"><div dir="ltr" class="gmail_attr">ср, 7 дек. 2022 г., 01:53 Terje J. Hanssen via Cin <<a href="mailto:cin@lists.cinelerra-gg.org">cin@lists.cinelerra-gg.org</a>>:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">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>
<br>
That is continue as an alternative to the 2021 thread here:<br>
<a href="https://lists.cinelerra-gg.org/pipermail/cin/2021-December/004268.html" rel="noreferrer noreferrer" target="_blank">https://lists.cinelerra-gg.org/pipermail/cin/2021-December/004268.html</a><br>
<br>
Blu-ray compliant MPEG-2 SD video with LPCM audio<br>
-------------------------------------------------<br>
<br>
1) Encode DV to MPEG-2 video and copy PCM audio as is to a VOB/MPG format:<br>
<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>
<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>
<br>
------------------------<br>
<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>
<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>
<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>
<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>
<br>
-----------------------------------<br>
<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>
<br>
for SD-DV to keep it interlaced and get dv28_25mbps.m2ts muxed directly?<br>
<br>
------------------<br>
<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>
<br>
<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>
<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>
<br>
<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>
<br>
<br>
<br>
<br>
<br>
<br>
-- <br>
Cin mailing list<br>
<a href="mailto:Cin@lists.cinelerra-gg.org" target="_blank" rel="noreferrer">Cin@lists.cinelerra-gg.org</a><br>
<a href="https://lists.cinelerra-gg.org/mailman/listinfo/cin" rel="noreferrer noreferrer" target="_blank">https://lists.cinelerra-gg.org/mailman/listinfo/cin</a><br>
</blockquote></div></div></div>