PNG Sequence to MP4 - jhogsett/EMA-VFI-WebUI GitHub Wiki
PNG Sequence to MP4 - Use FFmpeg to convert a video PNG sequence to MP4
How It Works
- Set PNG Files Path to a path on this server to the PNG files being converted
- Set MP4 File to a path and filename on this server for the converted MP4 file
- Set Input Name Pattern according to the format of the input PNG filenames
- The PNG files should all have the same base filename + a fixed-width frame index starting at 0
- Examples:
- For files named
image000.png
throughimage999.png
the pattern should beimage%03d.png
- For files named
image00000.png
throughimage99999.png
the pattern should beimage%05d.png
- For files named
- Input Name Pattern can be left blank for automatic detection
- Set Frame Rate to the required video FPS
- 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
ffmpeg.exe
is used to perform the conversion- The Details box shows the
ffmpeg.exe
command line used
Important
ffmpeg.exe
must be available on the system path- The produced video will not have an audio stream
- Resequence Files can be used to renumber a PNG sequence
- The Video Preview tab on the Video Blender page can be used to watch a preview video of a set of PNG files