User Tools

Site Tools


tinypy:tinypybatch2

This is an old revision of the document!


Batch Processing 2

The first step is to process one file manually and save the corresponding tinypy project. A typical file would look like this :

#PY  <- Needed to identify #
#--automatically built--

adm = Avidemux()
adm.loadVideo("/work/samples/avi/3mn.avi")
adm.clearSegments()
adm.addSegment(0, 0, 109025495)
adm.markerA = 0
adm.markerB = 109025495
adm.videoCodec("x264", "useAdvancedConfiguration=True", "general.params=AQ=20", "general.threads=99",     "general.preset=", "general.tuning=", "general.profile=", "general.fast_decode=False",\
 "general.zero_latency=False", "general.fast_first_pass=True" \
, "general.blueray_compatibility=False", "general.fake_interlaced=False", "level=-1", \
...
...
"ratecontrol.lookahead=40")
adm.addVideoFilter("swscale", "width=1280", "height=960", "algo=2", "sourceAR=1", "targetAR=1")
adm.audioClearTracks()
adm.setSourceTrackLanguage(0,"unknown")
adm.audioAddTrack(0)
adm.audioCodec(0, "Faac");
adm.audioSetDrc(0, 0)
adm.audioSetShift(0, 0,0)
adm.setContainer("MP4", "muxerType=0", "useAlternateMp3Tag=True")
tinypy/tinypybatch2.1466402599.txt.gz · Last modified: 2016/06/20 08:03 by mean