Moibe commited on
Commit
2ffdcde
·
1 Parent(s): 3e89ebe

Directo a raíz

Browse files
funciones/__pycache__/motion.cpython-311.pyc CHANGED
Binary files a/funciones/__pycache__/motion.cpython-311.pyc and b/funciones/__pycache__/motion.cpython-311.pyc differ
 
funciones/motion.py CHANGED
@@ -1,6 +1,5 @@
1
  import time
2
  import subprocess
3
- import herramientas
4
  import random
5
  from ffmpy import FFmpeg
6
 
@@ -22,7 +21,7 @@ async def motion(imagen):
22
  }
23
 
24
  outputs = {
25
- f'resultados/{current_timestamp_int}.mp4': [
26
  '-t', str(3), # Duración del video
27
  '-vf', video_filters, # Tus filtros de video complejos
28
  '-r', str(25), # Velocidad de fotogramas
@@ -51,7 +50,7 @@ async def motion(imagen):
51
  print(f"Salida de FFmpeg:\n{e.args[0]}")
52
  print(f"Error de FFmpeg:\n{e.args[1]}")
53
 
54
- return f'resultados/{current_timestamp_int}.mp4'
55
 
56
  async def motion_old(imagen):
57
 
 
1
  import time
2
  import subprocess
 
3
  import random
4
  from ffmpy import FFmpeg
5
 
 
21
  }
22
 
23
  outputs = {
24
+ f'{current_timestamp_int}.mp4': [
25
  '-t', str(3), # Duración del video
26
  '-vf', video_filters, # Tus filtros de video complejos
27
  '-r', str(25), # Velocidad de fotogramas
 
50
  print(f"Salida de FFmpeg:\n{e.args[0]}")
51
  print(f"Error de FFmpeg:\n{e.args[1]}")
52
 
53
+ return f'{current_timestamp_int}.mp4'
54
 
55
  async def motion_old(imagen):
56