Help Center/ Media Processing Center/ FAQs/ Upload/ How Do I Check for Source Media Anomalies?
Updated on 2026-02-28 GMT+08:00

How Do I Check for Source Media Anomalies?

Before uploading a source media file, you can use a tool to check source media exceptions, such as missing packaging headers and audio-video desynchronization.

The open-source FFmpeg tool is recommended for this purpose. For details about the commands, see Table 1.

Table 1 Checking for source media exceptions

Method

Command

Parsing video metadata

You can identify source anomalies by analyzing the execution logs.

ffprobe -i your_input.mp4

Parsing video package data

ffprobe -i your_input -show_packets -select_streams v

Parsing video frame data

ffprobe -i your_input -show_frames -select_streams v

Re-transcoding (or formatting) using FFmpeg

You can identify source anomalies by analyzing the execution logs.

ffmpeg -i your_input.mp4 your_output.mp4

Re-packaging using FFmpeg

You can identify source anomalies by analyzing the execution logs.

ffmpeg -i your_input -c copy your_output.mp4

Re-transcoding and audio resampling

The following commands can be used to rectify most of the common source anomalies.

ffmpeg -i your_input -c:v libx264 -b:v your_bitrate -af "aresample=async=1" your_output.mp4

Repairing source anomalies caused by excessive timebase values

ffmpeg -i your_input -c copy -video_track_timescale 1000 your_output.mp4