Android
On Samsung Galaxy phones: the GIF button in the video player
- Open the MP4 in the Gallery app and play it in Samsung's video player.
- Tap GIF in the player's toolbar.
- Drag the handles to choose the part to keep, then tap Save.
This is a Samsung feature, and the button's position depends on the One UI version. Other Android phones have no built-in equivalent.