Images and video
Best quality: frame images (recommended)#
A video saved as one picture per frame looks the sharpest and most colorful, and needs nothing extra on the server.
- Upload the video at ezgif.com/video-to-png, set the frame rate to 20, then convert.
- Download the frames as a ZIP and drop it into
videos/aspromo.zip. There is no need to unzip it. - For sound, also drop the original
promo.mp4next to it. The frames supply the picture and the MP4 supplies the sound.
If you made the video yourself, export a PNG or image sequence from your editor at 20 fps into a folder such as videos/promo/. Number the files with leading zeros (frame_0001.png, frame_0002.png) because frames play in file-name order. If the video is not 20 fps, add an fps.txt containing just the number.
Also works#
.mp4 .webm .mov .mkv .avi: a little softer, because they are compressed..gif: 256 colors, so it is the least sharp.- To give a GIF or a frame folder sound, add an audio file with the same name, for example
promo.gifpluspromo.mp3. A.ogg,.mp3or.wavnext to a video also replaces the video's own sound.
After adding files, run /ha pack rebuild. Only new or changed files are converted. The pack is rebuilt and sent to everyone online, and players re-download it only when it actually changed. The rebuild also runs on server start and on /ha reload. Use /ha video list to see converted videos with their resolution, fps and audio.
Give the video a mono .ogg of the same name (in Audacity: File, Export, OGG, mono). Stereo plays, but it does not fade with distance.
A HOW-TO-ADD-VIDEOS.txt guide is written into the videos/ folder. While media converts, admins with hyperads.admin see a live progress bar above the hotbar (admin-progress-bar).