News:

--

Main Menu

QScript question

Started by pviton, May 07, 2016, 05:56:17 PM

Previous topic - Next topic

pviton


(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");

Jan Gruuthuse

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


Jan Gruuthuse

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