-
Notifications
You must be signed in to change notification settings - Fork 2
GIF to MP4
Jerry Hogsett edited this page Mar 7, 2023
·
3 revisions
Example - Original GIF | Example - GIF to MP4 (frame size X2, frame rate X4) |
---|---|
https://user-images.githubusercontent.com/825994/220932548-d40b54b5-811b-4637-8adc-6bf26fdcc52b.mp4 |
- Recover the Original Video from an Animated GIF
- Create a High-Def version of a Low-Res / Low-FPS Video
- Recover the original video from a timelapse video
- Easily create a slow-motion video in one-click
Two third-party packages are required to use this feature:
- FFmpeg for file conversion free download
-
ffmpeg.exe
andffprobe.exe
must be available on the system path
-
- Real-ESRGAN for frame restoration/upscaling see wiki page
- The
realesrgan
directory must be copied to theVFIformer-WebUI
directory
- The
- Set GIF File to a GIF, MP4 or other video file on this server
- The feature has been tested with GIF, MP4 and MPG files
- Set GIF Frame Size Upscale Factor to choose a zoom factor
- Choose a value to set the enlargement size of the frame
- The default is 4.0, with a range of 1.0 to 8.0
- Tip: Frames will have noise removed even if set to a 1.0 zoom factor
- Set GIF Frame Rate Upscale Factor to choose an inflation factor
- Choose a value to set the FPS increase for the video
- The default is 4, the range is from 1 to 8
- Choose a Frame Processing Order
-
Rate, then Size is faster overall, and requires less VRAM
- Smaller images are faster to interpolate
-
Size, then Rate is slower, but may produce higher quality
- VFIformer may work better with original content at its native rate
-
Rate, then Size is faster overall, and requires less VRAM
- Set MP4 File to a path and filename on this server for the converted MP4 file
- Leave blank to use a default .mp4 filename in the same location
- It will use the original name an include conversion details
- Choose the video MP4 Frame Rate
- Set Quality to the required video quality
- The range is 17-28 (17 is near-lossless)
- Lower numbers = better quality with a higher file size
- This value is passed to
ffmpeg.exe
as the-crf
parameter - The range of quality values can be changed in
config.yaml
- Click Convert
- GIF to MP4 is run to create a set of PNG frame files
- Video Inflation is run to create filler frames to increase FPS
- Upscale Frames is run to use Real-ESRGAN to clean and enlarge frames
- PNG to MP4 is run to create the output MP4 video
- This process could be slow, perhaps many hours long!
- Progress is shown in the console using a standard progress bar
- The browser window does NOT need to be left open