Exemplo n.º 1
0
def main():
    # 加载自定义配置, 空参数为默认配置
    SupportedCodec.init(global_cfg=None)

    # 两种方式获取编码器均可
    codec = SupportedCodec.VTM
    # codec = SupportedCodec.find_by_name("VTM")

    encoder = "EncoderApp.exe"
    decoder = "DecoderApp.exe"
    merger = None
    mode = Mode.RA
    cfg = "cfg/encoder_randomaccess_vtm_gop16.cfg"

    gen_bin = True
    gen_rec = False
    gen_dec = False
    par_enc = False

    who = "who"
    email = "*****@*****.**"

    seqs_dir_vvc = r"D:\YUV\JVET"
    seqs_dir_hevc = r"D:\YUV\HEVC_Test_Sequences"

    # 一般来说,E2680 设置2个核, X5680 设置3个核,以防止服务器负载大、温度高
    cores = 2
    # X5680: Node01,Node02,Node03,Node04,Node05,Node06,Node07,Node08,Node09,Node10
    # E2680:R720Node01,R720Node02,R720Node03,R720Node04
    nodes = None

    #  X5680,E2680
    groups = "E2680"

    priority = 2200

    # @formatter:off
    seq_info = [
        # name                  width   height  fps     bits    frames   intra_period  ts      skip     path
        ["Tango2",              3840,   2160,   60,     10,     294,        64,          8,      0,      seqs_dir_vvc],
        ["FoodMarket4",         3840,   2160,   60,     10,     300,        64,          8,      0,      seqs_dir_vvc],
        ["Campfire",            3840,   2160,   30,     10,     300,        32,          8,      0,      seqs_dir_vvc],
        ["CatRobot",            3840,   2160,   60,     10,     300,        64,          8,      0,      seqs_dir_vvc],
        ["DaylightRoad2",       3840,   2160,   60,     10,     300,        64,          8,      0,      seqs_dir_vvc],
        ["ParkRunning3",        3840,   2160,   50,     10,     300,        48,          8,      0,      seqs_dir_vvc],

        ["MarketPlace",         1920,   1080,   60,     10,     600,        64,          8,      0,      seqs_dir_vvc],
        ["RitualDance",         1920,   1080,   60,     10,     600,        64,          8,      0,      seqs_dir_vvc],
        ["Cactus",              1920,   1080,   50,     8,      500,        48,          8,      0,      seqs_dir_hevc],
        ["BasketballDrive",     1920,   1080,   50,     8,      500,        48,          8,      0,      seqs_dir_hevc],
        ["BQTerrace",           1920,   1080,   60,     8,      600,        64,          8,      0,      seqs_dir_hevc],

        ["RaceHorses",          832,    480,    30,     8,      300,        32,          8,      0,      seqs_dir_hevc],
        ["BQMall",              832,    480,    60,     8,      600,        64,          8,      0,      seqs_dir_hevc],
        ["PartyScene",          832,    480,    50,     8,      500,        48,          8,      0,      seqs_dir_hevc],
        ["BasketballDrill",     832,    480,    50,     8,      500,        48,          8,      0,      seqs_dir_hevc],

        ["RaceHorses",          416,    240,    30,     8,      300,        32,          8,      0,      seqs_dir_hevc],
        ["BQSquare",            416,    240,    60,     8,      600,        64,          8,      0,      seqs_dir_hevc],
        ["BlowingBubbles",      416,    240,    50,     8,      500,        48,          8,      0,      seqs_dir_hevc],
        ["BasketballPass",      416,    240,    50,     8,      500,        48,          8,      0,      seqs_dir_hevc],
        #
        ["FourPeople",          1280,   720,    60,     8,      600,        64,          8,      0,      seqs_dir_hevc],
        ["Johnny",              1280,   720,    60,     8,      600,        64,          8,      0,      seqs_dir_hevc],
        ["KristenAndSara",      1280,   720,    60,     8,      600,        64,          8,      0,      seqs_dir_hevc],

        ["ArenaOfValor",        1024,   768,    30,     8,      600,        32,          8,      0,      seqs_dir_hevc],
        ["BasketballDrillText", 832,    480,    50,     8,      500,        64,          8,      0,      seqs_dir_hevc],
        ["SlideEditing",        1280,   720,    30,     8,      300,        32,          8,      0,      seqs_dir_hevc],
        ["SlideShow",           1280,   720,    20,     8,      500,        16,          8,      0,      seqs_dir_hevc],
    ]
    # @formatter:on

    qp_list = [22, 27, 32, 37]

    codec.go(encoder=encoder, decoder=decoder, merger=merger,
             mode=mode, who=who, email=email,
             gen_bin=gen_bin, gen_dec=gen_dec, gen_rec=gen_rec, par_enc=par_enc,
             qp_list=qp_list, seq_info=seq_info, cores=cores, nodes=nodes, groups=groups, priority=priority,
             cfg=cfg, cfg_seq=None, extra_param="", with_hash=True)
Exemplo n.º 2
0
def main():
    # 加载自定义配置, 空参数为默认配置
    SupportedCodec.init(global_cfg=None)

    # 两种方式获取编码器均可
    codec = SupportedCodec.UAVS3E
    # codec = SupportedCodec.find_by_name("UAVS3E")

    encoder = "uavs3e.exe"
    decoder = "app_decoder.exe"
    merger = None
    mode = Mode.RA
    cfg = "config.txt"

    gen_bin = True
    gen_rec = False
    gen_dec = False
    par_enc = False

    who = "who"
    email = "*****@*****.**"

    seqs_dir = r"D:\YUV\AVS3_Test_Sequences"

    # 一般来说,E2680 设置2个核, X5680 设置3个核,以防止服务器负载大、温度高
    cores = 2
    # X5680: Node01,Node02,Node03,Node04,Node05,Node06,Node07,Node08,Node09,Node10
    # E2680:R720Node01,R720Node02,R720Node03,R720Node04
    nodes = None

    #  X5680,E2680
    groups = "E2680"

    priority = 2200

    # @formatter:off
    seq_info = [
        # name                  width   height  fps     bits    frames   intra_period  ts      skip     path
        ["Tango2", 3840, 2160, 60, 10, 294, 64, 1, 0, seqs_dir],
        ["ParkRunning3", 3840, 2160, 50, 10, 300, 48, 1, 0, seqs_dir],
        ["Campfire", 3840, 2160, 30, 10, 300, 32, 1, 0, seqs_dir],
        ["DaylightRoad2", 3840, 2160, 60, 10, 300, 64, 1, 0, seqs_dir],
        ["MarketPlace", 1920, 1080, 60, 10, 600, 64, 1, 0, seqs_dir],
        ["RitualDance", 1920, 1080, 60, 10, 600, 64, 1, 0, seqs_dir],
        ["Cactus", 1920, 1080, 50, 8, 500, 48, 1, 0, seqs_dir],
        ["BasketballDrive", 1920, 1080, 50, 8, 500, 48, 1, 0, seqs_dir],
        ["City", 1280, 720, 60, 8, 600, 64, 1, 0, seqs_dir],
        ["Crew", 1280, 720, 60, 8, 600, 64, 1, 0, seqs_dir],
        ["vidyo1", 1280, 720, 60, 8, 600, 64, 1, 0, seqs_dir],
        ["vidyo3", 1280, 720, 60, 8, 600, 64, 1, 0, seqs_dir],
    ]
    # @formatter:on

    qp_list = [27, 32, 38, 45]

    codec.go(encoder=encoder,
             decoder=decoder,
             merger=merger,
             mode=mode,
             who=who,
             email=email,
             gen_bin=gen_bin,
             gen_dec=gen_dec,
             gen_rec=gen_rec,
             par_enc=par_enc,
             qp_list=qp_list,
             seq_info=seq_info,
             cores=cores,
             nodes=nodes,
             groups=groups,
             priority=priority,
             cfg=cfg,
             cfg_seq=None,
             extra_param="--fps_den 1",
             with_hash=True)
Exemplo n.º 3
0
def main():
    # 加载自定义配置, 空参数为默认配置
    SupportedCodec.init(global_cfg=None)

    # 两种方式获取编码器均可
    codec = SupportedCodec.HM
    # codec = SupportedCodec.find_by_name("HM")

    encoder = "TAppEncoder.exe"
    decoder = "TAppDecoder.exe"
    merger = None
    mode = Mode.RA
    cfg = "cfg/encoder_randomaccess_main.cfg"

    gen_bin = True
    gen_rec = False
    gen_dec = False
    par_enc = False

    who = "who"
    email = "*****@*****.**"

    seqs_dir = r"D:\YUV\HEVC_Test_Sequences"

    # 一般来说,E2680 设置2个核, X5680 设置3个核,以防止服务器负载大、温度高
    cores = 2
    # X5680: Node01,Node02,Node03,Node04,Node05,Node06,Node07,Node08,Node09,Node10
    # E2680:R720Node01,R720Node02,R720Node03,R720Node04
    nodes = None

    #  X5680,E2680
    groups = "E2680"

    priority = 2200

    # @formatter:off
    seq_info = [
        # name                          width   height  fps bits    frames   intra_period  ts      skip     path
        ["Traffic_crop",                2560,   1600,   30,  10,     150,        32,        1,      0,      seqs_dir],
        ["PeopleOnStreet_crop",         2560,   1600,   30,  10,     150,        32,        1,      0,      seqs_dir],
        ["NebutaFestival_crop",         2560,   1600,   60,  10,     300,        64,        1,      0,      seqs_dir],
        ["SteamLocomotiveTrain_crop",   2560,   1600,   60,  10,     300,        64,        1,      0,      seqs_dir],

        ["Kimono1",                     1920,   1080,   24,  8,      240,        24,        1,      0,      seqs_dir],
        ["ParkScene",                   1920,   1080,   24,  8,      240,        24,        1,      0,      seqs_dir],
        ["Cactus",                      1920,   1080,   50,  8,      500,        48,        1,      0,      seqs_dir],
        ["BasketballDrive",             1920,   1080,   50,  8,      500,        48,        1,      0,      seqs_dir],
        ["BQTerrace",                   1920,   1080,   60,  8,      600,        64,        1,      0,      seqs_dir],

        ["BasketballDrill",             832,    480,    50,  8,      500,        48,        1,      0,      seqs_dir],
        ["BQMall",                      832,    480,    60,  8,      600,        64,        1,      0,      seqs_dir],
        ["PartyScene",                  832,    480,    50,  8,      500,        48,        1,      0,      seqs_dir],
        ["RaceHorses",                  832,    480,    30,  8,      300,        32,        1,      0,      seqs_dir],

        ["BasketballPass",              416,    240,    50,  8,      500,        48,        1,      0,      seqs_dir],
        ["BQSquare",                    416,    240,    60,  8,      600,        64,        1,      0,      seqs_dir],
        ["BlowingBubbles",              416,    240,    50,  8,      500,        48,        1,      0,      seqs_dir],
        ["RaceHorses",                  416,    240,    30,  8,      300,        32,        1,      0,      seqs_dir],

        ["FourPeople",                  1280,   720,    60,  8,      600,        64,        1,      0,      seqs_dir],
        ["Johnny",                      1280,   720,    60,  8,      600,        64,        1,      0,      seqs_dir],
        ["KristenAndSara",              1280,   720,    60,  8,      600,        64,        1,      0,      seqs_dir],

        ["BasketballDrillText",         832,    480,    50,  8,      500,        48,        1,      0,      seqs_dir],
        ["ChinaSpeed",                  1024,   768,    30,  8,      500,        32,        1,      0,      seqs_dir],
        ["SlideEditing",                1280,   720,    30,  8,      300,        32,        1,      0,      seqs_dir],
        ["SlideShow",                   1280,   720,    20,  8,      500,        16,        1,      0,      seqs_dir],
    ]
    # @formatter:on

    qp_list = [22, 27, 32, 37]

    codec.go(encoder=encoder, decoder=decoder, merger=merger,
             mode=mode, who=who, email=email,
             gen_bin=gen_bin, gen_dec=gen_dec, gen_rec=gen_rec, par_enc=par_enc,
             qp_list=qp_list, seq_info=seq_info, cores=cores, nodes=nodes, groups=groups, priority=priority,
             cfg=cfg, cfg_seq=None, extra_param="--SEIDecodedPictureHash=0", with_hash=True)