News:

--

Main Menu

avidemux cli verbose level

Started by Spellbinder, November 06, 2014, 08:43:10 AM

Previous topic - Next topic

Spellbinder

Hi,

Tried http://www.avidemux.org/admWiki/doku.php?id=using:command_line_usage and Google but found nothing:

Is there a way to set the verbose level of the avidemux command line so it does not produce a lot of output and shows only errors?

Thanks,

Spellbinder

Jan Gruuthuse

#1
Not from avidemux, as far as I can see.
avidemux3_cli --help
QuoteCommand line possible arguments :
    --nogui, Run in silent mode  ( no arg )
    --slave, run as slave, master is on port arg  (one arg )
    --run, load and run a script  (one arg )
    --save-jpg, save a jpeg  (one arg )
    --begin, set start frame  (one arg )
    --end, set end frame  (one arg )
    --save-raw-audio, save audio as-is   (one arg )
    --save-uncompressed-audio, save uncompressed audio  (one arg )
    --load, load video or workbench  (one arg )
    --load-workbench, load workbench file  (one arg )
    --append, append video  (one arg )
    --save, save avi  (one arg )
    --force-b-frame, Force detection of bframe in next loaded file  ( no arg )
    --force-alt-h264, Force use of alternate read mode for h264  ( no arg )
    --external-audio, Load an external audio file. {track_index} {filename}  (two args )
    --set-audio-language, Set language of an active audio track {track_index} {language_short_name}  (two args )
    --audio-delay, set audio time shift in ms (+ or -)  (one arg )
    --audio-codec, set audio codec (MP2/MP3/AC3/NONE (WAV PCM)/TWOLAME/COPY)  (one arg )
    --video-codec, set video codec (Divx/Xvid/FFmpeg4/VCD/SVCD/DVD/XVCD/XSVCD/COPY)  (one arg )
    --video-conf, set video codec conf (cq=q|cbr=br|2pass=size)[,mbr=br][,matrix=(0|1|2|3)]  (one arg )
    --reuse-2pass-log, reuse 2pass logfile if it exists  ( no arg )
    --autosplit, split every N MBytes  (one arg )
    --info, show information about loaded video and audio streams  ( no arg )
    --output-format, set output format (AVI|OGM|ES|PS|AVI_DUAL|AVI_UNP|...)  (one arg )
    --rebuild-index, rebuild index with correct frame type  ( no arg )
    --var, set var (--var myvar=3)  (one arg )
    --help, print this  ( no arg )
    --quit, exit avidemux  ( no arg )
    --probePat, Probe for PAT//PMT..  (one arg )
    --list-audio-languages, list all available audio langues  ( no arg )
    --avisynth-port, set avsproxy port accordingly  (one arg )
--nogui still produces terminal output

Perhaps with redirection?
avidemux3_cli > /dev/null
And perhaps only the standard output is redirected?:
C Shell Family:
> Redirect standard output
>& Redirect standard output and standard error
Bourne Shell Family
> Redirect standard output
2> Redirect standard error
source: http://sc.tamu.edu/help/general/unix/redirection.html

ajschult

avidemux prints everything to stdout

https://github.com/mean00/avidemux2/blob/master/avidemux_core/ADM_core/src/ADM_debug.cpp

the indirect_printf_long routine takes a log level, but nothing uses that routine.  You'd basically want to disable the ADM_info2 method to silence most of the output.  Or make ADM_warning2 and ADM_error2 go to stderr and then use redirection for stdout.