Moviepy output video MP4 file Windows media player has no picture but only the sound problem solution

1. Problems

In the past 2 days, I used Moviepy to synthesize a video file. When I played it with windows media player, there was only sound but no picture, as shown in the picture: But it
insert image description here
can be played normally with a mobile phone player.

2. Problem positioning

The basic information of the file is as follows:
insert image description here
Look at the related information of the video:
insert image description here

You can see that there is no video width and height information in the file information in Windows. It seems that there is a problem with the video resolution information.

This video is generated using the code of " How to quickly make ppt into dubbing video courseware with Python ". The pictures that make up the video are exported from ppt to png files. Check the information of the pictures:

Guess you like

Origin blog.csdn.net/LaoYuanPython/article/details/128271719