spacepaste

  1.  
  2. # Old way is MUCH slower
  3. # # https://superuser.com/questions/1250900/freeze-last-frame-of-a-video-with-ffmpeg
  4. # args = ['ffmpeg',
  5. # '-f', 'lavfi',
  6. # '-i', 'nullsrc=s=' + getRes(fVideoStream) + ':d=' + str(freeze_s),
  7. # '-i', fVideoStream,
  8. # '-filter_complex', '[0:v][1:v]overlay[video]',
  9. # '-map', '[video]',
  10. # '-shortest',
  11. # fVideoStreamOut]
  12. #
  13. # subprocess.run(args, check=True)
  14.