User Tools

Site Tools


timelapse

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
timelapse [2020/05/30 10:40] josetimelapse [2020/05/30 14:42] jose
Line 1: Line 1:
 http://mahugh.com/2015/04/29/creating-time-lapse-videos/#prettyPhoto http://mahugh.com/2015/04/29/creating-time-lapse-videos/#prettyPhoto
  
-ffmpeg -i '%*.jpg -r 6000  video.mp4+  ffmpeg -r 24 -pattern_type glob -i '*.jpeg' -vcodec libx264 timelapse.mp4
  
 +Si añadimos -s hd1080 nos hace formato 1080 que es 1920x1080
  
-avconv -y -r 10 -i '%*.jpg' -r 10 -vcodec libx264 -q:v 3  -vf crop=800:600,scale=iw:ih timelapse.mp4+Comando con avconv (deprecated): 
 + 
 +  avconv -y -r 10 -i '%*.jpg' -r 10 -vcodec libx264 -q:v 3  -vf crop=800:600,scale=iw:ih timelapse.mp4
  
 ====== Añadir hora: ====== ====== Añadir hora: ======
Line 17: Line 20:
 convert -pointsize 40 -fill yellow -draw 'text 600,400 "'$hora':'$minuto'" ' $linea data/$linea convert -pointsize 40 -fill yellow -draw 'text 600,400 "'$hora':'$minuto'" ' $linea data/$linea
 done < <(ls *jpeg) done < <(ls *jpeg)
 +</code>
 +
 +====== Patio ======
 +Juntamos dos fotos una encima de otra, por ejemplo 20191221 y 20190621
 +
 +Comando original:
 +  convert image1.png image2.png -append juntas.png
 +
 +Ejemplo patio:
 +  ls 20191221_*|while read linea;do hora=`echo $linea|awk -F_ {'print $2'}|awk -F. {'print $1'}` ;convert $linea "20190621_"$hora".jpeg" -append "juntas_"$hora".jpeg";done
 +
 +Le ponemos la fecha en el medio:
 +
 +<code>
 +#!/bin/bash
 +while read linea
 +do
 +hora=`echo $linea | awk -F_ {'print $2'}|awk -F\. {'print $1'}|cut -c-2`
 +minuto=`echo $linea | awk -F_ {'print $2'}|awk -F\. {'print $1'}|cut -c3-`
 +convert -pointsize 40 -fill yellow -draw 'text 600,600 "'$hora':'$minuto'" ' $linea data/$linea
 +done < <(ls *jpeg)
 +</code>
 +
 +Y hacemos el timelapse:
 +  ffmpeg -r 24 -pattern_type glob -i '*.jpeg' -s hd1080 -vcodec libx264 timelapse.mp4
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +<code>
 +while read linea
 +do
 +convert -pointsize 60 -fill black -draw 'text 400,1575 "solsticio verano" ' $linea verano/$linea
 +done < <(ls *jpeg)
 +
 +#!/bin/bash
 +while read linea
 +do
 +convert -pointsize 60 -fill black -draw 'text 400,65 "solsticio invierno" ' $linea invierno/$linea
 +done < <(ls *jpeg)
 +
 +#!/bin/bash
 +while read linea
 +do
 +hora=`echo $linea | awk -F_ {'print $2'}|awk -F\. {'print $1'}|cut -c-2`
 +minuto=`echo $linea | awk -F_ {'print $2'}|awk -F\. {'print $1'}|cut -c3-`
 +convert -pointsize 60 -fill yellow -draw 'text 600,800 "'$hora':'$minuto'" ' $linea fecha/$linea
 +done < <(ls *jpeg)
 +
 </code> </code>