-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcmd.sh
More file actions
executable file
·32 lines (25 loc) · 940 Bytes
/
Copy pathcmd.sh
File metadata and controls
executable file
·32 lines (25 loc) · 940 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/bin/bash
export SOUNDFILE=../green_day.mp3
# the python creates a folder named $user_id and calls this script with
# that user id as a param
cd $1
# resize, center and fill images
# for img in *.jpg
# do convert $img -resize 720x480 -background black -gravity center -extent 720x480 $img
# done
# even easier than mencoder, just use dvd-slideshow!
dir2slideshow -notitle -a ${SOUNDFILE} -n slideshow -t 3.5 -c .3 .
dvd-slideshow -f slideshow.txt
# video upload
# ~curl 'https://api-video.facebook.com/restserver.php?method=video.upload&access_token=156562204392783|480dcfa56ff68e39feb88923-499093805|q1BrU99T7a58D3jZbCVXxDpNddQ' -F'type=multipart/message' -F 'source=@Desktop/movie.mov'
exit
#deprecated code below
ls *.jpg | sort -n > files.txt
mencoder mf://@files.txt \
-mf w=720:h=480:fps=.4:type=jpeg \
-audiofile ${SOUNDFILE} \
-ovc lavc \
-oac lavc \
-lavcopts vcodec=mpeg4:vbitrate=5000 \
-ofps 30000/1001 \
-o $1.mpeg