[FFmpeg-user] PGM files are loading extremely slow

Paul B Mahol onemda at gmail.com
Sat Apr 27 02:06:25 EEST 2019


On 4/27/19, Michael Koch <astroelectronic at t-online.de> wrote:
> Hi,
>
> I'd like to report a problem when loading large PGM files, which are
> required for the remap filter.
> These files are loading extremely slow in the latest ffmpeg version.
> Much slower than a few weeks before.
> I found out that the problem began between April 10 and 11.
>
> The PGM file that I used for testing can be downloaded here:
> https://trac.ffmpeg.org/wiki/RemapFilter
>
>
> This is the last good ffmpeg version from 2019 April 10, execution time
> is less than 1 second:
>
> C:\ffmpeg_alt>ffmpeg -i xmap_samsung_gear_2560x1280.pgm -t 1 -y test1.mp4
> ffmpeg version N-93548-g4d2f62150d Copyright (c) 2000-2019 the FFmpeg
> developers
>
>    built with gcc 8.2.1 (GCC) 20190212
>    configuration: --enable-gpl --enable-version3 --enable-sdl2
> --enable-fontconfi
> g --enable-gnutls --enable-iconv --enable-libass --enable-libdav1d
> --enable-libb
> luray --enable-libfreetype --enable-libmp3lame
> --enable-libopencore-amrnb --enab
> le-libopencore-amrwb --enable-libopenjpeg --enable-libopus
> --enable-libshine --e
> nable-libsnappy --enable-libsoxr --enable-libtheora --enable-libtwolame
> --enable
> -libvpx --enable-libwavpack --enable-libwebp --enable-libx264
> --enable-libx265 -
> -enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib
> --enable-gmp --enab
> le-libvidstab --enable-libvorbis --enable-libvo-amrwbenc
> --enable-libmysofa --en
> able-libspeex --enable-libxvid --enable-libaom --enable-libmfx
> --enable-amf --en
> able-ffnvcodec --enable-cuvid --enable-d3d11va --enable-nvenc
> --enable-nvdec --e
> nable-dxva2 --enable-avisynth --enable-libopenmpt
>    libavutil      56. 26.100 / 56. 26.100
>    libavcodec     58. 48.101 / 58. 48.101
>    libavformat    58. 27.100 / 58. 27.100
>    libavdevice    58.  7.100 / 58.  7.100
>    libavfilter     7. 48.100 /  7. 48.100
>    libswscale      5.  4.100 /  5.  4.100
>    libswresample   3.  4.100 /  3.  4.100
>    libpostproc    55.  4.100 / 55.  4.100
> [pgm_pipe @ 00000000004902c0] Stream #0: not enough frames to estimate
> rate; con
> sider increasing probesize
> Input #0, pgm_pipe, from 'xmap_samsung_gear_2560x1280.pgm':
>    Duration: N/A, bitrate: N/A
>      Stream #0:0: Video: pgm, gray16le, 2560x1280, 25 tbr, 25 tbn, 25 tbc
> Stream mapping:
>    Stream #0:0 -> #0:0 (pgm (native) -> h264 (libx264))
> Press [q] to stop, [?] for help
> [libx264 @ 0000000002b0c2c0] using cpu capabilities: MMX2 SSE2Fast SSSE3
> SSE4.2
> AVX FMA3 BMI2 AVX2
> [libx264 @ 0000000002b0c2c0] profile Progressive High 10, level 5.0,
> 4:0:0, 10-b
> it
> [libx264 @ 0000000002b0c2c0] 264 - core 157 r2969 d4099dd - H.264/MPEG-4
> AVC cod
> ec - Copyleft 2003-2019 - http://www.videolan.org/x264.html - options:
> cabac=1 r
> ef=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1
> psy_rd=1.00:0.00 mixed
> _ref=1 me_range=16 chroma_me=0 trellis=1 8x8dct=1 cqm=0 deadzone=21,11
> fast_pski
> p=1 chroma_qp_offset=-2 threads=6 lookahead_threads=1 sliced_threads=0
> nr=0 deci
> mate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3
> b_pyramid=2 b_
> adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250
> keyint_min=2
> 5 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0
> qcomp=0.6
> 0 qpmin=0 qpmax=81 qpstep=4 ip_ratio=1.40 aq=1:1.00
> Output #0, mp4, to 'test1.mp4':
>    Metadata:
>      encoder         : Lavf58.27.100
>      Stream #0:0: Video: h264 (libx264) (avc1 / 0x31637661), gray10le,
> 2560x1280,
>   q=-1--1, 25 fps, 12800 tbn, 25 tbc
>      Metadata:
>        encoder         : Lavc58.48.101 libx264
>      Side data:
>        cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1
> frame=    1 fps=0.0 q=40.0 Lsize=       4kB time=00:00:00.00
> bitrate=421128.2kbi
> ts/s speed=0.000557x
> video:3kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB
> muxing ove
> rhead: 24.198427%
> [libx264 @ 0000000002b0c2c0] frame I:1     Avg QP:25.75  size:  2617
> [libx264 @ 0000000002b0c2c0] mb I  I16..4: 100.0%  0.0%  0.0%
> [libx264 @ 0000000002b0c2c0] 8x8 transform intra:0.0%
> [libx264 @ 0000000002b0c2c0] coded y intra: 0.0%
> [libx264 @ 0000000002b0c2c0] i16 v,h,dc,p: 93%  6%  1%  0%
> [libx264 @ 0000000002b0c2c0] i8c dc,h,v,p: 100%  0%  0%  0%
> [libx264 @ 0000000002b0c2c0] kb/s:523.40
>
>
>
> This is the first bad ffmpeg version from 2019 April 11, execution time
> is about 18 seconds:
>
> C:\ffmpeg_alt>ffmpeg -i xmap_samsung_gear_2560x1280.pgm -t 1 -y test1.mp4
> ffmpeg version N-93554-gce92ee4b4f Copyright (c) 2000-2019 the FFmpeg
> developers
>
>    built with gcc 8.2.1 (GCC) 20190212
>    configuration: --enable-gpl --enable-version3 --enable-sdl2
> --enable-fontconfi
> g --enable-gnutls --enable-iconv --enable-libass --enable-libdav1d
> --enable-libb
> luray --enable-libfreetype --enable-libmp3lame
> --enable-libopencore-amrnb --enab
> le-libopencore-amrwb --enable-libopenjpeg --enable-libopus
> --enable-libshine --e
> nable-libsnappy --enable-libsoxr --enable-libtheora --enable-libtwolame
> --enable
> -libvpx --enable-libwavpack --enable-libwebp --enable-libx264
> --enable-libx265 -
> -enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib
> --enable-gmp --enab
> le-libvidstab --enable-libvorbis --enable-libvo-amrwbenc
> --enable-libmysofa --en
> able-libspeex --enable-libxvid --enable-libaom --enable-libmfx
> --enable-amf --en
> able-ffnvcodec --enable-cuvid --enable-d3d11va --enable-nvenc
> --enable-nvdec --e
> nable-dxva2 --enable-avisynth --enable-libopenmpt
>    libavutil      56. 26.100 / 56. 26.100
>    libavcodec     58. 48.101 / 58. 48.101
>    libavformat    58. 27.100 / 58. 27.100
>    libavdevice    58.  7.100 / 58.  7.100
>    libavfilter     7. 48.100 /  7. 48.100
>    libswscale      5.  4.100 /  5.  4.100
>    libswresample   3.  4.100 /  3.  4.100
>    libpostproc    55.  4.100 / 55.  4.100
> [pgm_pipe @ 00000000004102c0] Stream #0: not enough frames to estimate
> rate; con
> sider increasing probesize
> Input #0, pgm_pipe, from 'xmap_samsung_gear_2560x1280.pgm':
>    Duration: N/A, bitrate: N/A
>      Stream #0:0: Video: pgm, gray16le, 2560x1280, 25 tbr, 25 tbn, 25 tbc
> Stream mapping:
>    Stream #0:0 -> #0:0 (pgm (native) -> h264 (libx264))
> Press [q] to stop, [?] for help
> [libx264 @ 0000000002e5c2c0] using cpu capabilities: MMX2 SSE2Fast SSSE3
> SSE4.2
> AVX FMA3 BMI2 AVX2
> [libx264 @ 0000000002e5c2c0] profile Progressive High 10, level 5.0,
> 4:0:0, 10-b
> it
> [libx264 @ 0000000002e5c2c0] 264 - core 157 r2969 d4099dd - H.264/MPEG-4
> AVC cod
> ec - Copyleft 2003-2019 - http://www.videolan.org/x264.html - options:
> cabac=1 r
> ef=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1
> psy_rd=1.00:0.00 mixed
> _ref=1 me_range=16 chroma_me=0 trellis=1 8x8dct=1 cqm=0 deadzone=21,11
> fast_pski
> p=1 chroma_qp_offset=-2 threads=6 lookahead_threads=1 sliced_threads=0
> nr=0 deci
> mate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3
> b_pyramid=2 b_
> adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250
> keyint_min=2
> 5 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0
> qcomp=0.6
> 0 qpmin=0 qpmax=81 qpstep=4 ip_ratio=1.40 aq=1:1.00
> Output #0, mp4, to 'test1.mp4':
>    Metadata:
>      encoder         : Lavf58.27.100
>      Stream #0:0: Video: h264 (libx264) (avc1 / 0x31637661), gray10le,
> 2560x1280,
>   q=-1--1, 25 fps, 12800 tbn, 25 tbc
>      Metadata:
>        encoder         : Lavc58.48.101 libx264
>      Side data:
>        cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1
> frame=    1 fps=0.0 q=40.0 Lsize=       4kB time=00:00:00.00
> bitrate=421128.2kbi
> ts/s speed=0.000709x
> video:3kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB
> muxing ove
> rhead: 24.198427%
> [libx264 @ 0000000002e5c2c0] frame I:1     Avg QP:25.75  size:  2617
> [libx264 @ 0000000002e5c2c0] mb I  I16..4: 100.0%  0.0%  0.0%
> [libx264 @ 0000000002e5c2c0] 8x8 transform intra:0.0%
> [libx264 @ 0000000002e5c2c0] coded y intra: 0.0%
> [libx264 @ 0000000002e5c2c0] i16 v,h,dc,p: 93%  6%  1%  0%
> [libx264 @ 0000000002e5c2c0] i8c dc,h,v,p: 100%  0%  0%  0%
> [libx264 @ 0000000002e5c2c0] kb/s:523.40
>
>
> Michael
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".


I can not reproduce this, even when creating big pgm files.


More information about the ffmpeg-user mailing list