Avidemux
Command line usage
Invoking
Avidemux may be called with many arguments. The most obvious is avidemux(nbsp)myFile.avi,
that will load myFile.avi.
You can also provide other commands, each one of them beginning by “–” to invoke an action.
You won't have the full capabilities of the GUI though.
Warning: When in command line mode, all alert boxes will be skipped and questions will be
automatically set to NO.
The arguments are evaluated from left to right and processed one at a time. The command line
is far from bullet proof as most of the checks are inside the GUI.
A project file is a file containing all settings and loaded files. It is a “snapshot” of avidemux state
at the point it was saved.
Commands
To get up to date command list and parameters, just invoke Avidemux with the argument --help.
Audio Parameters Description
commands
--audio-bitrate value Set the audio bitrate. Warning: You
must enter valid audio bitrate!
--audio-codec Audio codec: MP2 | MP3 | AC3 | Select the audio codec that will be used
TWOLAME when you set process mode.
--audio-delay value in ms (milliseconds) Shift the audio/video sync by value.
--audio- none Activate 48 kHz to 44.1 kHz
downsample downsampling.
--audio- none Activate audio normalization filter.
normalize
--audio-map none Scan the audio to properly handle VBR
audio.
--audio- none Channels: convert mono to stereo.
mono2stereo
--audio- desired resample frequency Resample to 'X' kHz.
resample
Audio Parameters Description
commands
--audio- none Channels: convert stereo to mono.
stereo2mono
--no-audio none Disable internal audio. Useful if you
want to use only external audio files.
Audio output Parameters Description
commands
--save-raw- filename Save output audio in copy mode, same
audio audio as input audio.
--save- filename Save audio as PCM. Default is no filters,
uncompressed- but they can be applied.
audio
External Parameters Description
audio
commands
--external-mp3 filename Load the MPEG audio as soundtrack.
Warning: If VBR, you must put a --
audio-map afterward.
--external-ac3 filename Load the AC3 file as soundtrack.
--external-wav filename Load the WAV file as soundtrack.
Video Parameters Description
commands
--video-codec XVID4 | x264 | FFmpeg4 | VCD | Select the video codec that will be used
SVCD |DVD | XSVCD | XVCD when you save in process mode.
--video-conf cq=q | cbr=br | 2pass=xx Select the encoding mode: constant
quality (cq=quality), constant bitrate
(br=bitrate) or 2 pass mode, in that
case, give the final size in megabytes.
--set-pp Two arguments: value Set the default post-processing value.
(1=hdeblok|2=vdeblock|4=dering)
& strength (0-5)
Filter Parameters Description
commands
--filters filename Load a filter set.
--listfilters none List all filters by name.
Codec Parameters Description
configuration
commands
--codec-conf codec-config-filename Load a codec configuration.
Resolution Parameters Description
commands
Audio Parameters Description
commands
--dvd-res none Sets DVD resolution by adding needed
filters for conversion.
--svcd-res none Sets SVCD resolution by adding needed
filters for conversion.
--halfd1-res none Sets 1/2 DVD resolution by adding
needed filters for conversion.
--vcd-res none Sets VCD resolution by adding needed
filters for conversion.
Start/finish Parameters Description
commands
--begin frame number Set the start marker to frame.
--end frame number Set the end marker to frame.
Load Parameters Description
commands
--load filename Load a video file.
--load- filename Load a workbench/edit list.
workbench
Misc. Parameters Description
commands
--append video filename Append a video file to the current video
--autoindex none Try to generate required index files as
necessary
--force-b-frame none Force detection of b-frame in next
loaded file
--force-alt-h264 none Force use of alternate safe read mode
for h264 video. Warning: This
argument must be used before --load
to be effective.
--force-smart none Engage smart copy mode with CQ=3 at
next save
--force-unpack none Force detection of packed VOP in next
loaded file
--fps value Set the frame rate per second of the
workbench
--index-mpeg MPEG_file INDEX_file Create index for the MPEG file.
TrackNumber
--info none Show information about loaded video
and audio streams
--rebuild-index none Rebuild index with correct frame type.
Audio Parameters Description
commands
--reuse-2pass- none Reuse the 2-pass logfile if it exists.
log
--run script filename Load and run a script.
--save-jpg output filename Save current video frame image as a
JPEG file.
--save- output filename Save the current workbench into a
workbench project file.
--var my_var_name=value Set variable value.
Output save Parameters Description
commands
--save filename Save the file. Default output format is
AVI.
--save-dvd (two args) Save as DVD MPEG PS.
--save- filename Save as AVI with unpacked VOP.
unpacked-vop
--save-ogm filename Save as OGM file.
--save-raw- none Save elementary video stream and strip
video the container, you will end up with raw
MPEG video!
--output- AVI | AVI_DUAL | AVI_UNP | ES | Set the output format. ES is for video
format MP4 | OGM | PS | TS | only, PS for Program Stream
MATROSKA (VCD/SVCD/DVD) and TS for Transport
Stream.
--auto-split Size in megabytes Avidemux will automatically split the
files when they reach the given size
and create file.avi, file.avi.1, file.avi.2…
The default is 2 GB.
using/command_line_usage.txt · Last modified: 2016/06/20 10:42 by mean