postupak
- - sortirati i renameati images (f2)
- - i/ili nakon 3 - podesiti im orijentaciju (pix i im i ffmpeg)
- - fittati i pillarboxati (im)
- - povezati u cavs (ffmpeg)
- - editirati (hxd)
- - konvertirati u mp4 (ffmpeg)
- - avidemux - color&image_correction---colorize+alpha
- - export :)
- - prep za GIF
- - -
- - -
- - -
1. (sort)
2.
a--- pix rotate physically je ok za images ali ffmpeg ignorira novu orijentaciju
b--- im -strip resetiranje orijentacije vrati na pogrešno
c--- im -auto-orient radi ali većina stvari je naopačke :)
d--- ffmpeg -noautorotate bira krivu orijentaciju
e--- -vf "transpose=1" rotira za 90 stupnjeva
f--- -vf "vflip" okreće naopačke :D
g--- ovo navodno radi svudgje i za sve (ali meni ne)ffmpeg -i input-movie.mov -timestamp 2012-06-23 08:58:10 -map_metadata 0:0 -metadata Rotation=270 -sws_flags lanczos -vcodec libx264 -x264opts me=umh -b 2600k -vf yadif=1,transpose=1,transpose=1,scale=1280:720 -f mp4 -y output-movie.MP4
https://stackoverflow.com/questions/9408542/video-captured-from-iphone-gets-rotated-when-converted-to-mp4-using-ffmpeg
(dodatno: https://superuser.com/questions/578321/how-to-rotate-a-video-180-with-ffmpeg)
h--- OVO RADI S NOVIM FFMPEGOM :)
-map_metadata 0 -metadata:s:v rotate="0"ffmpeg -r 25 -i %05d.jpg -map_metadata 0 -metadata:s:v rotate="0" -c:v h264 -q:v 0 -g 9999 -bf 0 -r 25 out.avi
DAKLEffmpeg -r 25 -i %05d.jpg -map_metadata 0 -metadata:s:v rotate="0" -r 25 png/%05d.png
I POTOMwine ~/SFTW/ffmpeg-20160512-git-cd244fa-win32-static/bin/ffmpeg.exe -r 25 -i %05d.png -c:v cavs -q:v 0 -g 9999 -bf 0 -r 25 000-pngs.avi
PAZTI NA PIX_FMT, npr.wine ~/SFTW/ffmpeg-20160512-git-cd244fa-win32-static/bin/ffmpeg.exe -r 25 -i %05d.png -c:v cavs -pix_fmt yuv420p -q:v 0 -g 9999 -bf 0 -r 25 000-pngs.avi
3.
mogrify -resize 1920x1920 -background black -extent 1920x1920 +repage -gravity center *.jpg
moguće i -resize "1920x1080>"
The > at the end of the resize dimensions means to only resize larger images, not smaller ones.
4.
wine ~/SFTW/ffmpeg-20160512-git-cd244fa-win32-static/bin/ffmpeg.exe -r 25 -i %05d.jpg -c:v cavs -q:v 0 -g 9999 -bf 0 -r 25 000-renamed-rotatedpillarboxed-1080x1080px-cavs.avi
tj.wine ~/SFTW/ffmpeg-20160512-git-cd244fa-win32-static/bin/ffmpeg.exe -r 25 -i %05d.jpg -c:v cavs -crf 13 -pix_fmt yuv420p -g 9999 -bf 0 -r 25 000-renamed-rotatedpillarboxed-1920x1920px-cavs.avi
5. (hex)
6. bakeanje
ffmpeg -i 000-pngs-cavs-edit2.avi -c:v h264 -r 25 -q:v 0 -an -pix_fmt yuv420p 000-pngs-cavs-edit2-final.mp4
7. priprema za gif
ffmpeg -i 000-pngs-g9999-edit-final.mp4 -c copy -segment_time 00:00:05 -f segment -reset_timestamps 1 -map 0 000-out-%03d.mp4
ffmpeg -i 000-out-000.mp4 000/000-%04d.png