Skip to content

Instantly share code, notes, and snippets.

@dahngeek
Created January 21, 2020 03:51
Show Gist options
  • Save dahngeek/6350284358a944586e3c1cf8aa863fef to your computer and use it in GitHub Desktop.
Save dahngeek/6350284358a944586e3c1cf8aa863fef to your computer and use it in GitHub Desktop.
Snippets de ffmpeg útiles para hacer cosas rápido.
file 'E:\Videos\PROXIMO REINO\000.mp4'
file 'E:\Videos\PROXIMO REINO\elultimoreino.webp'

Hacer un video con una imagen y el audio de uno o multiples mp3, obtener un .mp4 de salida:

ffmpeg -loop 1 -i thelinuxfaq.jpg -i concat:"audio_file1.mp3|audio_file2.mp3|audio_file3.mp3" -c:a copy -c:v libx264 -shortest output_video.mp4

Combinar videos:

ffmpeg -i "concat:input_video1.mp4|input_video2.mp4|input_video3.mp4" -c copy output_video.mp4

Convertir imagen a mp4:

ffmpeg -loop 1 -i 000.jpg -t 5 000.mp4

Concatenar videos que están en un txt (ver txt adjunto):

ffmpeg -f concat -i inputs.txt -codec copy output.mp4

Este comando puede necesitar -safe 0 para evitar problema de Unsafe filename.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment