Exemplo n.º 1
0
def test_colorx():
    color_dict = {"H": (0, 0, 200), "L": (0, 0, 50), "B": (0, 0, 255), "O": (0, 0, 0)}
    clip = BitmapClip([["LLO", "BLO"]], color_dict=color_dict, fps=1)

    clipfx = colorx(clip, 4)
    target = BitmapClip([["HHO", "BHO"]], color_dict=color_dict, fps=1)
    assert target == clipfx
Exemplo n.º 2
0
def test_colorx():
    with VideoFileClip("media/big_buck_bunny_432_433.webm") as clip:
        clip1 = colorx(clip, 2)
        clip1.write_videofile(os.path.join(TMP_DIR, "colorx1.webm"))
Exemplo n.º 3
0
def test_colorx():
    clip = get_test_video()
    clip1 = colorx(clip, 2)
    clip1.write_videofile(os.path.join(TMP_DIR, "colorx1.webm"))
    close_all_clips(locals())
Exemplo n.º 4
0
def test_colorx():
    with VideoFileClip("media/big_buck_bunny_432_433.webm") as clip:
        clip1 = colorx(clip, 2)
        clip1.write_videofile(os.path.join(TMP_DIR,"colorx1.webm"))
Exemplo n.º 5
0
def test_colorx():
    clip = get_test_video()
    clip1 = colorx(clip, 2)
    clip1.write_videofile(os.path.join(TMP_DIR, "colorx1.webm"))
    close_all_clips(locals())