You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
404B

  1. import json
  2. import time
  3. import subprocess as sp
  4. import ffmpeg
  5. import cv2
  6. import sys
  7. import random
  8. import numpy as np
  9. if __name__ == '__main__':
  10. command = ["ffmpeg",
  11. "-f", "concat",
  12. "-i", r"C:\Users\chenyukun\Desktop\shipin\aaa.txt",
  13. "-c", "copy",
  14. r"C:\Users\chenyukun\Desktop\shipin\aaaa.mp4"]
  15. p = sp.Popen(command, stdout=sp.PIPE)