This shows you the differences between two versions of the page.
Next revision Both sides next revision | |||
tinypy:examples [2013/04/27 10:29] fx created |
tinypy:examples [2013/04/27 10:31] 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 19: | Line 21: | ||
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): |