User Tools

Site Tools


tinypy:examples

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
Next revision Both sides next revision
tinypy:examples [2013/04/27 10:29]
fx created
tinypy:examples [2013/04/27 10:32]
fx
Line 3: Line 3:
   inputFolder="/​tmp/​ts"​   inputFolder="/​tmp/​ts"​
   #   #
 +Small function that converts the file given as parameter, just remuxing it.
 +A file video.in will be converted to video.in.convert.ps  ​
   def convert(filein):​   def convert(filein):​
      ​fileout=filein+"​.converted.ps"​      ​fileout=filein+"​.converted.ps"​
Line 15: Line 17:
   # Main   # Main
   #   #
 + ​Initialize everything ​ in copy mode, we just set up the output container to be mpeg PS
   ui=Gui()   ui=Gui()
   adm=Avidemux()   adm=Avidemux()
   adm.audioReset()   adm.audioReset()
   adm.audioCodec("​copy",​28152032)   adm.audioCodec("​copy",​28152032)
-  adm.videoCodec("​Copy"​) ​         adm.setContainer("​ffPS","​muxingType=3","​acceptNonCompliant=False","​muxRatekBits=30000",​+  adm.videoCodec("​Copy"​) 
 +  ​adm.setContainer("​ffPS","​muxingType=3","​acceptNonCompliant=False","​muxRatekBits=30000",​
   "​videoRatekBits=25000"," ​ bufferSizekBytes=500"​)   "​videoRatekBits=25000"," ​ bufferSizekBytes=500"​)
   #   #
 + Get the content of the input folder
 + That folder could have been selected using gui.dirSelect() in a graphical mode  ​
   list=get_folder_content(inputFolder,​ext)   list=get_folder_content(inputFolder,​ext)
   if(list is None):   if(list is None):
tinypy/examples.txt · Last modified: 2016/06/20 08:00 by mean