Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#5884 closed defect (invalid)

show_banner does not obey loglevel override

Reported by: lolilolicon Owned by:
Priority: minor Component: ffmpeg
Version: unspecified Keywords:
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

The banner should not be shown here:

% ffmpeg -v info -i i.png -v fatal -y o.png
ffmpeg version 3.1.4 Copyright (c) 2000-2016 the FFmpeg developers
  built with gcc 6.2.1 (GCC) 20160830
  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-libschroedinger --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libv4l2 --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-netcdf --enable-shared --enable-version3 --enable-x11grab
  libavutil      55. 28.100 / 55. 28.100
  libavcodec     57. 48.101 / 57. 48.101
  libavformat    57. 41.100 / 57. 41.100
  libavdevice    57.  0.101 / 57.  0.101
  libavfilter     6. 47.100 /  6. 47.100
  libavresample   3.  0.  0 /  3.  0.  0
  libswscale      4.  1.100 /  4.  1.100
  libswresample   2.  1.100 /  2.  1.100
  libpostproc    54.  0.100 / 54.  0.100

The following successfully disable banner printing:

% ffmpeg -v fatal -i i.png -y o.png
% ffmpeg -hide_banner -v info -i i.png -v fatal -y o.png

Change History (7)

comment:1 by Carl Eugen Hoyos, 7 years ago

Resolution: invalid
Status: newclosed

I don't think your command line is valid.

in reply to:  1 comment:2 by lolilolicon, 7 years ago

Replying to cehoyos:

I don't think your command line is valid.

Why? Please explain.

comment:3 by Carl Eugen Hoyos, 7 years ago

Because specifying the same option multiple times is not necessarily valid, particularly not for the loglevel option.

in reply to:  3 comment:4 by lolilolicon, 7 years ago

Replying to cehoyos:
I don't understand. I mean, but it should be valid, since -loglevel is a global option, like -stdin for example.

comment:5 by Cigaes, 7 years ago

Well, if you think this is valid, please quote the paragraph in the documentation that tells you, when the -loglevel option is specified several time, which one has precedence.

If you can not do that, you can not complain that the result is not what you expect, since you do not have any grounds to expect anything.

comment:6 by lolilolicon, 7 years ago

Sure, OK. Can we talk about *sane* behavior though?

The following are simplified command lines to better illustrate the problematic (IMO, at least surprising) behavior:

% ffmpeg -v fatal -i i.png o.png
% ffmpeg -v info -i i.png o.png
ffmpeg version 3.1.4 Copyright (c) 2000-2016 the FFmpeg developers
  built with gcc 6.2.1 (GCC) 20160830
  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-libschroedinger --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libv4l2 --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-netcdf --enable-shared --enable-version3 --enable-x11grab
  libavutil      55. 28.100 / 55. 28.100
  libavcodec     57. 48.101 / 57. 48.101
  libavformat    57. 41.100 / 57. 41.100
  libavdevice    57.  0.101 / 57.  0.101
  libavfilter     6. 47.100 /  6. 47.100
  libavresample   3.  0.  0 /  3.  0.  0
  libswscale      4.  1.100 /  4.  1.100
  libswresample   2.  1.100 /  2.  1.100
  libpostproc    54.  0.100 / 54.  0.100
Input #0, png_pipe, from 'i.png':
  Duration: N/A, bitrate: N/A
    Stream #0:0: Video: png, monob(pc), 100x100, 25 tbr, 25 tbn, 25 tbc
[image2 @ 0x5653d1a1f900] Using AVStream.codec to pass codec parameters to muxers is deprecated, use AVStream.codecpar instead.
Output #0, image2, to 'o.png':
  Metadata:
    encoder         : Lavf57.41.100
    Stream #0:0: Video: png, monob, 100x100, q=2-31, 200 kb/s, 25 fps, 25 tbn, 25 tbc
    Metadata:
      encoder         : Lavc57.48.101 png
Stream mapping:
  Stream #0:0 -> #0:0 (png (native) -> png (native))
Press [q] to stop, [?] for help
frame=    1 fps=0.0 q=-0.0 Lsize=N/A time=00:00:00.04 bitrate=N/A speed= 141x    
video:0kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
% ffmpeg -v info -v fatal -i i.png o.png
ffmpeg version 3.1.4 Copyright (c) 2000-2016 the FFmpeg developers
  built with gcc 6.2.1 (GCC) 20160830
  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-libschroedinger --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libv4l2 --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-netcdf --enable-shared --enable-version3 --enable-x11grab
  libavutil      55. 28.100 / 55. 28.100
  libavcodec     57. 48.101 / 57. 48.101
  libavformat    57. 41.100 / 57. 41.100
  libavdevice    57.  0.101 / 57.  0.101
  libavfilter     6. 47.100 /  6. 47.100
  libavresample   3.  0.  0 /  3.  0.  0
  libswscale      4.  1.100 /  4.  1.100
  libswresample   2.  1.100 /  2.  1.100
  libpostproc    54.  0.100 / 54.  0.100

I do not pretend to know how multiple -loglevels are or should be applied.
I'm simply requesting a saner behavior regarding the banner printing.

Last edited 7 years ago by lolilolicon (previous) (diff)

comment:7 by Cigaes, 7 years ago

The sane behaviour is: do not have options contradicting each other.

Note: See TracTickets for help on using tickets.