Avidemux.help()
Editor.help()adm = Avidemux()
if not adm.loadVideo("/home/smart/vid/record/TEST1.ts"):
    raise("Cannot load /home/smart/vid/record/TEST1.ts")
ed = Editor()
adm.clearSegments()
frame1 = 517
frame2 = 4155
adm.seekFrame(frame1)
timeInRef1 = ed.getCurrentPts()
timeInRef1 += ed.getTimeOffsetForSegment(0)
adm.seekFrame(frame2-frame1)
timeInRef2 = ed.getCurrentPts()
timeInRef2 += ed.getTimeOffsetForSegment(0)
adm.addSegment(0, timeInRef1, timeInRef2)
...
adm = Avidemux()
ed = Editor()
adm.seekFrame(frameNo)
timeInRef = ed.getCurrentPts()
timeInRef += ed.getTimeOffsetForSegment(0)