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/26 19:51] fx [Audio Filters] |
tinypy:avidemux [2013/04/27 15:37] fx [Headline] |
||
---|---|---|---|
Line 74: | Line 74: | ||
Purge previously loaded editing | Purge previously loaded editing | ||
+ | |||
+ | __adm.addSegments(ref,start,duration)__ | ||
+ | |||
+ | Add a chunk of video from video ref, starting at 'start' micro seconds and for a 'duration' duration. | ||
+ | For example : | ||
+ | adm.addSegment(0, 0, 191668) | ||
+ | Means add the chunk from video 0(the first video) starting from the beginning with a duration of 191 seconds (3mn11) | ||
+ | If you dont call clearSegments or addSegments, by default, when adding a video a segment of the whole video | ||
+ | is automatically appended. | ||
__adm.markerA and adm.markerB__ | __adm.markerA and adm.markerB__ | ||
- | Set/get the marker position. They are in microseconds | ||
+ | Set/get the marker position. They are in microseconds | ||
==== Video Codec ==== | ==== Video Codec ==== | ||
Line 130: | Line 139: | ||
Enable or disable normalize audio filter on track "track". Mode is 0 for none, 1 for automatic and 2 for manual. The gain is 10* the real gain in db. i.e set 30 to get a +3 dB boost | Enable or disable normalize audio filter on track "track". Mode is 0 for none, 1 for automatic and 2 for manual. The gain is 10* the real gain in db. i.e set 30 to get a +3 dB boost | ||
+ | |||
Line 143: | 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") | ||
+ | |||
+ | ---- | ||
+ | |||
+ | [[using:tinypy|Go back to tinypy]] |