DelayNoMore/charts
2023-01-23 23:18:21 +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 Further updates on win32 build templates. 2023-01-23 23:18:21 +08:00
InputDelayIntro.jpg Updated README. 2022-11-02 10:57:37 +08:00
internet_dash_turnaround_cut_spedup.gif Added network doctor for frontend. 2023-01-21 22:53:41 +08:00
internet_fireball_explosion_wallmove_spedup.gif Updated charts in README. 2023-01-15 17:43:02 +08:00
NativeBuildReload.png Further updates on win32 build templates. 2023-01-23 23:18:21 +08:00
networkstats.png Added network doctor stats. 2023-01-22 11:39:27 +08:00
README.md Misc fixes. 2023-01-02 16:38:13 +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
ServerClients.jpg Updated charts and refs in README. 2023-01-14 23:06:45 +08:00
UDPEssentials.jpg Further updates on win32 build templates. 2023-01-23 23:18:21 +08:00
VisualStudioSetup.png Preparation for native app build. 2023-01-22 23:05:32 +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.

Similarly to crop a gif into pngs.

ffmpeg -vsync vfr -i Idle1.gif -vf "crop=70:ih:(iw-ow-10):0" pngs/Idle1_%d.png