Avidemux Forum

Avidemux => Main version 2.6 => Topic started by: pviton on May 07, 2016, 05:56:17 PM

Title: QScript question
Post by: pviton on May 07, 2016, 05:56:17 PM

(This is bound to be a FAQ, but I really can't
find an answer anywhere, sorry).


If I open avidemux.exe and then do
File -> Qscript Project -> Run Project
and select the file whose content is below,
the program does what I want it to do.
(The file was created by doing the work and then
File -> QScript Project -> Save Project)

Question: what do I need to do
to the file to make it work if I
start avidemux from the command line
as
   avidemux --run myscript.admjs
   
The documentation says (in avidemux, under
Help -> Qscript Reference) that this is the
easiest way to create a script, and then seems
to say that I should be able run the script as
indicated above. But all that happens is that
avidemux opens but no script commands seem
to be executed.

Thanks!


==== script contents

Editor.closeVideo();
Editor.openVideo("C:/audiovideo/deed/Deed_S01_E04.avi");
Editor.segments.clear()
Editor.segments.add(0, 5276738133, 0);
Editor.setMarkers(0, 5276738133);

Editor.currentVideoEncoder = CopyVideoEncoder;
Editor.audioOutputs.clear();

audioOutput = new LameAudioEncoder();
Editor.audioOutputs.add(0, audioOutput);
Editor.audioOutputs[0].drcEnabled = false;
Editor.audioOutputs[0].timeShift = 0;
Editor.audioOutputs[0].gainMode = AudioOutput.GainMode.ManualGain;
Editor.audioOutputs[0].gainValue = 10;

Editor.currentMuxer = AviMuxer;

Editor.saveVideo("C:/audiovideo/Deed_S01_E04.avi");
Title: Re: QScript question
Post by: Jan Gruuthuse on May 07, 2016, 07:09:56 PM
Same menu where you did QtScript Project Save As Project now use Run Project.
Could well be the current state of QtScript is not fully functional.
My understanding is to use Tinypy Project

Title: Re: QScript question
Post by: Jan Gruuthuse on May 07, 2016, 07:36:30 PM
Is there a response when you just enter avidemux? If not avidemux.exe is not in your path or has another name?
somewhat dated information (2.5.4 era) http://www.avidemux.org/admWiki/doku.php?id=tutorial:batch_processing