<jupyter_start><jupyter_text>Simple script to noisily align the videos by hand (just get them to a starting place within a few seconds.)<jupyter_code>from __future__ import print_function, absolute_import, division, unicode_literals, with_statement # Python 2 compatibility

import os
import subprocess
import numpy as np 
data_loc = "/media/cgn/ seagate1tb/egocentric_conversations/"<jupyter_output><empty_output><jupyter_text>Generate code to be run for day1-day2 video<jupyter_code>for dayfolder in sorted([v for v in os.listdir(data_loc) if os.path.isdir(data_loc+v)]):
    base = data_loc + dayfolder + "/"
    for cfolder in sorted([z for z in os.listdir(base) if os.path.isdir(base+z)]):
        path = base + cfolder + "/"
        file_matrix = []
        for devicefolder in sorted([w for w in os.listdir(path) if os.path.isdir(path+w)]):
            subpath = path+devicefolder + "/"
            if os.path.isdir(subpath) and len(os.listdir(subpath)) > 0:
                files = [subpath+y for y in os.listdir(subpath) if y[0] != '.']
                files.sort(key=lambda x: os.stat(os.path.join(subpath, x)).st_mtime)
                file_matrix.append(files)

        if len(file_matrix) > 0:
            print("#", path)
            print()

            files_per_segment = [[row[i] for row in file_matrix] for i in range(len(file_matrix[0]))]

            for j, file_list in enumerate(files_per_segment):
                if j == 0:
                    print("s = [10.0, 11.1, 12.2] # How much to remove from front of clip")
                elif j == 1:
                    print("s = [ss - min(s) for ss in s] # How much to remove from front of clip")
                for i, f in enumerate(file_list):
                    cmd = "ffmpeg -ss 00:00:01 -i {f}.MP4 -c copy {f}_frontcut.MP4".format(f=f)
                    print('''cmd = "ffmpeg -ss 00:00:{{s}} -i '{f}.MP4' -map_channel 0.1.1 -map_channel 0.1.0 -c:v copy '{f}_frontcut.MP4' -y".format(s=s[{idx}])'''.format(f=f[:-4],idx=i))
        #             print('cmd = "vlc {f}"'.format(f=f))
                    print('out = subprocess.getoutput(cmd)')

                print()

            print("*"*80, "\n")<jupyter_output># /media/cgn/ seagate1tb/egocentric_conversations/day1/conversation1/

s = [10.0, 11.1, 12.2] # How much to remove from front of clip
cmd = "ffmpeg -ss 00:00:{s} -i '/media/cgn/ seagate1tb/egocentric_conversations/day1/conversation1/device1/2018_0718_051931_001.MP4' -map_channel 0.1.1 -map_channel 0.1.0 -c:v copy '/media/cgn/ seagate1tb/egocentric_conversations/day1/conversation1/device1/2018_0718_051931_001_frontcut.MP4' -y".format(s=s[0])
out = subprocess.getoutput(cmd)
cmd = "ffmpeg -ss 00:00:{s} -i '/media/cgn/ seagate1tb/egocentric_conversations/day1/conversation1/device2/2018_0718_051924_001.MP4' -map_channel 0.1.1 -map_channel 0.1.0 -c:v copy '/media/cgn/ seagate1tb/egocentric_conversations/day1/conversation1/device2/2018_0718_051924_001_frontcut.MP4' -y".format(s=s[1])
out = subprocess.getoutput(cmd)
cmd = "ffmpeg -ss 00:00:{s} -i '/media/cgn/ seagate1tb/egocentric_conversations/day1/conversation1/device3/2018_0718_051746_002.MP4' -map_channel 0.1.1 -map_channel 0.1.0 -c:v copy[...]<jupyter_text>Run code<jupyter_code># /media/cgn/ seagate1tb/egocentric_conversations/day1/conversation1/

s = [24, 19.3, 25] # How much to remove from front of clip
cmd = "ffmpeg -ss 00:00:{s} -i '/media/cgn/ seagate1tb/egocentric_conversations/day1/conversation1/device1/2018_0718_051931_001.MP4' -map_channel 0.1.1 -map_channel 0.1.0 -c:v copy '/media/cgn/ seagate1tb/egocentric_conversations/day1/conversation1/device1/2018_0718_051931_001_frontcut.MP4' -y".format(b=base, s=s[0])
out = subprocess.getoutput(cmd)
cmd = "ffmpeg -ss 00:00:{s} -i '/media/cgn/ seagate1tb/egocentric_conversations/day1/conversation1/device2/2018_0718_051924_001.MP4' -map_channel 0.1.1 -map_channel 0.1.0 -c:v copy '/media/cgn/ seagate1tb/egocentric_conversations/day1/conversation1/device2/2018_0718_051924_001_frontcut.MP4' -y".format(b=base, s=s[1])
out = subprocess.getoutput(cmd)
cmd = "ffmpeg -ss 00:00:{s} -i '/media/cgn/ seagate1tb/egocentric_conversations/day1/conversation1/device3/2018_0718_051746_002.MP4' -map_channel 0.1.1 -map_channel 0.1.0 -c:v copy '/media/cgn/ seagate1tb/egocentric_conversations/day1/conversation1/device3/2018_0718_051746_002_frontcut.MP4' -y".format(b=base, s=s[2])
out = subprocess.getoutput(cmd)

s = [ss - min(s) for ss in s] # How much to remove from front of clip
cmd = "ffmpeg -ss 00:00:{s} -i '/media/cgn/ seagate1tb/egocentric_conversations/day1/conversation1/device1/2018_0718_052432_002.MP4' -map_channel 0.1.1 -map_channel 0.1.0 -c:v copy '/media/cgn/ seagate1tb/egocentric_conversations/day1/conversation1/device1/2018_0718_052432_002_frontcut.MP4' -y".format(b=base, s=s[0])
out = subprocess.getoutput(cmd)
cmd = "ffmpeg -ss 00:00:{s} -i '/media/cgn/ seagate1tb/egocentric_conversations/day1/conversation1/device2/2018_0718_052425_002.MP4' -map_channel 0.1.1 -map_channel 0.1.0 -c:v copy '/media/cgn/ seagate1tb/egocentric_conversations/day1/conversation1/device2/2018_0718_052425_002_frontcut.MP4' -y".format(b=base, s=s[1])
out = subprocess.getoutput(cmd)
cmd = "ffmpeg -ss 00:00:{s} -i '/media/cgn/ seagate1tb/egocentric_conversations/day1/conversation1/device3/2018_0718_052247_003.MP4' -map_channel 0.1.1 -map_channel 0.1.0 -c:v copy '/media/cgn/ seagate1tb/egocentric_conversations/day1/conversation1/device3/2018_0718_052247_003_frontcut.MP4' -y".format(b=base, s=s[2])
out = subprocess.getoutput(cmd)

cmd = "ffmpeg -ss 00:00:{s} -i '/media/cgn/ seagate1tb/egocentric_conversations/day1/conversation1/device1/2018_0718_052933_003.MP4' -map_channel 0.1.1 -map_channel 0.1.0 -c:v copy '/media/cgn/ seagate1tb/egocentric_conversations/day1/conversation1/device1/2018_0718_052933_003_frontcut.MP4' -y".format(b=base, s=s[0])
out = subprocess.getoutput(cmd)
cmd = "ffmpeg -ss 00:00:{s} -i '/media/cgn/ seagate1tb/egocentric_conversations/day1/conversation1/device2/2018_0718_052926_003.MP4' -map_channel 0.1.1 -map_channel 0.1.0 -c:v copy '/media/cgn/ seagate1tb/egocentric_conversations/day1/conversation1/device2/2018_0718_052926_003_frontcut.MP4' -y".format(b=base, s=s[1])
out = subprocess.getoutput(cmd)
cmd = "ffmpeg -ss 00:00:{s} -i '/media/cgn/ seagate1tb/egocentric_conversations/day1/conversation1/device3/2018_0718_052748_004.MP4' -map_channel 0.1.1 -map_channel 0.1.0 -c:v copy '/media/cgn/ seagate1tb/egocentric_conversations/day1/conversation1/device3/2018_0718_052748_004_frontcut.MP4' -y".format(b=base, s=s[2])
out = subprocess.getoutput(cmd)

cmd = "ffmpeg -ss 00:00:{s} -i '/media/cgn/ seagate1tb/egocentric_conversations/day1/conversation1/device1/2018_0718_053435_004.MP4' -map_channel 0.1.1 -map_channel 0.1.0 -c:v copy '/media/cgn/ seagate1tb/egocentric_conversations/day1/conversation1/device1/2018_0718_053435_004_frontcut.MP4' -y".format(b=base, s=s[0])
out = subprocess.getoutput(cmd)
cmd = "ffmpeg -ss 00:00:{s} -i '/media/cgn/ seagate1tb/egocentric_conversations/day1/conversation1/device2/2018_0718_053427_004.MP4' -map_channel 0.1.1 -map_channel 0.1.0 -c:v copy '/media/cgn/ seagate1tb/egocentric_conversations/day1/conversation1/device2/2018_0718_053427_004_frontcut.MP4' -y".format(b=base, s=s[1])
out = subprocess.getoutput(cmd)
cmd = "ffmpeg -ss 00:00:{s} -i '/media/cgn/ seagate1tb/egocentric_conversations/day1/conversation1/device3/2018_0718_053250_005.MP4' -map_channel 0.1.1 -map_channel 0.1.0 -c:v copy '/media/cgn/ seagate1tb/egocentric_conversations/day1/conversation1/device3/2018_0718_053250_005_frontcut.MP4' -y".format(b=base, s=s[2])
out = subprocess.getoutput(cmd)

cmd = "ffmpeg -ss 00:00:{s} -i '/media/cgn/ seagate1tb/egocentric_conversations/day1/conversation1/device1/2018_0718_053936_005.MP4' -map_channel 0.1.1 -map_channel 0.1.0 -c:v copy '/media/cgn/ seagate1tb/egocentric_conversations/day1/conversation1/device1/2018_0718_053936_005_frontcut.MP4' -y".format(b=base, s=s[0])
out = subprocess.getoutput(cmd)
cmd = "ffmpeg -ss 00:00:{s} -i '/media/cgn/ seagate1tb/egocentric_conversations/day1/conversation1/device2/2018_0718_053928_005.MP4' -map_channel 0.1.1 -map_channel 0.1.0 -c:v copy '/media/cgn/ seagate1tb/egocentric_conversations/day1/conversation1/device2/2018_0718_053928_005_frontcut.MP4' -y".format(b=base, s=s[1])
out = subprocess.getoutput(cmd)
cmd = "ffmpeg -ss 00:00:{s} -i '/media/cgn/ seagate1tb/egocentric_conversations/day1/conversation1/device3/2018_0718_053751_006.MP4' -map_channel 0.1.1 -map_channel 0.1.0 -c:v copy '/media/cgn/ seagate1tb/egocentric_conversations/day1/conversation1/device3/2018_0718_053751_006_frontcut.MP4' -y".format(b=base, s=s[2])
out = subprocess.getoutput(cmd)

# /media/cgn/ seagate1tb/egocentric_conversations/day1/conversation2/

s = [34.3, 34.7, 32.2] # How much to remove from front of clip
cmd = "ffmpeg -ss 00:00:{s} -i '/media/cgn/ seagate1tb/egocentric_conversations/day1/conversation2/device1/2018_0718_054748_001.MP4' -map_channel 0.1.1 -map_channel 0.1.0 -c:v copy '/media/cgn/ seagate1tb/egocentric_conversations/day1/conversation2/device1/2018_0718_054748_001_frontcut.MP4' -y".format(b=base, s=s[0])
out = subprocess.getoutput(cmd)
cmd = "ffmpeg -ss 00:00:{s} -i '/media/cgn/ seagate1tb/egocentric_conversations/day1/conversation2/device2/2016_0429_134151_001.MP4' -map_channel 0.1.1 -map_channel 0.1.0 -c:v copy '/media/cgn/ seagate1tb/egocentric_conversations/day1/conversation2/device2/2016_0429_134151_001_frontcut.MP4' -y".format(b=base, s=s[1])
out = subprocess.getoutput(cmd)
cmd = "ffmpeg -ss 00:00:{s} -i '/media/cgn/ seagate1tb/egocentric_conversations/day1/conversation2/device3/2018_0718_054842_001.MP4' -map_channel 0.1.1 -map_channel 0.1.0 -c:v copy '/media/cgn/ seagate1tb/egocentric_conversations/day1/conversation2/device3/2018_0718_054842_001_frontcut.MP4' -y".format(b=base, s=s[2])
out = subprocess.getoutput(cmd)

s = [ss - min(s) for ss in s] # How much to remove from front of clip
cmd = "ffmpeg -ss 00:00:{s} -i '/media/cgn/ seagate1tb/egocentric_conversations/day1/conversation2/device1/2018_0718_055249_002.MP4' -map_channel 0.1.1 -map_channel 0.1.0 -c:v copy '/media/cgn/ seagate1tb/egocentric_conversations/day1/conversation2/device1/2018_0718_055249_002_frontcut.MP4' -y".format(b=base, s=s[0])
out = subprocess.getoutput(cmd)
cmd = "ffmpeg -ss 00:00:{s} -i '/media/cgn/ seagate1tb/egocentric_conversations/day1/conversation2/device2/2016_0429_134652_002.MP4' -map_channel 0.1.1 -map_channel 0.1.0 -c:v copy '/media/cgn/ seagate1tb/egocentric_conversations/day1/conversation2/device2/2016_0429_134652_002_frontcut.MP4' -y".format(b=base, s=s[1])
out = subprocess.getoutput(cmd)
cmd = "ffmpeg -ss 00:00:{s} -i '/media/cgn/ seagate1tb/egocentric_conversations/day1/conversation2/device3/2018_0718_055343_002.MP4' -map_channel 0.1.1 -map_channel 0.1.0 -c:v copy '/media/cgn/ seagate1tb/egocentric_conversations/day1/conversation2/device3/2018_0718_055343_002_frontcut.MP4' -y".format(b=base, s=s[2])
out = subprocess.getoutput(cmd)

cmd = "ffmpeg -ss 00:00:{s} -i '/media/cgn/ seagate1tb/egocentric_conversations/day1/conversation2/device1/2018_0718_055751_003.MP4' -map_channel 0.1.1 -map_channel 0.1.0 -c:v copy '/media/cgn/ seagate1tb/egocentric_conversations/day1/conversation2/device1/2018_0718_055751_003_frontcut.MP4' -y".format(b=base, s=s[0])
out = subprocess.getoutput(cmd)
cmd = "ffmpeg -ss 00:00:{s} -i '/media/cgn/ seagate1tb/egocentric_conversations/day1/conversation2/device2/2016_0429_135154_003.MP4' -map_channel 0.1.1 -map_channel 0.1.0 -c:v copy '/media/cgn/ seagate1tb/egocentric_conversations/day1/conversation2/device2/2016_0429_135154_003_frontcut.MP4' -y".format(b=base, s=s[1])
out = subprocess.getoutput(cmd)
cmd = "ffmpeg -ss 00:00:{s} -i '/media/cgn/ seagate1tb/egocentric_conversations/day1/conversation2/device3/2018_0718_055844_003.MP4' -map_channel 0.1.1 -map_channel 0.1.0 -c:v copy '/media/cgn/ seagate1tb/egocentric_conversations/day1/conversation2/device3/2018_0718_055844_003_frontcut.MP4' -y".format(b=base, s=s[2])
out = subprocess.getoutput(cmd)

cmd = "ffmpeg -ss 00:00:{s} -i '/media/cgn/ seagate1tb/egocentric_conversations/day1/conversation2/device1/2018_0718_060252_004.MP4' -map_channel 0.1.1 -map_channel 0.1.0 -c:v copy '/media/cgn/ seagate1tb/egocentric_conversations/day1/conversation2/device1/2018_0718_060252_004_frontcut.MP4' -y".format(b=base, s=s[0])
out = subprocess.getoutput(cmd)
cmd = "ffmpeg -ss 00:00:{s} -i '/media/cgn/ seagate1tb/egocentric_conversations/day1/conversation2/device2/2016_0429_135655_004.MP4' -map_channel 0.1.1 -map_channel 0.1.0 -c:v copy '/media/cgn/ seagate1tb/egocentric_conversations/day1/conversation2/device2/2016_0429_135655_004_frontcut.MP4' -y".format(b=base, s=s[1])
out = subprocess.getoutput(cmd)
cmd = "ffmpeg -ss 00:00:{s} -i '/media/cgn/ seagate1tb/egocentric_conversations/day1/conversation2/device3/2018_0718_060346_004.MP4' -map_channel 0.1.1 -map_channel 0.1.0 -c:v copy '/media/cgn/ seagate1tb/egocentric_conversations/day1/conversation2/device3/2018_0718_060346_004_frontcut.MP4' -y".format(b=base, s=s[2])
out = subprocess.getoutput(cmd)

cmd = "ffmpeg -ss 00:00:{s} -i '/media/cgn/ seagate1tb/egocentric_conversations/day1/conversation2/device1/2018_0718_060753_005.MP4' -map_channel 0.1.1 -map_channel 0.1.0 -c:v copy '/media/cgn/ seagate1tb/egocentric_conversations/day1/conversation2/device1/2018_0718_060753_005_frontcut.MP4' -y".format(b=base, s=s[0])
out = subprocess.getoutput(cmd)
cmd = "ffmpeg -ss 00:00:{s} -i '/media/cgn/ seagate1tb/egocentric_conversations/day1/conversation2/device2/2016_0429_140156_005.MP4' -map_channel 0.1.1 -map_channel 0.1.0 -c:v copy '/media/cgn/ seagate1tb/egocentric_conversations/day1/conversation2/device2/2016_0429_140156_005_frontcut.MP4' -y".format(b=base, s=s[1])
out = subprocess.getoutput(cmd)
cmd = "ffmpeg -ss 00:00:{s} -i '/media/cgn/ seagate1tb/egocentric_conversations/day1/conversation2/device3/2018_0718_060847_005.MP4' -map_channel 0.1.1 -map_channel 0.1.0 -c:v copy '/media/cgn/ seagate1tb/egocentric_conversations/day1/conversation2/device3/2018_0718_060847_005_frontcut.MP4' -y".format(b=base, s=s[2])
out = subprocess.getoutput(cmd)
# /media/cgn/ seagate1tb/egocentric_conversations/day1/conversation3/

s = [30.7, 29.7, 28.2] # How much to remove from front of clip
cmd = "ffmpeg -ss 00:00:{s} -i '/media/cgn/ seagate1tb/egocentric_conversations/day1/conversation3/device1/2018_0718_065626_006.MP4' -map_channel 0.1.1 -map_channel 0.1.0 -c:v copy '/media/cgn/ seagate1tb/egocentric_conversations/day1/conversation3/device1/2018_0718_065626_006_frontcut.MP4' -y".format(s=s[0])
out = subprocess.getoutput(cmd)
cmd = "ffmpeg -ss 00:00:{s} -i '/media/cgn/ seagate1tb/egocentric_conversations/day1/conversation3/device2/2016_0429_144841_006.MP4' -map_channel 0.1.1 -map_channel 0.1.0 -c:v copy '/media/cgn/ seagate1tb/egocentric_conversations/day1/conversation3/device2/2016_0429_144841_006_frontcut.MP4' -y".format(s=s[1])
out = subprocess.getoutput(cmd)
cmd = "ffmpeg -ss 00:00:{s} -i '/media/cgn/ seagate1tb/egocentric_conversations/day1/conversation3/device3/2018_0718_065617_006.MP4' -map_channel 0.1.1 -map_channel 0.1.0 -c:v copy '/media/cgn/ seagate1tb/egocentric_conversations/day1/conversation3/device3/2018_0718_065617_006_frontcut.MP4' -y".format(s=s[2])
out = subprocess.getoutput(cmd)

s = [ss - min(s) for ss in s] # How much to remove from front of clip
cmd = "ffmpeg -ss 00:00:{s} -i '/media/cgn/ seagate1tb/egocentric_conversations/day1/conversation3/device1/2018_0718_070127_007.MP4' -map_channel 0.1.1 -map_channel 0.1.0 -c:v copy '/media/cgn/ seagate1tb/egocentric_conversations/day1/conversation3/device1/2018_0718_070127_007_frontcut.MP4' -y".format(s=s[0])
out = subprocess.getoutput(cmd)
cmd = "ffmpeg -ss 00:00:{s} -i '/media/cgn/ seagate1tb/egocentric_conversations/day1/conversation3/device2/2016_0429_145342_007.MP4' -map_channel 0.1.1 -map_channel 0.1.0 -c:v copy '/media/cgn/ seagate1tb/egocentric_conversations/day1/conversation3/device2/2016_0429_145342_007_frontcut.MP4' -y".format(s=s[1])
out = subprocess.getoutput(cmd)
cmd = "ffmpeg -ss 00:00:{s} -i '/media/cgn/ seagate1tb/egocentric_conversations/day1/conversation3/device3/2018_0718_070118_007.MP4' -map_channel 0.1.1 -map_channel 0.1.0 -c:v copy '/media/cgn/ seagate1tb/egocentric_conversations/day1/conversation3/device3/2018_0718_070118_007_frontcut.MP4' -y".format(s=s[2])
out = subprocess.getoutput(cmd)

cmd = "ffmpeg -ss 00:00:{s} -i '/media/cgn/ seagate1tb/egocentric_conversations/day1/conversation3/device1/2018_0718_070629_008.MP4' -map_channel 0.1.1 -map_channel 0.1.0 -c:v copy '/media/cgn/ seagate1tb/egocentric_conversations/day1/conversation3/device1/2018_0718_070629_008_frontcut.MP4' -y".format(s=s[0])
out = subprocess.getoutput(cmd)
cmd = "ffmpeg -ss 00:00:{s} -i '/media/cgn/ seagate1tb/egocentric_conversations/day1/conversation3/device2/2016_0429_145843_008.MP4' -map_channel 0.1.1 -map_channel 0.1.0 -c:v copy '/media/cgn/ seagate1tb/egocentric_conversations/day1/conversation3/device2/2016_0429_145843_008_frontcut.MP4' -y".format(s=s[1])
out = subprocess.getoutput(cmd)
cmd = "ffmpeg -ss 00:00:{s} -i '/media/cgn/ seagate1tb/egocentric_conversations/day1/conversation3/device3/2018_0718_070619_008.MP4' -map_channel 0.1.1 -map_channel 0.1.0 -c:v copy '/media/cgn/ seagate1tb/egocentric_conversations/day1/conversation3/device3/2018_0718_070619_008_frontcut.MP4' -y".format(s=s[2])
out = subprocess.getoutput(cmd)

cmd = "ffmpeg -ss 00:00:{s} -i '/media/cgn/ seagate1tb/egocentric_conversations/day1/conversation3/device1/2018_0718_071130_009.MP4' -map_channel 0.1.1 -map_channel 0.1.0 -c:v copy '/media/cgn/ seagate1tb/egocentric_conversations/day1/conversation3/device1/2018_0718_071130_009_frontcut.MP4' -y".format(s=s[0])
out = subprocess.getoutput(cmd)
cmd = "ffmpeg -ss 00:00:{s} -i '/media/cgn/ seagate1tb/egocentric_conversations/day1/conversation3/device2/2016_0429_150344_009.MP4' -map_channel 0.1.1 -map_channel 0.1.0 -c:v copy '/media/cgn/ seagate1tb/egocentric_conversations/day1/conversation3/device2/2016_0429_150344_009_frontcut.MP4' -y".format(s=s[1])
out = subprocess.getoutput(cmd)
cmd = "ffmpeg -ss 00:00:{s} -i '/media/cgn/ seagate1tb/egocentric_conversations/day1/conversation3/device3/2018_0718_071121_009.MP4' -map_channel 0.1.1 -map_channel 0.1.0 -c:v copy '/media/cgn/ seagate1tb/egocentric_conversations/day1/conversation3/device3/2018_0718_071121_009_frontcut.MP4' -y".format(s=s[2])
out = subprocess.getoutput(cmd)
# /media/cgn/ seagate1tb/egocentric_conversations/day1/conversation4/

s = [9.75, 9.6, 9.6] # How much to remove from front of clip
cmd = "ffmpeg -ss 00:00:{s} -i '/media/cgn/ seagate1tb/egocentric_conversations/day1/conversation4/device1/2018_0718_072208_001.MP4' -map_channel 0.1.1 -map_channel 0.1.0 -c:v copy '/media/cgn/ seagate1tb/egocentric_conversations/day1/conversation4/device1/2018_0718_072208_001_frontcut.MP4' -y".format(s=s[0])
out = subprocess.getoutput(cmd)
cmd = "ffmpeg -ss 00:00:{s} -i '/media/cgn/ seagate1tb/egocentric_conversations/day1/conversation4/device2/2018_0718_072233_001.MP4' -map_channel 0.1.1 -map_channel 0.1.0 -c:v copy '/media/cgn/ seagate1tb/egocentric_conversations/day1/conversation4/device2/2018_0718_072233_001_frontcut.MP4' -y".format(s=s[1])
out = subprocess.getoutput(cmd)
cmd = "ffmpeg -ss 00:00:{s} -i '/media/cgn/ seagate1tb/egocentric_conversations/day1/conversation4/device3/2018_0718_072300_001.MP4' -map_channel 0.1.1 -map_channel 0.1.0 -c:v copy '/media/cgn/ seagate1tb/egocentric_conversations/day1/conversation4/device3/2018_0718_072300_001_frontcut.MP4' -y".format(s=s[2])
out = subprocess.getoutput(cmd)

s = [ss - min(s) for ss in s] # How much to remove from front of clip
cmd = "ffmpeg -ss 00:00:{s} -i '/media/cgn/ seagate1tb/egocentric_conversations/day1/conversation4/device1/2018_0718_072709_002.MP4' -map_channel 0.1.1 -map_channel 0.1.0 -c:v copy '/media/cgn/ seagate1tb/egocentric_conversations/day1/conversation4/device1/2018_0718_072709_002_frontcut.MP4' -y".format(s=s[0])
out = subprocess.getoutput(cmd)
cmd = "ffmpeg -ss 00:00:{s} -i '/media/cgn/ seagate1tb/egocentric_conversations/day1/conversation4/device2/2018_0718_072734_002.MP4' -map_channel 0.1.1 -map_channel 0.1.0 -c:v copy '/media/cgn/ seagate1tb/egocentric_conversations/day1/conversation4/device2/2018_0718_072734_002_frontcut.MP4' -y".format(s=s[1])
out = subprocess.getoutput(cmd)
cmd = "ffmpeg -ss 00:00:{s} -i '/media/cgn/ seagate1tb/egocentric_conversations/day1/conversation4/device3/2018_0718_072801_002.MP4' -map_channel 0.1.1 -map_channel 0.1.0 -c:v copy '/media/cgn/ seagate1tb/egocentric_conversations/day1/conversation4/device3/2018_0718_072801_002_frontcut.MP4' -y".format(s=s[2])
out = subprocess.getoutput(cmd)

cmd = "ffmpeg -ss 00:00:{s} -i '/media/cgn/ seagate1tb/egocentric_conversations/day1/conversation4/device1/2018_0718_073210_003.MP4' -map_channel 0.1.1 -map_channel 0.1.0 -c:v copy '/media/cgn/ seagate1tb/egocentric_conversations/day1/conversation4/device1/2018_0718_073210_003_frontcut.MP4' -y".format(s=s[0])
out = subprocess.getoutput(cmd)
cmd = "ffmpeg -ss 00:00:{s} -i '/media/cgn/ seagate1tb/egocentric_conversations/day1/conversation4/device2/2018_0718_073235_003.MP4' -map_channel 0.1.1 -map_channel 0.1.0 -c:v copy '/media/cgn/ seagate1tb/egocentric_conversations/day1/conversation4/device2/2018_0718_073235_003_frontcut.MP4' -y".format(s=s[1])
out = subprocess.getoutput(cmd)
cmd = "ffmpeg -ss 00:00:{s} -i '/media/cgn/ seagate1tb/egocentric_conversations/day1/conversation4/device3/2018_0718_073302_003.MP4' -map_channel 0.1.1 -map_channel 0.1.0 -c:v copy '/media/cgn/ seagate1tb/egocentric_conversations/day1/conversation4/device3/2018_0718_073302_003_frontcut.MP4' -y".format(s=s[2])
out = subprocess.getoutput(cmd)

cmd = "ffmpeg -ss 00:00:{s} -i '/media/cgn/ seagate1tb/egocentric_conversations/day1/conversation4/device1/2018_0718_073711_004.MP4' -map_channel 0.1.1 -map_channel 0.1.0 -c:v copy '/media/cgn/ seagate1tb/egocentric_conversations/day1/conversation4/device1/2018_0718_073711_004_frontcut.MP4' -y".format(s=s[0])
out = subprocess.getoutput(cmd)
cmd = "ffmpeg -ss 00:00:{s} -i '/media/cgn/ seagate1tb/egocentric_conversations/day1/conversation4/device2/2018_0718_073736_004.MP4' -map_channel 0.1.1 -map_channel 0.1.0 -c:v copy '/media/cgn/ seagate1tb/egocentric_conversations/day1/conversation4/device2/2018_0718_073736_004_frontcut.MP4' -y".format(s=s[1])
out = subprocess.getoutput(cmd)
cmd = "ffmpeg -ss 00:00:{s} -i '/media/cgn/ seagate1tb/egocentric_conversations/day1/conversation4/device3/2018_0718_073803_004.MP4' -map_channel 0.1.1 -map_channel 0.1.0 -c:v copy '/media/cgn/ seagate1tb/egocentric_conversations/day1/conversation4/device3/2018_0718_073803_004_frontcut.MP4' -y".format(s=s[2])
out = subprocess.getoutput(cmd)
# /media/cgn/ seagate1tb/egocentric_conversations/day1/conversation5/

s = [10.8, 10.65] # How much to remove from front of clip
cmd = "ffmpeg -ss 00:00:{s} -i '/media/cgn/ seagate1tb/egocentric_conversations/day1/conversation5/device1/2016_0429_155357_010.MP4' -map_channel 0.1.1 -map_channel 0.1.0 -c:v copy '/media/cgn/ seagate1tb/egocentric_conversations/day1/conversation5/device1/2016_0429_155357_010_frontcut.MP4' -y".format(s=s[0])
out = subprocess.getoutput(cmd)
cmd = "ffmpeg -ss 00:00:{s} -i '/media/cgn/ seagate1tb/egocentric_conversations/day1/conversation5/device2/2018_0718_080144_010.MP4' -map_channel 0.1.1 -map_channel 0.1.0 -c:v copy '/media/cgn/ seagate1tb/egocentric_conversations/day1/conversation5/device2/2018_0718_080144_010_frontcut.MP4' -y".format(s=s[1])
out = subprocess.getoutput(cmd)

s = [ss - min(s) for ss in s] # How much to remove from front of clip
cmd = "ffmpeg -ss 00:00:{s} -i '/media/cgn/ seagate1tb/egocentric_conversations/day1/conversation5/device1/2016_0429_155859_011.MP4' -map_channel 0.1.1 -map_channel 0.1.0 -c:v copy '/media/cgn/ seagate1tb/egocentric_conversations/day1/conversation5/device1/2016_0429_155859_011_frontcut.MP4' -y".format(s=s[0])
out = subprocess.getoutput(cmd)
cmd = "ffmpeg -ss 00:00:{s} -i '/media/cgn/ seagate1tb/egocentric_conversations/day1/conversation5/device2/2018_0718_080645_011.MP4' -map_channel 0.1.1 -map_channel 0.1.0 -c:v copy '/media/cgn/ seagate1tb/egocentric_conversations/day1/conversation5/device2/2018_0718_080645_011_frontcut.MP4' -y".format(s=s[1])
out = subprocess.getoutput(cmd)

cmd = "ffmpeg -ss 00:00:{s} -i '/media/cgn/ seagate1tb/egocentric_conversations/day1/conversation5/device1/2016_0429_160400_012.MP4' -map_channel 0.1.1 -map_channel 0.1.0 -c:v copy '/media/cgn/ seagate1tb/egocentric_conversations/day1/conversation5/device1/2016_0429_160400_012_frontcut.MP4' -y".format(s=s[0])
out = subprocess.getoutput(cmd)
cmd = "ffmpeg -ss 00:00:{s} -i '/media/cgn/ seagate1tb/egocentric_conversations/day1/conversation5/device2/2018_0718_081146_012.MP4' -map_channel 0.1.1 -map_channel 0.1.0 -c:v copy '/media/cgn/ seagate1tb/egocentric_conversations/day1/conversation5/device2/2018_0718_081146_012_frontcut.MP4' -y".format(s=s[1])
out = subprocess.getoutput(cmd)

cmd = "ffmpeg -ss 00:00:{s} -i '/media/cgn/ seagate1tb/egocentric_conversations/day1/conversation5/device1/2016_0429_160901_013.MP4' -map_channel 0.1.1 -map_channel 0.1.0 -c:v copy '/media/cgn/ seagate1tb/egocentric_conversations/day1/conversation5/device1/2016_0429_160901_013_frontcut.MP4' -y".format(s=s[0])
out = subprocess.getoutput(cmd)
cmd = "ffmpeg -ss 00:00:{s} -i '/media/cgn/ seagate1tb/egocentric_conversations/day1/conversation5/device2/2018_0718_081648_013.MP4' -map_channel 0.1.1 -map_channel 0.1.0 -c:v copy '/media/cgn/ seagate1tb/egocentric_conversations/day1/conversation5/device2/2018_0718_081648_013_frontcut.MP4' -y".format(s=s[1])
out = subprocess.getoutput(cmd)

cmd = "ffmpeg -ss 00:00:{s} -i '/media/cgn/ seagate1tb/egocentric_conversations/day1/conversation5/device1/2016_0429_161402_014.MP4' -map_channel 0.1.1 -map_channel 0.1.0 -c:v copy '/media/cgn/ seagate1tb/egocentric_conversations/day1/conversation5/device1/2016_0429_161402_014_frontcut.MP4' -y".format(s=s[0])
out = subprocess.getoutput(cmd)
cmd = "ffmpeg -ss 00:00:{s} -i '/media/cgn/ seagate1tb/egocentric_conversations/day1/conversation5/device2/2018_0718_082149_014.MP4' -map_channel 0.1.1 -map_channel 0.1.0 -c:v copy '/media/cgn/ seagate1tb/egocentric_conversations/day1/conversation5/device2/2018_0718_082149_014_frontcut.MP4' -y".format(s=s[1])
out = subprocess.getoutput(cmd)
# /media/cgn/ seagate1tb/egocentric_conversations/day2/conversation1/

s = [33.5, 33.9, 33.7] # How much to remove from front of clip
cmd = "ffmpeg -ss 00:00:{s} -i '/media/cgn/ seagate1tb/egocentric_conversations/day2/conversation1/device1/2018_0719_022158_001.MP4' -map_channel 0.1.1 -map_channel 0.1.0 -c:v copy '/media/cgn/ seagate1tb/egocentric_conversations/day2/conversation1/device1/2018_0719_022158_001_frontcut.MP4' -y".format(s=s[0])
out = subprocess.getoutput(cmd)
cmd = "ffmpeg -ss 00:00:{s} -i '/media/cgn/ seagate1tb/egocentric_conversations/day2/conversation1/device2/2018_0719_022250_001.MP4' -map_channel 0.1.1 -map_channel 0.1.0 -c:v copy '/media/cgn/ seagate1tb/egocentric_conversations/day2/conversation1/device2/2018_0719_022250_001_frontcut.MP4' -y".format(s=s[1])
out = subprocess.getoutput(cmd)
cmd = "ffmpeg -ss 00:00:{s} -i '/media/cgn/ seagate1tb/egocentric_conversations/day2/conversation1/device3/2018_0719_022223_001.MP4' -map_channel 0.1.1 -map_channel 0.1.0 -c:v copy '/media/cgn/ seagate1tb/egocentric_conversations/day2/conversation1/device3/2018_0719_022223_001_frontcut.MP4' -y".format(s=s[2])
out = subprocess.getoutput(cmd)

s = [ss - min(s) for ss in s] # How much to remove from front of clip
cmd = "ffmpeg -ss 00:00:{s} -i '/media/cgn/ seagate1tb/egocentric_conversations/day2/conversation1/device1/2018_0719_022659_002.MP4' -map_channel 0.1.1 -map_channel 0.1.0 -c:v copy '/media/cgn/ seagate1tb/egocentric_conversations/day2/conversation1/device1/2018_0719_022659_002_frontcut.MP4' -y".format(s=s[0])
out = subprocess.getoutput(cmd)
cmd = "ffmpeg -ss 00:00:{s} -i '/media/cgn/ seagate1tb/egocentric_conversations/day2/conversation1/device2/2018_0719_022751_002.MP4' -map_channel 0.1.1 -map_channel 0.1.0 -c:v copy '/media/cgn/ seagate1tb/egocentric_conversations/day2/conversation1/device2/2018_0719_022751_002_frontcut.MP4' -y".format(s=s[1])
out = subprocess.getoutput(cmd)
cmd = "ffmpeg -ss 00:00:{s} -i '/media/cgn/ seagate1tb/egocentric_conversations/day2/conversation1/device3/2018_0719_022724_002.MP4' -map_channel 0.1.1 -map_channel 0.1.0 -c:v copy '/media/cgn/ seagate1tb/egocentric_conversations/day2/conversation1/device3/2018_0719_022724_002_frontcut.MP4' -y".format(s=s[2])
out = subprocess.getoutput(cmd)

cmd = "ffmpeg -ss 00:00:{s} -i '/media/cgn/ seagate1tb/egocentric_conversations/day2/conversation1/device1/2018_0719_023201_003.MP4' -map_channel 0.1.1 -map_channel 0.1.0 -c:v copy '/media/cgn/ seagate1tb/egocentric_conversations/day2/conversation1/device1/2018_0719_023201_003_frontcut.MP4' -y".format(s=s[0])
out = subprocess.getoutput(cmd)
cmd = "ffmpeg -ss 00:00:{s} -i '/media/cgn/ seagate1tb/egocentric_conversations/day2/conversation1/device2/2018_0719_023252_003.MP4' -map_channel 0.1.1 -map_channel 0.1.0 -c:v copy '/media/cgn/ seagate1tb/egocentric_conversations/day2/conversation1/device2/2018_0719_023252_003_frontcut.MP4' -y".format(s=s[1])
out = subprocess.getoutput(cmd)
cmd = "ffmpeg -ss 00:00:{s} -i '/media/cgn/ seagate1tb/egocentric_conversations/day2/conversation1/device3/2018_0719_023226_003.MP4' -map_channel 0.1.1 -map_channel 0.1.0 -c:v copy '/media/cgn/ seagate1tb/egocentric_conversations/day2/conversation1/device3/2018_0719_023226_003_frontcut.MP4' -y".format(s=s[2])
out = subprocess.getoutput(cmd)

cmd = "ffmpeg -ss 00:00:{s} -i '/media/cgn/ seagate1tb/egocentric_conversations/day2/conversation1/device1/2018_0719_023702_004.MP4' -map_channel 0.1.1 -map_channel 0.1.0 -c:v copy '/media/cgn/ seagate1tb/egocentric_conversations/day2/conversation1/device1/2018_0719_023702_004_frontcut.MP4' -y".format(s=s[0])
out = subprocess.getoutput(cmd)
cmd = "ffmpeg -ss 00:00:{s} -i '/media/cgn/ seagate1tb/egocentric_conversations/day2/conversation1/device2/2018_0719_023753_004.MP4' -map_channel 0.1.1 -map_channel 0.1.0 -c:v copy '/media/cgn/ seagate1tb/egocentric_conversations/day2/conversation1/device2/2018_0719_023753_004_frontcut.MP4' -y".format(s=s[1])
out = subprocess.getoutput(cmd)
cmd = "ffmpeg -ss 00:00:{s} -i '/media/cgn/ seagate1tb/egocentric_conversations/day2/conversation1/device3/2018_0719_023727_004.MP4' -map_channel 0.1.1 -map_channel 0.1.0 -c:v copy '/media/cgn/ seagate1tb/egocentric_conversations/day2/conversation1/device3/2018_0719_023727_004_frontcut.MP4' -y".format(s=s[2])
out = subprocess.getoutput(cmd)

cmd = "ffmpeg -ss 00:00:{s} -i '/media/cgn/ seagate1tb/egocentric_conversations/day2/conversation1/device1/2018_0719_024203_005.MP4' -map_channel 0.1.1 -map_channel 0.1.0 -c:v copy '/media/cgn/ seagate1tb/egocentric_conversations/day2/conversation1/device1/2018_0719_024203_005_frontcut.MP4' -y".format(s=s[0])
out = subprocess.getoutput(cmd)
cmd = "ffmpeg -ss 00:00:{s} -i '/media/cgn/ seagate1tb/egocentric_conversations/day2/conversation1/device2/2018_0719_024254_005.MP4' -map_channel 0.1.1 -map_channel 0.1.0 -c:v copy '/media/cgn/ seagate1tb/egocentric_conversations/day2/conversation1/device2/2018_0719_024254_005_frontcut.MP4' -y".format(s=s[1])
out = subprocess.getoutput(cmd)
cmd = "ffmpeg -ss 00:00:{s} -i '/media/cgn/ seagate1tb/egocentric_conversations/day2/conversation1/device3/2018_0719_024228_005.MP4' -map_channel 0.1.1 -map_channel 0.1.0 -c:v copy '/media/cgn/ seagate1tb/egocentric_conversations/day2/conversation1/device3/2018_0719_024228_005_frontcut.MP4' -y".format(s=s[2])
out = subprocess.getoutput(cmd)
# /media/cgn/ seagate1tb/egocentric_conversations/day2/conversation2/

s = [44.9, 44.2] # How much to remove from front of clip
cmd = "ffmpeg -ss 00:00:{s} -i '/media/cgn/ seagate1tb/egocentric_conversations/day2/conversation2/device1/2018_0719_030225_001.MP4' -map_channel 0.1.1 -map_channel 0.1.0 -c:v copy '/media/cgn/ seagate1tb/egocentric_conversations/day2/conversation2/device1/2018_0719_030225_001_frontcut.MP4' -y".format(s=s[0])
out = subprocess.getoutput(cmd)
cmd = "ffmpeg -ss 00:00:{s} -i '/media/cgn/ seagate1tb/egocentric_conversations/day2/conversation2/device2/2018_0719_030041_002.MP4' -map_channel 0.1.1 -map_channel 0.1.0 -c:v copy '/media/cgn/ seagate1tb/egocentric_conversations/day2/conversation2/device2/2018_0719_030041_002_frontcut.MP4' -y".format(s=s[1])
out = subprocess.getoutput(cmd)

s = [ss - min(s) for ss in s] # How much to remove from front of clip
cmd = "ffmpeg -ss 00:00:{s} -i '/media/cgn/ seagate1tb/egocentric_conversations/day2/conversation2/device1/2018_0719_030726_002.MP4' -map_channel 0.1.1 -map_channel 0.1.0 -c:v copy '/media/cgn/ seagate1tb/egocentric_conversations/day2/conversation2/device1/2018_0719_030726_002_frontcut.MP4' -y".format(s=s[0])
out = subprocess.getoutput(cmd)
cmd = "ffmpeg -ss 00:00:{s} -i '/media/cgn/ seagate1tb/egocentric_conversations/day2/conversation2/device2/2018_0719_030542_003.MP4' -map_channel 0.1.1 -map_channel 0.1.0 -c:v copy '/media/cgn/ seagate1tb/egocentric_conversations/day2/conversation2/device2/2018_0719_030542_003_frontcut.MP4' -y".format(s=s[1])
out = subprocess.getoutput(cmd)

cmd = "ffmpeg -ss 00:00:{s} -i '/media/cgn/ seagate1tb/egocentric_conversations/day2/conversation2/device1/2018_0719_031227_003.MP4' -map_channel 0.1.1 -map_channel 0.1.0 -c:v copy '/media/cgn/ seagate1tb/egocentric_conversations/day2/conversation2/device1/2018_0719_031227_003_frontcut.MP4' -y".format(s=s[0])
out = subprocess.getoutput(cmd)
cmd = "ffmpeg -ss 00:00:{s} -i '/media/cgn/ seagate1tb/egocentric_conversations/day2/conversation2/device2/2018_0719_031043_004.MP4' -map_channel 0.1.1 -map_channel 0.1.0 -c:v copy '/media/cgn/ seagate1tb/egocentric_conversations/day2/conversation2/device2/2018_0719_031043_004_frontcut.MP4' -y".format(s=s[1])
out = subprocess.getoutput(cmd)

cmd = "ffmpeg -ss 00:00:{s} -i '/media/cgn/ seagate1tb/egocentric_conversations/day2/conversation2/device1/2018_0719_031728_004.MP4' -map_channel 0.1.1 -map_channel 0.1.0 -c:v copy '/media/cgn/ seagate1tb/egocentric_conversations/day2/conversation2/device1/2018_0719_031728_004_frontcut.MP4' -y".format(s=s[0])
out = subprocess.getoutput(cmd)
cmd = "ffmpeg -ss 00:00:{s} -i '/media/cgn/ seagate1tb/egocentric_conversations/day2/conversation2/device2/2018_0719_031544_005.MP4' -map_channel 0.1.1 -map_channel 0.1.0 -c:v copy '/media/cgn/ seagate1tb/egocentric_conversations/day2/conversation2/device2/2018_0719_031544_005_frontcut.MP4' -y".format(s=s[1])
out = subprocess.getoutput(cmd)
# for dayfolder in sorted([v for v in os.listdir(data_loc) if os.path.isdir(data_loc+v)]):
#     base = data_loc + dayfolder + "/"
#     for cfolder in sorted([z for z in os.listdir(base) if os.path.isdir(base+z)]):
#         path = base + cfolder + "/"        
#         files = [path+y for y in os.listdir(path) if y[-4:] == ".MP4"]
#         if len(files) > 0:
#             files.sort(key=lambda x: os.stat(os.path.join(path, x)).st_mtime)            
#             print("#", path)
#             print()

#             for i, f in enumerate(files):
#                 if i == 0:
#                     print("s = [10.0, 11.1, 12.2] # How much to remove from front of clip")
#                 cmd = "ffmpeg -ss 00:00:01 -i {f}.MP4 -c copy {f}_frontcut.MP4".format(f=f)
#                 print('''cmd = "ffmpeg -ss 00:00:{{s}} -i '{f}.MP4' -map_channel 0.1.1 -map_channel 0.1.0 -c:v copy '{f}_frontcut.MP4' -y".format(s=s[{idx}])'''.format(f=f[:-4],idx=i))
#     #             print('cmd = "vlc {f}"'.format(f=f))
#                 print('out = subprocess.getoutput(cmd)')

#                 print()

#             print("*"*80, "\n")<jupyter_output><empty_output><jupyter_text>Rename all files<jupyter_code>data_loc = "/media/cgn/ seagate1tb/egocentric_conversations/"
d = 0
for dayfolder in sorted([v for v in os.listdir(data_loc) if (os.path.isdir(data_loc+v) and v[:3] == 'day')]):
    d += 1
    base = data_loc + dayfolder + "/"
    c = 0
    for cfolder in sorted([z for z in os.listdir(base) if (os.path.isdir(base+z) and z[:12] == 'conversation')]):
        c += 1
        path = base + cfolder + "/"  
        file_matrix = []
        for devicefolder in sorted([w for w in os.listdir(path) if (os.path.isdir(path+w) and w[:6] == 'device')]):
            subpath = path+devicefolder + "/"
            if os.path.isdir(subpath) and len(os.listdir(subpath)) > 0:
                files = [subpath+y for y in os.listdir(subpath) if y[0] != '.']
                files.sort(key=lambda x: os.stat(os.path.join(subpath, x)).st_mtime)
                file_matrix.append(files)

        if len(file_matrix) > 0:
            print()

            files_per_segment = [[row[i] for row in file_matrix] for i in range(len(file_matrix[0]))]
            
            part = 0
            for file_list in files_per_segment:
                part += 1
                p=0
                for f in file_list:
                    p += 1
                    cmd = "mv '{f}' '{l}day_{d}__con_{c}__person_{p}_part{part}.MP4'".format(f=f,d=d,c=c,p=p,part=part,l=data_loc)
                    out = subprocess.getoutput(cmd)<jupyter_output><empty_output><jupyter_text>Rename all files to standard format of vid_1__day_1__con_1__person_1  Flip left and right audio channels for the rest of the files (those with a single part)<jupyter_code>for vid, f in enumerate(sorted([u for u in os.listdir(data_loc) if ('day' in f and '_con_' in f and '_person_' in u)])):
    if '_part' in f:
        cmd = "mv '{d}{f}' '{d}vid_{vid}__{f}'".format(d=data_loc, f=f, vid=str(vid+1).zfill(3))
        print(cmd, flush=True)
        out = subprocess.getoutput(cmd)
    else:
        cmd = "ffmpeg -i '{d}{f}' -map_channel 0.1.1 -map_channel 0.1.0 -c:v copy '{d}vid_{vid}__{f}'".format(d=data_loc, f=f, vid=str(vid+1).zfill(3))
        print(cmd, flush=True)
        out = subprocess.getoutput(cmd)
    #     os.remove(data_loc+f)<jupyter_output>mv '/media/cgn/ seagate1tb/egocentric_conversations/day_1__con_1__person_1_part1.MP4' '/media/cgn/ seagate1tb/egocentric_conversations/vid_001__day_1__con_1__person_1_part1.MP4'
mv '/media/cgn/ seagate1tb/egocentric_conversations/day_1__con_1__person_1_part2.MP4' '/media/cgn/ seagate1tb/egocentric_conversations/vid_002__day_1__con_1__person_1_part2.MP4'
mv '/media/cgn/ seagate1tb/egocentric_conversations/day_1__con_1__person_1_part3.MP4' '/media/cgn/ seagate1tb/egocentric_conversations/vid_003__day_1__con_1__person_1_part3.MP4'
mv '/media/cgn/ seagate1tb/egocentric_conversations/day_1__con_1__person_1_part4.MP4' '/media/cgn/ seagate1tb/egocentric_conversations/vid_004__day_1__con_1__person_1_part4.MP4'
mv '/media/cgn/ seagate1tb/egocentric_conversations/day_1__con_1__person_1_part5.MP4' '/media/cgn/ seagate1tb/egocentric_conversations/vid_005__day_1__con_1__person_1_part5.MP4'
mv '/media/cgn/ seagate1tb/egocentric_conversations/day_1__con_1__person_2_part1.MP4' '/media/cgn/ seagate1tb/[...]
{'fraction_non_alphanumeric': 0.14544990427568602, 'fraction_numerical': 0.13289087428206764, 'mean_word_length': 4.857655502392345, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 24, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '5', 'dir': 'jupyter-structured-clean-dedup', 'id': '400309', 'license': 'MIT', 'n_tokens_mistral': 19280, 'n_tokens_neox': 16831, 'n_words': 2370, 'path': 'paper_experiments_work_log/egocom_dataset_creation/manual_trimming_and_aligning_start_time/manually_align_start.ipynb', 'repo_name': 'cgnorthcutt/EgoCom-Dataset', 'size': '39175'}