DelayNoMore/charts
2023-01-02 12:23:15 +08:00
..
AttackTriggerCases.jpg Updated TouchEventsManager to support input from Keyboard as well as an additional atk btn. 2022-11-20 20:13:08 +08:00
AvoidingFloatingPointAccumulationErr.jpg Updated README. 2022-11-13 14:13:19 +08:00
DelayNoMore.drawio Updated charts. 2022-11-20 12:27:29 +08:00
InputDelayIntro.jpg Updated README. 2022-11-02 10:57:37 +08:00
jump_sync_spedup.gif Updated README. 2022-12-15 15:40:08 +08:00
README.md Fixes for KnifeGirl anim. 2023-01-02 12:23:15 +08:00
RollbackAndChase.jpg Fixed typos. 2022-11-03 10:06:21 +08:00
screenshot-2.png Updated README. 2022-11-02 10:57:37 +08:00

Double playback speed of a video

ffmpeg -i input.mp4 -filter:v "setpts=0.5*PTS" output.mp4

GIF creation cmd reference

ffmpeg -ss 12 -t 13 -i input.mp4 -vf "fps=10,scale=480:-1" -loop 0 output.gif

Extract GIF (with alpha channel, e.g. exported from Fighter Factory Studio) to PNG sequence

ffmpeg -vsync vfr -i input.gif output%d.png

The -vsync vfr tells ffmpeg to disrespect the original delays set within the GIF file, otherwise many duplicate frame will be extracted by the default 60FPS.

More complicated transparent padding example (used when alignment in image source is much more preferred than aligning in codes)

ffmpeg -vsync vfr -i LayDown1.gif -vf "scale=iw:188:force_original_aspect_ratio=decrease,pad=iw:188:0:(oh-ih):color=#00000000,format=rgba" pngs/LayDown1_%d.png

The command above uses same input-output width, but pads the output height with a top transparent section such that the output height is fixed to 188px.