Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#7952 closed defect (fixed)

Normalize filter on FFV1 input makes a quarter of the image black

Reported by: Compusomnia Owned by:
Priority: normal Component: avfilter
Version: git-master Keywords: normalize
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

Summary of the bug: The normalize video filter applied to FFV1 input makes the right quarter of the image black
How to reproduce: Apply the normalize video filter to FFV1 input

PS D:\videos> ffmpeg -f lavfi -i testsrc=d=1 -c:v ffv1 test-source.mkv; ffmpeg -i test-source.mkv -vf normalize normalize-black-bar.mp4
ffmpeg version N-94010-gb124327216 Copyright (c) 2000-2019 the FFmpeg developers
  built with gcc 8.3.1 (GCC) 20190414
  configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libdav1d --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-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 --enable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom --enable-libmfx --enable-amf --enable-ffnvcodec --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth --enable-libopenmpt
  libavutil      56. 28.100 / 56. 28.100
  libavcodec     58. 52.102 / 58. 52.102
  libavformat    58. 27.103 / 58. 27.103
  libavdevice    58.  7.100 / 58.  7.100
  libavfilter     7. 55.100 /  7. 55.100
  libswscale      5.  4.101 /  5.  4.101
  libswresample   3.  4.100 /  3.  4.100
  libpostproc    55.  4.100 / 55.  4.100
Input #0, lavfi, from 'testsrc=d=1':
  Duration: N/A, start: 0.000000, bitrate: N/A
    Stream #0:0: Video: rawvideo (RGB[24] / 0x18424752), rgb24, 320x240 [SAR 1:1 DAR 4:3], 25 tbr, 25 tbn, 25 tbc
Stream mapping:
  Stream #0:0 -> #0:0 (rawvideo (native) -> ffv1 (native))
Press [q] to stop, [?] for help
Output #0, matroska, to 'test-source.mkv':
  Metadata:
    encoder         : Lavf58.27.103
    Stream #0:0: Video: ffv1 (FFV1 / 0x31564646), bgr0, 320x240 [SAR 1:1 DAR 4:3], q=2-31, 200 kb/s, 25 fps, 1k tbn, 25 tbc
    Metadata:
      encoder         : Lavc58.52.102 ffv1
[Parsed_testsrc_0 @ 00000202914ba580] EOF timestamp not reliable
frame=   25 fps=0.0 q=-0.0 Lsize=     106kB time=00:00:00.96 bitrate= 907.3kbits/s speed=7.34x
video:105kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.902652%
ffmpeg version N-94010-gb124327216 Copyright (c) 2000-2019 the FFmpeg developers
  built with gcc 8.3.1 (GCC) 20190414
  configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libdav1d --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-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 --enable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom --enable-libmfx --enable-amf --enable-ffnvcodec --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth --enable-libopenmpt
  libavutil      56. 28.100 / 56. 28.100
  libavcodec     58. 52.102 / 58. 52.102
  libavformat    58. 27.103 / 58. 27.103
  libavdevice    58.  7.100 / 58.  7.100
  libavfilter     7. 55.100 /  7. 55.100
  libswscale      5.  4.101 /  5.  4.101
  libswresample   3.  4.100 /  3.  4.100
  libpostproc    55.  4.100 / 55.  4.100
Input #0, matroska,webm, from 'test-source.mkv':
  Metadata:
    ENCODER         : Lavf58.27.103
  Duration: 00:00:01.00, start: 0.000000, bitrate: 871 kb/s
    Stream #0:0: Video: ffv1 (FFV1 / 0x31564646), bgr0, 320x240, SAR 1:1 DAR 4:3, 25 fps, 25 tbr, 1k tbn, 1k tbc (default)
    Metadata:
      ENCODER         : Lavc58.52.102 ffv1
      DURATION        : 00:00:01.000000000
Stream mapping:
  Stream #0:0 -> #0:0 (ffv1 (native) -> h264 (libx264))
Press [q] to stop, [?] for help
[libx264 @ 0000012b9bffc080] using SAR=1/1
[libx264 @ 0000012b9bffc080] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX XOP FMA3 BMI1
[libx264 @ 0000012b9bffc080] profile High 4:4:4 Predictive, level 1.3, 4:4:4, 8-bit
[libx264 @ 0000012b9bffc080] 264 - core 157 r2970 5493be8 - H.264/MPEG-4 AVC codec - Copyleft 2003-2019 - http://www.videolan.org/x264.html - options: cabac=1 ref=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=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=4 threads=7 lookahead_threads=1 sliced_threads=0 nr=0 decimate=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=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
Output #0, mp4, to 'normalize-black-bar.mp4':
  Metadata:
    encoder         : Lavf58.27.103
    Stream #0:0: Video: h264 (libx264) (avc1 / 0x31637661), yuv444p, 320x240 [SAR 1:1 DAR 4:3], q=-1--1, 25 fps, 12800 tbn, 25 tbc (default)
    Metadata:
      DURATION        : 00:00:01.000000000
      encoder         : Lavc58.52.102 libx264
    Side data:
      cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1
[matroska,webm @ 0000012b9bff9000] Element at 0x1a982 ending at 0x1a9be exceeds containing master element ending at 0x1a97d
frame=   25 fps=0.0 q=-1.0 Lsize=       7kB time=00:00:00.88 bitrate=  61.1kbits/s speed= 8.8x
video:5kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 20.157255%
[libx264 @ 0000012b9bffc080] frame I:1     Avg QP:14.92  size:  1768
[libx264 @ 0000012b9bffc080] frame P:8     Avg QP:15.50  size:   296
[libx264 @ 0000012b9bffc080] frame B:16    Avg QP:14.31  size:    48
[libx264 @ 0000012b9bffc080] consecutive B-frames:  8.0%  8.0% 36.0% 48.0%
[libx264 @ 0000012b9bffc080] mb I  I16..4: 49.7% 33.7% 16.7%
[libx264 @ 0000012b9bffc080] mb P  I16..4:  1.4%  1.2%  0.7%  P16..4:  6.2%  2.6%  1.4%  0.0%  0.0%    skip:86.5%
[libx264 @ 0000012b9bffc080] mb B  I16..4:  0.1%  0.0%  0.0%  B16..8:  2.8%  0.1%  0.0%  direct: 0.1%  skip:96.8%  L0:47.1% L1:47.1% BI: 5.8%
[libx264 @ 0000012b9bffc080] 8x8 transform intra:34.1% inter:47.6%
[libx264 @ 0000012b9bffc080] coded y,u,v intra: 9.4% 8.9% 9.1% inter: 0.5% 0.6% 0.6%
[libx264 @ 0000012b9bffc080] i16 v,h,dc,p: 86%  9%  1%  5%
[libx264 @ 0000012b9bffc080] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 59%  9% 32%  1%  0%  0%  0%  0%  0%
[libx264 @ 0000012b9bffc080] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 40% 38% 17%  1%  1%  1%  0%  1%  0%
[libx264 @ 0000012b9bffc080] Weighted P-Frames: Y:0.0% UV:0.0%
[libx264 @ 0000012b9bffc080] ref P L0: 68.8%  5.8% 19.7%  5.7%
[libx264 @ 0000012b9bffc080] ref B L0: 58.0% 37.3%  4.7%
[libx264 @ 0000012b9bffc080] ref B L1: 96.6%  3.4%
[libx264 @ 0000012b9bffc080] kb/s:39.26

Change History (2)

comment:1 by Elon Musk, 3 years ago

Resolution: fixed
Status: newclosed

This should have already been fixed, please retest with latest master and report back.

comment:2 by Compusomnia, 3 years ago

Confirmed fixed with latest master.

Note: See TracTickets for help on using tickets.