Seedance 2.5 720p output size: export an exact 1280×720 video
Fix a Seedance 2.5 clip that came back at a different size from the delivery brief. Fit the entire shot on a 1280×720 canvas and verify the exported MP4 before uploading.
In an Ofox first-frame run, we requested 720p from Seedance 2.5 and downloaded a 1266×726 MP4. If a client or upload form needs 1280×720, check the actual file before you send it. We resized the full picture to 1256×720, added 12 pixels on each side, and exported a 1280×720 MP4 with all 121 frames. The export ran locally without another model request.
Why can a Seedance 720p clip have different dimensions?
For first-frame generation, the reference image guides the frame proportions. Our reference was 864×496. We passed it as frame_images with frame_type: first_frame and let the model follow the source proportions. The provider documentation describes adaptive ratio for its first-frame mode. Treat the API’s selected resolution as a generation setting and read the downloaded file to verify the delivery dimensions. Ofox documents an exact-pixel size parameter where the route supports it. The run here used resolution and did not test size on a first-frame request. BytePlus first-frame constraints · Ofox video request parameters
If the API rejected a first-frame request, handle the parameter error before looking for a video file. If the task is still pending, check its existing task ID. A completed video with an unexpected size can usually be handled at export when the shot itself is acceptable. Seedance first- and last-frame tutorial · Ofox Seedance troubleshooting
Inspect the actual MP4 before choosing a fix
Download the completed video from the task result and keep the raw file. The export kit contains the archived input, a delivery copy, the verification script and the three measured dimensions. For your own file, run:
ffmpeg -hide_banner -i input.mp4 -map 0:v:0 -frames:v 1 -an -f null -
Read the Video: line under Input #0. The source in our example reported 1266x726 at 24 frames per second. Check orientation and pixel aspect ratio if your file looks squeezed or rotated. The command below is for an ordinary, unrotated video with square pixels.
Decide what the user needs before changing the picture.
| Delivery requirement | Use |
|---|---|
| The whole product and label must stay in frame | Fit the picture inside the target canvas and pad the edges. |
| The screen must be filled edge to edge | Crop a separate copy and inspect the product and text at the beginning, middle and end. |
| The shot already clips the product or shows wrong packaging text | Return to the source clip or regenerate the shot with a revised brief. An export change cannot restore missing content. |
Export exactly 1280×720 without cropping the shot
Use FFmpeg with the H.264 encoder available. This command creates a silent delivery clip, as in the test. If the client cut includes sound, export the audio from the edit timeline or use an audio-preserving export and check sync separately.
ffmpeg -i input.mp4 -map 0:v:0 \
-vf 'scale=1280:720:force_original_aspect_ratio=decrease:force_divisible_by=2,setsar=1,pad=1280:720:(ow-iw)/2:(oh-ih)/2' \
-an -c:v libx264 -crf 18 -pix_fmt yuv420p -movflags +faststart \
delivery-1280x720.mp4
The scale step fits the picture inside the target with even dimensions. The pad step centers it and fills the remaining space. On our source, the picture area was 1256×720 and the side bars were 12 pixels each. A different source can produce bars at the top and bottom instead. If the upload rejects the export, inspect the output file and the platform’s delivery requirements before changing the original. FFmpeg scale and pad filters
Verify the pixels and frame count
Run the same inspection command on delivery-1280x720.mp4 and expect 1280×720. Play the beginning, middle and end. Check the whole product remains visible and the output does not cut off early.
| Stage in the archived Ofox sample | Dimensions | Decoded frames |
|---|---|---|
| Downloaded Seedance 2.5 MP4 | 1266×726 | 121 |
| Picture after resizing | 1256×720 | 121 |
| Delivered 16:9 MP4 | 1280×720 | 121 |
To reproduce the acceptance check from the kit, run sh verify-and-export.sh original-720p.mp4 replay. The script scales the original twice, once without padding and once with padding. It then removes only the added bars and compares frame hashes. The unpadded picture matched the scaled reference on 121 of 121 frames before final H.264 encoding. This verifies that the padding kept the whole scaled picture. The final H.264 file uses lossy compression and our check does not claim that its decoded pixels are identical to the raw source. For an approved multi-shot cut, also verify that the shots outside the changed section match their baselines. Product ad shot acceptance


