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.
|
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 |
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot