In the project, some MP4 video files have sound but no picture. useinvisorThe software exports the video file to obtain the video information. The left side is the video information that can play normally, and the right side is the video information that has only sound but no pictureFound the problem of the video bit rate is too high, more than 3000, and no problem of the video bit rate is only about 1500, according to the search related to the problemCause of the problemVerify that it is caused by a coding problem.

Use FFmpeg to try transcoding rate below 2000 problem solved

The background uses FFmpeg to do video transcoding processing uniformly at the place where the video is uploaded

H.264 has 4 levels of graphics, including baseline, extended, main, and HIGH. Support I/P frames, only support Progressive and CAVLC; 2. Extended Profile: Advanced picture quality Support I/P/B/SP/SI frames, only support Progressive CAVLC; 3. I don't use my Main profile. Provides I/P/B frames, supports Progressive and Interlaced, and also supports CAVLC and CABAC support; E.g. < 1 > I have a High profile. 8x8 internal prediction, custom quantization, lossless video encoding and more YUV formats are added to the main Profile; H.264 Baseline Profile, Extended Profile, and Main Profile are all video sequences in 4:2:0 format (YUV) for 8-bit sample data. In the same configuration, the High Profile (HP) can reduce the bit rate by 10% compared to the Main profile (MP). The Baseline Profile is mainly applied to real-time communication, Main profile is mainly applied to streaming media, and High Profile is mainly applied to radio, television, and storage.Copy the code