Skip to main content

postupak

1 - sortirati i renameati images (f2)
2 i/ili nakon 3 - podesiti im orijentaciju (pix i im i ffmpeg)
3 - fittati i pillarboxati (im)
4 - povezati u cavs (ffmpeg)
5 - editirati (hxd)
6 - konvertirati u mp4 (ffmpeg)
- - -
7 - avidemux - color&image_correction---colorize+alpha
8 - export :)
- - -
- - -
- - -

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
DAKLE
ffmpeg -r 25 -i %05d.jpg -map_metadata 0 -metadata:s:v rotate="0" -r 25 png/%05d.png
I POTOM
wine ~/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

6.
[j3d1n4@FC CITE]$ 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