All topics

Videos on the Web

Videos you keep in a folder play in any browser, at a quality that suits the viewer's connection. NAS Reborn prepares a smaller copy of each video once and keeps it next to the original, so a link you share plays well on a phone away from home too.

Any folder with videos

Videos in .mov, .mp4 or .m4v, the formats iPhones, iPads and Macs record, are prepared wherever they are. Drop them in a folder from the Files app, Finder or an S3 client; the folder needs no setup of its own. As soon as a folder holds a video, its screen on the Content tab shows a Videos row with how many are ready.

Prepared copies

Preparing makes two versions of a video, 720p and 360p, plus a still for previews. A browser starts with the version that fits its connection and switches as the connection changes. HDR video is shown in normal colour, and the copies leave out the location and other details the camera wrote into the original.

The copies sit in the same folder, on the same drive, and count separately from the folder's maximum size. S3 clients, backups and the network drive leave them out. A video you edit or replace is prepared again, and the copies of a video you delete go with it.

Preparing ahead of time

Turn on Prepare videos ahead of time at the top of a folder's Videos screen, and that folder's videos are prepared one at a time while the device is cool, plugged in and the server is quiet. The switch starts off in every folder, and turning it on in one leaves the others as they are. Videos in folders a browser can reach come first, newest first. Preparing pauses when the device warms up, Low Power Mode comes on, a Time Machine backup starts or someone starts using the server, and later continues where it paused.

An iPhone 6s prepares a minute of 4K video recorded at 24 or 30 frames per second in about 40 seconds, and stays cool doing it for as long as there is work. A minute recorded at 60 frames per second takes a little longer than a minute. An iPad Air 2 and an iPad mini 4 decode iPhone video slowly and take longer.

The Videos screen

Tap Videos on a folder's screen to see each video with its size, length and state: ready, being prepared, waiting, or not prepared. A waiting video says what it waits for, such as the device to cool or a quiet moment. A video that could not be prepared has a warning button that tells why and offers Try Again.

Prepare Now puts one video first and prepares it even when the device is warm or in Low Power Mode, which pause preparing ahead of time. Times are estimated from how fast this device prepared earlier videos of the same kind.

The space the prepared copies take shows under the switch at the top. The (…) menu holds Prepare All, which does what Prepare Now does for every video in the folder, and Remove Prepared Copies, which frees that space. In a folder that prepares videos ahead of time, they are prepared again later.

Sharing a video

Every video has its own page: add ?play to its address, as in https://…/photos/trip.mov?play, or open the video from the folder's directory listing. The page plays the prepared copy in any browser, and the original until the copy is ready. Opening a video that is not ready gets it prepared next, after the videos you asked for in the app. Where the device prepares faster than the video plays, a viewer can start while it is still being prepared. Link previews in Messages and other apps show the video's still.

The page follows the folder's access. A protected folder asks for a device account, and a private folder shows the page to nobody on the web.

In your own pages

Template sites get the same pieces from site.static_files: each video has poster, stream and play next to its path, and the Gallery example uses them, see Template Sites. Any page can ask for the still with ?w=640 on a video's address, the way it does for photos, and ?hls=master.m3u8 is the stream for any HLS player.