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.
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
This can be useful. I will try. Thanks.
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.
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
I'm trying the 2019 2.7.4 version of Avidemux. I'm adding the settings file I tried.
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?
Thanks for the idea.
OpenGL is not enabled.
I will enable OpenGL and try again.