[FFmpeg-trac] #1687(FFmpeg:new): -v quiet -stats
FFmpeg
trac at avcodec.org
Sun Aug 26 05:03:04 CEST 2012
#1687: -v quiet -stats
---------------------------------+---------------------------------------
Reporter: gd2shoe | Type: defect
Status: new | Priority: minor
Component: FFmpeg | Version: unspecified
Keywords: | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
---------------------------------+---------------------------------------
Summary of the bug:
-v quiet overrides even an explicit -stats flag.
I'm trying to write a python script that uses ffmpeg for transcoding. I'd
like to retain the progress for the user, but scrap the initial info (and
other info lines). I'll probably devise some filter in the meanwhile, but
this still seems broken.
As it stands now, I can't see what -stats is supposed to do. It is always
on, except when -v turns it off, and then it is always off. This seems
very odd.
I suspect the solution will be to make the debugging level of the progress
output conditional on the -stat flag. Without actually finding it in the
code, I think this should be fairly straightforward.
How to reproduce:
{{{
% ffmpeg -v quiet -stats -i input ... output
% ffmpeg -v panic -stats -i input ... output
% ffmpeg -v fatal -stats -i input ... output
% ffmpeg -v error -stats -i input ... output
% ffmpeg -v warning -stats -i input ... output
Running on Windows XP in Cygwin Console, but I really doubt that matters.
ffmpeg version N-43594-gf0896a6 Copyright (c) 2000-2012 the FFmpeg
developers
built on Aug 15 2012 21:25:48 with gcc 4.7.1 (GCC)
configuration: --enable-gpl --enable-version3 --disable-pthreads
--enable-runtime-cpudetect --enable-avisynth --enable-bzlib --enable-
frei0r --enable-libass --enable-libcelt --enable-libopencore-amrnb
--enable-libopencore-amrwb --enable-libfreetype --enable-libgsm --enable-
libmp3lame --enable-libnut --enable-libopenjpeg --enable-librtmp --enable-
libschroedinger --enable-libspeex --enable-libtheora --enable-libutvideo
--enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-
libvpx --enable-libx264 --enable-libxavs --enable-libxvid --enable-zlib
libavutil 51. 69.100 / 51. 69.100
libavcodec 54. 52.100 / 54. 52.100
libavformat 54. 23.101 / 54. 23.101
libavdevice 54. 2.100 / 54. 2.100
libavfilter 3. 9.100 / 3. 9.100
libswscale 2. 1.101 / 2. 1.101
libswresample 0. 15.100 / 0. 15.100
libpostproc 52. 0.100 / 52. 0.100
}}}
--
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/1687>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list