Zi 字媒體
2017-07-25T20:27:27+00:00
FFMPEG 縮時攝影 [FFMPEG_Time-lapse-photography]
資料來源: https://kentxchang.blogspot.com/2017/05/diy-vr.html
https://twgreatdaily.com/lae0InEBiuFnsJQVES-X.html
GITHUB: https://github.com/jash-git/FFMPEG_Time-lapse-photography
實作項目:
01.連續圖轉影片部份
02.影片縮時效果
03.影片慢動作
BAT
REM 圖片變影片
REM 0.5 →每張照片呈現0.5秒,可自由修改,如改為2代表每張照片呈現2秒。
REM 360/ → 所有照片放在ffmpeg的bin資料夾下的360資料夾內。
REM %M.jpg → 照片檔名為4位數字連續,如 0000.jpg、0001.jpg……
REM output.mp4 → 輸出檔案的檔名
ffmpeg.exe -r 1/0.5 -i 2012/I%d.png -r 30 -s 399x390 output.mp4
pause
REM 把影片時間拉長四倍
ffmpeg -i output.mp4 -vf setpts=4.0*PTS output01.mp4
pause
REM 把影片時間縮短一半
ffmpeg -i output.mp4 -vf setpts=PTS*0.5 output02.mp4
pause
Your browser does not support the HTML5 video tag.
寫了
5860316篇文章,獲得
23313次喜歡