Avidemux Forum

Avidemux => Main version 2.6 => Topic started by: claytoncarney on December 08, 2012, 10:19:40 PM

Title: Where Is the 2.6 Script API Doc?
Post by: claytoncarney on December 08, 2012, 10:19:40 PM
None of my 2.5 scripts work in 2.6. Seems apparent from looking at a saved 2.6 script that the API has significant changes from 2.5. However, the wiki script doc still shows the 2.5 info. I've googled for the 2.6 API doc with no success. Is the 2.6 script API doc available anywhere?
Title: Re: Where Is the 2.6 Script API Doc?
Post by: Jan Gruuthuse on December 09, 2012, 05:04:22 AM
Some info can be found in avidemux QT 2.6 Help: QtScript Reference. If your scripts are frame based? That could explain why it is not working? Some more info could be found here: Documentation & Tips (http://avidemux.org/smuf/index.php/board,10.0.html). Basic scripting is still working. Some testing can be done by replacing avidemux3-cli by avidemux3-qt in the scripts (replace command line by QT version), perhaps giving more clues why it is not working.
Title: Re: Where Is the 2.6 Script API Doc?
Post by: claytoncarney on December 09, 2012, 08:43:56 PM
Perhaps I should clarify...

In 2.5, scripts begin with:

var app = new Avidemux();

In 2.6, this appears to be unnecessary, as the 'adm' variable appears to be predefined.

In 2.5:

app.load();
app.video.codecPlugin();
app.audio.codec();

In 2.6 this becomes:

adm.loadVideo();
adm.videoCodec();
adm.audioCodec();

I googled 'avidemux QT 2.6 Help: QtScript Reference' and did not find anything.
Title: Re: Where Is the 2.6 Script API Doc?
Post by: Jan Gruuthuse on December 10, 2012, 03:11:19 AM
When you use the main textual avidemux 2.6 menu help, it should be there? See attachments. If that did not work: Check if you can find a folder like this avidemux6/help/QtScript/index.html

ps: not all spidermonkey works as it should (http://avidemux.org/smuf/index.php/topic,11561.msg60506.html#msg60506), use Tinypy
Title: Re: Where Is the 2.6 Script API Doc?
Post by: claytoncarney on December 10, 2012, 04:40:18 AM
Yes, I found it in the Help menu. Thank you!