Available in Classic and VPC
You might run into the following problems when using Video Player Enhancement. Find out causes and possible solutions.
Video stuttering and playback error
The video stutters or stops during player preview.
The video stutters.
Errors E0004 is displayed.
Cause
Encoding was improperly applied.
If the file has been called even once, the existing content cached in the Global Edge cache server may prevent the issue from being resolved.
Solution
Re-encode the video and perform a Global Edge CDN purge.
To encode, follow these steps:
-ffmpeg -fflags +discardcorrupt -i "%input_file%"
-vf "yadif=0:-1:0,scale=1980:1080"
-c:v libx264 -preset:v veryfast -crf 22
-movflags +faststart
--c:a aac -b:a 160k "%output_file%"
The following is a description for each field:
-fflags +discardcorrupt:this option ignores corrupted packets in the input file. It is useful when dealing with damaged files due to unstable Internet connection or failed storage.-vf "yadif=0:-1:0,scale=1980:1080": this option specifies video filters such as deinterlacing (yadif=0:-1:0) and resolution conversion (scale= 1980:1080).-c:v libx264 -preset:v veryfast -crf 22: this option allows you to encode the video using the mpeg-4 codec with the libx264 encoder. Set the quality to crf 22 (a lower value means higher quality and larger file size), and use the preset veryfast to determine encoding time and compression efficiency. Typically, veryfast is used.-movflags +faststart: this option allows you to move the moov atom, which contains metadata such as the size and duration of the MP4 video, to the beginning of the file for faster streaming playback.--c:a aac -b:a 160k: this option allows you to encode using the AAC codec in the audio codec specification section. Set the bitrate to 160k; for higher quality, specify 256k or similar values.
Note
If you're still having trouble finding what you need, click on the feedback icon and send us your thoughts and requests. We'll use your feedback to improve this guide.