User:Alice/Project experiments: Difference between revisions

From XPUB & Lens-Based wiki
No edit summary
No edit summary
Line 17: Line 17:
clips = [clip1, clip2]
clips = [clip1, clip2]
for clip in clips:
for clip in clips:
    clip.volume(0)
     if clip==clip1:
     if clip==clip1:
         cut = clip1.cut(start=0, end=2.8)
         cut = clip1.cut(start=0, end=2.8)
        clip.volume(0)
     else:
     else:
         cut = clip2.cut(start=56, end=57.8)
         cut = clip2.cut(start=56, end=57.8)
        clip.volume(0)
text1 = clip1.text("Your body will make itself heard", color="#FF69B4", font="Ubuntu", size=100)
text1 = clip1.text("Your body will make itself heard", color="#FF69B4", font="Ubuntu", size=100)
text2 = clip2.text("Your body will make itself heard", color="#FF69B4", font="Ubuntu", size=100)
text2 = clip2.text("Your body will make itself heard", color="#FF69B4", font="Ubuntu", size=100)

Revision as of 15:46, 18 February 2019

Testing video tools

In my project, I plan on using free software tools, command line or other, to put together a short video essay that illustrates the narrative of my research.

Vidpy

Vidpy is a piece of software written by Sam Lavigne, developed from MLT.

Overlaying text on a video compositionwith no sound

from vidpy import Clip, Composition

clip1 = Clip('Devon to Doorstep - How Huel is made-NpK63Auk1_A.mkv')
clip2 = Clip('Devon to Doorstep - How Huel is made-NpK63Auk1_A.mkv')
clips = [clip1, clip2]
for clip in clips:
    clip.volume(0)
    if clip==clip1:
        cut = clip1.cut(start=0, end=2.8)
    else:
        cut = clip2.cut(start=56, end=57.8)
text1 = clip1.text("Your body will make itself heard", color="#FF69B4", font="Ubuntu", size=100)
text2 = clip2.text("Your body will make itself heard", color="#FF69B4", font="Ubuntu", size=100)

together = Composition(clips, singletrack=True)
together.save('vidpy_test.webm')