This is an old revision of the document!
Assuming you created an instance with adm=Avidemux()
adm.loadVideo('fileName')
Load the video given as parameter
adm.appendVideo('fileName')
Append the video given as parameter
adm.saveVideo('fileName')
Save the video with given name
adm.saveAudio(int track,'fileName')
Save track 'track' as 'fileName'. If an audio codec has been selected for that track, it will used when saving.
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.audioTracksCount()
Return the number of active tracks. That include tracks from the video and added external tracks.
adm.audioEncoding(int track)
Return the audio encoding, as an integer for track track. Common value are 85 for MP3 and 0x2000 for AC3.
adm.audioFrequency(int track)
Return the sampling rate of track track. For example 48000 for a 48 Khz track
adm.audioChannels(int track)
Return the sampling rate of track track. For example 48000 for a 48 Khz track
adm.clearSegments()
Purge previously loaded editing
adm.markerA and adm.markerB Set/get the marker position. They are in microseconds
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 = 0 adm.markerB = 33400000