pinterestsocial-media-automationvideo-specs

Pinterest Video Pin Specs That Survive the Upload (and the API)

··11 min read
Pinterest Video Pin Specs That Survive the Upload (and the API)

If you publish Pins from a workflow and your video step keeps dying somewhere between the encode and the upload, the spec table isn't what's breaking. Pinterest video Pin specs are MP4, MOV or M4V with H.264 or H.265, 4 seconds to 15 minutes, and under 2 GB. The recommended shape is 2:3 at 1000x1500. Creating a video Pin through the v5 API takes four calls plus a cover image you supply yourself.

  • Register the upload: POST /v5/media with media_type: video
  • Upload the file to the returned upload_url as form data
  • Poll GET /v5/media/{media_id} until status is succeeded
  • Create the Pin with source_type: video_id and a cover
  • Check duration first so sub-4-second clips never get submitted

What Pinterest actually accepts

Pinterest publishes its video Pin specs across two pages. The numbers on them are what your encoder has to hit.

ConstraintValue
ContainersMP4, MOV, M4V
Video codecH.264 or H.265
Max file size2 GB
Length4 seconds minimum, 15 minutes maximum
Recommended shape2:3, 1000x1500
Accepted aspect ratiosshorter than 1:2, taller than 1.91:1

The container, codec, size and duration limits come from Pinterest's Pin specs article. The aspect-ratio bounds and the 2:3 recommendation come from its product specs page. That page also lists 1:1, 4:5 and 9:16 as accepted.

A 1080x1920 master is 9:16, inside the bounds the Pinterest video Pin specs set. So the file you already rendered for Reels will publish. Re-encoding to 2:3 buys feed real estate, not acceptance. Re-encode when Pinterest is a channel you care about, and ship the 9:16 master when you're backfilling.

One encode takes a 9:16 master to 2:3

Going from 1080x1920 to 1000x1500 is a crop or a pad. For vertical social footage the crop wins. Cropping to 2:3 keeps the full 1080 width and trims the height to 1620. That costs about 16% of the frame, split between top and bottom. Padding adds bars to the sides and leaves a narrower picture inside a 2:3 box.

ffmpeg -i master-9x16.mp4 \
  -vf "crop=iw:iw*3/2,scale=1000:1500:flags=lanczos" \
  -c:v libx264 -profile:v high -pix_fmt yuv420p -crf 21 \
  -c:a aac -b:a 128k -movflags +faststart \
  pinterest-2x3.mp4

crop=iw:iw*3/2 centers the crop on any vertical input. The same line works on a 720x1280 clip. If your captions or hook text sit in the lower third, that crop will clip them. Burn text inside the middle 1620 pixels when you render the master. CRF 21 on a short vertical clip lands far under the 2 GB cap.

Aim at the ceiling you're given rather than far below it, the same logic as in compressing for TikTok at the cap. The same crop and scale run as one API job if you'd rather not keep an encoder host alive for a publishing workflow. FFmpeg Micro takes the FFmpeg flags you already know, with no servers to run and no FFmpeg to install:

{
  "inputs": [{ "url": "gs://your-bucket/master-9x16.mp4" }],
  "outputFormat": "mp4",
  "options": [
    { "option": "-vf", "argument": "crop=iw:iw*3/2,scale=1000:1500" },
    { "option": "-c:v", "argument": "libx264" },
    { "option": "-crf", "argument": "21" },
    { "option": "-c:a", "argument": "aac" },
    { "option": "-movflags", "argument": "+faststart" }
  ]
}

Submit it, poll the job id until the status is completed, then download. Pinterest's own media endpoint works the same way, so the two chains wire up in sequence.

The cover image is a required field

Pinterest will not create a video Pin without a cover. The Pin creation reference accepts it three ways. You can pass cover_image_url pointing at an image you host, raw base64 image data, or cover_image_key_frame_time naming a moment in the clip for Pinterest to grab.

Nothing in the docs tells you which frame you get if you leave the choice to Pinterest. That's reason enough not to leave it. On a typical vertical master the opening frame is a fade-up or a mid-transition. That frame becomes your thumbnail in the grid.

Pulling your own still is one frame out of the file you just encoded:

ffmpeg -ss 00:00:02.5 -i pinterest-2x3.mp4 \
  -frames:v 1 -q:v 2 cover-1000x1500.jpg

Pick the timestamp off the content rather than a fixed number: the first frame after your hook text lands, or a quarter of the way in. The API version is the same three flags with "outputFormat": "jpeg". That gives you a hosted JPEG you can pass straight to cover_image_url. Frame extraction is one of the few things you can pull out of a video file without re-encoding it. The boundaries of that are in what you can extract from a video file.

Upload that JPEG somewhere public and use cover_image_url, the only one of the three options where you've seen the image before Pinterest has.

The four calls that create a video Pin

A video Pin is not a single request. Pinterest's guide to creating Pins splits the work into register, upload, confirm, create. Each step has its own way of failing.

  1. Register the upload. POST /v5/media with {"media_type": "video"} returns a media_id, an upload_url, and an upload_parameters object.
  2. Upload the file. POST to upload_url as multipart form data. Send every key from upload_parameters as its own form field, with the file field last.
  3. Confirm it. GET /v5/media/{media_id} starts out reporting registered. Per the media endpoint reference, you have to wait for succeeded before the id is usable. Poll every five seconds and cap the attempts. Treat anything that isn't succeeded as not ready.
  4. Create the Pin. POST /v5/pins with media_source set to {"source_type": "video_id", "media_id": "...", "cover_image_url": "..."}, plus board_id, title, description and link.

Step four is where builders stall. The Pinterest Business Community has the threads to prove it. One developer reports a 401 Unauthorized on v5 Pin creation with a video_id while the same token creates image Pins fine. That's a scope problem rather than a credentials problem. Check that your token carries the media scope and not just Pin write access.

Another developer describes a media_id reporting succeeded and still being rejected with "the media_id you are trying to use has not been uploaded". The upload endpoint has its own bad days too. Developers reported an outage where the video media upload endpoint failed for third-party callers.

So build the chain to re-register rather than retry. Keep your encoded 2:3 file and your cover JPEG in storage with the queue row. On a failure at step two, three or four, start again from a fresh media_id instead of reusing one that may never become valid.

Check duration before you encode anything

Of everything in the Pinterest video Pin specs, the 4-second floor is the cheapest rejection to avoid. You can see it coming from the file's metadata. Read the duration first, and route anything under 4 seconds away from the publish path.

curl -X POST https://api.ffmpeg-micro.com/v1/ffprobe \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"media_url": "gs://your-bucket/master-9x16.mp4"}'

The response carries format.duration as a string in seconds. Three branches cover every case: under 4 seconds, extend it; over 15 minutes, trim or skip; anything between, encode and publish. Extending a 2.8-second clip is a filter rather than a re-edit. Holding the last frame gets you over the line:

ffmpeg -i short.mp4 \
  -vf "tpad=stop_mode=clone:stop_duration=1.5" \
  -af "apad=pad_dur=1.5" -shortest out.mp4

Run the duration read as its own step before the encode. A metadata check costs a fraction of a transcode. It saves a full render plus a four-call chain that was always going to end in a rejection.

What one Pinterest-ready clip costs

Priced out, the video step is two jobs over the same input plus some free calls. FFmpeg Micro meters on the duration of the video processed, per second, with no rounding up to the minute. One token buys 10 seconds of input video.

  • The 2:3 encode of a 30-second master: 30 seconds of input, 3 tokens.
  • The cover still from that same 30-second file: metered the same way, 3 tokens.
  • The duration read before either: a metadata call, no transcode.
  • Polling job status and downloading the output: free.
  • A job that fails: never billed.

Top-ups run 500 tokens for $5, so a token is a cent. That clip is about 6 cents of processing. The 200 tokens a new account gets at sign-up cover roughly 30 clips through both jobs before you've paid anything. Purchased tokens don't expire while the account is open.

If you're repurposing long-form, trim a 30-second vertical out of a one-hour recording and you're billed for the 30 seconds, not the hour. Full plan numbers are on pricing.

Against that, weigh effort. Hosting your own encoder for a publishing workflow means a binary to keep patched, a queue, and a worker that stays up between Pin batches. If you post a handful of Pins a month by hand, skip all of it. Pinterest's own uploader does the encode and lets you choose a cover in the interface. The API path earns its keep once a person is doing this on a schedule.

Wiring it into n8n, Make, or Zapier

n8n, Make and Zapier don't ship a Pinterest video action. That's why the Pinterest automation guides you'll find stop at image Pins and scheduling. Video needs the handshake, and the handshake is yours to build.

In n8n the whole thing comes out as an HTTP chain: ffprobe read, an IF node on duration, the 2:3 encode, a Wait-and-poll loop on the job status, then the cover extraction. The four Pinterest calls follow, with a second poll loop in the middle. Make and Zapier take the same shape with their own HTTP modules. The polling half, including how to avoid an infinite loop when a job never finishes, is spelled out in one HTTP chain for a video API with no n8n node.

Build that chain once and it covers every vertical clip you publish, including the ones going to other channels. That's the point of keeping the encode in an automated content pipeline rather than in a desktop editor. Store the Pinterest media_id and the cover URL on the queue row as you go. A failure at any step then restarts from the last good artifact instead of from the master file.

FAQ about Pinterest video Pin specs

Can I give Pinterest a video URL instead of uploading a file?

No. A video Pin has no URL field equivalent to image_url. You register the upload with POST /v5/media using media_type: video, which returns a media_id, an upload_url and an upload_parameters object. Then you post the file itself as multipart form data. The URL-based shortcut exists for image Pins only.

Why does POST /v5/pins return 401 with a video_id when image_url works?

A 401 on video Pin creation with a token that creates image Pins fine points at scopes rather than a bad token. Developers report exactly that case in the Pinterest Business Community thread on 401 Unauthorized with video_id. Re-issue the token with media access included, then retry the four-call chain from registration.

Is cover_image_key_frame_time worth using?

cover_image_key_frame_time is a time offset into the clip. It has to land inside the video's real duration, or the Pin creation call has nothing to grab. Extracting the still yourself and passing cover_image_url removes the out-of-range risk. You also get to see the thumbnail before Pinterest does.

How long should I poll the media status before giving up?

Poll GET /v5/media/{media_id} every five seconds and stop after about 24 attempts for a short vertical clip. Then register a fresh upload rather than waiting longer. A media_id that hasn't reached succeeded in two minutes is more likely stuck than slow. One Pinterest developer report shows a media_id can read succeeded and still be rejected at Pin creation as not uploaded.

Does a 9:16 vertical video work on Pinterest without re-encoding?

Yes. The Pinterest video Pin specs list 9:16 among the accepted aspect ratios, alongside 1:1, 4:5 and the recommended 2:3. The hard bounds are anything shorter than 1:2 or taller than 1.91:1. Re-encoding to 1000x1500 buys more vertical space in the feed, so it's a reach decision rather than a compliance one.

The Pinterest video Pin specs come down to two artifacts you produce before the API handshake begins: the 2:3 file and the cover still. Both come off one input in two jobs. Sign up free and those jobs run with nothing on your side: no FFmpeg to install and no servers to run. The 200 tokens a new account starts with are enough encodes and cover stills to get a first video Pin through the four-call chain and the rest of this week's queue behind it.

About Javid Jamae

Founder & CEO at FFmpeg Micro

Javid is a software engineer, author, and entrepreneur with over 25 years of professional software development experience across enterprise, startup, and consulting environments. He founded FFmpeg Micro to make video processing accessible to developers through a simple, automation-first REST API.

Software EngineeringVideo ProcessingFFmpegCloud ArchitectureAPI DesignAutomation

Ready to process videos at scale?

Start using FFmpeg Micro's simple API today. No infrastructure required.

Get Started Free