Skip to content

Commit

Permalink
fix video chain benchmark
Browse files Browse the repository at this point in the history
  • Loading branch information
dasbd72 committed Sep 24, 2023
1 parent a0000e8 commit d46fdde
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions benchmark/cmd/benchmark/function_video.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,10 @@ func chain_video_processing(index int, flags Flags) FunctionChainResult {
for i := 0; i < 5; i++ {
go func(i int) {
defer wg.Done()
split_file_path := fmt.Sprintf("%s/seg%d_sample.mp4", split_file_dir, i+1)
merge_object_list = append(merge_object_list, split_file_path)
transcode_result[i] = function_video_transcode(bucket, split_file_path, []string{split_file_path}, merge_file_dir, flags.ForceRemote, flags.UseMem)
split_file_name := fmt.Sprintf("seg%d_sample.mp4", i+1)
merge_file_name := fmt.Sprintf("seg%d_sample.avi", i+1)
merge_object_list = append(merge_object_list, merge_file_name)
transcode_result[i] = function_video_transcode(bucket, split_file_dir, []string{split_file_name}, merge_file_dir, flags.ForceRemote, flags.UseMem)
}(i)
}
wg.Wait()
Expand Down

0 comments on commit d46fdde

Please sign in to comment.