Tutorial de comandos con ffmpeg
Por: Alexander Arias
Descargar ffmpeg
https://www.ffmpeg.org
Tamaño
ffprobe -v error -show_entries format=size -of default=noprint_wrappers=1 "C:\Users\Casa\Videos\2020-04-15 14-52-20.mp4"
Duracion
ffprobe -v error -show_entries format=duration -of default=noprint_wrappers=1:nokey=1 "C:\Users\Casa\Videos\2020-04-15 14-52-20.mp4"
Partir (Split) el video en partes de 10 minutos
ffmpeg -i "C:\Users\Casa\Videos\2020-04-15 14-52-20.mp4" -map 0 -codec copy -f segment -segment_time 10:00 "output%03d.mp4"
Tome algunas cosas de:
https://profeitm.blogspot.com/2016/06/comandos-utiles-para-la-conversion-y.html
How do I split a video into X parts, each duration is X minutes?
https://www.quora.com/How-do-I-split-a-video-into-X-parts-each-duration-is-X-minutes
If you are not intimidated by the command line, you can use ffmpeg like so:
- ffmpeg -i 'input.mp4' -map 0 -codec copy -f segment -segment_time 10:00 'output%03d.mp4'
The options are as follows:
- -i ‘something.mp4’ → the name of the input file
- -map 0 → use the first input file for all outputs
- -codec copy → do not recompress the video
- -f segment → the output file will be multiple segments
- -segment_time 10:00 → create segments of this duration (10 minutes in the example)
- ‘output%03d.mp4’ → name the output files like output001.mp4 etc. (3 is the number of digits in the counter)
No hay comentarios:
Publicar un comentario