Posting video
How a video gets from your device to every network that takes video: what to upload, who converts it, what Postbroad checks, and what each problem in a preview means.
#The short version
- Convert the video to the one format every video network takes (below), or let the Postbroad web app or CLI do it on your device.
- Upload it:
createUpload, send the bytes,completeUpload, thengetUploaduntil it isingested. Video files can be MP4, QuickTime (MOV) or WebM, up to 5 GB. - Attach it to a post with
media: [{ "assetId": "..." }], like a picture, and preview the post. Each destination says whether its network takes the video and, if not, why.
#The format
Postbroad sends every network MP4 with:
- H.264 video, 8-bit 4:2:0 (
yuv420p), square pixels, no rotation flag, SDR (not HDR); - AAC sound, or no sound;
- at most 60 frames a second;
- within the network's own limits: size in pixels, file size, length and shape (width to height).
A file that already fits goes as it is. A QuickTime file with fitting streams is copied into MP4, which takes a second and changes no picture.
Postbroad never trims, crops, pads or enlarges a video. A video longer than a network takes, of a shape it refuses or with fewer pixels than it needs is refused for that network, with its limit.
#Who converts
Converting video takes a lot of computing, so it happens on your device, not on Postbroad's servers:
- The web app converts in the browser when you upload a video, for the networks you chose in the composer, and shows how far it has got. Where several networks need different files (Discord takes 21 MB at most), it makes one file for each group, and each network gets the one it needs.
- The CLI (
postbroad upload) converts with ffmpeg when it is installed, and otherwise prints the target and the command. - Through the API or MCP, convert before you upload. This ffmpeg command makes a 1080p file every
video network takes (add the network's file size limit with
-maxratewhen it has one):
ffmpeg -i input.mov -map 0:v:0 -map 0:a:0? \
-vf "scale='min(1920,iw)':'min(1080,ih)':force_original_aspect_ratio=decrease:force_divisible_by=2,setsar=1" \
-c:v libx264 -preset medium -crf 21 -pix_fmt yuv420p -c:a aac -b:a 128k -ac 2 \
-map_metadata -1 -movflags +faststart output.mp4For an upright video use min(1080,iw) and min(1920,ih): the long side is bounded, never the
height alone.
#What Postbroad checks
When the file arrives, the server reads it (its size in pixels, length, codecs, frame rate and HDR flag), copies it into MP4 for each network when needed, and takes one frame as its poster for the media library and the calendar. It does not encode it again.
A device that converted the file can say so with clientRender on createUpload: what it made and
for which networks. The server compares that with the bytes and refuses the upload with
client_render_mismatch when they differ, so a file that is not what it claims never reaches a
network.
#Problems in a preview
Each problem names the network and its limit. The code says what to do:
| Code | Meaning | What to do |
|---|---|---|
media.video_needs_conversion | The file is not in the format above for this network (another codec, HDR, a rotation flag, over 60 frames a second, too large). The text ends with the exact target. | Convert it (above) and upload the new file. |
media.video_too_long | Longer than the network takes. | Trim it. |
media.video_aspect | A shape (width to height) the network refuses. | Crop it. |
media.video_too_small | Fewer pixels than the network needs. | Upload a larger file. |
media.video_too_large | Too long for the network's file size limit at a watchable quality. | Upload a shorter one. |
media.video_render_failed | Preparing the file for this network failed for a reason the file must change for. | Replace the file. |
media.kind_unsupported | The network takes no video through Postbroad. | Remove the video from that network's version. |
Last generated 18 Nov 2026, from the contracts the API runs on.