mxcl/homebrew — Issue #8076: avidemux-2.5.5 cli
Author: 2bits
Created: 2011-10-11 22:10:50+00:00
State: open

I'm crafting a fix for #5385. After working on it this week, I had good success compiling it against
the latest rev of x264, which took some patches used by gentoo and some ideas from macports.
I'm not sure how many people would use it though. SS or it didn't happen? Of course, yes we can.

TheBus:complete nibbles$ avidemux2_cli --help
*************************
Avidemux v2.5.5
*************************
http://www.avidemux.org
Code : Mean, JSC, Grant Pedersen
GFX : Nestor Di, nestordi@augcyl.org
Design : Jakub Misak
FreeBSD : Anish Mistry, amistry@am-productions.biz
Audio : Mihail Zenkov
Mac OS X : Kuisathaverat, Harry van der Wolf
Win32 : Grant Pedersen

Compiler: GCC 4.2.1 (Apple Inc. build 5666) (dot 3)
Build Target: Apple (x86-64)
User Interface: CLI

Initialising prefs
Directory /Users/nibbles/.avidemux exists.Good.
Using /Users/nibbles/.avidemux as base directory for prefs/jobs/...
Preferences found and loaded
[cpuCaps]Checking CPU capabilities
MMX detected
MMXEXT detected
SSE detected
SSE2 detected
SSE3 detected
SSSE3 detected
[cpuCaps]End of CPU capabilities check (cpuMask :ffffffff)

[Locale] setlocale en_US.UTF-8
[Locale] Textdomain was messages
[Locale] Textdomain is now avidemux
[Locale] Test: _File

Initializing Dithering tables
Initializing postproc
Deleting post proc
updating post proc
Enabled type:3 strength:3

Registering Internal Filters
******************************

[ADM_ad_plugin] Scanning directory /usr/local/bin/../lib/ADM_plugins/audioDecoder/
[ADM_ad_plugin] Plugin loaded version 0.0.1, name libADM_ad_a52.dylib, desc: LibAC3 decoder plugin for avidemux (c) Mean

[ADM_ad_plugin] Plugin loaded version 0.0.1, name libADM_ad_faad.dylib, desc: Faad2 decoder plugin for avidemux (c) Mean

[ADM_ad_plugin] Plugin loaded version 0.0.1, name libADM_ad_Mad.dylib, desc: LibMad decoder plugin for avidemux (c) Mean

[ADM_ad_plugin] Plugin loaded version 0.0.1, name libADM_ad_vorbis.dylib, desc: libVorbis decoder plugin for avidemux (c) Mean

[ADM_ad_plugin] Scanning done, found 4 codec
[ADM_vf_plugin] Scanning directory /usr/local/bin/../lib/ADM_plugins/videoFilter/
[Filters] Registered filter /usr/local/bin/../lib/ADM_plugins/videoFilter//libADM_vf_addborders.dylib as Add black borders
[Filters] Registered filter /usr/local/bin/../lib/ADM_plugins/videoFilter//libADM_vf_asharp_cli.dylib as asharp
[Filters] Registered filter /usr/local/bin/../lib/ADM_plugins/videoFilter//libADM_vf_avisynthResize_cli.dylib as Resize
[Filters] Registered filter /usr/local/bin/../lib/ADM_plugins/videoFilter//libADM_vf_blackenBorders.dylib as Blacken borders
[Filters] Registered filter /usr/local/bin/../lib/ADM_plugins/videoFilter//libADM_vf_blendDgBob.dylib as DG Bob
[Filters] Registered filter /usr/local/bin/../lib/ADM_plugins/videoFilter//libADM_vf_blendRemoval.dylib as Blend Removal
[Filters] Registered filter /usr/local/bin/../lib/ADM_plugins/videoFilter//libADM_vf_chromashift_cli.dylib as Chroma shift
[Filters] Registered filter /usr/local/bin/../lib/ADM_plugins/videoFilter//libADM_vf_cnr2_cli.dylib as Cnr2
[Filters] Registered filter /usr/local/bin/../lib/ADM_plugins/videoFilter//libADM_vf_colorYUV_cli.dylib as Avisynth ColorYUV
[Filters] Registered filter /usr/local/bin/../lib/ADM_plugins/videoFilter//libADM_vf_contrast_cli.dylib as Contrast
[Filters] Registered filter /usr/local/bin/../lib/ADM_plugins/videoFilter//libADM_vf_crop_cli.dylib as Crop
[Filters] Registered filter /usr/local/bin/../lib/ADM_plugins/videoFilter//libADM_vf_decimate.dylib as Decomb Decimate
[Filters] Registered filter /usr/local/bin/../lib/ADM_plugins/videoFilter//libADM_vf_Deinterlace.dylib as Deinterlace
[Filters] Registered filter /usr/local/bin/../lib/ADM_plugins/videoFilter//libADM_vf_Delta.dylib as Luma delta
[Filters] Registered filter /usr/local/bin/../lib/ADM_plugins/videoFilter//libADM_vf_Denoise.dylib as Denoise
[Filters] Registered filter /usr/local/bin/../lib/ADM_plugins/videoFilter//libADM_vf_denoise3d.dylib as MPlayer denoise3d
[Filters] Registered filter /usr/local/bin/../lib/ADM_plugins/videoFilter//libADM_vf_denoise3dhq.dylib as MPlayer hqdn3d
[Filters] Registered filter /usr/local/bin/../lib/ADM_plugins/videoFilter//libADM_vf_dropOut.dylib as Drop
[Filters] Registered filter /usr/local/bin/../lib/ADM_plugins/videoFilter//libADM_vf_eq2_cli.dylib as MPlayer eq2
[Filters] Registered filter /usr/local/bin/../lib/ADM_plugins/videoFilter//libADM_vf_equalizer_cli.dylib as Luma equalizer
[Filters] Registered filter /usr/local/bin/../lib/ADM_plugins/videoFilter//libADM_vf_fade.dylib as Fade
[Filters] Registered filter /usr/local/bin/../lib/ADM_plugins/videoFilter//libADM_vf_fastconvolutiongauss.dylib as Gauss smooth
[Filters] Registered filter /usr/local/bin/../lib/ADM_plugins/videoFilter//libADM_vf_fastconvolutionmean.dylib as Mean
[Filters] Registered filter /usr/local/bin/../lib/ADM_plugins/videoFilter//libADM_vf_fastconvolutionmedian.dylib as Median
[Filters] Registered filter /usr/local/bin/../lib/ADM_plugins/videoFilter//libADM_vf_fastconvolutionsharpen.dylib as Sharpen
[Filters] Registered filter /usr/local/bin/../lib/ADM_plugins/videoFilter//libADM_vf_FluxSmooth.dylib as FluxSmooth
[Filters] Registered filter /usr/local/bin/../lib/ADM_plugins/videoFilter//libADM_vf_forcedPP.dylib as Forced postprocessing
[Filters] Registered filter /usr/local/bin/../lib/ADM_plugins/videoFilter//libADM_vf_Hue_cli.dylib as MPlayer hue
[Filters] Registered filter /usr/local/bin/../lib/ADM_plugins/videoFilter//libADM_vf_hzStackField.dylib as Horizontal Stack Field
[Filters] Registered filter /usr/local/bin/../lib/ADM_plugins/videoFilter//libADM_vf_keepEvenField.dylib as Keep even fields
[Filters] Registered filter /usr/local/bin/../lib/ADM_plugins/videoFilter//libADM_vf_keepOddField.dylib as Keep odd fields
[Filters] Registered filter /usr/local/bin/../lib/ADM_plugins/videoFilter//libADM_vf_kernelDeint.dylib as KernelDeint
[Filters] Registered filter /usr/local/bin/../lib/ADM_plugins/videoFilter//libADM_vf_largemedian.dylib as Median (5x5)
[Filters] Registered filter /usr/local/bin/../lib/ADM_plugins/videoFilter//libADM_vf_lavDeinterlace.dylib as libavcodec deinterlacer
[Filters] Registered filter /usr/local/bin/../lib/ADM_plugins/videoFilter//libADM_vf_lumaonly.dylib as Luma only
[Filters] Registered filter /usr/local/bin/../lib/ADM_plugins/videoFilter//libADM_vf_mcdeint.dylib as mcDeinterlace
[Filters] Registered filter /usr/local/bin/../lib/ADM_plugins/videoFilter//libADM_vf_mergeField.dylib as Merge fields
[Filters] Registered filter /usr/local/bin/../lib/ADM_plugins/videoFilter//libADM_vf_Mosaic.dylib as mosaic
[Filters] Registered filter /usr/local/bin/../lib/ADM_plugins/videoFilter//libADM_vf_mpdelogo_cli.dylib as MPlayer delogo
[Filters] Registered filter /usr/local/bin/../lib/ADM_plugins/videoFilter//libADM_vf_mplayerResize_cli.dylib as MPlayer resize
[Filters] Registered filter /usr/local/bin/../lib/ADM_plugins/videoFilter//libADM_vf_mSharpen.dylib as MSharpen
[Filters] Registered filter /usr/local/bin/../lib/ADM_plugins/videoFilter//libADM_vf_mSmooth.dylib as MSmooth by Donald Graft
[Filters] Registered filter /usr/local/bin/../lib/ADM_plugins/videoFilter//libADM_vf_palShift.dylib as PAL field shift
[Filters] Registered filter /usr/local/bin/../lib/ADM_plugins/videoFilter//libADM_vf_Pulldown.dylib as Pulldown
[Filters] Registered filter /usr/local/bin/../lib/ADM_plugins/videoFilter//libADM_vf_resampleFps.dylib as Resample fps
[Filters] Registered filter /usr/local/bin/../lib/ADM_plugins/videoFilter//libADM_vf_reverse.dylib as Reverse
[Filters] Registered filter /usr/local/bin/../lib/ADM_plugins/videoFilter//libADM_vf_rotate.dylib as Rotate
[Filters] Registered filter /usr/local/bin/../lib/ADM_plugins/videoFilter//libADM_vf_separateField.dylib as Separate Fields
[Filters] Registered filter /usr/local/bin/../lib/ADM_plugins/videoFilter//libADM_vf_smartPalShift.dylib as PAL smart
[Filters] Registered filter /usr/local/bin/../lib/ADM_plugins/videoFilter//libADM_vf_smartSwapField.dylib as Smart swap fields
[Filters] Registered filter /usr/local/bin/../lib/ADM_plugins/videoFilter//libADM_vf_soften.dylib as Soften
[Filters] Registered filter /usr/local/bin/../lib/ADM_plugins/videoFilter//libADM_vf_ssa.dylib as ASS
[Filters] Registered filter /usr/local/bin/../lib/ADM_plugins/videoFilter//libADM_vf_Stabilize.dylib as Light denoiser.
[Filters] Registered filter /usr/local/bin/../lib/ADM_plugins/videoFilter//libADM_vf_stackField.dylib as Stack fields
[Filters] Registered filter /usr/local/bin/../lib/ADM_plugins/videoFilter//libADM_vf_sub_cli.dylib as Subtitler
[Filters] Registered filter /usr/local/bin/../lib/ADM_plugins/videoFilter//libADM_vf_swapField.dylib as Swap fields
[Filters] Registered filter /usr/local/bin/../lib/ADM_plugins/videoFilter//libADM_vf_swapuv.dylib as Swap U and V
[Filters] Registered filter /usr/local/bin/../lib/ADM_plugins/videoFilter//libADM_vf_tdeint.dylib as TDeint
[Filters] Registered filter /usr/local/bin/../lib/ADM_plugins/videoFilter//libADM_vf_telecide.dylib as Decomb Telecide
[Filters] Registered filter /usr/local/bin/../lib/ADM_plugins/videoFilter//libADM_vf_Tisophote.dylib as TIsophote
[Filters] Registered filter /usr/local/bin/../lib/ADM_plugins/videoFilter//libADM_vf_unstackField.dylib as Unstack fields
[Filters] Registered filter /usr/local/bin/../lib/ADM_plugins/videoFilter//libADM_vf_vflip.dylib as Vertical flip
[Filters] Registered filter /usr/local/bin/../lib/ADM_plugins/videoFilter//libADM_vf_vlad.dylib as Temporal Cleaner
[Filters] Registered filter /usr/local/bin/../lib/ADM_plugins/videoFilter//libADM_vf_Whirl.dylib as Whirl
[Filters] Registered filter /usr/local/bin/../lib/ADM_plugins/videoFilter//libADM_vf_yadif.dylib as yadif
[Filters] Registered filter /usr/local/bin/../lib/ADM_plugins/videoFilter//libADM_vidChromaU.dylib as Chroma U
[Filters] Registered filter /usr/local/bin/../lib/ADM_plugins/videoFilter//libADM_vidChromaV.dylib as Chroma V
[ADM_vf_plugin] Scanning done
[ADM_av_plugin] Scanning directory /usr/local/bin/../lib/ADM_plugins/audioDevices/
Name :Esd ApiVersion :1
[Filters] Registered filter /usr/local/bin/../lib/ADM_plugins/audioDevices//libADM_av_esd.dylib as Esd audio device (c) mean
Name :Sdl ApiVersion :1
[Filters] Registered filter /usr/local/bin/../lib/ADM_plugins/audioDevices//libADM_av_sdl.dylib as Sdl audio device (c) mean
[ADM_av_plugin] Scanning done
[ADM_ae_plugin] Scanning directory /usr/local/bin/../lib/ADM_plugins/audioEncoders/
[AudioEncoder] Loaded Aften version 01.00.00 wavTag :0x2000
[AudioEncoder] Registered filter /usr/local/bin/../lib/ADM_plugins/audioEncoders//libADM_ae_aften.dylib as Aften AC3 encoder plugin Mean/Gruntster 2008
[AudioEncoder] Loaded Faac version 01.00.00 wavTag :0xff
[AudioEncoder] Registered filter /usr/local/bin/../lib/ADM_plugins/audioEncoders//libADM_ae_faac.dylib as Faac AAC encoder plugin Mean 2008
[AudioEncoder] Loaded Lame version 01.00.00 wavTag :0x55
[AudioEncoder] Registered filter /usr/local/bin/../lib/ADM_plugins/audioEncoders//libADM_ae_lame.dylib as Lame MP3 encoder plugin Mean 2008
[AudioEncoder] Loaded LavAC3 version 01.00.00 wavTag :0x2000
[AudioEncoder] Registered filter /usr/local/bin/../lib/ADM_plugins/audioEncoders//libADM_ae_lav_ac3.dylib as AC3 LavEncoder encoder plugin Mean 2008
[AudioEncoder] Loaded LavMP2 version 01.00.00 wavTag :0x50
[AudioEncoder] Registered filter /usr/local/bin/../lib/ADM_plugins/audioEncoders//libADM_ae_lav_mp2.dylib as MP2 LavCodec encoder plugin Mean 2008
[AudioEncoder] Loaded PCM version 01.00.00 wavTag :0x1
[AudioEncoder] Registered filter /usr/local/bin/../lib/ADM_plugins/audioEncoders//libADM_ae_pcm.dylib as PCM encoder plugin Mean 2008
[AudioEncoder] Loaded TwoLame version 01.00.00 wavTag :0x50
[AudioEncoder] Registered filter /usr/local/bin/../lib/ADM_plugins/audioEncoders//libADM_ae_twolame.dylib as TwoLame MP2 encoder plugin Mean 2008
[AudioEncoder] Loaded Vorbis version 01.00.00 wavTag :0x676f
[AudioEncoder] Registered filter /usr/local/bin/../lib/ADM_plugins/audioEncoders//libADM_ae_vorbis.dylib as Vorbis encoder plugin Mean 2008
[ADM_ae_plugin] Scanning done
[ADM_ad_plugin] Scanning directory /Users/nibbles/.avidemux/plugins/audioDecoder/
[ADM_ad_plugin] Cannot parse plugin
[ADM_vf_plugin] Scanning directory /Users/nibbles/.avidemux/plugins/videoFilter/
[ADM_vf_plugin] Cannot parse plugin
[ADM_vidEnc_plugin] Scanning directory /usr/local/bin/../lib/ADM_plugins/videoEncoder/
ignored: avcodec
ignored: mpeg2enc
[ADM_vidEnc_plugin] Plugin loaded version 1.5.0, filename libADM_vidEnc_avcodec.dylib, desc: DV video encoder plugin for Avidemux (c) Mean/Gruntster
[ADM_vidEnc_plugin] Plugin loaded version 1.5.0, filename libADM_vidEnc_avcodec.dylib, desc: Sorenson Spark video encoder plugin for Avidemux (c) Mean/Gruntster
[ADM_vidEnc_plugin] Plugin loaded version 1.5.0, filename libADM_vidEnc_avcodec.dylib, desc: FFV1 video encoder plugin for Avidemux (c) Mean/Gruntster
[ADM_vidEnc_plugin] Plugin loaded version 1.5.0, filename libADM_vidEnc_avcodec.dylib, desc: FFVHuff video encoder plugin for Avidemux (c) Mean/Gruntster
[ADM_vidEnc_plugin] Plugin loaded version 1.5.0, filename libADM_vidEnc_avcodec.dylib, desc: H.263 video encoder plugin for Avidemux (c) Mean/Gruntster
[ADM_vidEnc_plugin] Plugin loaded version 1.5.0, filename libADM_vidEnc_avcodec.dylib, desc: Huffyuv video encoder plugin for Avidemux (c) Mean/Gruntster
[ADM_vidEnc_plugin] Plugin loaded version 1.5.0, filename libADM_vidEnc_avcodec.dylib, desc: M-JPEG video encoder plugin for Avidemux (c) Mean/Gruntster
[ADM_vidEnc_plugin] Plugin loaded version 1.5.0, filename libADM_vidEnc_avcodec.dylib, desc: MPEG-1 video encoder plugin for Avidemux (c) Mean/Gruntster
[ADM_vidEnc_plugin] Plugin loaded version 1.5.0, filename libADM_vidEnc_avcodec.dylib, desc: MPEG-2 video encoder plugin for Avidemux (c) Mean/Gruntster
[ADM_vidEnc_plugin] Plugin loaded version 1.5.0, filename libADM_vidEnc_avcodec.dylib, desc: MPEG-4 ASP video encoder plugin for Avidemux (c) Mean/Gruntster
[ADM_vidEnc_plugin] Plugin loaded version 1.0.0, filename libADM_vidEnc_mpeg2enc.dylib, desc: MPEG-1 video encoder plugin for Avidemux (c) Mean/Gruntster
[ADM_vidEnc_plugin] Plugin loaded version 1.0.0, filename libADM_vidEnc_mpeg2enc.dylib, desc: MPEG-2 video encoder plugin for Avidemux (c) Mean/Gruntster
[ADM_vidEnc_plugin] Plugin loaded version 1.0.1, filename libADM_vidEnc_x264.dylib, desc: x264 video encoder plugin for Avidemux (c) Mean/Gruntster
[Xvid] Initialising Xvid
[Xvid] Build: xvid-1.3.2
[Xvid] SIMD supported: (80)
[ADM_vidEnc_plugin] Plugin loaded version 1.0.1, filename libADM_vidEnc_xvid.dylib, desc: Xvid video encoder plugin for Avidemux (c) Mean/Gruntster
[ADM_vidEnc_plugin] Scanning done, found 14 codec
Device not found :ALSA
Registered DialogFactory classes
Spidermonkey initialized.

*** Automated : 48 entries*************
help-->0

Command line possible arguments :
--nogui, Run in silent mode (no args)
--listfilters, list all filters by name (no args)
--run, load and run a script (one arg)
--audio-normalize, activate normalization (one arg)
--audio-resample, resample to x hz (one arg)
--filters, load a filter preset (one arg)
--codec-conf, load a codec configuration (one arg)
--save-jpg, save JPEG images (one arg)
--begin, set start frame (one arg)
--end, set end frame (one arg)
--save-unpacked-vop, save avi, unpacking vop (one arg)
--save-packed-vop, save avi, packing vop (one arg)
--save-ogm, save as ogm file (one arg)
--save-raw-audio, save audio as-is (one arg)
--save-raw-video, save raw video stream (mpeg/... ) (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)
--save-workbench, save workbench file (one arg)
--force-b-frame, Force detection of bframe in next loaded file (no args)
--force-alt-h264, Force use of alternate read mode for h264 (no args)
--force-unpack, Force detection of packed vop in next loaded file (no args)
--force-smart, Engage smart copy mode with CQ=3 at next save (no args)
--external-mp3, load external mpeg audio as audio track (one arg)
--external-ac3, load external ac3 audio as audio track (one arg)
--external-wav, load external wav audio as audio track (one arg)
--no-audio, load external wav audio as audio track (no args)
--audio-delay, set audio time shift in ms (+ or -) (one arg)
--audio-map, build audio map (MP3 VBR) (no args)
--audio-bitrate, set audio encoding bitrate (one arg)
--fps, set frames per second (one arg)
--audio-codec, set audio codec (AAC/AC3/COPY/MP2/MP3/NONE (WAV PCM)/TWOLAME) (one arg)
--video-codec, set video codec (COPY/DV/FFHUFF/FFmpeg4/FFV1/FLV1/H263/HUFF/MJPEG/REQUANT/x264/XDVD/Xvid4/YV12) (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 args)
--set-pp, set post processing default value, value(1=hdeblok|2=vdeblock|4=dering) and strength (0-5) (two args)
--vobsub, Create vobsub file (vobfile vosubfile ifofile) (three args)
--autosplit, split every N MBytes (one arg)
--info, show information about loaded video and audio streams (no args)
--autoindex, try to generate required index files (no args)
--output-format, set output format (AVI|OGM|ES|PS|AVI_DUAL|AVI_UNP|...) (one arg)
--rebuild-index, rebuild index with correct frame type (no args)
--var, set var (--var myvar=3) (one arg)
--help, print this (no args)
--quit, exit avidemux (no args)
--probePat, Probe for PAT//PMT.. (one arg)Cleaning up
Deleting post proc
Waiting for Spidermonkey to finish...
Cleaning up Spidermonkey.
End of cleanup

Images stat:
___________
Max memory consumed (MB) : 0
Current memory consumed (MB) : 0
Max image used : 0
Cur image used : 0
Global mem stat
______________
Memory consumed: 0 (MB)

Goodbye...

Atm, it's still memory mapping the whole movie because I have yet to figure how to
uncheck that option from the command line. As a result, it used all 8GB of my RAM loading
10GB of John Wayne: `avidemux2_cli --load the.horse.soldiers.1080p.mkv --info`
I'd sort of like to stick with version 2.5.5, but they are doing all their dev work on 2.6,
which means that the 2.5 HEAD is very stable with only 5 patches that were mostly
to support the latest ffmpeg. I doubt 2.6 will run as it changes daily.