Python CI template for EC500 Software Engineering
You need to install "ffmpeg" for this program. 'pip install ffmpeg' python 3.6
This program could convert an video to both 480p and 720p. And there are two functions named video720 and video480 do this job. Before running the program, you could change the path of your input video file then load it into the program. Then the program will creat two threads to encode the video, which means it will convert the video to 480p and 720p at the same time. After finishing its job, the program will also check the output information of these two output videos. The program could get the right duration time and compare them with the duration time of two outputs. If the duration time is not right, the program will return false.
When I try to generate as many as processes as I can, it could use 167% of CPU, which is 87% of all CPU usage.