User Tools

Site Tools


using:tinypy

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
using:tinypy [2013/04/26 19:00]
fx [Tinypy Avidemux Commands]
using:tinypy [2016/06/20 18:29]
mean
Line 1: Line 1:
-====== ​Tinypy Avidemux Commands ​======+====== ​Using tinypy scripting ​======
  
 Tinypy has been extended with some avidemux bindings. Tinypy has been extended with some avidemux bindings.
-These bindings are available through some new classes +These bindings are available through some new classes ​: 
-[[tinypy:​avidemux|tinypy:​avidemux]] +  ​* ​[[tinypy:​avidemux|Avidemux class]] 
- +  * [[tinypy:gui|Gui and files class]] 
-===== Avidemux Class ===== +  [[tinypy:​dialog|Dialog class]] 
-Assuming you created an instance with +  [[tinypy:​examples|Skeleton ​for batch processing]] 
-//​adm=Avidemux()//​ +  [[tinypy:​examples|Enhancing batch processing]] 
- +  [[https://www.youtube.com/watch?v=pxMeIU-ghXY|Nice youtube tutorial by DasTactic]]
-**adm.loadVideo('​fileName) ** +
- +
- Load the video given as parameter +
- +
-**adm.appendVideo('​fileName) ** +
- +
- ​Append the video given as parameter +
- +
-**adm.getWidth() ** +
- +
- ​Return the width of loaded videos +
- +
-**adm.getHeight() ** +
- +
- ​Return the height of loaded videos +
- +
-**adm.getFps1000() ** +
- +
- ​Return average frame par second multiplied by 1000 +
- So a 25 fps video will return 25000 +
- +
-**adm.getVideoCodec() ** +
- +
- ​Return the video codec as a string, ​for example '​DX50'​ +
- +
-**adm.clearSegments() ** +
- +
- Purge previously loaded editing  +
- +
-** adm.markerA and adm.markerB ** +
- Set/get the marker positionThey are in microseconds +
- +
-** Example ** +
- +
-Here is the typical beginning of an avidemux tinyPy project +
- +
-   adm = Avidemux() +
-   adm.loadVideo("​/work/​samples/​avi/​ac3_5channel.avi"​) +
-   ​adm.clearSegments() +
-   ​adm.addSegment(0,​ 0, 33400000) +
-   ​adm.markerA ​+
-   ​adm.markerB = 33400000 +
- +
  
 +You can also use the built-in shell [[tinypy:​shell|interpreter]]
using/tinypy.txt · Last modified: 2016/06/20 18:30 by mean