672 KiB
672 KiB
In [5]:
import os
from pathlib import Path
import numpy as np
import json
np.set_printoptions(precision=2, suppress=True)
from pathlib import Path
import numpy as np
# Importing packages
import matplotlib.pyplot as plt
%matplotlib inline
from jupyterthemes import jtplot
jtplot.style(grid=False)
pose_select = [0, 2, 5, 3, 6, 4, 7]
pose_weight = [1, 1, 1, 5, 5, 10, 10]
# filter by windows
def filter_peaks(x, input_peaks, nwind= 1*50):
peaks = input_peaks.copy()
peaks_filter = []
i = 1
prev_idx = peaks[0]
while i < len(peaks):
cur_idx = peaks[i]
# filter peak
while cur_idx - prev_idx <= nwind and i < len(peaks):
# compare ssim
if x[cur_idx] > x[prev_idx]:
prev_idx = cur_idx
# next
i += 1
if i < len(peaks):
cur_idx = peaks[i]
else:
break
# update
i += 1
# add to
peaks_filter.append(prev_idx)
prev_idx = cur_idx
# last value
if cur_idx - peaks_filter[-1] > nwind:
peaks_filter.append(prev_idx)
# peaks_filter.append(prev_idx)
return peaks_filter
def get_landmarks(idx, path_ldmks):
# get lmd_distance
path_json = path_ldmks.joinpath(f"frame-{idx:06d}_keypoints.json")
dict_json = json.loads(open(str(path_json), 'r').read())['people']
data_ldmk_pose = np.array(dict_json[0]["pose_keypoints"]).reshape(-1, 3)
# data_ldmk_face = np.array(dict_json[0]["face_keypoints"]).reshape(-1, 3)
# select & concate pose
data_ldmk_pose = data_ldmk_pose[pose_select, :2] # COCO-18 body pose
# data_ldmk_pose = data_ldmk_pose[:, :2] # 18 body pose
# data_ldmk_face = data_ldmk_face[:17, :2] # 70 landmarks pose
# data_ldmk = np.concatenate([data_ldmk_pose, data_ldmk_face], axis=0) # (88, 2)
# print(data_ldmk.shape)
data_ldmk = data_ldmk_pose
return data_ldmk In [49]:
# fname = "4R3A0156"
fname = "4R3A0204" # bad data
path_root = Path("/mfs/lsen/DATA/Actor6/bg/processing2_0810")
path_video = path_root.joinpath(fname, "video")
path_ldmks = path_root.joinpath(fname, "openpose")
path_video.mkdir(parents=True, exist_ok=True)
path_frame = path_root.joinpath(fname, "frames")In [ ]:
vpath_ldmks = sorted(path_ldmks.glob("frame-*_keypoints.json"), reverse=False)
# load pose
total_ldmks = []
for idx, ipath_ldmk in enumerate(vpath_ldmks):
if idx % 500 ==0: print(f"\t processing... {idx:05d}-th json ")
idata_peak = get_landmarks(idx, path_ldmks)
total_ldmks.append(idata_peak)
# print(idata_peak.shape)
total_ldmks = np.stack(total_ldmks, axis=0)
path_save_total = path_video.joinpath("openpose_total.npy")
np.save(path_save_total, total_ldmks) # (nseqs, N, 2)
print(total_ldmks.shape)In [4]:
# get velocity
velocity = total_ldmks[1:] - total_ldmks[:-1] # (8321, 7, 2)
print(velocity.shape)
distance = np.sqrt(velocity[..., 0]**2 + velocity[..., 1]**2 ) # (8321, 7)
print(distance.shape)
pose_weight = [1, 1, 1, 5, 5, 10, 10]
weight_norm = np.array([pose_weight]) / np.sum(pose_weight) # (1, 7)
print(weight_norm.shape)
distance = distance * weight_norm # (8321, 7)
distance = np.mean(distance, axis=1) # (N) -> 1
print(distance.shape)(8320, 7, 2) (8320, 7) (1, 7) (8320,)
In [11]:
x = - distance[::10]
height = -10
# Plot a simple line chart without any feature
plt.figure(figsize=(30,10))
plt.plot(range(x.shape[0]), x)
plt.plot(range(x.shape[0]), np.full(x.shape, height))
plt.ylim(-1, 0.1)
plt.show()In [21]:
# 获取一些候选Reference帧
# (1)windows窗内的 max velocity < 0.1
nwindow = int(0.1 * 50) # 0.5s
max_threold = 0.1
candidate_reference = set()
for i in range(nwindow//2, len(distance)-nwindow//2):
if max(distance[i-nwindow//2 : i+nwindow//2]) < max_threold:
_ = [candidate_reference.add(i) for i in range(i-nwindow//2, i+nwindow//2) ]
candidate_reference = sorted(list(candidate_reference))
print(f"size = {len(candidate_reference)}, ratio = {100*len(candidate_reference) / len(distance)} % ")
print(candidate_reference[:100])
print(distance[candidate_reference[:100]])
size = 990, ratio = 11.899038461538462 % [32, 33, 34, 35, 36, 37, 38, 39, 40, 44, 45, 46, 47, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 119, 120, 121, 122, 123, 124, 125, 126, 131, 132, 133, 134, 135, 145, 146, 147, 148, 149, 317, 318, 319, 320, 321, 341, 342, 343, 344, 345, 346, 350, 351, 352, 353, 354, 355, 356, 357, 358, 360, 361, 362, 363, 364, 365, 384, 385, 386, 387, 407, 408, 409, 410, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 639, 640, 641, 642] [0.03 0. 0.03 0.01 0.01 0.03 0. 0.01 0.01 0.01 0.01 0.01 0. 0. 0. 0. 0. 0. 0.01 0. 0. 0.01 0. 0. 0.03 0. 0. 0. 0. 0. 0. 0.01 0.01 0. 0. 0. 0. 0. 0. 0.01 0.01 0.01 0.05 0. 0.05 0. 0. 0. 0.01 0.02 0. 0. 0.01 0.03 0.03 0.03 0.03 0.01 0.01 0.01 0.01 0. 0.02 0. 0.03 0. 0. 0. 0.01 0. 0. 0. 0.01 0. 0. 0.05 0.03 0. 0.01 0.01 0.03 0. 0. 0. 0.02 0.01 0.01 0.03 0.01 0. 0. 0. 0.01 0. 0. 0. 0.01 0. 0.02 0. ]
In [23]:
# 根据候选帧 去计算一个平均的帧
candidate_ldmks = total_ldmks[candidate_reference] # (nseqs, 7, 2)
mean_ldmks = np.mean(candidate_ldmks, axis=0) # (7, 2)
print(mean_ldmks.shape)
(7, 2)
In [24]:
# 根据这个平均值去计算,每一帧与其的相似度 (用 cos similarity)
# cacluate LMD-smilirity
total_LMD = []
vpath_ldmks = sorted(path_ldmks.glob("frame-*_keypoints.json"), reverse=False)
for k in range(len(vpath_ldmks)):
if k % 500 ==0: print(f"\t processing... {k:05d}-th json ")
kdata_ldmk = get_landmarks(k, path_ldmks)
# calculate LMD
idiff = (kdata_ldmk - mean_ldmks) * (kdata_ldmk - mean_ldmks) # (N, 2)
idiff = np.sqrt( idiff[:, 0] + idiff[:, 1]) * np.array(pose_weight) # (N, )
idistance = idiff.sum() / np.sum(pose_weight) # (N) -> 1
total_LMD.append(idistance)
# print(idistance)
# save
total_LMD = np.array(total_LMD)
path_save = path_video.joinpath(f"lmd_ref_mean.npy")
np.save(path_save, np.array(total_LMD))
print(f"total_LMD shape = {total_LMD.shape}, save to > {path_save}")processing... 00000-th json processing... 00500-th json processing... 01000-th json processing... 01500-th json processing... 02000-th json processing... 02500-th json processing... 03000-th json processing... 03500-th json processing... 04000-th json processing... 04500-th json processing... 05000-th json processing... 05500-th json processing... 06000-th json processing... 06500-th json processing... 07000-th json processing... 07500-th json processing... 08000-th json total_LMD shape = (8321,), save to > /mfs/lsen/DATA/Actor6/bg/processing2_0810/4R3A0204/video/lmd_ref_mean.npy
In [26]:
x = - total_LMD
height = -10
# Plot a simple line chart without any feature
plt.figure(figsize=(30,10))
plt.plot(range(x.shape[0]), x)
plt.plot(range(x.shape[0]), np.full(x.shape, height))
plt.ylim(-400, 1)
plt.show()In [44]:
# 找一些最佳的点 (连续不动的地方)
candidate_reference_update = []
i = 0
while i < len(candidate_reference)-1:
idx_frame_curr = candidate_reference[i]
idx_frame_next = candidate_reference[i+1]
min_idx, min_lmd = idx_frame_curr, total_LMD[idx_frame_curr]
while i < len(candidate_reference) -1 and idx_frame_next - idx_frame_curr < nwindow * 3 : # 连续index
idx_frame_curr = candidate_reference[i]
idx_frame_next = candidate_reference[i+1]
if total_LMD[idx_frame_next] < min_lmd:
min_idx, min_lmd = idx_frame_next, total_LMD[idx_frame_next]
i += 1
candidate_reference_update.append(min_idx)
i += 1
print("candidate_reference_update size = ", len(candidate_reference_update))
candidate_reference_update size = 71
In [46]:
x = - total_LMD
height = -10
peaks = candidate_reference_update
# Plot a simple line chart without any feature
plt.figure(figsize=(30,10))
plt.plot(range(x.shape[0]), x)
plt.plot(range(x.shape[0]), np.full(x.shape, height))
plt.ylim(-50, 1)
plt.plot(peaks, x[peaks], "o", color="r", label="peaks")
plt.xticks(peaks,rotation=90)
plt.show()In [47]:
import tempfile
import os
def concate_video(path_frames, idx_beg, idx_end, path_save):
# write to a input.txt
file_tmp = tempfile.NamedTemporaryFile(suffix='.txt')
files = [ str(path_frames.joinpath(f"frame-{i:06d}.jpg")) for i in range(idx_beg, idx_end)]
with open(file_tmp.name, 'w') as f:
for ifiles in files:
f.write(f"file {ifiles} \n")
# with open(file_tmp.name, 'r') as f:
# read = f.readlines()
# print(read)
# concate to a video
cmd = f"ffmpeg -y -r 50 -f concat -safe 0 -i {str(file_tmp.name)} -c:v libx264 -pix_fmt yuv420p -loglevel error {str(path_save)}"
print(cmd)
os.system(cmd)
print(f"frame=[{idx_beg},{idx_end}] duration={(idx_end - idx_beg)/50}s. save video to {path_save}")
In [50]:
# cut video
ipath_video_save = path_video.joinpath(f"video_split_ref_mean_update")
ipath_video_save.mkdir(parents=True, exist_ok=True)
peaks_filter = candidate_reference_update
# ipath_video_log = path_video.joinpath(f"video_split_ref_mean2.manifest")
# dict_manifest = {}
for i in range(0, len(peaks_filter)-1):
# if i > 15: break
idx_beg = peaks_filter[i]
idx_end = peaks_filter[i+1]
nsize = idx_end - idx_beg + 1
# filter small video
if nsize < 50 * 1: continue # < 1s
duration = nsize/50
duration_pad = nsize//50 + 1
nframe_pad = duration_pad * 50 - nsize
print(f"frame=[{idx_beg},{idx_end}] nframes = {nsize}, duration={duration}, duration_pad = {duration_pad}, need padding {nframe_pad / 2}")
# make 32 padding
# resampling
ipath_save = ipath_video_save.joinpath(f"split_{i:02d}_{idx_beg:05d}_{idx_end:05d}.mp4")
concate_video(path_frame, idx_beg, idx_end, ipath_save)frame=[119,317] nframes = 199, duration=3.98, duration_pad = 4, need padding 0.5 ffmpeg -y -r 50 -f concat -safe 0 -i /tmp/tmpq_ahunam.txt -c:v libx264 -pix_fmt yuv420p -loglevel error /mfs/lsen/DATA/Actor6/bg/processing2_0810/4R3A0204/video/video_split_ref_mean_update/split_01_00119_00317.mp4 frame=[119,317] duration=3.96s. save video to /mfs/lsen/DATA/Actor6/bg/processing2_0810/4R3A0204/video/video_split_ref_mean_update/split_01_00119_00317.mp4 frame=[321,384] nframes = 64, duration=1.28, duration_pad = 2, need padding 18.0 ffmpeg -y -r 50 -f concat -safe 0 -i /tmp/tmpsjtr8lqx.txt -c:v libx264 -pix_fmt yuv420p -loglevel error /mfs/lsen/DATA/Actor6/bg/processing2_0810/4R3A0204/video/video_split_ref_mean_update/split_03_00321_00384.mp4 frame=[321,384] duration=1.26s. save video to /mfs/lsen/DATA/Actor6/bg/processing2_0810/4R3A0204/video/video_split_ref_mean_update/split_03_00321_00384.mp4 frame=[385,639] nframes = 255, duration=5.1, duration_pad = 6, need padding 22.5 ffmpeg -y -r 50 -f concat -safe 0 -i /tmp/tmpcp2lx3uz.txt -c:v libx264 -pix_fmt yuv420p -loglevel error /mfs/lsen/DATA/Actor6/bg/processing2_0810/4R3A0204/video/video_split_ref_mean_update/split_05_00385_00639.mp4 frame=[385,639] duration=5.08s. save video to /mfs/lsen/DATA/Actor6/bg/processing2_0810/4R3A0204/video/video_split_ref_mean_update/split_05_00385_00639.mp4 frame=[662,938] nframes = 277, duration=5.54, duration_pad = 6, need padding 11.5 ffmpeg -y -r 50 -f concat -safe 0 -i /tmp/tmpunxmy4xb.txt -c:v libx264 -pix_fmt yuv420p -loglevel error /mfs/lsen/DATA/Actor6/bg/processing2_0810/4R3A0204/video/video_split_ref_mean_update/split_08_00662_00938.mp4 frame=[662,938] duration=5.52s. save video to /mfs/lsen/DATA/Actor6/bg/processing2_0810/4R3A0204/video/video_split_ref_mean_update/split_08_00662_00938.mp4 frame=[938,1060] nframes = 123, duration=2.46, duration_pad = 3, need padding 13.5 ffmpeg -y -r 50 -f concat -safe 0 -i /tmp/tmpy7tn0xb0.txt -c:v libx264 -pix_fmt yuv420p -loglevel error /mfs/lsen/DATA/Actor6/bg/processing2_0810/4R3A0204/video/video_split_ref_mean_update/split_09_00938_01060.mp4 frame=[938,1060] duration=2.44s. save video to /mfs/lsen/DATA/Actor6/bg/processing2_0810/4R3A0204/video/video_split_ref_mean_update/split_09_00938_01060.mp4 frame=[1060,1324] nframes = 265, duration=5.3, duration_pad = 6, need padding 17.5 ffmpeg -y -r 50 -f concat -safe 0 -i /tmp/tmpr8am5au6.txt -c:v libx264 -pix_fmt yuv420p -loglevel error /mfs/lsen/DATA/Actor6/bg/processing2_0810/4R3A0204/video/video_split_ref_mean_update/split_10_01060_01324.mp4 frame=[1060,1324] duration=5.28s. save video to /mfs/lsen/DATA/Actor6/bg/processing2_0810/4R3A0204/video/video_split_ref_mean_update/split_10_01060_01324.mp4 frame=[1324,1560] nframes = 237, duration=4.74, duration_pad = 5, need padding 6.5 ffmpeg -y -r 50 -f concat -safe 0 -i /tmp/tmpqv1h8ero.txt -c:v libx264 -pix_fmt yuv420p -loglevel error /mfs/lsen/DATA/Actor6/bg/processing2_0810/4R3A0204/video/video_split_ref_mean_update/split_11_01324_01560.mp4 frame=[1324,1560] duration=4.72s. save video to /mfs/lsen/DATA/Actor6/bg/processing2_0810/4R3A0204/video/video_split_ref_mean_update/split_11_01324_01560.mp4 frame=[1562,1649] nframes = 88, duration=1.76, duration_pad = 2, need padding 6.0 ffmpeg -y -r 50 -f concat -safe 0 -i /tmp/tmpbdia9qtz.txt -c:v libx264 -pix_fmt yuv420p -loglevel error /mfs/lsen/DATA/Actor6/bg/processing2_0810/4R3A0204/video/video_split_ref_mean_update/split_13_01562_01649.mp4 frame=[1562,1649] duration=1.74s. save video to /mfs/lsen/DATA/Actor6/bg/processing2_0810/4R3A0204/video/video_split_ref_mean_update/split_13_01562_01649.mp4 frame=[1651,1701] nframes = 51, duration=1.02, duration_pad = 2, need padding 24.5 ffmpeg -y -r 50 -f concat -safe 0 -i /tmp/tmpvuqwxvj5.txt -c:v libx264 -pix_fmt yuv420p -loglevel error /mfs/lsen/DATA/Actor6/bg/processing2_0810/4R3A0204/video/video_split_ref_mean_update/split_15_01651_01701.mp4 frame=[1651,1701] duration=1.0s. save video to /mfs/lsen/DATA/Actor6/bg/processing2_0810/4R3A0204/video/video_split_ref_mean_update/split_15_01651_01701.mp4 frame=[1709,1982] nframes = 274, duration=5.48, duration_pad = 6, need padding 13.0 ffmpeg -y -r 50 -f concat -safe 0 -i /tmp/tmpbzdrudki.txt -c:v libx264 -pix_fmt yuv420p -loglevel error /mfs/lsen/DATA/Actor6/bg/processing2_0810/4R3A0204/video/video_split_ref_mean_update/split_17_01709_01982.mp4 frame=[1709,1982] duration=5.46s. save video to /mfs/lsen/DATA/Actor6/bg/processing2_0810/4R3A0204/video/video_split_ref_mean_update/split_17_01709_01982.mp4 frame=[2023,2259] nframes = 237, duration=4.74, duration_pad = 5, need padding 6.5 ffmpeg -y -r 50 -f concat -safe 0 -i /tmp/tmpj812uduc.txt -c:v libx264 -pix_fmt yuv420p -loglevel error /mfs/lsen/DATA/Actor6/bg/processing2_0810/4R3A0204/video/video_split_ref_mean_update/split_19_02023_02259.mp4 frame=[2023,2259] duration=4.72s. save video to /mfs/lsen/DATA/Actor6/bg/processing2_0810/4R3A0204/video/video_split_ref_mean_update/split_19_02023_02259.mp4 frame=[2269,2320] nframes = 52, duration=1.04, duration_pad = 2, need padding 24.0 ffmpeg -y -r 50 -f concat -safe 0 -i /tmp/tmphu65pc4z.txt -c:v libx264 -pix_fmt yuv420p -loglevel error /mfs/lsen/DATA/Actor6/bg/processing2_0810/4R3A0204/video/video_split_ref_mean_update/split_21_02269_02320.mp4 frame=[2269,2320] duration=1.02s. save video to /mfs/lsen/DATA/Actor6/bg/processing2_0810/4R3A0204/video/video_split_ref_mean_update/split_21_02269_02320.mp4 frame=[2320,2558] nframes = 239, duration=4.78, duration_pad = 5, need padding 5.5 ffmpeg -y -r 50 -f concat -safe 0 -i /tmp/tmpekr78o4y.txt -c:v libx264 -pix_fmt yuv420p -loglevel error /mfs/lsen/DATA/Actor6/bg/processing2_0810/4R3A0204/video/video_split_ref_mean_update/split_22_02320_02558.mp4 frame=[2320,2558] duration=4.76s. save video to /mfs/lsen/DATA/Actor6/bg/processing2_0810/4R3A0204/video/video_split_ref_mean_update/split_22_02320_02558.mp4 frame=[2632,2923] nframes = 292, duration=5.84, duration_pad = 6, need padding 4.0 ffmpeg -y -r 50 -f concat -safe 0 -i /tmp/tmpskeh9gfn.txt -c:v libx264 -pix_fmt yuv420p -loglevel error /mfs/lsen/DATA/Actor6/bg/processing2_0810/4R3A0204/video/video_split_ref_mean_update/split_26_02632_02923.mp4 frame=[2632,2923] duration=5.82s. save video to /mfs/lsen/DATA/Actor6/bg/processing2_0810/4R3A0204/video/video_split_ref_mean_update/split_26_02632_02923.mp4 frame=[2923,3172] nframes = 250, duration=5.0, duration_pad = 6, need padding 25.0 ffmpeg -y -r 50 -f concat -safe 0 -i /tmp/tmpb43snxuy.txt -c:v libx264 -pix_fmt yuv420p -loglevel error /mfs/lsen/DATA/Actor6/bg/processing2_0810/4R3A0204/video/video_split_ref_mean_update/split_27_02923_03172.mp4 frame=[2923,3172] duration=4.98s. save video to /mfs/lsen/DATA/Actor6/bg/processing2_0810/4R3A0204/video/video_split_ref_mean_update/split_27_02923_03172.mp4 frame=[3201,3342] nframes = 142, duration=2.84, duration_pad = 3, need padding 4.0 ffmpeg -y -r 50 -f concat -safe 0 -i /tmp/tmphapevaql.txt -c:v libx264 -pix_fmt yuv420p -loglevel error /mfs/lsen/DATA/Actor6/bg/processing2_0810/4R3A0204/video/video_split_ref_mean_update/split_29_03201_03342.mp4 frame=[3201,3342] duration=2.82s. save video to /mfs/lsen/DATA/Actor6/bg/processing2_0810/4R3A0204/video/video_split_ref_mean_update/split_29_03201_03342.mp4 frame=[3384,3574] nframes = 191, duration=3.82, duration_pad = 4, need padding 4.5 ffmpeg -y -r 50 -f concat -safe 0 -i /tmp/tmpnkjxgzwv.txt -c:v libx264 -pix_fmt yuv420p -loglevel error /mfs/lsen/DATA/Actor6/bg/processing2_0810/4R3A0204/video/video_split_ref_mean_update/split_32_03384_03574.mp4 frame=[3384,3574] duration=3.8s. save video to /mfs/lsen/DATA/Actor6/bg/processing2_0810/4R3A0204/video/video_split_ref_mean_update/split_32_03384_03574.mp4 frame=[3643,3746] nframes = 104, duration=2.08, duration_pad = 3, need padding 23.0 ffmpeg -y -r 50 -f concat -safe 0 -i /tmp/tmp_3jt1zmh.txt -c:v libx264 -pix_fmt yuv420p -loglevel error /mfs/lsen/DATA/Actor6/bg/processing2_0810/4R3A0204/video/video_split_ref_mean_update/split_36_03643_03746.mp4 frame=[3643,3746] duration=2.06s. save video to /mfs/lsen/DATA/Actor6/bg/processing2_0810/4R3A0204/video/video_split_ref_mean_update/split_36_03643_03746.mp4 frame=[3746,3907] nframes = 162, duration=3.24, duration_pad = 4, need padding 19.0 ffmpeg -y -r 50 -f concat -safe 0 -i /tmp/tmpcujtxia0.txt -c:v libx264 -pix_fmt yuv420p -loglevel error /mfs/lsen/DATA/Actor6/bg/processing2_0810/4R3A0204/video/video_split_ref_mean_update/split_37_03746_03907.mp4 frame=[3746,3907] duration=3.22s. save video to /mfs/lsen/DATA/Actor6/bg/processing2_0810/4R3A0204/video/video_split_ref_mean_update/split_37_03746_03907.mp4 frame=[3941,4092] nframes = 152, duration=3.04, duration_pad = 4, need padding 24.0 ffmpeg -y -r 50 -f concat -safe 0 -i /tmp/tmpfurxw53d.txt -c:v libx264 -pix_fmt yuv420p -loglevel error /mfs/lsen/DATA/Actor6/bg/processing2_0810/4R3A0204/video/video_split_ref_mean_update/split_39_03941_04092.mp4 frame=[3941,4092] duration=3.02s. save video to /mfs/lsen/DATA/Actor6/bg/processing2_0810/4R3A0204/video/video_split_ref_mean_update/split_39_03941_04092.mp4 frame=[4094,4186] nframes = 93, duration=1.86, duration_pad = 2, need padding 3.5 ffmpeg -y -r 50 -f concat -safe 0 -i /tmp/tmpq9qo8r0o.txt -c:v libx264 -pix_fmt yuv420p -loglevel error /mfs/lsen/DATA/Actor6/bg/processing2_0810/4R3A0204/video/video_split_ref_mean_update/split_41_04094_04186.mp4 frame=[4094,4186] duration=1.84s. save video to /mfs/lsen/DATA/Actor6/bg/processing2_0810/4R3A0204/video/video_split_ref_mean_update/split_41_04094_04186.mp4 frame=[4189,4577] nframes = 389, duration=7.78, duration_pad = 8, need padding 5.5 ffmpeg -y -r 50 -f concat -safe 0 -i /tmp/tmp5ebnh8y7.txt -c:v libx264 -pix_fmt yuv420p -loglevel error /mfs/lsen/DATA/Actor6/bg/processing2_0810/4R3A0204/video/video_split_ref_mean_update/split_43_04189_04577.mp4 frame=[4189,4577] duration=7.76s. save video to /mfs/lsen/DATA/Actor6/bg/processing2_0810/4R3A0204/video/video_split_ref_mean_update/split_43_04189_04577.mp4 frame=[4642,4697] nframes = 56, duration=1.12, duration_pad = 2, need padding 22.0 ffmpeg -y -r 50 -f concat -safe 0 -i /tmp/tmpby5sa3oc.txt -c:v libx264 -pix_fmt yuv420p -loglevel error /mfs/lsen/DATA/Actor6/bg/processing2_0810/4R3A0204/video/video_split_ref_mean_update/split_46_04642_04697.mp4 frame=[4642,4697] duration=1.1s. save video to /mfs/lsen/DATA/Actor6/bg/processing2_0810/4R3A0204/video/video_split_ref_mean_update/split_46_04642_04697.mp4 frame=[4701,4783] nframes = 83, duration=1.66, duration_pad = 2, need padding 8.5 ffmpeg -y -r 50 -f concat -safe 0 -i /tmp/tmpo2t9u5g3.txt -c:v libx264 -pix_fmt yuv420p -loglevel error /mfs/lsen/DATA/Actor6/bg/processing2_0810/4R3A0204/video/video_split_ref_mean_update/split_48_04701_04783.mp4 frame=[4701,4783] duration=1.64s. save video to /mfs/lsen/DATA/Actor6/bg/processing2_0810/4R3A0204/video/video_split_ref_mean_update/split_48_04701_04783.mp4 frame=[4823,5220] nframes = 398, duration=7.96, duration_pad = 8, need padding 1.0 ffmpeg -y -r 50 -f concat -safe 0 -i /tmp/tmpy7akg6nv.txt -c:v libx264 -pix_fmt yuv420p -loglevel error /mfs/lsen/DATA/Actor6/bg/processing2_0810/4R3A0204/video/video_split_ref_mean_update/split_50_04823_05220.mp4 frame=[4823,5220] duration=7.94s. save video to /mfs/lsen/DATA/Actor6/bg/processing2_0810/4R3A0204/video/video_split_ref_mean_update/split_50_04823_05220.mp4 frame=[5220,5568] nframes = 349, duration=6.98, duration_pad = 7, need padding 0.5 ffmpeg -y -r 50 -f concat -safe 0 -i /tmp/tmp29q4hh_d.txt -c:v libx264 -pix_fmt yuv420p -loglevel error /mfs/lsen/DATA/Actor6/bg/processing2_0810/4R3A0204/video/video_split_ref_mean_update/split_51_05220_05568.mp4 frame=[5220,5568] duration=6.96s. save video to /mfs/lsen/DATA/Actor6/bg/processing2_0810/4R3A0204/video/video_split_ref_mean_update/split_51_05220_05568.mp4 frame=[5570,5950] nframes = 381, duration=7.62, duration_pad = 8, need padding 9.5 ffmpeg -y -r 50 -f concat -safe 0 -i /tmp/tmpqlfyq65l.txt -c:v libx264 -pix_fmt yuv420p -loglevel error /mfs/lsen/DATA/Actor6/bg/processing2_0810/4R3A0204/video/video_split_ref_mean_update/split_53_05570_05950.mp4 frame=[5570,5950] duration=7.6s. save video to /mfs/lsen/DATA/Actor6/bg/processing2_0810/4R3A0204/video/video_split_ref_mean_update/split_53_05570_05950.mp4 frame=[5950,6002] nframes = 53, duration=1.06, duration_pad = 2, need padding 23.5 ffmpeg -y -r 50 -f concat -safe 0 -i /tmp/tmp9atq7r1m.txt -c:v libx264 -pix_fmt yuv420p -loglevel error /mfs/lsen/DATA/Actor6/bg/processing2_0810/4R3A0204/video/video_split_ref_mean_update/split_54_05950_06002.mp4 frame=[5950,6002] duration=1.04s. save video to /mfs/lsen/DATA/Actor6/bg/processing2_0810/4R3A0204/video/video_split_ref_mean_update/split_54_05950_06002.mp4 frame=[6002,6278] nframes = 277, duration=5.54, duration_pad = 6, need padding 11.5 ffmpeg -y -r 50 -f concat -safe 0 -i /tmp/tmpjiuz87_g.txt -c:v libx264 -pix_fmt yuv420p -loglevel error /mfs/lsen/DATA/Actor6/bg/processing2_0810/4R3A0204/video/video_split_ref_mean_update/split_55_06002_06278.mp4 frame=[6002,6278] duration=5.52s. save video to /mfs/lsen/DATA/Actor6/bg/processing2_0810/4R3A0204/video/video_split_ref_mean_update/split_55_06002_06278.mp4 frame=[6305,6621] nframes = 317, duration=6.34, duration_pad = 7, need padding 16.5 ffmpeg -y -r 50 -f concat -safe 0 -i /tmp/tmp7vtt33ka.txt -c:v libx264 -pix_fmt yuv420p -loglevel error /mfs/lsen/DATA/Actor6/bg/processing2_0810/4R3A0204/video/video_split_ref_mean_update/split_58_06305_06621.mp4 frame=[6305,6621] duration=6.32s. save video to /mfs/lsen/DATA/Actor6/bg/processing2_0810/4R3A0204/video/video_split_ref_mean_update/split_58_06305_06621.mp4 frame=[6621,6689] nframes = 69, duration=1.38, duration_pad = 2, need padding 15.5 ffmpeg -y -r 50 -f concat -safe 0 -i /tmp/tmp7zen3_fv.txt -c:v libx264 -pix_fmt yuv420p -loglevel error /mfs/lsen/DATA/Actor6/bg/processing2_0810/4R3A0204/video/video_split_ref_mean_update/split_59_06621_06689.mp4 frame=[6621,6689] duration=1.36s. save video to /mfs/lsen/DATA/Actor6/bg/processing2_0810/4R3A0204/video/video_split_ref_mean_update/split_59_06621_06689.mp4 frame=[6691,7009] nframes = 319, duration=6.38, duration_pad = 7, need padding 15.5 ffmpeg -y -r 50 -f concat -safe 0 -i /tmp/tmpz5fcvl3q.txt -c:v libx264 -pix_fmt yuv420p -loglevel error /mfs/lsen/DATA/Actor6/bg/processing2_0810/4R3A0204/video/video_split_ref_mean_update/split_61_06691_07009.mp4 frame=[6691,7009] duration=6.36s. save video to /mfs/lsen/DATA/Actor6/bg/processing2_0810/4R3A0204/video/video_split_ref_mean_update/split_61_06691_07009.mp4 frame=[7009,7380] nframes = 372, duration=7.44, duration_pad = 8, need padding 14.0 ffmpeg -y -r 50 -f concat -safe 0 -i /tmp/tmpsrl0v46l.txt -c:v libx264 -pix_fmt yuv420p -loglevel error /mfs/lsen/DATA/Actor6/bg/processing2_0810/4R3A0204/video/video_split_ref_mean_update/split_62_07009_07380.mp4 frame=[7009,7380] duration=7.42s. save video to /mfs/lsen/DATA/Actor6/bg/processing2_0810/4R3A0204/video/video_split_ref_mean_update/split_62_07009_07380.mp4 frame=[7380,7431] nframes = 52, duration=1.04, duration_pad = 2, need padding 24.0 ffmpeg -y -r 50 -f concat -safe 0 -i /tmp/tmp4vk_5wpc.txt -c:v libx264 -pix_fmt yuv420p -loglevel error /mfs/lsen/DATA/Actor6/bg/processing2_0810/4R3A0204/video/video_split_ref_mean_update/split_63_07380_07431.mp4 frame=[7380,7431] duration=1.02s. save video to /mfs/lsen/DATA/Actor6/bg/processing2_0810/4R3A0204/video/video_split_ref_mean_update/split_63_07380_07431.mp4 frame=[7446,7510] nframes = 65, duration=1.3, duration_pad = 2, need padding 17.5 ffmpeg -y -r 50 -f concat -safe 0 -i /tmp/tmp_3lw08j9.txt -c:v libx264 -pix_fmt yuv420p -loglevel error /mfs/lsen/DATA/Actor6/bg/processing2_0810/4R3A0204/video/video_split_ref_mean_update/split_65_07446_07510.mp4 frame=[7446,7510] duration=1.28s. save video to /mfs/lsen/DATA/Actor6/bg/processing2_0810/4R3A0204/video/video_split_ref_mean_update/split_65_07446_07510.mp4 frame=[7510,7825] nframes = 316, duration=6.32, duration_pad = 7, need padding 17.0 ffmpeg -y -r 50 -f concat -safe 0 -i /tmp/tmpkks9uzpz.txt -c:v libx264 -pix_fmt yuv420p -loglevel error /mfs/lsen/DATA/Actor6/bg/processing2_0810/4R3A0204/video/video_split_ref_mean_update/split_66_07510_07825.mp4 frame=[7510,7825] duration=6.3s. save video to /mfs/lsen/DATA/Actor6/bg/processing2_0810/4R3A0204/video/video_split_ref_mean_update/split_66_07510_07825.mp4 frame=[7825,8123] nframes = 299, duration=5.98, duration_pad = 6, need padding 0.5 ffmpeg -y -r 50 -f concat -safe 0 -i /tmp/tmpmy8waec8.txt -c:v libx264 -pix_fmt yuv420p -loglevel error /mfs/lsen/DATA/Actor6/bg/processing2_0810/4R3A0204/video/video_split_ref_mean_update/split_67_07825_08123.mp4 frame=[7825,8123] duration=5.96s. save video to /mfs/lsen/DATA/Actor6/bg/processing2_0810/4R3A0204/video/video_split_ref_mean_update/split_67_07825_08123.mp4 frame=[8124,8190] nframes = 67, duration=1.34, duration_pad = 2, need padding 16.5 ffmpeg -y -r 50 -f concat -safe 0 -i /tmp/tmpxhgidvbi.txt -c:v libx264 -pix_fmt yuv420p -loglevel error /mfs/lsen/DATA/Actor6/bg/processing2_0810/4R3A0204/video/video_split_ref_mean_update/split_69_08124_08190.mp4 frame=[8124,8190] duration=1.32s. save video to /mfs/lsen/DATA/Actor6/bg/processing2_0810/4R3A0204/video/video_split_ref_mean_update/split_69_08124_08190.mp4
In [ ]: