try: //you need ffmpeg command line interface
//subprocess.call(["ffmpeg","-i",video[0],"-ss","00:00:00","-to","00:00:00.4","-c","copy",newvideo])
newvideo=deeplabcut.ShortenVideo(video[0],start="00:00:00",stop="00:00:00.4",outsuffix="short",outpath=os.path.join(cfg["project_path"],"videos"))
vname=Path(newvideo).stem
except: // if ffmpeg is broken
vname="brief"
newvideo=os.path.join(cfg["project_path"],"videos",vname+".mp4")
from moviepy.editor import VideoFileClip,VideoClip