User:Angeliki/Prototyping: Difference between revisions
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
[[File: | [[File:Mouth3.jpg|right|480 px]] | ||
<small> | <small> |
Revision as of 15:29, 6 December 2017
- Screenshot from test video"
Video experiments
Mouth test
Interview espeaking
Kalia grown
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
| |
//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.
|
Changing my life/system
Old projects revisited
Occupy
Conceptual thinking vs programming
Programming language, poetry, performance, sound
different experiments with videos, python using raspberry pi as a tool for organising, documenting, communicating some wiki skills