Spanicin commited on
Commit
4d46dda
1 Parent(s): 218b3a7

Update src/utils/videoio.py

Browse files
Files changed (1) hide show
  1. src/utils/videoio.py +3 -3
src/utils/videoio.py CHANGED
@@ -18,8 +18,8 @@ def load_video_to_cv2(input_path):
18
  return full_frames
19
 
20
  def save_video_with_watermark(video, audio, save_path, watermark=False):
21
- print("video: ", video)
22
- print("audio: ", audio)
23
  #cmd = r'ffmpeg -y -hide_banner -loglevel error -i "%s" -i "%s" -vcodec copy "%s"' % (video, audio, temp_file)
24
  #os.system(cmd)
25
 
@@ -43,7 +43,7 @@ def save_video_with_watermark(video, audio, save_path, watermark=False):
43
 
44
  base64_video = base64.b64encode(video_content).decode('utf-8')
45
 
46
- return base64_video
47
 
48
 
49
 
 
18
  return full_frames
19
 
20
  def save_video_with_watermark(video, audio, save_path, watermark=False):
21
+ # print("video: ", video)
22
+ # print("audio: ", audio)
23
  #cmd = r'ffmpeg -y -hide_banner -loglevel error -i "%s" -i "%s" -vcodec copy "%s"' % (video, audio, temp_file)
24
  #os.system(cmd)
25
 
 
43
 
44
  base64_video = base64.b64encode(video_content).decode('utf-8')
45
 
46
+ return base64_video, temp_file_path
47
 
48
 
49