Exemplo n.º 1
0
def get_video_format(desc):
    adm = Avidemux()
    ##########################
    # Compute resize...
    ##########################
    source = ADM_image.image()
    fps = adm.getFps1000()
    fmt = source.getFormat(fps)
    print("Fps    : " + str(fps))
    print("Format : " + str(fmt))
    if (fmt == ADM_image.FMT_UNKNOWN):
        return None
    desc = "NTSC"
    if (fmt == ADM_image.FMT_FILM):
        desc = "FILM"
    if (fmt == ADM_image.FMT_PAL):
        desc = "PAL"
    print("Format : " + str(desc))
    return fmt
Exemplo n.º 2
0
def get_video_format(desc):
    adm=Avidemux()
    ##########################
    # Compute resize...
    ##########################
    source=ADM_image.image()
    fps=adm.getFps1000()
    fmt=source.getFormat(fps)
    print("Fps    : "+str(fps))
    print("Format : "+str(fmt))
    if(fmt==ADM_image.FMT_UNKNOWN):
        return None
    desc="NTSC"
    if(fmt==ADM_image.FMT_FILM):
        desc="FILM"
    if(fmt==ADM_image.FMT_PAL):
        desc="PAL"
    print("Format : "+str(fmt))
    return fmt
Exemplo n.º 3
0
import ADM_image

adm=Avidemux()
gui=Gui()
finalSizeWidth=720
finalSizeHeight=[ 480,576,480]
#
#
MP2=80
AC3=0x2000
DTS=0x2001
supported=[MP2,AC3,DTS]
##########################
# Compute resize...
##########################
source=ADM_image.image()
dest=ADM_image.image()
desc=""
true_fmt=ADM_imageInfo.get_video_format(desc)
if(true_fmt is None):
    raise
fmt=true_fmt
if(true_fmt==ADM_image.FMT_FILM):
    fmt=ADM_image.FMT_NTSC
source.width=adm.getWidth()
source.height=adm.getHeight()
source.fmt=fmt
dest.fmt=fmt
print("Format : "+str(fmt))
dest.width=16
dest.height=16
Exemplo n.º 4
0
###############################################
#      Convert to DVD adm tinypy script
#      Mean 2011
###############################################

import ADM_imageInfo
import ADM_image
adm = Avidemux()
finalSizeWidth = 1280
finalSizeHeight = [720, 720]
#
source = ADM_image.image()
dest = ADM_image.image()
desc = ""
true_fmt = ADM_imageInfo.get_video_format(desc)
if (true_fmt is None):
    raise
fmt = true_fmt
source.width = adm.getWidth()
source.height = adm.getHeight()
source.fmt = fmt
dest.fmt = fmt
dest.width = 16
dest.height = 16
#
MP2 = 80
AC3 = 0x2000
DTS = 0x2001
supported = [MP2, AC3, DTS]
#
print("Format : " + str(fmt))