informatica:linux:edicion_de_video:ffmpeg
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
informatica:linux:edicion_de_video:ffmpeg [2023/10/22 20:45] – jose | informatica:linux:edicion_de_video:ffmpeg [2024/01/23 16:19] (current) – jose | ||
---|---|---|---|
Line 8: | Line 8: | ||
ffmpeg -i input.mp4 -vf " | ffmpeg -i input.mp4 -vf " | ||
+ | Extraer 250 frames de un vídeo | ||
+ | < | ||
+ | #!/bin/bash | ||
+ | video=$1 | ||
+ | n=`ffprobe -v error -select_streams v:0 -show_entries stream=nb_frames -of default=nokey=1: | ||
+ | factor=$(echo " | ||
+ | echo $factor | ||
+ | for ((i=1; i<=249; i++)); do | ||
+ | frame_decimal=$(echo "$i * $factor" | ||
+ | frame=$(echo " | ||
+ | fitxer=`printf " | ||
+ | ffmpeg -i $video -vf " | ||
+ | done | ||
+ | ffmpeg -i ${video} -vf " | ||
+ | |||
+ | </ | ||
+ | |||
+ | ====== Cortar vídeo ====== | ||
+ | Minuto y segundo de inicio y de fin. Corta del 0:15 al 0:25 total 10 segundos de vídeo | ||
+ | ffmpeg -i original.mp4 -ss 00:00:15 -to 00:25 cortado.mp4 |
informatica/linux/edicion_de_video/ffmpeg.1698007547.txt.gz · Last modified: 2023/10/22 20:45 by jose