b76be665a3f54c16182567e20046958e90d0c391,deeplabcut/utils/auxfun_videos.py,,ShortenVideo,#Any#Any#Any#Any#Any#,33
Before Change
)
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(
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,
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 6
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