Skip to content

Are the black borders in my returned video encoded into the file or added by the player?

Run a border detector on the decoded pictures and compare the candidate rectangle with two different players. Bars added by a player fall outside the decoded raster.

PLAN AN EXTERNAL VIDEO REPAIRAISwapLab team · Editorial methodPublished 2 min read
See the recorded exampleExplore 67 Image SkillsIndependent finishing · Check the actual file

Set up the edit

Choose bright intervals where the picture reaches the true edges. Look at suggested coordinates across several frames and inspect a native-size still's outermost rows and columns.

shell
ffmpeg -i duo-result-silent.mp4 -filter_complex "[0:v:0]cropdetect=limit=24:round=2:reset=0[proof]" -map "[proof]" -fps_mode passthrough -c:v ffv1 inspection.mkv

Read the result

A stable inset on a bright scene supports an encoded border. A rectangle that keeps changing as the stage darkens may simply be following the background.

With the returned living-room dance, the local FFmpeg run decoded 158 video frames at 864 × 480 pixels. Use the linked file to reproduce the example. This was an offline edit of the existing public clip.

If the first pass falls short

Never crop from one reported rectangle alone. Before accepting an inset, confirm hair, hands, captions and important edge motion stay inside it throughout the shot.

Sources

Review the result in context.

Compare the recorded example and its documented limitations.

See the recorded example