[FFmpeg-trac] #7154(avfilter:new): Reddish colors when using uspp or owdenoise filters
FFmpeg
trac at avcodec.org
Sun Apr 22 10:21:28 EEST 2018
#7154: Reddish colors when using uspp or owdenoise filters
----------------------------------+--------------------------------------
Reporter: Ilya87 | Type: defect
Status: new | Priority: normal
Component: avfilter | Version: git-master
Keywords: | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
----------------------------------+--------------------------------------
Summary of the bug:
The use of owdenoise and uspp filters leads to reddish coclors
How to reproduce:
{{{
% ffmpeg -ss 2.4 -i VTS_01_1.mkv -vf bwdif=mode=0,uspp -vframes 1 01.png
(or owdenoise)
ffmpeg version 4.0 Copyright (c) 2000-2018 the FFmpeg developers
built with gcc 7.3.1 (GCC) 20180312
configuration: --prefix=/usr --disable-debug --disable-static --disable-
stripping --enable-avisynth --enable-avresample --enable-fontconfig
--enable-gmp --enable-gnutls --enable-gpl --enable-ladspa --enable-libass
--enable-libbluray --enable-libfreetype --enable-libfribidi --enable-
libgsm --enable-libiec61883 --enable-libmodplug --enable-libmp3lame
--enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libopenjpeg
--enable-libopus --enable-libpulse --enable-libsoxr --enable-libspeex
--enable-libssh --enable-libtheora --enable-libv4l2 --enable-libvidstab
--enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264
--enable-libx265 --enable-libxcb --enable-libxml2 --enable-libxvid
--enable-shared --enable-version3 --enable-omx
libavutil 56. 14.100 / 56. 14.100
libavcodec 58. 18.100 / 58. 18.100
libavformat 58. 12.100 / 58. 12.100
libavdevice 58. 3.100 / 58. 3.100
libavfilter 7. 16.100 / 7. 16.100
libavresample 4. 0. 0 / 4. 0. 0
libswscale 5. 1.100 / 5. 1.100
libswresample 3. 1.100 / 3. 1.100
libpostproc 55. 1.100 / 55. 1.100
Splitting the commandline.
Reading option '-v' ... matched as option 'v' (set logging level) with
argument '9'.
Reading option '-loglevel' ... matched as option 'loglevel' (set logging
level) with argument '99'.
Reading option '-ss' ... matched as option 'ss' (set the start time
offset) with argument '2.4'.
Reading option '-i' ... matched as input url with argument 'VTS_01_1.mkv'.
Reading option '-vf' ... matched as option 'vf' (set video filters) with
argument 'bwdif=mode=0,uspp'.
Reading option '-vframes' ... matched as option 'vframes' (set the number
of video frames to output) with argument '1'.
Reading option '01.png' ... matched as output url.
Finished splitting the commandline.
Parsing a group of options: global .
Applying option v (set logging level) with argument 9.
Successfully parsed a group of options.
Parsing a group of options: input url VTS_01_1.mkv.
Applying option ss (set the start time offset) with argument 2.4.
Successfully parsed a group of options.
Opening an input file: VTS_01_1.mkv.
[NULL @ 0x5587806b1a40] Opening 'VTS_01_1.mkv' for reading
[file @ 0x5587806b2540] Setting default whitelist 'file,crypto'
Probing matroska,webm score:100 size:2048
[matroska,webm @ 0x5587806b1a40] Format matroska,webm probed with
size=2048 and score=100
st:0 removing common factor 1000000 from timebase
[matroska,webm @ 0x5587806b1a40] Before avformat_find_stream_info() pos:
5538 bytes read:33167 seeks:2 nb_streams:1
[mpeg2video @ 0x5587806b5a00] ignoring pic cod ext after 0
[mpeg2video @ 0x5587806b5a00] Format yuv420p chosen by get_format().
[matroska,webm @ 0x5587806b1a40] All info found
[matroska,webm @ 0x5587806b1a40] stream 0: start_time: 0.080 duration:
-9223372036854776.000
[matroska,webm @ 0x5587806b1a40] format: start_time: 0.080 duration: 3.000
bitrate=8838 kb/s
[matroska,webm @ 0x5587806b1a40] After avformat_find_stream_info() pos:
128684 bytes read:158627 seeks:2 frames:2
[matroska,webm @ 0x5587806b1a40] Unknown entry 0xEA
Input #0, matroska,webm, from 'VTS_01_1.mkv':
Metadata:
encoder : libebml v1.3.5 + libmatroska v1.4.8
creation_time : 2018-04-22T10:00:26.000000Z
Duration: 00:00:03.00, start: 0.080000, bitrate: 8838 kb/s
Stream #0:0, 2, 1/1000: Video: mpeg2video (Main), 1 reference frame,
yuv420p(tv, top first, left), 720x576 [SAR 64:45 DAR 16:9], 0/1, 50 fps,
50 tbr, 1k tbn, 50 tbc (default)
Metadata:
BPS-eng : 8817861
DURATION-eng : 00:00:03.000000000
NUMBER_OF_FRAMES-eng: 75
NUMBER_OF_BYTES-eng: 3306698
_STATISTICS_WRITING_APP-eng: mkvmerge v22.0.0 ('At The End Of The
World') 64-bit
_STATISTICS_WRITING_DATE_UTC-eng: 2018-04-22 10:00:26
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Successfully opened the file.
Parsing a group of options: output url 01.png.
Applying option vf (set video filters) with argument bwdif=mode=0,uspp.
Applying option vframes (set the number of video frames to output) with
argument 1.
Successfully parsed a group of options.
Opening an output file: 01.png.
Successfully opened the file.
detected 4 logical cores
Stream mapping:
Stream #0:0 -> #0:0 (mpeg2video (native) -> png (native))
Press [q] to stop, [?] for help
cur_dts is invalid (this is harmless if it occurs once at the start per
stream)
[mpeg2video @ 0x5587806de780] ignoring pic cod ext after 0
[mpeg2video @ 0x5587806de780] Format yuv420p chosen by get_format().
cur_dts is invalid (this is harmless if it occurs once at the start per
stream)
[mpeg2video @ 0x5587806de780] Skipping B slice due to open GOP
Last message repeated 35 times
cur_dts is invalid (this is harmless if it occurs once at the start per
stream)
[mpeg2video @ 0x5587806de780] Skipping B slice due to open GOP
Last message repeated 35 times
cur_dts is invalid (this is harmless if it occurs once at the start per
stream)
[Parsed_bwdif_0 @ 0x558780825ac0] Setting 'mode' to value '0'
[graph 0 input from stream 0:0 @ 0x558780825f80] Setting 'video_size' to
value '720x576'
[graph 0 input from stream 0:0 @ 0x558780825f80] Setting 'pix_fmt' to
value '0'
[graph 0 input from stream 0:0 @ 0x558780825f80] Setting 'time_base' to
value '1/1000'
[graph 0 input from stream 0:0 @ 0x558780825f80] Setting 'pixel_aspect' to
value '64/45'
[graph 0 input from stream 0:0 @ 0x558780825f80] Setting 'sws_param' to
value 'flags=2'
[graph 0 input from stream 0:0 @ 0x558780825f80] Setting 'frame_rate' to
value '50/1'
[graph 0 input from stream 0:0 @ 0x558780825f80] w:720 h:576
pixfmt:yuv420p tb:1/1000 fr:50/1 sar:64/45 sws_param:flags=2
[format @ 0x558780824f80] Setting 'pix_fmts' to value
'rgb24|rgba|rgb48be|rgba64be|pal8|gray|ya8|gray16be|ya16be|monob'
[auto_scaler_0 @ 0x55878082b400] Setting 'flags' to value 'bicubic'
[auto_scaler_0 @ 0x55878082b400] w:iw h:ih flags:'bicubic' interl:0
[format @ 0x558780824f80] auto-inserting filter 'auto_scaler_0' between
the filter 'Parsed_uspp_1' and the filter 'format'
[AVFilterGraph @ 0x558780824e40] query_formats: 6 queried, 4 merged, 1
already done, 0 delayed
[auto_scaler_0 @ 0x55878082b400] picking rgb24 out of 9 ref:yuv420p
alpha:0
[auto_scaler_0 @ 0x55878082b400] w:720 h:576 fmt:yuv420p sar:64/45 ->
w:720 h:576 fmt:rgb24 sar:64/45 flags:0x4
Output #0, image2, to '01.png':
Metadata:
encoder : Lavf58.12.100
Stream #0:0, 0, 1/50: Video: png, 1 reference frame, rgb24(left),
720x576 [SAR 64:45 DAR 16:9], 0/1, q=2-31, 200 kb/s, 50 fps, 50 tbn, 50
tbc (default)
Metadata:
BPS-eng : 8817861
DURATION-eng : 00:00:03.000000000
NUMBER_OF_FRAMES-eng: 75
NUMBER_OF_BYTES-eng: 3306698
_STATISTICS_WRITING_APP-eng: mkvmerge v22.0.0 ('At The End Of The
World') 64-bit
_STATISTICS_WRITING_DATE_UTC-eng: 2018-04-22 10:00:26
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
encoder : Lavc58.18.100 png
cur_dts is invalid (this is harmless if it occurs once at the start per
stream)
Last message repeated 15 times
Clipping frame in rate conversion by 0.000008
No more output streams to write to, finishing.
[image2 @ 0x5587806dfc00] Opening '01.png' for writing
[file @ 0x558781b2bd00] Setting default whitelist 'file,crypto'
[AVIOContext @ 0x558781960f80] Statistics: 0 seeks, 3 writeouts
frame= 1 fps=0.0 q=-0.0 Lsize=N/A time=00:00:00.02 bitrate=N/A
speed=0.0205x
video:528kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB
muxing overhead: unknown
Input file #0 (VTS_01_1.mkv):
Input stream #0:0 (video): 20 packets read (900335 bytes); 18 frames
decoded;
Total: 20 packets (900335 bytes) demuxed
Output file #0 (01.png):
Output stream #0:0 (video): 1 frames encoded; 1 packets muxed (540474
bytes);
Total: 1 packets (540474 bytes) muxed
18 frames successfully decoded, 0 decoding errors
[AVIOContext @ 0x5587806ba9c0] Statistics: 1066591 bytes read, 5 seeks
}}}
The use of atadenoise gives normal colors
--
Ticket URL: <https://trac.ffmpeg.org/ticket/7154>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list