b76be665a3f54c16182567e20046958e90d0c391,deeplabcut/utils/auxfun_videos.py,,ShortenVideo,#Any#Any#Any#Any#Any#,33

Before Change



    Extracts (sub)video from minute 17 to 22 and and saves it in C:\\yourusername\\rig-95\\Videos as reachingvideo1brief.avi
    
    if outpath is None:
        vidpath = os.path.dirname(vname)
    else:
        vidpath = outpath

    // TODO check if those times exist...
    newfilename = os.path.join(
        vidpath, str(Path(vname).stem) + str(outsuffix) + str(Path(vname).suffix)
    )
    print("Slicing and saving to name", newfilename)
    command = f"ffmpeg -i {vname} -ss {start} -to {stop} -c:a copy {newfilename}"
    subprocess.call(command, shell=True)
    return str(newfilename)


def CropVideo(
    vname,

After Change



    Extracts (sub)video from minute 17 to 22 and and saves it in C:\\yourusername\\rig-95\\Videos as reachingvideo1brief.avi
    
    writer = VideoWriter(vname)
    return writer.shorten(start, stop, outsuffix, outpath)


def CropVideo(
    vname,
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 25

Instances


Project Name: AlexEMG/DeepLabCut
Commit Name: b76be665a3f54c16182567e20046958e90d0c391
Time: 2020-08-19
Author: 30733203+jeylau@users.noreply.github.com
File Name: deeplabcut/utils/auxfun_videos.py
Class Name:
Method Name: ShortenVideo


Project Name: AlexEMG/DeepLabCut
Commit Name: b76be665a3f54c16182567e20046958e90d0c391
Time: 2020-08-19
Author: 30733203+jeylau@users.noreply.github.com
File Name: deeplabcut/utils/auxfun_videos.py
Class Name:
Method Name: CropVideo


Project Name: AlexEMG/DeepLabCut
Commit Name: b76be665a3f54c16182567e20046958e90d0c391
Time: 2020-08-19
Author: 30733203+jeylau@users.noreply.github.com
File Name: deeplabcut/utils/auxfun_videos.py
Class Name:
Method Name: DownSampleVideo


Project Name: AlexEMG/DeepLabCut
Commit Name: b76be665a3f54c16182567e20046958e90d0c391
Time: 2020-08-19
Author: 30733203+jeylau@users.noreply.github.com
File Name: deeplabcut/utils/auxfun_videos.py
Class Name:
Method Name: ShortenVideo