VionetoVioneto
Back to the magazine

VIONETO MAGAZINE Playback & technology

Why a video starts with a black frame

If the thumbnail is visible but the video turns black after playback starts, check the beginning of the video. This will help you determine whether the file contains black video frames.

Three small frames on a wooden surface successively show a blue, a black, and an orange area.
The thumbnail can appear bright, even though the video file starts with black.Image: Vioneto · AI-generated illustration

A product clip on the website displays a clear thumbnail. Immediately after clicking, black appears. Shortly thereafter, the actual footage is shown. The thumbnail and the playback images come from different sources when the page uses its own poster frame for the video.

Check before startup and during live video playback

An HTML video in idle state displays the image from its poster attribute. During playback, the frames from the video track are shown. Note what is visible before clicking, and observe how the image, timeline indicator, and loading status change after the click. If the first load is visibly stuck during loading, repeat the same initial sequence.

WHATWG · When does the video element show a poster image or video frames?

Why a video might start black immediately after playback

Open the actual output file if you regularly have access to it. Check the first frames in a player with single-frame view or in a timeline editor. If the host additionally processes the video, compare your exported file with the version played back at the same timepoints. This will help you identify a black segment—even if it was hardly noticeable before upload.

In a local test, a two-second MP4 file had a black segment from 0 to 0.5 seconds. Before playback began, Chrome displayed a blue poster. At 0.125 seconds, the video turned black, and at 0.875 seconds, it changed to orange. FFmpeg's black frame detection confirmed the black segment from the start until 0.5 seconds for this exact file.

FFmpeg · Detect black sections using duration and brightness thresholds

Correct the output of the test at the end.

  1. If the file contains an unintended black frame, adjust the cut start point and verify the new export before publishing.
  2. If the start of the export is visible, do not make changes without cause. Verify which version of the player is being delivered and check whether playback or data retrieval fails at this point.
  3. After correction, check the stationary player and the actual start again.

Choose a recognizable thumbnail for the video

Load interruptions and missed frames differ

Topics

Sources and further reading

  1. https://html.spec.whatwg.org/multipage/media.html#the-video-element
  2. https://ffmpeg.org/ffmpeg-filters.html#blackdetect