Hi All, I have a problem for which I need help.

I tried to add a-ticks to audio TSes in 4 intervals in order to shift
audio a second or two. Instead, FFmpeg turned a 2 hour movie into 42
hours. There were no erros or complaints at all. But FFmpeg did say:
"Reconfiguring filter graph because downmix medatata changed". It really
bothers me.

The audio is there, but it's so stretched out that it sounds like 1990's
ambient trance music -- quite pretty, actually, though a little buzzy.

Test: Since PTS shifting is the issue, I tried removing the four shift
values so that no PTS shifting occurs. That provoked hundreds of
thousands of "Non-monotonic DTS" complaints. That actually makes sense.
It's the only thing about this that does make sense.
=====
I will send FFREPORT.TXT to anyone who wants it, It's 1.4 GB.
=====
The command line was:
ffmpeg -analyzeduration 500000000 -probesize 500000000 -colorspace bt709
-color_primaries bt709 -color_trc bt709 -r:v 24000/1001 -start_at_zero
-copyts -dn -canvas_size 1920x1080 -fix_sub_duration -i
"c:\work\CATCH-22 [1970] .mp4" -filter_complex
"[0:a:0]asplit[01y][01n],[01y]lt(t\,1178.771),asetpts=PTS+6006[01],[01n]aselect=not(lt(t\,1178.771)),asplit[02y][02n],[02y]aselect=between(t\,1178.771\,2409.282),asetpts=PTS+16016[02],[02n]aselect=not(between(t\,1178.771\,2409.282)),asplit[03y][03n],[03y]=aselect=between(t\,2409.292\,3609.564),asetpts=PTS+38038[03],[03n]aselect=not(between(t\,2409.292\,3609.564)),asplit[04y][04n],[04y]aselect=between(t\,3609.574\,4991.612),asetpts=PTS+76076[04],[04n]aselect=not(between(t\,3609.574\,4991.612))[05],[01][02][03][04][05]ainterleave=nb_inputs=5[a0],[0:a:1]asplit[11y][11n],[11y]lt(t\,1178.771),asetpts=PTS+6006[11],[11n]aselect=not(lt(t\,1178.771)),asplit[12y][12n],[12y]aselect=between(t\,1178.771\,2409.282),asetpts=PTS+16016[12],[12n]aselect=not(between(t\,1178.771\,2409.282)),asplit[13y][13n],[13y]=aselect=between(t\,2409.292\,3609.564),asetpts=PTS+38038[13],[13n]aselect=not(between(t\,2409.292\,3609.564)),asplit[14y][14n],[14y]aselect=between(t\,3609.574\,4991.612),asetpts=PTS+76076[14],
 
[14n]aselect=not(between(t\,3609.574\,4991.612))[15],[11][12][13][14][15]ainterleave=nb_inputs=5[a1],[0:a:2]asplit[21y][21n],[21y]lt(t\,1178.771),asetpts=PTS+6006[21],[21n]aselect=not(lt(t\,1178.771)),asplit[22y][22n],[22y]aselect=between(t\,1178.771\,2409.282),asetpts=PTS+16016[22],[22n]aselect=not(between(t\,1178.771\,2409.282)),asplit[23y][23n],[23y]=aselect=between(t\,2409.292\,3609.564),asetpts=PTS+38038[23],[23n]aselect=not(between(t\,2409.292\,3609.564)),asplit[24y][24n],[24y]aselect=between(t\,3609.574\,4991.612),asetpts=PTS+76076[24],[24n]aselect=not(between(t\,3609.574\,4991.612))[25],[21][22][23][24][25]ainterleave=nb_inputs=5[a2]"
-fps_mode:v passthrough -fps_mode:a passthrough -enc_time_base:v 1:24000
-map 0:v:0 -c:v:0 copy -map "[a0]" -c:a:0 ac3 -disposition:a:0 0 -map
"[a1]" -c:a:1 ac3 -disposition:a:1 0 -map "[a2]" -c:a:2 ac3
-disposition:a:2 0 "c:\work\CATCH-22 [1970].mp4"
=====
You may find what I actually submitted, below, a bit easier to read.

    : 7
  set _NAME_=CATCH-22 [1970]
  set _WORK_=c:\work\
  set _JOB_=%_WORK_%%_NAME_%
  set _GET_=%_JOB_% .mp4
  set _PUT_=%_JOB_%.mp4
    : before get
  set _is_16x9HD24'p_=-analyzeduration 500000000 -probesize 500000000^
 -colorspace bt709 -color_primaries bt709 -color_trc bt709^
 -r:v 24000/1001 -start_at_zero -copyts -dn -canvas_size 1920x1080^
 -fix_sub_duration
    : after get
    : filter_complex
  : In 0:00:00.000..0:19:38.771 = lt(t\,1178.771),
  :                             offset audio  +3 frames = 6006 aticks.
  : In 0:19:38.771..0:40:09.282 = between(t\,1178.771\,2409.282),
  :                             offset audio  +8 frames = 16016 aticks.
  : In 0:40:09.292..1:00:09.564 = between(t\,2409.292\,3609.564),
  :                             offset audio +19 frames = 38038 aticks.
  : In 1:00:09.574..1:23:11.612 = between(t\,3609.574\,4991.612),
  :                             offset audio +38 frames = 76076 aticks.
  : Beyond 1:23:11.612, audio is fine.
  set _s1_=lt(t\,1178.771)
  set _s2_=between(t\,1178.771\,2409.282)
  set _s3_=between(t\,2409.292\,3609.564)
  set _s4_=between(t\,3609.574\,4991.612)
  set _s1y_=aselect=%_s1_%,asetpts=PTS+6006
  set _s1n_=aselect=not(%_s1_%)
  set _s2y_=aselect=%_s2_%,asetpts=PTS+16016
  set _s2n_=aselect=not(%_s2_%)
  set _s3y_=aselect=%_s3_%,asetpts=PTS+38038
  set _s3n_=aselect=not(%_s3_%)
  set _s4y_=aselect=%_s4_%,asetpts=PTS+76076
  set _s4n_=aselect=not(%_s4_%)
  set _PROCa0_=[0:a:0]^
asplit[01y][01n],[01y]%_s1y_%[01],[01n]%_s1n_%,^
asplit[02y][02n],[02y]%_s2y_%[02],[02n]%_s2n_%,^
asplit[03y][03n],[03y]%_s3y_%[03],[03n]%_s3n_%,^
asplit[04y][04n],[04y]%_s4y_%[04],[04n]%_s4n_%[05],^
[01][02][03][04][05]ainterleave=nb_inputs=5[a0]
  set _PROCa1_=[0:a:1]^
asplit[11y][11n],[11y]%_s1y_%[11],[11n]%_s1n_%,^
asplit[12y][12n],[12y]%_s2y_%[12],[12n]%_s2n_%,^
asplit[13y][13n],[13y]%_s3y_%[13],[13n]%_s3n_%,^
asplit[14y][14n],[14y]%_s4y_%[14],[14n]%_s4n_%[15],^
[11][12][13][14][15]ainterleave=nb_inputs=5[a1]
  set _PROCa2_=[0:a:2]^
asplit[21y][21n],[21y]%_s1y_%[21],[21n]%_s1n_%,^
asplit[22y][22n],[22y]%_s2y_%[22],[22n]%_s2n_%,^
asplit[23y][23n],[23y]%_s3y_%[23],[23n]%_s3n_%,^
asplit[24y][24n],[24y]%_s4y_%[24],[24n]%_s4n_%[25],^
[21][22][23][24][25]ainterleave=nb_inputs=5[a2]
    : put
  set _go_TBN24K_=-fps_mode:v passthrough^
 -fps_mode:a passthrough -enc_time_base:v 1:24000
  set _COPYv_=-map 0:v:0 -c:v:0 copy
  set _COPYa0_=-map "[a0]" -c:a:0 ac3 -disposition:a:0 0
  set _COPYa1_=-map "[a1]" -c:a:1 ac3 -disposition:a:1 0
  set _COPYa2_=-map "[a2]" -c:a:2 ac3 -disposition:a:2 0
    : run
  c: & cd %_WORK_%
  start /wait cmd /k ffmpeg %_is_16x9HD24'p_%^
   -i "%_GET_%"^
   -filter_complex "%_PROCa0_%,%_PROCa1_%,%_PROCa2_%"^
   %_go_TBN24K_%^
   %_COPYv_% %_COPYa0_% %_COPYa1_% %_COPYa2_% "%_PUT_%"

=====
The terminal output is below. Notable is this: "Reconfiguring filter
graph because downmix medatata changed"

ffmpeg started on 2025-11-01 at 14:23:13
Report written to "FFREPORT.txt"
Log level: 48
ffmpeg version 8.0-full_build-www.gyan.dev Copyright (c) 2000-2025 the
FFmpeg developers
  built with gcc 15.2.0 (Rev8, Built by MSYS2 project)
  configuration: --enable-gpl --enable-version3 --enable-static
--disable-w32threads --disable-autodetect --enable-fontconfig
--enable-iconv --enable-gnutls --enable-lcms2 --enable-libxml2
--enable-gmp --enable-bzlib --enable-lzma --enable-libsnappy
--enable-zlib --enable-librist --enable-libsrt --enable-libssh
--enable-libzmq --enable-avisynth --enable-libbluray --enable-libcaca
--enable-libdvdnav --enable-libdvdread --enable-sdl2 --enable-libaribb24
--enable-libaribcaption --enable-libdav1d --enable-libdavs2
--enable-libopenjpeg --enable-libquirc --enable-libuavs3d
--enable-libxevd --enable-libzvbi --enable-liboapv --enable-libqrencode
--enable-librav1e --enable-libsvtav1 --enable-libvvenc --enable-libwebp
--enable-libx264 --enable-libx265 --enable-libxavs2 --enable-libxeve
--enable-libxvid --enable-libaom --enable-libjxl --enable-libvpx
--enable-mediafoundation --enable-libass --enable-frei0r
--enable-libfreetype --enable-libfribidi --enable-libharfbuzz
--enable-liblensfun --enable-libvidstab --enable-libvmaf
--enable-libzimg --enable-amf --enable-cuda-llvm --enable-cuvid
--enable-dxva2 --enable-d3d11va --enable-d3d12va --enable-ffnvcodec
--enable-libvpl --enable-nvdec --enable-nvenc --enable-vaapi
--enable-libshaderc --enable-vulkan --enable-libplacebo --enable-opencl
--enable-libcdio --enable-openal --enable-libgme --enable-libmodplug
--enable-libopenmpt --enable-libopencore-amrwb --enable-libmp3lame
--enable-libshine --enable-libtheora --enable-libtwolame
--enable-libvo-amrwbenc --enable-libcodec2 --enable-libilbc
--enable-libgsm --enable-liblc3 --enable-libopencore-amrnb
--enable-libopus --enable-libspeex --enable-libvorbis --enable-ladspa
--enable-libbs2b --enable-libflite --enable-libmysofa
--enable-librubberband --enable-libsoxr --enable-chromaprint
--enable-whisper
  libavutil      60.  8.100 / 60.  8.100
  libavcodec     62. 11.100 / 62. 11.100
  libavformat    62.  3.100 / 62.  3.100
  libavdevice    62.  1.100 / 62.  1.100
  libavfilter    11.  4.100 / 11.  4.100
  libswscale      9.  1.100 /  9.  1.100
  libswresample   6.  1.100 /  6.  1.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'c:\work\CATCH-22 [1970] .mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomdby1iso2avc1mp41
    encoder         : Lavf62.3.100
  Duration: 02:01:42.63, start: 0.000000, bitrate: 3685 kb/s
  Chapters:
    Chapter #0:0: start 0.000000, end 461.695000
      Metadata:
        title           : Chapter 1
    Chapter #0:1: start 461.695000, end 866.682000
      Metadata:
        title           : Chapter 2
    Chapter #0:2: start 866.682000, end 1274.256000
      Metadata:
        title           : Chapter 3
    Chapter #0:3: start 1274.256000, end 1669.109000
      Metadata:
        title           : Chapter 4
    Chapter #0:4: start 1669.109000, end 1914.229000
      Metadata:
        title           : Chapter 5
    Chapter #0:5: start 1914.229000, end 2214.112000
      Metadata:
        title           : Chapter 6
    Chapter #0:6: start 2214.112000, end 2384.365000
      Metadata:
        title           : Chapter 7
    Chapter #0:7: start 2384.365000, end 2509.824000
      Metadata:
        title           : Chapter 8
    Chapter #0:8: start 2509.824000, end 3230.461000
      Metadata:
        title           : Chapter 9
    Chapter #0:9: start 3230.461000, end 3384.281000
      Metadata:
        title           : Chapter 10
    Chapter #0:10: start 3384.281000, end 3623.645000
      Metadata:
        title           : Chapter 11
    Chapter #0:11: start 3623.645000, end 3892.372000
      Metadata:
        title           : Chapter 12
    Chapter #0:12: start 3892.372000, end 4178.783000
      Metadata:
        title           : Chapter 13
    Chapter #0:13: start 4178.783000, end 4482.086000
      Metadata:
        title           : Chapter 14
    Chapter #0:14: start 4482.086000, end 4718.280000
      Metadata:
        title           : Chapter 15
    Chapter #0:15: start 4718.280000, end 5071.341000
      Metadata:
        title           : Chapter 16
    Chapter #0:16: start 5071.341000, end 5498.184000
      Metadata:
        title           : Chapter 17
    Chapter #0:17: start 5498.184000, end 5935.663000
      Metadata:
        title           : Chapter 18
    Chapter #0:18: start 5935.663000, end 6330.015000
      Metadata:
        title           : Chapter 19
    Chapter #0:19: start 6330.015000, end 6450.970000
      Metadata:
        title           : Chapter 20
    Chapter #0:20: start 6450.970000, end 6848.658000
      Metadata:
        title           : Chapter 21
    Chapter #0:21: start 6848.658000, end 7301.862000
      Metadata:
        title           : Chapter 22
  Stream #0:0[0x1](und): Video: h264 (High) (avc1 / 0x31637661),
yuv420p(tv, bt709, progressive), 1920x1080 [SAR 1:1 DAR 16:9], 2851
kb/s, 23.98 fps, 23.98 tbr, 24k tbn (default)
    Metadata:
      handler_name    : VideoHandler
      vendor_id       : [0][0][0][0]
      encoder         : Lavc62.11.100 libx264
  Stream #0:1[0x2](eng): Audio: ac3 (ac-3 / 0x332D6361), 48000 Hz,
5.1(side), fltp, 384 kb/s (default)
    Metadata:
      handler_name    : SoundHandler
      vendor_id       : [0][0][0][0]
    Side data:
      audio service type: main
  Stream #0:2[0x3](eng): Audio: ac3 (ac-3 / 0x332D6361), 48000 Hz,
stereo, fltp, 192 kb/s
    Metadata:
      handler_name    : SoundHandler
      vendor_id       : [0][0][0][0]
    Side data:
      audio service type: main
  Stream #0:3[0x4](eng): Audio: ac3 (ac-3 / 0x332D6361), 48000 Hz,
stereo, fltp, 192 kb/s
    Metadata:
      handler_name    : SoundHandler
      vendor_id       : [0][0][0][0]
    Side data:
      audio service type: main
  Stream #0:4[0x5](eng): Data: bin_data (text / 0x74786574)
    Metadata:
      handler_name    : SubtitleHandler
File 'c:\work\CATCH-22 [1970].mp4' already exists. Overwrite? [y/N] y
Stream mapping:
  Stream #0:1 (ac3) -> asplit:default
  Stream #0:2 (ac3) -> asplit:default
  Stream #0:3 (ac3) -> asplit:default
  Stream #0:0 -> #0:0 (copy)
  ainterleave:default -> Stream #0:1 (ac3)
  ainterleave:default -> Stream #0:2 (ac3)
  ainterleave:default -> Stream #0:3 (ac3)
Press [q] to stop, [?] for help
Output #0, mp4, to 'c:\work\CATCH-22 [1970].mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomdby1iso2avc1mp41
    encoder         : Lavf62.3.100
  Chapters:
    Chapter #0:0: start 0.000000, end 461.695000
      Metadata:
        title           : Chapter 1
    Chapter #0:1: start 461.695000, end 866.682000
      Metadata:
        title           : Chapter 2
    Chapter #0:2: start 866.682000, end 1274.256000
      Metadata:
        title           : Chapter 3
    Chapter #0:3: start 1274.256000, end 1669.109000
      Metadata:
        title           : Chapter 4
    Chapter #0:4: start 1669.109000, end 1914.229000
      Metadata:
        title           : Chapter 5
    Chapter #0:5: start 1914.229000, end 2214.112000
      Metadata:
        title           : Chapter 6
    Chapter #0:6: start 2214.112000, end 2384.365000
      Metadata:
        title           : Chapter 7
    Chapter #0:7: start 2384.365000, end 2509.824000
      Metadata:
        title           : Chapter 8
    Chapter #0:8: start 2509.824000, end 3230.461000
      Metadata:
        title           : Chapter 9
    Chapter #0:9: start 3230.461000, end 3384.281000
      Metadata:
        title           : Chapter 10
    Chapter #0:10: start 3384.281000, end 3623.645000
      Metadata:
        title           : Chapter 11
    Chapter #0:11: start 3623.645000, end 3892.372000
      Metadata:
        title           : Chapter 12
    Chapter #0:12: start 3892.372000, end 4178.783000
      Metadata:
        title           : Chapter 13
    Chapter #0:13: start 4178.783000, end 4482.086000
      Metadata:
        title           : Chapter 14
    Chapter #0:14: start 4482.086000, end 4718.280000
      Metadata:
        title           : Chapter 15
    Chapter #0:15: start 4718.280000, end 5071.341000
      Metadata:
        title           : Chapter 16
    Chapter #0:16: start 5071.341000, end 5498.184000
      Metadata:
        title           : Chapter 17
    Chapter #0:17: start 5498.184000, end 5935.663000
      Metadata:
        title           : Chapter 18
    Chapter #0:18: start 5935.663000, end 6330.015000
      Metadata:
        title           : Chapter 19
    Chapter #0:19: start 6330.015000, end 6450.970000
      Metadata:
        title           : Chapter 20
    Chapter #0:20: start 6450.970000, end 6848.658000
      Metadata:
        title           : Chapter 21
    Chapter #0:21: start 6848.658000, end 7301.862000
      Metadata:
        title           : Chapter 22
  Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv,
bt709, progressive), 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 2851 kb/s,
23.98 fps, 23.98 tbr, 24k tbn (default)
    Metadata:
      handler_name    : VideoHandler
      vendor_id       : [0][0][0][0]
      encoder         : Lavc62.11.100 libx264
  Stream #0:1: Audio: ac3 (ac-3 / 0x332D6361), 48000 Hz, 5.1(side),
fltp, 448 kb/s
    Metadata:
      encoder         : Lavc62.11.100 ac3
    Side data:
      audio service type: main
  Stream #0:2: Audio: ac3 (ac-3 / 0x332D6361), 48000 Hz, stereo, fltp,
192 kb/s
    Metadata:
      encoder         : Lavc62.11.100 ac3
    Side data:
      audio service type: main
  Stream #0:3: Audio: ac3 (ac-3 / 0x332D6361), 48000 Hz, stereo, fltp,
192 kb/s
    Metadata:
      encoder         : Lavc62.11.100 ac3
    Side data:
      audio service type: main
[fc#0 @ 00000000026a3280] Reconfiguring filter graph because downmix
medatata changed
[out#0/mp4 @ 00000000027eca00] video:2542035KiB audio:3685437KiB
subtitle:0KiB other streams:0KiB global headers:0KiB muxing overhead:
0.905688%
frame=175088 fps=220 q=-1.0 Lsize= 6283874KiB time=02:01:34.82
bitrate=7056.7kbits/s speed=9.17x elapsed=0:13:15.17
_______________________________________________
ffmpeg-user mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to