Created
March 31, 2016 04:07
-
-
Save leleobhz/8fbc3565e89ac088d30a862823c80a94 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
images=0 | |
rm -f *.jpg | |
avconv -i ${1} -qscale:v 1 -vcodec mjpeg -qmin 1 -qmax 1 %09d.jpg | |
for i in $(ls | grep .jpg); do | |
let images=images+1 | |
done | |
##################################### | |
#Rename images in the opposite order# | |
##################################### | |
i=${images} | |
i=`printf %09d $i` | |
factor=0 | |
while [ $factor -lt $images ]; do | |
new_name=$((images+factor)) | |
new_name=`printf %09d $new_name` | |
cp -v $i.jpg ${new_name}.jpg | |
let factor=factor+1 | |
i=$(echo "$i-1" | bc | xargs printf "%09d") | |
done | |
avconv -f image2 -i %09d.jpg -c:v libx264 -preset medium -tune film -profile:v baseline -level 30 -s hd480 $(basename ${1} | awk -F. '{print $1}')_rev.mkv |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1) mpv Doctor.Who.2005.S09E11.Heaven.Sent.1080p.WEB-DL.DD5.1.H.264-CtrlHD.mkv -no-audio -ss 3093.1251 -end 3096.885 -o wallpaper.mp4 -profile enc-f-mp4 | |
2) mkdir images ; cd images | |
3) vaievem.sh ../wallpaper.mp4 | |
4) https://play.google.com/store/apps/details?id=com.ccpcreations.android.VLW |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment