This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
tinypy:avidemux [2013/04/27 10:08] fx [Editing] |
tinypy:avidemux [2013/04/27 10:12] fx [Example 2] |
||
---|---|---|---|
Line 141: | Line 141: | ||
+ | ===== Headline ===== | ||
==== Example ==== | ==== Example ==== | ||
Line 152: | Line 153: | ||
adm.markerB = 33400000 | adm.markerB = 33400000 | ||
+ | ==== Example 2 ==== | ||
+ | adm = Avidemux() | ||
+ | adm.loadVideo("/work/samples/avi/2mn.avi") | ||
+ | adm.clearSegments() | ||
+ | adm.addSegment(0, 0, 191524668) | ||
+ | adm.markerA = 0 | ||
+ | adm.markerB = 191524668 | ||
+ | adm.videoCodec("ffMpeg4", "params=2PASSBITRATE=500") # truncated line | ||
+ | adm.audioClearTracks() | ||
+ | adm.audioAddTrack(0) | ||
+ | adm.audioCodec(0, "Aften"); | ||
+ | adm.audioSetDrc(0, 0) | ||
+ | adm.audioSetShift(0, 0,0) | ||
+ | adm.setContainer("MKV", "forceDisplayWidth=False", "displayWidth=1280") | ||
+ | ==== Traps and pitfall ==== | ||
+ | Take care that a single line must not exceed ~ 256 chars. So instead of doing | ||
+ | function("blah blah foobar") | ||
+ | do | ||
+ | function("blah blah" | ||
+ | "foobar") | ||
+ | |||
+ |