User:Alice/Project experiments: Difference between revisions
(Created page with "=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 rese...") |
No edit summary |
||
Line 6: | Line 6: | ||
Vidpy is a piece of software written by Sam Lavigne, developed from MLT. | Vidpy is a piece of software written by Sam Lavigne, developed from MLT. | ||
===Overlaying text on a video compositionwith no sound=== | |||
{{#Widget:Video|webm=http://pzwiki.wdka.nl/mw-mediadesign/images/c/cc/Vidpy_test.webm|width=180px|height=150px}} | |||
<source lang="Python"> | |||
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: | |||
if clip==clip1: | |||
cut = clip1.cut(start=0, end=2.8) | |||
clip.volume(0) | |||
else: | |||
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) | |||
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') | |||
</source> |
Revision as of 15:23, 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:
if clip==clip1:
cut = clip1.cut(start=0, end=2.8)
clip.volume(0)
else:
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)
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')