-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
agregando archivo de conversion a mp4 y se agrega autor
- Loading branch information
Showing
3 changed files
with
23 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#!/bin/bash | ||
#Autor: Edgar Alberto Pérez | ||
|
||
|
||
# Verificar si se ha proporcionado un archivo de entrada | ||
if [ $# -eq 0 ]; then | ||
echo "Por favor, proporcione un archivo de entrada." | ||
exit 1 | ||
fi | ||
|
||
# Asignar nombres de archivo de entrada y salida | ||
input=$1 | ||
output="${input%.*}_.mp4" | ||
|
||
# Convertir el archivo de video al formato compatible con Roku | ||
ffmpeg -i "$input" -c:v libx264 -profile:v high -level:v 4.0 -pix_fmt yuv420p -preset medium -crf 23 -c:a aac -b:a 192k -ac 2 "$output" | ||
|
||
# Mostrar mensaje de finalización | ||
echo "La conversión del archivo $input ha sido completada. El archivo resultante es $output." | ||
|
||
# ./convert-to-roku.sh /ruta/a/mi/video.avi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
#!/bin/bash | ||
#Autor: Edgar Alberto Pérez | ||
|
||
# Función para renombrar archivos | ||
function renombrar_archivos { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
#!/bin/bash | ||
#Autor: Edgar Alberto Pérez | ||
|
||
# Función para renombrar carpetas | ||
function renombrar_carpetas { | ||
|