Menu

#101 Command Line Parameters of Avidemux

2.6.11
open
Mean
None
1
2020-05-06
2020-04-16
No

Hello,

Avidemux is a successful program. Thanks.

I need to run Avidemux from another program. I'm using a command line that looks like this:

"C:\Program Files\Avidemux\avidemux.exe" --load "C:\InputFile.avi” --audio-codec AAC --audio-bitrate 224 --output-format MKV --video-codec x265 --video-conf cbr=1800 –save “C:\OutputFile.mkv” --quit

But Avidemux seems not to process some parameters. Because it saves some properties of the file differently than desired (possibly default).

I am using Avidemux on 32 Bit Windows XP.

I would like you to review the command line parameters of Avidemux.

I have a suggestion:
Wouldn't it be nice if the user can create settings files where he can save such settings! Of course, it is useful to load a settings file with the command line. VDScript files of the VirtualDub program are examples of this.

Discussion

  • Ros N.

    Ros N. - 2020-04-23

    You can probably use TinyPy script as settings (just set everything you want in Avidemux and then save it as a project with "py" extension - for example settings.py).
    Once you have the settings file you can use it in a parameter --run:
    "C:\Program Files\Avidemux\avidemux.exe" --load "C:\input_video.mp4" --run "C:\settings.py" --save "C:\output_video.mkv" --quit
    http://aldoniel.free.fr/calepindugeek/Batch-processing-of-multiple-video.html

     
  • Okan Ozcelik

    Okan Ozcelik - 2020-04-24

    This can be useful. I will try. Thanks.

     
  • Okan Ozcelik

    Okan Ozcelik - 2020-04-28

    When I run the settings.py file from the command line, I usually get the following message.

    ExceptionFilter
    The application has encountered a fatal problem.
    The current editing has been saved and will be reloaded at next start.

    But when I load the same file from Avidemux's interface, there is no problem. Interesting.

    Of course, I encounter these when I try Avidemux on Windows XP.

    I'm trying the same command line and same Settings.py file in Windows 10. It runs smoothly on Windows 10.

     
  • Ros N.

    Ros N. - 2020-04-30

    Can you please:
    - Attach the settings file?
    - Copy exact command line which do you use to start avidemux, load video and run the script?
    - Share what version Avidemux do you use? I would like to take a look at it...

    I am affraid there might be no simple solution if the settins file is not working only in WinXP command line.

     

    Last edit: Ros N. 2020-04-30
  • Okan Ozcelik

    Okan Ozcelik - 2020-05-03

    I'm trying the 2019 2.7.4 version of Avidemux. I'm adding the settings file I tried.

     
  • Ros N.

    Ros N. - 2020-05-05

    I do not see anything suspicious in the script and everything looks ok.
    I tried Avidemux 2.7.4 32b under Win XP and it is not even able to load MKV video from commandline and it crashes... It stopped crashing after I set video display to OpenGL. Since then I was able to open MKV file and run your settings file from GUI as well as from command line.
    BTW: can you please copy here your whole command which you use for running your script?

     
  • Okan Ozcelik

    Okan Ozcelik - 2020-05-06

    Thanks for the idea.
    OpenGL is not enabled.
    I will enable OpenGL and try again.

     

Log in to post a comment.