How can I get ffmpeg to honor 'analyzeduration' and 'probesize'?
Hi All, How can I get ffmpeg to honor 'analyzeduration' and 'probesize'? I'm submitting "-analyzeduration 5772725000 -probesize 15091101696". Getting "Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000)". The terminal output is below. I've attached 00305+00306.zip It contains: 00305+00306.cmd 00305+00306.txt ffmpeg-20231225-151722.log Note: In order to get GMail to send the ZIP, I had to change the name of 00305+00306.cmd to "00305+00306.cmdfoo". Note: I reduced the size of ffmpeg-20231225-151722.log from 41,483,612 bytes to 8,523,561 bytes by deleting 1188892 lines of "Writing block of size..." and 337231 lines of "...forcing output" and 1072327 lines of "[concat @ 0000000000398480] file:..." and 112681 lines of "[concat @ 0000000000398480] -> pts:..." and 107938 lines of "[NULL @ 00000000085ebc00] ct_type:1 pic_struct:0". Thanks -- Mark. C:\Windows\System32>ffmpeg -report -analyzeduration 5772725000 -probesize 15091101696 -r 24000/1001 -f concat -safe 0 -i c:\00305+00306.txt -map 0 -c copy -dn c:\00305+00306.mkv ffmpeg started on 2023-12-25 at 15:17:22 Report written to "ffmpeg-20231225-151722.log" Log level: 48 ffmpeg version 2023-11-09-git-acf63d5350-full_build-www.gyan.dev Copyright (c) 2000-2023 the FFmpeg developers built with gcc 12.2.0 (Rev10, Built by MSYS2 project) configuration: --enable-gpl --enable-version3 --enable-static --pkg-config=pkgconf --disable-w32threads --disable-autodetect --enable-fontconfig --enable-iconv --enable-gnutls --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-sdl2 --enable-libaribb24 --enable-libaribcaption --enable-libdav1d --enable-libdavs2 --enable-libuavs3d --enable-libzvbi --enable-librav1e --enable-libsvtav1 --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs2 --enable-libxvid --enable-libaom --enable-libjxl --enable-libopenjpeg --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-ffnvcodec --enable-nvdec --enable-nvenc --enable-dxva2 --enable-d3d11va --enable-libvpl --enable-libshaderc --enable-vulkan --enable-libplacebo --enable-opencl --enable-libcdio --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-libopencore-amrnb --enable-libopus --enable-libspeex --enable-libvorbis --enable-ladspa --enable-libbs2b --enable-libflite --enable-libmysofa --enable-librubberband --enable-libsoxr --enable-chromaprint libavutil 58. 32.100 / 58. 32.100 libavcodec 60. 33.100 / 60. 33.100 libavformat 60. 17.100 / 60. 17.100 libavdevice 60. 4.100 / 60. 4.100 libavfilter 9. 13.100 / 9. 13.100 libswscale 7. 6.100 / 7. 6.100 libswresample 4. 13.100 / 4. 13.100 libpostproc 57. 4.100 / 57. 4.100 [dca @ 00000000003a5500] Residual encoded channels are present without core [matroska,webm @ 00000000003a4a80] Could not find codec parameters for stream 2 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options [matroska,webm @ 00000000003a4a80] Auto-inserting h264_mp4toannexb bitstream filter [dca @ 0000000003af5040] Residual encoded channels are present without core Input #0, concat, from 'c:\00305+00306.txt': Duration: 02:47:55.46, start: 0.000000, bitrate: N/A Stream #0:0: Video: h264 (High), yuv420p(progressive), 1920x1080 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 1k tbn Metadata: DURATION : 01:32:51.432000000 Stream #0:1: Audio: dts (DTS-HD MA), 48000 Hz, mono, s32p (24 bit) Metadata: DURATION : 01:32:51.393000000 Stream #0:2: Subtitle: hdmv_pgs_subtitle, 1920x1080 Metadata: DURATION : 01:31:16.546000000 Output #0, matroska, to 'c:\00305+00306.mkv': Metadata: encoder : Lavf60.17.100 Stream #0:0: Video: h264 (High) (H264 / 0x34363248), yuv420p(progressive), 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 23.98 fps, 23.98 tbr, 1k tbn Metadata: DURATION : 01:32:51.432000000 Stream #0:1: Audio: dts (DTS-HD MA) ([1] [0][0] / 0x2001), 48000 Hz, mono, s32p (24 bit) Metadata: DURATION : 01:32:51.393000000 Stream #0:2: Subtitle: hdmv_pgs_subtitle ([255][255][255][255] / 0xFFFFFFFF), 1920x1080 Metadata: DURATION : 01:31:16.546000000 Stream mapping: Stream #0:0 -> #0:0 (copy) Stream #0:1 -> #0:1 (copy) Stream #0:2 -> #0:2 (copy) Press [q] to stop, [?] for help [matroska @ 00000000088f8f40] Non-monotonic DTS in output stream 0:0; previous: 584, current: 575; changing to 584. This may result in incorrect timestamps in the output file. [matroska @ 00000000088f8f40] Non-monotonic DTS in output stream 0:0; previous: 584, current: 575; changing to 584. This may result in incorrect timestamps in the output file. [dca @ 0000000004787400] Residual encoded channels are present without core [matroska,webm @ 00000000050a9940] Could not find codec parameters for stream 2 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options [matroska,webm @ 00000000050a9940] Auto-inserting h264_mp4toannexb bitstream filter [out#0/matroska @ 0000000000787b80] video:23083482kB audio:1345656kB subtitle:40434kB other streams:0kB global headers:0kB muxing overhead: 0.041062% size=24479619kB time=02:47:55.41 bitrate=19903.6kbits/s speed=13.4x
On Mon, Dec 25, 2023 at 10:32 PM Mark Filipak <markfilipak.imdb@gmail.com> wrote:
Hi All, How can I get ffmpeg to honor 'analyzeduration' and 'probesize'?
I'm submitting "-analyzeduration 5772725000 -probesize 15091101696". Getting "Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000)". The terminal output is below. I've attached 00305+00306.zip It contains: 00305+00306.cmd 00305+00306.txt ffmpeg-20231225-151722.log Note: In order to get GMail to send the ZIP, I had to change the name of 00305+00306.cmd to "00305+00306.cmdfoo". Note: I reduced the size of ffmpeg-20231225-151722.log from 41,483,612 bytes to 8,523,561 bytes by deleting 1188892 lines of "Writing block of size..." and 337231 lines of "...forcing output" and 1072327 lines of "[concat @ 0000000000398480] file:..." and 112681 lines of "[concat @ 0000000000398480] -> pts:..." and 107938 lines of "[NULL @ 00000000085ebc00] ct_type:1 pic_struct:0".
Thanks -- Mark.
C:\Windows\System32>ffmpeg -report -analyzeduration 5772725000 -probesize 15091101696 -r 24000/1001 -f concat -safe 0 -i c:\00305+00306.txt -map 0 -c copy -dn c:\00305+00306.mkv
For concat demuxer inputs you probably need to put those options with values inside that .txt file. Because ffmpeg is not used directly with concat demuxer, as concat demuxer is doing many stuff at once. Consult concat demuxer documention for more info. ffmpeg started on 2023-12-25 at 15:17:22
Report written to "ffmpeg-20231225-151722.log" Log level: 48 ffmpeg version 2023-11-09-git-acf63d5350-full_build-www.gyan.dev Copyright (c) 2000-2023 the FFmpeg developers built with gcc 12.2.0 (Rev10, Built by MSYS2 project) configuration: --enable-gpl --enable-version3 --enable-static --pkg-config=pkgconf --disable-w32threads --disable-autodetect --enable-fontconfig --enable-iconv --enable-gnutls --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-sdl2 --enable-libaribb24 --enable-libaribcaption --enable-libdav1d --enable-libdavs2 --enable-libuavs3d --enable-libzvbi --enable-librav1e --enable-libsvtav1 --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs2 --enable-libxvid --enable-libaom --enable-libjxl --enable-libopenjpeg --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-ffnvcodec --enable-nvdec --enable-nvenc --enable-dxva2 --enable-d3d11va --enable-libvpl --enable-libshaderc --enable-vulkan --enable-libplacebo --enable-opencl --enable-libcdio --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-libopencore-amrnb --enable-libopus --enable-libspeex --enable-libvorbis --enable-ladspa --enable-libbs2b --enable-libflite --enable-libmysofa --enable-librubberband --enable-libsoxr --enable-chromaprint libavutil 58. 32.100 / 58. 32.100 libavcodec 60. 33.100 / 60. 33.100 libavformat 60. 17.100 / 60. 17.100 libavdevice 60. 4.100 / 60. 4.100 libavfilter 9. 13.100 / 9. 13.100 libswscale 7. 6.100 / 7. 6.100 libswresample 4. 13.100 / 4. 13.100 libpostproc 57. 4.100 / 57. 4.100 [dca @ 00000000003a5500] Residual encoded channels are present without core [matroska,webm @ 00000000003a4a80] Could not find codec parameters for stream 2 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options [matroska,webm @ 00000000003a4a80] Auto-inserting h264_mp4toannexb bitstream filter [dca @ 0000000003af5040] Residual encoded channels are present without core Input #0, concat, from 'c:\00305+00306.txt': Duration: 02:47:55.46, start: 0.000000, bitrate: N/A Stream #0:0: Video: h264 (High), yuv420p(progressive), 1920x1080 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 1k tbn Metadata: DURATION : 01:32:51.432000000 Stream #0:1: Audio: dts (DTS-HD MA), 48000 Hz, mono, s32p (24 bit) Metadata: DURATION : 01:32:51.393000000 Stream #0:2: Subtitle: hdmv_pgs_subtitle, 1920x1080 Metadata: DURATION : 01:31:16.546000000 Output #0, matroska, to 'c:\00305+00306.mkv': Metadata: encoder : Lavf60.17.100 Stream #0:0: Video: h264 (High) (H264 / 0x34363248), yuv420p(progressive), 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 23.98 fps, 23.98 tbr, 1k tbn Metadata: DURATION : 01:32:51.432000000 Stream #0:1: Audio: dts (DTS-HD MA) ([1] [0][0] / 0x2001), 48000 Hz, mono, s32p (24 bit) Metadata: DURATION : 01:32:51.393000000 Stream #0:2: Subtitle: hdmv_pgs_subtitle ([255][255][255][255] / 0xFFFFFFFF), 1920x1080 Metadata: DURATION : 01:31:16.546000000 Stream mapping: Stream #0:0 -> #0:0 (copy) Stream #0:1 -> #0:1 (copy) Stream #0:2 -> #0:2 (copy) Press [q] to stop, [?] for help [matroska @ 00000000088f8f40] Non-monotonic DTS in output stream 0:0; previous: 584, current: 575; changing to 584. This may result in incorrect timestamps in the output file. [matroska @ 00000000088f8f40] Non-monotonic DTS in output stream 0:0; previous: 584, current: 575; changing to 584. This may result in incorrect timestamps in the output file. [dca @ 0000000004787400] Residual encoded channels are present without core [matroska,webm @ 00000000050a9940] Could not find codec parameters for stream 2 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options [matroska,webm @ 00000000050a9940] Auto-inserting h264_mp4toannexb bitstream filter [out#0/matroska @ 0000000000787b80] video:23083482kB audio:1345656kB subtitle:40434kB other streams:0kB global headers:0kB muxing overhead: 0.041062% size=24479619kB time=02:47:55.41 bitrate=19903.6kbits/s speed=13.4x_______________________________________________ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user
To unsubscribe, visit link above, or email ffmpeg-user-request@ffmpeg.org with subject "unsubscribe".
Hey Paul, Happy Holidays and Happy New Year to you. On 12/25/23 16:48, Paul B Mahol wrote:
On Mon, Dec 25, 2023 at 10:32 PM Mark Filipak <markfilipak.imdb@gmail.com> wrote: -snip-
How can I get ffmpeg to honor 'analyzeduration' and 'probesize'? -snip- The terminal output is below. -snip- C:\Windows\System32>ffmpeg -report -analyzeduration 5772725000 -probesize 15091101696 -r 24000/1001 -f concat -safe 0 -i c:\00305+00306.txt -map 0 -c copy -dn c:\00305+00306.mkv -snip- For concat demuxer inputs you probably need to put those options with values inside that .txt file.
Yes, I thought so, too. But I couldn't see how to do it.
Because ffmpeg is not used directly with concat demuxer, as concat demuxer is doing many stuff at once.
Yes. It's a sorta macro.
Consult concat demuxer documention for more info.
Aha! In the line "option key value " Option to access, open and probe the file. Can be present multiple times." I guess that "option" is the word "option", so I changed c:\00305+00306.txt to read ----- ffconcat version 1.0 file e:\\00305.mkv duration 1:32:51.432 option analyzeduration 5772725000 option probesize 15091101696 file e:\\00306.mkv duration 1:15:04.029 option analyzeduration 5772725000 option probesize 15091101696 # set PREP=-analyzeduration 5772725000 -probesize 15091101696 -r 24000/1001 # set FORMAT=-f concat -safe 0 # set SOURCE=c:\00305+00306.txt # set CODERS=-c:v libx265 -x265-params crf=16 -c:a copy -c:s copy -dn # set TARGET=c:\00305+00306.mkv # ffmpeg %PREP% %FORMAT% -i %SOURCE% -map 0 -c copy -dn %TARGET% ----- and it worked. Thanks so much, Paul! Now I can continue with the more difficult problems. They will be the subject of a different thread. I've been working on this for weeks. Regarding the documentation, if I had the power, I'd replace this: <samp><code>option <var>key</var> <var>value</var></code></samp> by this: <samp>The word "option" followed by <var>key</var> <var>value</var> words (e.g., <code>option analyzeduration 2400000000</code>)</samp> I used TBird's Inspect tool to make the replacement and it looks great. It doesn't add any lines and it's correct English usage, too. I wish I could work on the documentation.
participants (2)
-
Mark Filipak -
Paul B Mahol