Opened 5 years ago

Closed 5 years ago

#3596 closed defect (fixed)

broken output in uspp filter when using 8 quality mode and fixed qp

Reported by: chronek Owned by:
Priority: minor Component: avfilter
Version: git-master Keywords: uspp mpfilter
Cc: Blocked By:
Blocking: Reproduced by developer: yes
Analyzed by developer: no

Description

Hello,

I found that mpfilter uspp working wrong in 8 quality mode and fixed qp, if is possible please check it

ffmpeg.exe -loglevel verbose -i test.bmp -vf mp=uspp=8:6 out.bmp
ffmpeg version N-62699-gc7b0890 Copyright (c) 2000-2014 the FFmpeg developers

built on Apr 25 2014 03:14:39 with gcc 4.8.2 (GCC)
configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libcaca --enable-libfreetype --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-decklink --enable-zlib
libavutil 52. 78.100 / 52. 78.100
libavcodec 55. 59.100 / 55. 59.100
libavformat 55. 37.101 / 55. 37.101
libavdevice 55. 13.100 / 55. 13.100
libavfilter 4. 4.100 / 4. 4.100
libswscale 2. 6.100 / 2. 6.100
libswresample 0. 18.100 / 0. 18.100
libpostproc 52. 3.100 / 52. 3.100

Input #0, image2, from 'test.bmp':

Duration: 00:00:00.04, start: 0.000000, bitrate: N/A

Stream #0:0: Video: bmp, bgr24, 100x100, 25 tbr, 25 tbn, 25 tbc

File 'out.bmp' already exists. Overwrite ? [y/N] y
[Parsed_mp_0 @ 0000000004e9ec20] 'uspp' is a wrapped MPlayer filter (libmpcodecs). This filter may be removed once it has been ported to a native libavfilter.
[graph 0 input from stream 0:0 @ 0000000004eb1d80] w:100 h:100 pixfmt:bgr24 tb:1/25 fr:25/1 sar:0/1 sws_param:flags=2
[auto-inserted scaler 0 @ 0000000004eb2840] w:iw h:ih flags:'0x4' interl:0
[Parsed_mp_0 @ 0000000004e9ec20] auto-inserting filter 'auto-inserted scaler 0' between the filter 'graph 0 input from s
tream 0:0' and the filter 'Parsed_mp_0'
[auto-inserted scaler 1 @ 0000000004ea7180] w:iw h:ih flags:'0x4' interl:0
[format @ 0000000004eb2380] auto-inserting filter 'auto-inserted scaler 1' between the filter 'Parsed_mp_0' and the filt
er 'format'
[auto-inserted scaler 0 @ 0000000004eb2840] w:100 h:100 fmt:bgr24 sar:0/1 -> w:100 h:100 fmt:yuv420p sar:0/1 flags:0x4
[auto-inserted scaler 1 @ 0000000004ea7180] w:100 h:100 fmt:yuv420p sar:0/1 -> w:100 h:100 fmt:bgr24 sar:0/1 flags:0x4
Output #0, image2, to 'out.bmp':

Metadata:

encoder : Lavf55.37.101
Stream #0:0: Video: bmp, bgr24, 100x100, q=2-31, 200 kb/s, 90k tbn, 25 tbc

Stream mapping:

Stream #0:0 -> #0:0 (bmp -> bmp)

Press [q] to stop, ? for help
No more output streams to write to, finishing.00.04 bitrate=N/A
frame= 1 fps=0.0 q=0.0 Lsize=N/A time=00:00:00.04 bitrate=N/A
video:29kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 61378664662564864.000000%
Input file #0 (test.bmp):

Input stream #0:0 (video): 1 packets read (30054 bytes); 1 frames decoded;
Total: 1 packets (30054 bytes) demuxed

Output file #0 (out.bmp):

Output stream #0:0 (video): 1 frames encoded; 1 packets muxed (30054 bytes);
Total: 1 packets (30054 bytes) muxed

Attachments (1)

test.bmp (29.3 KB) - added by chronek 5 years ago.
test file

Download all attachments as: .zip

Change History (4)

Changed 5 years ago by chronek

test file

comment:1 Changed 5 years ago by cehoyos

  • Reproduced by developer set
  • Status changed from new to open

Also reproducible with MPlayer:

$ mplayer mf://test.bmp -vf uspp=8:6,scale -vo png

comment:2 Changed 5 years ago by cehoyos

Probably not a regression, reproducible with MPlayer r17082

comment:3 Changed 5 years ago by michael

  • Resolution set to fixed
  • Status changed from open to closed
Note: See TracTickets for help on using tickets.