User:Angeliki/Prototyping: Difference between revisions
No edit summary |
No edit summary |
||
Line 31: | Line 31: | ||
|- | |- | ||
|} | |} | ||
=== Trams === | === Trams === | ||
{| | {| | ||
Line 87: | Line 86: | ||
</source> | </source> | ||
|} | |} | ||
=== Lipsync interview === | |||
<br /> | |||
<br /> | |||
<br /> | |||
== Changing system == | == Changing system == |
Revision as of 12:10, 7 December 2017
Screenshot from video "Lipsync interview"
Video experiments
Lipsync test
espeak hello -w hello.wav
youtube-dl https://www.youtube.com/watch?v=M4LDwfKxr-M
ffmpeg -r 10 -i \[1973\]\ \'Not\ I\'\ \(Samuel\ Beckett\)-M4LDwfKxr-M.webm MOUTH%09d.jpg
rm MOUTH0000*.jpg
sox hello.wav -1 -u -c 1 -r 4000 -t raw rawfile
rm frame*.jpg ///after the viseo + rm the wav file
python lipsync.py
///ls -hl
ffmpeg -r 10 -i frame%09d.jpg -i hello.wav -y hello.webm
espeak -f text.txt -w text.wav
//same from sox ....until ...webm for the other video
sudo apt install brew
brew install mlt
ffmpeg -f concat -i <textfile.txt> -c copy -fflags +genpts merged.mp4
|
Trams
//cut video parts
ffmpeg -i PA190745.MOV -ss 00:01:36 -t 00:01:52 -strict -2 -async 1 KALIA1.mp4
//cut multiple segments
ffmpeg -i output.mp4 -ss 00:00:00 -t 00:00:16 -strict -2 -async 1 a.mp4 -ss 00:00:19 -t 00:00:06 -strict -2 -async 1 b.mp4 -ss 00:00:27 -t 00:00:27 -strict -2 -async 1 c.mp4 -ss 00:00:48 -t 00:00:18 -strict -2 -async 1 d.mp4 -ss 00:01:04 -t 00:00:18 -strict -2 -async 1 e.mp4 -ss 00:01:26 -t 00:00:16 -strict -2 -async 1 f.mp4 -ss 00:01:46 -t 00:00:13 -strict -2 -async 1 g.mp4 -ss 00:02:03 -t 00:01:07 -strict -2 -async 1 h.mp4
//merge videos
To merge files together using ffmpeg:
1. make a textfile.txt with the list of files you want to merge:
file '1.mp4'
file '2.mp4'
file '3.mp4'
2. Then input this command into terminal
//doesnt work
ffmpeg -f concat -i <textfile.txt> -c copy -fflags +genpts merged.mp4
ffmpeg -f concat -safe 0 -i textfile.txt -c copy merged.mp4
//zoom in videos
ffmpeg -i PA190747.MOV -strict -2 -vf "scale=2*iw:-1, crop=iw/2:ih/2" KALIA2.mp4
//CONVERT
ffmpeg -i KALIA4.MOV -vcodec mpeg4 -acodec ac3 -ar 48000 -ab 192k KALIA4.mp4
//put videos together
//partly working
ffmpeg -i KALIA2A.mp4 -i KALIA2.mp4 -strict -2 -filter_complex \
"[0:v][1:v]hstack=inputs=2[v]; \
[0:a][1:a]amerge[a]" \
-map "[v]" -map "[a]" -ac 2 together.mp4
//reverse video
https://video.stackexchange.com/a/17739
ffmpeg has a reverse filter.
For video only:
ffmpeg -i /storage/emulated/0/ffvid/frameCount.mp4 -vf reverse reversed.mp4
For audio and video:
ffmpeg -i KALIA1.mp4 -strict -2 -vf reverse -af areverse reversed.mp4
This filter buffers the entire clip. For larger files, segment the file, reverse each segment and then concat the reversed segments.
|
Lipsync interview
Changing system
Old projects revisited
Occupy
Going further
Conceptual thinking vs programming
Programming language, poetry, performance, sound
connecting with writing methodologies
# whole text
l=list('aeiouy')
while True:
original = raw_input('')
if original == "aaa" : break
if len(original) > 0:
word= original.lower()
s=list(word)
new_word=[]
for i in s:
if i!=l[0] and i!=l[1] and i!=l[2] and i!=l[3] and i!=l[4] and i!=l[5]:
new_word.append(i)
print ''.join(new_word)
else:
print 'empty'
th slnd, drpd n gldn clds,
ds nt xst nwhr n th chrt.
w, th rsdnts f th slnd, t,
d nt xst nwhr n rlt.
th s f mrchnt mrc pl’s fnts -
cntgs wth t, th slrs’
crbrl cn n whs strm w flt, drft,
w, th s-clld zpng ppl:
mlttd wh r n th nd n llsn, drm, nn-xstnt.
nvr blv r wrd.
mts tkhsh
Local networks, media hacking
using raspberry pi as a tool for organising, documenting, communicating some wiki skills http://www.amazon-noir.net/ http://videoactivism.net/en/surveillance-chess/