Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -66,7 +66,7 @@ def convert_media(input_file: str, output_dir: str, output_format: str = 'mp4')
|
|
| 66 |
'-c:a', 'libfdk_aac', # Codificador de audio
|
| 67 |
'-profile:a', 'aac_he_v2', # Perfil de audio
|
| 68 |
'-crf', '28', # Tasa de compresi贸n
|
| 69 |
-
'-b:a', '
|
| 70 |
'-preset', 'slow', # Preajuste de codificaci贸n
|
| 71 |
'-movflags', '+faststart', # Web optimization
|
| 72 |
output_file
|
|
@@ -131,19 +131,17 @@ iface = gr.Interface(
|
|
| 131 |
inputs=[
|
| 132 |
gr.File(
|
| 133 |
label="Subir Archivo",
|
| 134 |
-
type="filepath",
|
| 135 |
-
file_count="single",
|
| 136 |
-
file_types=VIDEO_FORMATS + AUDIO_FORMATS
|
| 137 |
),
|
| 138 |
gr.Dropdown(
|
| 139 |
label="Formato de Salida",
|
| 140 |
-
choices=['
|
| 141 |
value='mp4'
|
| 142 |
)
|
| 143 |
],
|
| 144 |
outputs=gr.File(
|
| 145 |
label="Descargar Archivo Convertido",
|
| 146 |
-
type="file
|
| 147 |
),
|
| 148 |
title="馃帴馃幍 Convertidor Universal de Medios",
|
| 149 |
description="Convierte videos y audios a m煤ltiples formatos con configuraciones optimizadas",
|
|
|
|
| 66 |
'-c:a', 'libfdk_aac', # Codificador de audio
|
| 67 |
'-profile:a', 'aac_he_v2', # Perfil de audio
|
| 68 |
'-crf', '28', # Tasa de compresi贸n
|
| 69 |
+
'-b:a', '32k', # Tasa de bits de audio
|
| 70 |
'-preset', 'slow', # Preajuste de codificaci贸n
|
| 71 |
'-movflags', '+faststart', # Web optimization
|
| 72 |
output_file
|
|
|
|
| 131 |
inputs=[
|
| 132 |
gr.File(
|
| 133 |
label="Subir Archivo",
|
| 134 |
+
type="filepath", # Cambi茅 esto de 'file' a 'filepath'
|
|
|
|
|
|
|
| 135 |
),
|
| 136 |
gr.Dropdown(
|
| 137 |
label="Formato de Salida",
|
| 138 |
+
choices=['mp4', 'mp3', 'wav', 'avi', 'mkv', 'flac'],
|
| 139 |
value='mp4'
|
| 140 |
)
|
| 141 |
],
|
| 142 |
outputs=gr.File(
|
| 143 |
label="Descargar Archivo Convertido",
|
| 144 |
+
type="filepath" # Cambi茅 esto de 'file' a 'filepath'
|
| 145 |
),
|
| 146 |
title="馃帴馃幍 Convertidor Universal de Medios",
|
| 147 |
description="Convierte videos y audios a m煤ltiples formatos con configuraciones optimizadas",
|