[FFmpeg-user] transcoding with -filter_complex 'colorspace=' not working as hoped

hydra3333 at gmail.com hydra3333 at gmail.com
Mon Feb 27 13:29:03 EET 2023


Hello.

I am attempting to shrink a progressive 1080p PAL clip to PAL DVD 576p and change colorspace from bt709 to bt601.

Unfortunately I must be doing something wrong but I do not know what, since in this filter complex:
-filter_complex "pad=0:1080:0:-1,scale=720:576:flags='lanczos+accurate_rnd+full_chroma_int+full_chroma_inp',setdar=16/9"
the "colorspace=bt709:iall=bt601-6-625:fast=0" seems to be ignored entirely and the resulting clip is BT709.

Perhaps I am misunderstanding how to use colorspace= ?

Suggestions would be very welcome.
(I have tried the flags in the filter_complex with and without the single-quotes, with the same result).

Thank you.

Debug log (with lots of encoding stuff snipped) including mediainfo before and after:

G:\DVD\PAT-SLIDESHOWS\2012>"C:\SOFTWARE\MediaInfo\MediaInfo.exe" --full "G:\DVD\PAT-SLIDESHOWS\2012\NVEExport.0001.mp4" 
General
Count                                    : 343
Count of stream of this kind             : 1
Kind of stream                           : General
Kind of stream                           : General
Stream identifier                        : 0
Count of video streams                   : 1
Count of audio streams                   : 1
Count of menu streams                    : 1
Video_Format_List                        : AVC
Video_Format_WithHint_List               : AVC
Codecs Video                             : AVC
Video_Language_List                      : English
Audio_Format_List                        : AAC LC
Audio_Format_WithHint_List               : AAC LC
Audio codecs                             : AAC LC
Audio_Language_List                      : English
Complete name                            : G:\DVD\PAT-SLIDESHOWS\2012\NVEExport.0001.mp4
Folder name                              : G:\DVD\PAT-SLIDESHOWS\2012
File name extension                      : NVEExport.0001.mp4
File name                                : NVEExport.0001
File extension                           : mp4
Format                                   : MPEG-4
Format                                   : MPEG-4
Format/Extensions usually used           : braw mov mp4 m4v m4a m4b m4p m4r 3ga 3gpa 3gpp 3gp 3gpp2 3g2 k3g jpm jpx mqv ismv isma
ismt f4a f4b f4v
Commercial name                          : MPEG-4
Format profile                           : Base Media / Version 2
Internet media type                      : video/mp4
Codec ID                                 : mp42
Codec ID                                 : mp42 (ndhd/avc1/mp42/isom)
Codec ID/Url                             : http://www.apple.com/quicktime/download/standalone.html
CodecID_Compatible                       : ndhd/avc1/mp42/isom
File size                                : 549907453
File size                                : 524 MiB
File size                                : 524 MiB
File size                                : 524 MiB
File size                                : 524 MiB
File size                                : 524.4 MiB
Duration                                 : 548032
Duration                                 : 9 min 8 s
Duration                                 : 9 min 8 s 32 ms
Duration                                 : 9 min 8 s
Duration                                 : 00:09:08.032
Duration                                 : 00:09:07:24
Duration                                 : 00:09:08.032 (00:09:07:24)
Overall bit rate mode                    : VBR
Overall bit rate mode                    : Variable
Overall bit rate                         : 8027377
Overall bit rate                         : 8 027 kb/s
Frame rate                               : 25.000
Frame rate                               : 25.000 FPS
Frame count                              : 13699
Stream size                              : 196722
Stream size                              : 192 KiB (0%)
Stream size                              : 192 KiB
Stream size                              : 192 KiB
Stream size                              : 192 KiB
Stream size                              : 192.1 KiB
Stream size                              : 192 KiB (0%)
Proportion of this stream                : 0.00036
HeaderSize                               : 32
DataSize                                 : 549710747
FooterSize                               : 196674
IsStreamable                             : No
Encoded date                             : UTC 2023-02-27 04:38:57
Tagged date                              : UTC 2023-02-27 04:40:33
File creation date                       : UTC 2023-02-27 04:38:57.891
File creation date (local)               : 2023-02-27 15:08:57.891
File last modification date              : UTC 2023-02-27 04:40:33.134
File last modification date (local)      : 2023-02-27 15:10:33.134

Video
Count                                    : 382
Count of stream of this kind             : 1
Kind of stream                           : Video
Kind of stream                           : Video
Stream identifier                        : 0
StreamOrder                              : 0
ID                                       : 1
ID                                       : 1
Format                                   : AVC
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Format/Url                               : http://developers.videolan.org/x264.html
Commercial name                          : AVC
Format profile                           : Baseline at L4.1 <mailto:Baseline at L4.1> 
Format settings                          : 3 Ref Frames
Format settings, CABAC                   : No
Format settings, CABAC                   : No
Format settings, Reference frames        : 3
Format settings, Reference frames        : 3 frames
Internet media type                      : video/H264
Codec ID                                 : avc1
Codec ID/Info                            : Advanced Video Coding
Duration                                 : 547960
Duration                                 : 9 min 7 s
Duration                                 : 9 min 7 s 960 ms
Duration                                 : 9 min 7 s
Duration                                 : 00:09:07.960
Duration                                 : 00:09:07:24
Duration                                 : 00:09:07.960 (00:09:07:24)
Bit rate mode                            : VBR
Bit rate mode                            : Variable
Bit rate                                 : 7900697
Bit rate                                 : 7 901 kb/s
Maximum bit rate                         : 40000000
Maximum bit rate                         : 40.0 Mb/s
Width                                    : 1920
Width                                    : 1 920 pixels
Height                                   : 1080
Height                                   : 1 080 pixels
Stored_Height                            : 1088
Sampled_Width                            : 1920
Sampled_Height                           : 1080
Pixel aspect ratio                       : 1.000
Display aspect ratio                     : 1.778
Display aspect ratio                     : 16:9
Rotation                                 : 0.000
Frame rate mode                          : CFR
Frame rate mode                          : Constant
Frame rate                               : 25.000
Frame rate                               : 25.000 FPS
FrameRate_Num                            : 25
FrameRate_Den                            : 1
Frame count                              : 13699
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Chroma subsampling                       : 4:2:0
Bit depth                                : 8
Bit depth                                : 8 bits
Scan type                                : Progressive
Scan type                                : Progressive
Bits/(Pixel*Frame)                       : 0.152
Stream size                              : 541158251
Stream size                              : 516 MiB (98%)
Stream size                              : 516 MiB
Stream size                              : 516 MiB
Stream size                              : 516 MiB
Stream size                              : 516.1 MiB
Stream size                              : 516 MiB (98%)
Proportion of this stream                : 0.98409
Language                                 : en
Language                                 : English
Language                                 : English
Language                                 : en
Language                                 : eng
Language                                 : en
Encoded date                             : UTC 2023-02-27 04:38:58
Tagged date                              : UTC 2023-02-27 04:40:33
Buffer size                              : 62500000
Codec configuration box                  : avcC

Audio
Count                                    : 285
Count of stream of this kind             : 1
Kind of stream                           : Audio
Kind of stream                           : Audio
Stream identifier                        : 0
StreamOrder                              : 1
ID                                       : 2
ID                                       : 2
Format                                   : AAC
Format                                   : AAC LC
Format/Info                              : Advanced Audio Codec Low Complexity
Commercial name                          : AAC
Format settings, SBR                     : No (Explicit)
Format settings, SBR                     : No (Explicit)
Format_AdditionalFeatures                : LC
Codec ID                                 : mp4a-40-2
Duration                                 : 548032
Duration                                 : 9 min 8 s
Duration                                 : 9 min 8 s 32 ms
Duration                                 : 9 min 8 s
Duration                                 : 00:09:08.032
Duration                                 : 00:09:08.032
Bit rate mode                            : VBR
Bit rate mode                            : Variable
Bit rate                                 : 124840
Bit rate                                 : 125 kb/s
Maximum bit rate                         : 132512
Maximum bit rate                         : 133 kb/s
Channel(s)                               : 2
Channel(s)                               : 2 channels
Channel positions                        : Front: L R
Channel positions                        : 2/0/0
Channel layout                           : L R
Samples per frame                        : 1024
Sampling rate                            : 48000
Sampling rate                            : 48.0 kHz
Samples count                            : 26305536
Frame rate                               : 46.875
Frame rate                               : 46.875 FPS (1024 SPF)
Frame count                              : 25689
Compression mode                         : Lossy
Compression mode                         : Lossy
Stream size                              : 8552480
Stream size                              : 8.16 MiB (2%)
Stream size                              : 8 MiB
Stream size                              : 8.2 MiB
Stream size                              : 8.16 MiB
Stream size                              : 8.156 MiB
Stream size                              : 8.16 MiB (2%)
Proportion of this stream                : 0.01555
Language                                 : en
Language                                 : English
Language                                 : English
Language                                 : en
Language                                 : eng
Language                                 : en
Encoded date                             : UTC 2023-02-27 04:38:57
Tagged date                              : UTC 2023-02-27 04:40:33

Menu
Count                                    : 95
Count of stream of this kind             : 1
Kind of stream                           : Menu
Kind of stream                           : Menu
Stream identifier                        : 0
Chapters_Pos_Begin                       : 94
Chapters_Pos_End                         : 95
00:00:00.000                             : Start

REM -filter_complex
"pad=0:1080:0:-1,scale=720:576:flags='lanczos+accurate_rnd+full_chroma_int+full_chroma_inp',colorspace=bt709:iall=bt601-6-625:fast=0
,setdar=16/9"

G:\DVD\PAT-SLIDESHOWS\2012>"!ffmpegexe64_OpenCL!" -hide_banner -v debug -i "G:\DVD\PAT-SLIDESHOWS\2012\NVEExport.0001.mp4"
-probesize 200M -analyzeduration 200M -sws_flags lanczos+accurate_rnd+full_chroma_int+full_chroma_inp -strict experimental
-filter_complex
"pad=0:1080:0:-1,scale=720:576:flags='lanczos+accurate_rnd+full_chroma_int+full_chroma_inp',colorspace=bt709:iall=bt601-6-625:fast=0
,setdar=16/9" 	-target pal-dvd -g 25 -b:v 9000000 -minrate:v 3000000 -maxrate:v 9200000 -bufsize 1835008 -packetsize 2048 -muxrate
10080000  		-y "G:\DVD\PAT-SLIDESHOWS\2012\NVEExport.0001.DVD.mpg" 
Splitting the commandline.
Reading option '-hide_banner' ... matched as option 'hide_banner' (do not show program banner) with argument '1'.
Reading option '-v' ... matched as option 'v' (set logging level) with argument 'debug'.
Reading option '-i' ... matched as input url with argument 'G:\DVD\PAT-SLIDESHOWS\2012\NVEExport.0001.mp4'.
Reading option '-probesize' ... matched as AVOption 'probesize' with argument '200M'.
Reading option '-analyzeduration' ... matched as AVOption 'analyzeduration' with argument '200M'.
Reading option '-sws_flags' ... matched as AVOption 'sws_flags' with argument
'lanczos+accurate_rnd+full_chroma_int+full_chroma_inp'.
Reading option '-strict' ...Routing option strict to both codec and muxer layer
 matched as AVOption 'strict' with argument 'experimental'.
Reading option '-filter_complex' ... matched as option 'filter_complex' (create a complex filtergraph) with argument
'pad=0:1080:0:-1,scale=720:576:flags='lanczos+accurate_rnd+full_chroma_int+full_chroma_inp',colorspace=bt709:iall=bt601-6-625:fast=0
,setdar=16/9'.
Reading option '-target' ... matched as option 'target' (specify target file type ("vcd", "svcd", "dvd", "dv" or "dv50" with
optional prefixes "pal-", "ntsc-" or "film-")) with argument 'pal-dvd'.
Reading option '-g' ... matched as AVOption 'g' with argument '25'.
Reading option '-b:v' ... matched as option 'b' (video bitrate (please use -b:v)) with argument '9000000'.
Reading option '-minrate:v' ... matched as AVOption 'minrate:v' with argument '3000000'.
Reading option '-maxrate:v' ... matched as AVOption 'maxrate:v' with argument '9200000'.
Reading option '-bufsize' ... matched as AVOption 'bufsize' with argument '1835008'.
Reading option '-packetsize' ... matched as AVOption 'packetsize' with argument '2048'.
Reading option '-muxrate' ... matched as AVOption 'muxrate' with argument '10080000'.
Reading option '-y' ... matched as option 'y' (overwrite output files) with argument '1'.
Reading option 'G:\DVD\PAT-SLIDESHOWS\2012\NVEExport.0001.DVD.mpg' ... matched as output url.
Finished splitting the commandline.
Parsing a group of options: global .
Applying option hide_banner (do not show program banner) with argument 1.
Applying option v (set logging level) with argument debug.
Applying option filter_complex (create a complex filtergraph) with argument
pad=0:1080:0:-1,scale=720:576:flags='lanczos+accurate_rnd+full_chroma_int+full_chroma_inp',colorspace=bt709:iall=bt601-6-625:fast=0,
setdar=16/9.
Applying option y (overwrite output files) with argument 1.
Successfully parsed a group of options.
Parsing a group of options: input url G:\DVD\PAT-SLIDESHOWS\2012\NVEExport.0001.mp4.
Successfully parsed a group of options.
Opening an input file: G:\DVD\PAT-SLIDESHOWS\2012\NVEExport.0001.mp4.
[NULL @ 0000016365abb880] Opening 'G:\DVD\PAT-SLIDESHOWS\2012\NVEExport.0001.mp4' for reading
[file @ 0000016363fa7dc0] Setting default whitelist 'file,crypto,data'
[mov,mp4,m4a,3gp,3g2,mj2 @ 0000016365abb880] Format mov,mp4,m4a,3gp,3g2,mj2 probed with size=2048 and score=100
[mov,mp4,m4a,3gp,3g2,mj2 @ 0000016365abb880] ISO: File Type Major Brand: mp42
[mov,mp4,m4a,3gp,3g2,mj2 @ 0000016365abb880] Unknown dref type 0x206c7275 size 12
[mov,mp4,m4a,3gp,3g2,mj2 @ 0000016365abb880] Processing st: 0, edit list 0 - media time: 0, duration: 13699000
[mov,mp4,m4a,3gp,3g2,mj2 @ 0000016365abb880] Unknown dref type 0x206c7275 size 12
[mov,mp4,m4a,3gp,3g2,mj2 @ 0000016365abb880] Processing st: 1, edit list 0 - media time: 0, duration: 26305536
[mov,mp4,m4a,3gp,3g2,mj2 @ 0000016365abb880] Before avformat_find_stream_info() pos: 549907453 bytes read:229442 seeks:1
nb_streams:2
[h264 @ 0000016365abefc0] nal_unit_type: 7(SPS), nal_ref_idc: 3
[h264 @ 0000016365abefc0] Decoding VUI
<snip>
Transform tree:
    mdct_fwd_float_c - type: mdct_float, len: 1024, factors[2]: [2, any], flags: [unaligned, out_of_place, fwd_only]
        fft_sr_ns_float_fma3 - type: fft_float, len: 512, factor: 2, flags: [aligned, inplace, out_of_place, preshuf]
[h264 @ 0000016365abefc0] nal_unit_type: 7(SPS), nal_ref_idc: 3
[h264 @ 0000016365abefc0] Decoding VUI
[h264 @ 0000016365abefc0] nal_unit_type: 8(PPS), nal_ref_idc: 3
[h264 @ 0000016365abefc0] nal_unit_type: 5(IDR), nal_ref_idc: 3
[h264 @ 0000016365abefc0] Format yuv420p chosen by get_format().
[h264 @ 0000016365abefc0] Reinit context to 1920x1088, pix_fmt: yuv420p
[mov,mp4,m4a,3gp,3g2,mj2 @ 0000016365abb880] All info found
[mov,mp4,m4a,3gp,3g2,mj2 @ 0000016365abb880] After avformat_find_stream_info() pos: 386032 bytes read:615426 seeks:2 frames:25
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'G:\DVD\PAT-SLIDESHOWS\2012\NVEExport.0001.mp4':
  Metadata:
    major_brand     : mp42
    minor_version   : 0
    compatible_brands: ndhdavc1mp42isom
    creation_time   : 2023-02-27T04:38:57.000000Z
  Duration: 00:09:08.03, start: 0.000000, bitrate: 8027 kb/s
  Chapters:
    Chapter #0:0: start 0.000000, end 548.032000
      Metadata:
        title           : Start
  Stream #0:0[0x1](eng), 1, 1/25000: Video: h264 (Constrained Baseline), 1 reference frame (avc1 / 0x31637661), yuv420p(progressive,
left), 1920x1080 (1920x1088) [SAR 1:1 DAR 16:9], 0/1, 7900 kb/s, 25 fps, 25 tbr, 25k tbn (default)
    Metadata:
      creation_time   : 2023-02-27T04:38:58.000000Z
      handler_name    : Video Media Handler
      vendor_id       : [0][0][0][0]
      encoder         : AVC Coding
  Stream #0:1[0x2](eng), 24, 1/48000: Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 124 kb/s (default)
    Metadata:
      creation_time   : 2023-02-27T04:38:57.000000Z
      handler_name    : Sound Media Handler
      vendor_id       : [0][0][0][0]
Successfully opened the file.
[AVFilterGraph @ 0000016365b70100] Setting 'width' to value '0'
[AVFilterGraph @ 0000016365b70100] Setting 'height' to value '1080'
[AVFilterGraph @ 0000016365b70100] Setting 'x' to value '0'
[AVFilterGraph @ 0000016365b70100] Setting 'y' to value '-1'
[AVFilterGraph @ 0000016365b70100] Setting 'w' to value '720'
[AVFilterGraph @ 0000016365b70100] Setting 'h' to value '576'
[AVFilterGraph @ 0000016365b70100] Setting 'flags' to value 'lanczos+accurate_rnd+full_chroma_int+full_chroma_inp'
[AVFilterGraph @ 0000016365b70100] Setting 'all' to value 'bt709'
[AVFilterGraph @ 0000016365b70100] Setting 'iall' to value 'bt601-6-625'
[AVFilterGraph @ 0000016365b70100] Setting 'fast' to value '0'
[AVFilterGraph @ 0000016365b70100] Setting 'dar' to value '16/9'
[Parsed_scale_1 @ 0000016366119940] w:720 h:576 flags:'lanczos+accurate_rnd+full_chroma_int+full_chroma_inp' interl:0
Parsing a group of options: output url G:\DVD\PAT-SLIDESHOWS\2012\NVEExport.0001.DVD.mpg.
Applying option target (specify target file type ("vcd", "svcd", "dvd", "dv" or "dv50" with optional prefixes "pal-", "ntsc-" or
"film-")) with argument pal-dvd.
Applying option b:v (video bitrate (please use -b:v)) with argument 9000000.
Successfully parsed a group of options.
Opening an output file: G:\DVD\PAT-SLIDESHOWS\2012\NVEExport.0001.DVD.mpg.
[file @ 0000016365b6d640] Setting default whitelist 'file,crypto,data'
Successfully opened the file.
detected 24 logical cores
<snip>
Stream mapping:
  Stream #0:0 (h264) -> pad:default (graph 0)
  setdar:default (graph 0) -> Stream #0:0 (mpeg2video)
  Stream #0:1 -> #0:1 (aac (native) -> ac3 (native))
Press [q] to stop, [?] for help
[vost#0:0/mpeg2video @ 0000016365e4b640] cur_dts is invalid [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the
start per stream)
[graph_1_in_0_1 @ 0000016365b611c0] Setting 'time_base' to value '1/48000'
[graph_1_in_0_1 @ 0000016365b611c0] Setting 'sample_rate' to value '48000'
[graph_1_in_0_1 @ 0000016365b611c0] Setting 'sample_fmt' to value 'fltp'
[graph_1_in_0_1 @ 0000016365b611c0] Setting 'channel_layout' to value 'stereo'
[graph_1_in_0_1 @ 0000016365b611c0] tb:1/48000 samplefmt:fltp samplerate:48000 chlayout:stereo
[format_out_0_1 @ 0000016363fa79c0] Setting 'sample_fmts' to value 'fltp'
[format_out_0_1 @ 0000016363fa79c0] Setting 'sample_rates' to value '48000'
[format_out_0_1 @ 0000016363fa79c0] Setting 'channel_layouts' to value
'mono|stereo|3.0(back)|3.0|quad(side)|quad|4.0|5.0(side)|5.0|2 channels (FC+LFE)|2.1|4 channels
(FL+FR+LFE+BC)|3.1|4.1|5.1(side)|5.1'
[AVFilterGraph @ 0000016365be3a00] query_formats: 4 queried, 9 merged, 0 already done, 0 delayed
<snip>
[AVFilterGraph @ 000001636b522b00] Setting 'width' to value '0'
[AVFilterGraph @ 000001636b522b00] Setting 'height' to value '1080'
[AVFilterGraph @ 000001636b522b00] Setting 'x' to value '0'
[AVFilterGraph @ 000001636b522b00] Setting 'y' to value '-1'
[AVFilterGraph @ 000001636b522b00] Setting 'w' to value '720'
[AVFilterGraph @ 000001636b522b00] Setting 'h' to value '576'
[AVFilterGraph @ 000001636b522b00] Setting 'flags' to value 'lanczos+accurate_rnd+full_chroma_int+full_chroma_inp'
[h264 @ 0000016366843b40] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 3
[AVFilterGraph @ 000001636b522b00] Setting 'all' to value 'bt709'
[AVFilterGraph @ 000001636b522b00] Setting 'iall' to value 'bt601-6-625'
[AVFilterGraph @ 000001636b522b00] Setting 'fast' to value '0'
[AVFilterGraph @ 000001636b522b00] Setting 'dar' to value '16/9'
[Parsed_scale_1 @ 0000016365b74440] w:720 h:576 flags:'lanczos+accurate_rnd+full_chroma_int+full_chroma_inp' interl:0
[graph 0 input from stream 0:0 @ 000001636be701c0] Setting 'video_size' to value '1920x1080'
[graph 0 input from stream 0:0 @ 000001636be701c0] Setting 'pix_fmt' to value '0'
[graph 0 input from stream 0:0 @ 000001636be701c0] Setting 'time_base' to value '1/25000'
[graph 0 input from stream 0:0 @ 000001636be701c0] Setting 'pixel_aspect' to value '1/1'
[graph 0 input from stream 0:0 @ 000001636be701c0] Setting 'frame_rate' to value '25/1'
[graph 0 input from stream 0:0 @ 000001636be701c0] w:1920 h:1080 pixfmt:yuv420p tb:1/25000 fr:25/1 sar:1/1
[scaler_out_0_0 @ 000001636be702c0] Setting 'w' to value '720'
[scaler_out_0_0 @ 000001636be702c0] Setting 'h' to value '576'
[scaler_out_0_0 @ 000001636be702c0] Setting 'sws_flags' to value 'lanczos+accurate_rnd+full_chroma_int+full_chroma_inp'
[scaler_out_0_0 @ 000001636be702c0] w:720 h:576 flags:'' interl:0
[format @ 000001636be708c0] Setting 'pix_fmts' to value 'yuv420p'
[AVFilterGraph @ 000001636b522b00] query_formats: 8 queried, 7 merged, 0 already done, 0 delayed
[Parsed_pad_0 @ 0000016365b76000] w:1920 h:1080 -> w:1920 h:1080 x:0 y:0 color:0x000000FF
[Parsed_scale_1 @ 0000016365b74440] w:1920 h:1080 fmt:yuv420p sar:1/1 -> w:720 h:576 fmt:yuv420p sar:64/45 flags:0x00046200
[Parsed_setdar_3 @ 000001636a97ee40] w:720 h:576 dar:16/9 sar:64/45 -> dar:16/9 sar:64/45
[scaler_out_0_0 @ 000001636be702c0] w:720 h:576 fmt:yuv420p sar:64/45 -> w:720 h:576 fmt:yuv420p sar:64/45 flags:(null)
[Parsed_pad_0 @ 0000016365b76000] Direct padding impossible allocating new frame
[scaler_out_0_0 @ 000001636be702c0] w:720 h:576 fmt:yuv420p sar:64/45 -> w:720 h:576 fmt:yuv420p sar:64/45 flags:(null)
    Last message repeated 2 times
[mpeg2video @ 0000016365e4b980] Warning min_rate > 0 but min_rate != max_rate isn't recommended!
[mpeg2video @ 0000016365e4b980] intra_quant_bias = 96 inter_quant_bias = 0
Output #0, dvd, to 'G:\DVD\PAT-SLIDESHOWS\2012\NVEExport.0001.DVD.mpg':
  Metadata:
    major_brand     : mp42
    minor_version   : 0
    compatible_brands: ndhdavc1mp42isom
    encoder         : Lavf60.2.100
  Chapters:
    Chapter #0:0: start 0.000000, end 548.032000
      Metadata:
        title           : Start
  Stream #0:0, 0, 1/90000: Video: mpeg2video (Main), 1 reference frame, yuv420p(tv, bt709, progressive, left), 720x576 (0x0) [SAR
64:45 DAR 16:9], 0/1, q=2-31, 9000 kb/s, 25 fps, 90k tbn
    Metadata:
      encoder         : Lavc60.2.100 mpeg2video
    Side data:
      cpb: bitrate max/min/avg: 9200000/3000000/9000000 buffer size: 1835008 vbv_delay: N/A
  Stream #0:1(eng), 0, 1/90000: Audio: ac3, 48000 Hz, stereo, fltp, delay 256, 448 kb/s (default)
    Metadata:
      creation_time   : 2023-02-27T04:38:57.000000Z
      handler_name    : Sound Media Handler
      vendor_id       : [0][0][0][0]
      encoder         : Lavc60.2.100 ac3
[vost#0:0/mpeg2video @ 0000016365e4b640] Clipping frame in rate conversion by 0.000008
frame=    0 fps=0.0 q=0.0 size=       0kB time=00:00:01.24 bitrate=   0.0kbits/s speed=57.7x    
[Parsed_pad_0 @ 0000016365b76000] Direct padding impossible allocating new frame
[h264 @ 0000016365b6d980] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 3
[dvd @ 00000163661197c0] First SCR: 0 First DTS: 45000
<snip>
EOF in input file 0
Terminating demuxer thread 0
[Parsed_pad_0 @ 0000016365b76000] Direct padding impossible allocating new frame
[h264 @ 0000016365abd800] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 3
[Parsed_pad_0 @ 0000016365b76000] Direct padding impossible allocating new frame
[h264 @ 0000016365b6af00] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 3
[Parsed_pad_0 @ 0000016365b76000] Direct padding impossible allocating new frame
    Last message repeated 14 times
[out_0_0 @ 000001636be6f5c0] EOF on sink link out_0_0:default.
[out_0_1 @ 0000016365c235c0] EOF on sink link out_0_1:default.
No more output streams to write to, finishing.
[out#0/dvd @ 00000163661196c0] All streams finished
[out#0/dvd @ 00000163661196c0] Terminating muxer thread
[AVIOContext @ 0000016365b6d700] Statistics: 276561920 bytes written, 0 seeks, 1055 writeouts
frame=13699 fps=192 q=2.0 Lsize=  270080kB time=00:09:07.99 bitrate=4037.4kbits/s speed=7.66x    
video:234991kB audio:29970kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 1.931743%
Input file #0 (G:\DVD\PAT-SLIDESHOWS\2012\NVEExport.0001.mp4):
  Input stream #0:0 (video): 13699 packets read (541158251 bytes); 13699 frames decoded; 
  Input stream #0:1 (audio): 25689 packets read (8552480 bytes); 25689 frames decoded (26305536 samples); 
  Total: 39388 packets (549710731 bytes) demuxed
Output file #0 (G:\DVD\PAT-SLIDESHOWS\2012\NVEExport.0001.DVD.mpg):
  Output stream #0:0 (video): 13699 frames encoded; 13699 packets muxed (240630909 bytes); 
  Output stream #0:1 (audio): 17126 frames encoded (26305536 samples); 17126 packets muxed (30689792 bytes); 
  Total: 30825 packets (271320701 bytes) muxed
39388 frames successfully decoded, 0 decoding errors
[AVIOContext @ 0000016365abbb40] Statistics: 549940173 bytes read, 2 seeks

REM output file is still : Matrix coefficients: BT.709
G:\DVD\PAT-SLIDESHOWS\2012>"C:\SOFTWARE\MediaInfo\MediaInfo.exe" --full  "G:\DVD\PAT-SLIDESHOWS\2012\NVEExport.0001.DVD.mpg" 
General
Count                                    : 343
Count of stream of this kind             : 1
Kind of stream                           : General
Kind of stream                           : General
Stream identifier                        : 0
Count of video streams                   : 1
Count of audio streams                   : 1
Count of menu streams                    : 1
Video_Format_List                        : MPEG Video
Video_Format_WithHint_List               : MPEG Video
Codecs Video                             : MPEG Video
Audio_Format_List                        : AC-3
Audio_Format_WithHint_List               : AC-3
Audio codecs                             : AC-3
Menu_Format_List                         : DVD-Video
Menu_Format_WithHint_List                : DVD-Video
Menu codecs                              : DVD-Video
Complete name                            : G:\DVD\PAT-SLIDESHOWS\2012\NVEExport.0001.DVD.mpg
Folder name                              : G:\DVD\PAT-SLIDESHOWS\2012
File name extension                      : NVEExport.0001.DVD.mpg
File name                                : NVEExport.0001.DVD
File extension                           : mpg
Format                                   : MPEG-PS
Format                                   : MPEG-PS
Format/Extensions usually used           : mpeg mpg m2p vob vro pss evo
Commercial name                          : MPEG-PS
Internet media type                      : video/MP2P
File size                                : 276561920
File size                                : 264 MiB
File size                                : 264 MiB
File size                                : 264 MiB
File size                                : 264 MiB
File size                                : 263.8 MiB
Duration                                 : 548032
Duration                                 : 9 min 8 s
Duration                                 : 9 min 8 s 32 ms
Duration                                 : 9 min 8 s
Duration                                 : 00:09:08.032
Duration                                 : 00:09:07:24
Duration                                 : 00:09:08.032 (00:09:07:24)
Overall bit rate mode                    : VBR
Overall bit rate mode                    : Variable
Overall bit rate                         : 4037165
Overall bit rate                         : 4 037 kb/s
Frame rate                               : 25.000
Frame rate                               : 25.000 FPS
Frame count                              : 13699
Stream size                              : 5535131
Stream size                              : 5.28 MiB (2%)
Stream size                              : 5 MiB
Stream size                              : 5.3 MiB
Stream size                              : 5.28 MiB
Stream size                              : 5.279 MiB
Stream size                              : 5.28 MiB (2%)
Proportion of this stream                : 0.02001
File creation date                       : UTC 2023-02-27 04:48:00.229
File creation date (local)               : 2023-02-27 15:18:00.229
File last modification date              : UTC 2023-02-27 11:07:22.886
File last modification date (local)      : 2023-02-27 21:37:22.886

Video
Count                                    : 382
Count of stream of this kind             : 1
Kind of stream                           : Video
Kind of stream                           : Video
Stream identifier                        : 0
FirstPacketOrder                         : 0
ID                                       : 224
ID                                       : 224 (0xE0)
Format                                   : MPEG Video
Format                                   : MPEG Video
Commercial name                          : MPEG-2 Video
Format version                           : Version 2
Format profile                           : Main at Main
Format settings, BVOP                    : No
Format settings, BVOP                    : No
Format settings, Matrix                  : Default
Format settings, Matrix                  : Default
Format settings, GOP                     : N=25
Internet media type                      : video/MPV
Duration                                 : 547960
Duration                                 : 9 min 7 s
Duration                                 : 9 min 7 s 960 ms
Duration                                 : 9 min 7 s
Duration                                 : 00:09:07.960
Duration                                 : 00:09:07:24
Duration                                 : 00:09:07.960 (00:09:07:24)
Bit rate mode                            : VBR
Bit rate mode                            : Variable
Bit rate                                 : 3508825
Bit rate                                 : 3 509 kb/s
Maximum bit rate                         : 9200000
Maximum bit rate                         : 9 200 kb/s
Width                                    : 720
Width                                    : 720 pixels
Height                                   : 576
Height                                   : 576 pixels
Sampled_Width                            : 720
Sampled_Height                           : 576
Pixel aspect ratio                       : 1.422
Display aspect ratio                     : 1.778
Display aspect ratio                     : 16:9
Frame rate                               : 25.000
Frame rate                               : 25.000 FPS
FrameRate_Num                            : 25
FrameRate_Den                            : 1
Frame count                              : 13699
Standard                                 : PAL
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Chroma subsampling                       : 4:2:0
Bit depth                                : 8
Bit depth                                : 8 bits
Scan type                                : Progressive
Scan type                                : Progressive
Compression mode                         : Lossy
Compression mode                         : Lossy
Bits/(Pixel*Frame)                       : 0.338
Delay                                    : 540.000000
Delay                                    : 540 ms
Delay                                    : 540 ms
Delay                                    : 540 ms
Delay                                    : 00:00:00.540
Delay                                    : 00:00:00:14
Delay                                    : 00:00:00.540 (00:00:00:14)
Delay_DropFrame                          : No
Delay, origin                            : Container
Delay, origin                            : Container
Delay_Original                           : 0
Delay_Original                           : 00:00:00.000
Delay_Original                           : 00:00:00:00
Delay_Original                           : 00:00:00.000 (00:00:00:00)
Delay_Original_Settings                  : drop_frame_flag=0 / closed_gop=1 / broken_link=0
Delay_Original_DropFrame                 : No
Delay_Original_Source                    : Stream
Time code of first frame                 : 00:00:00:00
TimeCode_DropFrame                       : No
Time code source                         : Group of pictures header
GOP, Open/Closed                         : Open
GOP, Open/Closed                         : Open
GOP, Open/Closed of first frame          : Closed
GOP, Open/Closed of first frame          : Closed
Stream size                              : 240336997
Stream size                              : 229 MiB (87%)
Stream size                              : 229 MiB
Stream size                              : 229 MiB
Stream size                              : 229 MiB
Stream size                              : 229.2 MiB
Stream size                              : 229 MiB (87%)
Proportion of this stream                : 0.86902
Buffer size                              : 229376
colour_description_present               : Yes
colour_description_present_Source        : Stream
Color primaries                          : BT.709
colour_primaries_Source                  : Stream
Transfer characteristics                 : BT.709
transfer_characteristics_Source          : Stream
Matrix coefficients                      : BT.709
matrix_coefficients_Source               : Stream
intra_dc_precision                       : 8

Audio
Count                                    : 298
Count of stream of this kind             : 1
Kind of stream                           : Audio
Kind of stream                           : Audio
Stream identifier                        : 0
StreamOrder                              : 0
FirstPacketOrder                         : 1
ID                                       : 189-128
ID                                       : 189 (0xBD)-128 (0x80)
Format                                   : AC-3
Format                                   : AC-3
Format/Info                              : Audio Coding 3
Format/Url                               : https://en.wikipedia.org/wiki/AC3
Commercial name                          : Dolby Digital
Commercial name                          : Dolby Digital
Format settings, Endianness              : Big
Muxing mode                              : DVD-Video
Duration                                 : 548032
Duration                                 : 9 min 8 s
Duration                                 : 9 min 8 s 32 ms
Duration                                 : 9 min 8 s
Duration                                 : 00:09:08.032
Duration                                 : 00:09:08.032
Bit rate mode                            : CBR
Bit rate mode                            : Constant
Bit rate                                 : 448000
Bit rate                                 : 448 kb/s
Channel(s)                               : 2
Channel(s)                               : 2 channels
Channel positions                        : Front: L R
Channel positions                        : 2/0/0
Channel layout                           : L R
Samples per frame                        : 1536
Sampling rate                            : 48000
Sampling rate                            : 48.0 kHz
Samples count                            : 26305536
Frame rate                               : 31.250
Frame rate                               : 31.250 FPS (1536 SPF)
Frame count                              : 17126
Compression mode                         : Lossy
Compression mode                         : Lossy
Delay                                    : 534.666667
Delay                                    : 535 ms
Delay                                    : 535 ms
Delay                                    : 535 ms
Delay                                    : 00:00:00.535
Delay                                    : 00:00:00.535
Delay, origin                            : Container
Delay, origin                            : Container
Delay relative to video                  : -5
Delay relative to video                  : -5 ms
Delay relative to video                  : -5 ms
Delay relative to video                  : -5 ms
Delay relative to video                  : -00:00:00.005
Delay relative to video                  : -00:00:00.005
Stream size                              : 30689792
Stream size                              : 29.3 MiB (11%)
Stream size                              : 29 MiB
Stream size                              : 29 MiB
Stream size                              : 29.3 MiB
Stream size                              : 29.27 MiB
Stream size                              : 29.3 MiB (11%)
Proportion of this stream                : 0.11097
Service kind                             : CM
Service kind                             : Complete Main
bsid                                     : 8
Dialog Normalization                     : -31
Dialog Normalization                     : -31 dB
dsurmod                                  : 0
acmod                                    : 2
lfeon                                    : 0
dialnorm_Average                         : -31
dialnorm_Average                         : -31 dB
dialnorm_Minimum                         : -31
dialnorm_Minimum                         : -31 dB
dialnorm_Maximum                         : -31
dialnorm_Maximum                         : -31 dB
dialnorm_Count                           : 614

Menu
Count                                    : 94
Count of stream of this kind             : 1
Kind of stream                           : Menu
Kind of stream                           : Menu
Stream identifier                        : 0
Format                                   : DVD-Video
Format                                   : DVD-Video
Commercial name                          : DVD-Video
-------------- next part --------------
A non-text attachment was scrubbed...
Name: winmail.dat
Type: application/ms-tnef
Size: 18922 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-user/attachments/20230227/993b7705/attachment.bin>


More information about the ffmpeg-user mailing list