Home > other >  Python on using OS. System (command)
Python on using OS. System (command)

Time:02-28

The import OS

Path_name='D: \ Pycharm \ django project jointly making \ muke_video_test \ django_video \ app/dashboard/temp_in/1614418867 _xiaozhupeiqi. Mp4'

Out_path='D: \ Pycharm \ django project jointly making \ muke_video_test \ django_video \ app/dashboard/temp_out xiaozhupeiqi'

The command='D: \ ffmpeg \ ffmpeg - 2021-02-23 - d5e1c653 git - 78 - essentials_build \ bin/ffmpeg - I copy {} {} - c. Mp4'. The format (path_name, out_path)

OS. The system (command)




Pycharm executes without errors, but did not realize the function of copy the video, and execute the statement in the command directly in the CMD can realize the replication,

Ask god to reassure!!!!!! I thank you very much
  • Related