Triky s imagemagick a ffmpeg

Na stránce se pracuje!

http://linuxdevcenter.com/pub/a/linux/2004/03/04/screen_capture_movies.html

ffmpeg

Vytvoří video z obrázků s FPS 5

ffmpeg -r 5 -qscale 1 -i serazeno/%05d.jpg s3.avi

Zkopíruje obrázky do nové složky a před název doplní nuly do počtu znaků 8

x=1;
rm serazeno/*
for f in silvestr/*.jpg; do
  cp $f serazeno/`printf %08d $x`.jpg;
  let "x+=1";
done
i=1;
x=1;
count=1;
rm serazeno/*
for f in bourka/*.jpg; do
  if [ $x == 20 ]; then
    cp $f serazeno/`printf %08d $count`.jpg;
    let count++;
    x=0;
  else
    let x++;
  fi
  echo $i;
  let i++;
done

x=0;for i in *.avi; do let x++; mkdir "$i".dir; ffmpeg -i "$i" -f image2 "$i".dir/%05d.jpg; done

x=10000;for i in *.png; do let x--; cp "$i" "../obr2/test${x}.png"; done
ffmpeg -i video.avi -ss 01:17:20 -t 00:00:41 -sameq video-strih.avi
ffmpeg -i video.avi -r 16 -f image2 /media/obrazky/%05d.png
ffmpeg -qscale 1 -i /media/obrazky/%05d.png video.avi

http://www.imagemagick.org/Usage/montage/ http://www.imagemagick.org/Usage/mapping/

montage -size 400x400 null: ../img_photos/[a-m]*_orig.* null: \
        -auto-orient  -thumbnail 200x200 \
        -bordercolor Lavender -background black +polaroid -resize 30% \
        -gravity center -background none -extent 80x80 \
        -background SkyBlue -geometry -10+2  -tile x1  polaroid_overlap.jpg
convert -size 100x100 xc:  -channel G -fx 'atan2(i-w/2,h/2-j)/pi/2 + .5' -separate  map_p_angular.png
convert -size 100x100 xc:  -channel G -fx 'rr=hypot(i-w/2,j-h/2); (.5-rr/70)*1.2+.5' -separate  map_p_radial.png
convert -font Candice -gravity center -size 200x50 label:'Around  the  World'    text.jpg
convert map_p_angular.png map_p_radial.png text.jpg -fx 'u[2].p{ u*u[2].w, v*u[2].h }' distort_p_circle.jpg

convert -size 90x80 xc:white xc:black   -size 90x40 gradient: +swap -append -rotate 90    overlap_mask.png
convert holocaust_tn.gif -extent 200x90  spiral_stairs_tn.gif overlap_mask.png  -gravity East -composite   overlap_photos.jpg

convert -size 768x288 xc:black black.png
convert black.png +append pen1.jpg
cp pen2.jpg pen1.jpg
composite -geometry +360+100 pen1.jpg pen2.jpg out.png
composite -geometry +360+100 pen1.jpg pen2.jpg -resize 1024x768 out.png

convert -modulate 10,100,100 00059.png 0000.png
sox input.wav output.wav pitch 1500^C
sox input.wav output.wav speed 1.3
  101  apt-get install libavcodec-extra-52
  102  bash aac2mp3.sh sound.aac
  103  sox sound.aac.mp3 sound.png spectrogram
  104  mplayer -ao pcm sound.aac -ao pcm:file="outfile.wav"
  105  mplayer -ao pcm faad sound.aac -ao pcm:file="outfile.wav"
  106  sox outfile.wav sound.png spectrogram
  107  sox outfile.wav sound.jpg spectrogram
  108  sox outfile.wav tempo factor 7.5 out.wav
  109  sox outfile.wav -n spectrogram
  110  sox outfile.wav spped.wav speed 7.5
  111  sox outfile.wav spped.wav speed 7
  112  sox outfile.wav spped.wav speed 7.3
  113  sox outfile.wav spped.wav speed 7.4
  114  sox outfile.wav spped.wav speed 7
  115  sox outfile.wav spped.wav speed 6.5
  116  sox outfile.wav spped.wav speed 6.4
  117  sox outfile.wav spped.wav speed 6.43
  118  sox outfile.wav spped.wav speed 6.48
  119  sox outfile.wav spped.wav speed 6.34
  120  sox outfile.wav spped.wav speed 6.3
  121  sox outfile.wav spped.wav speed 6.26
  122  sox outfile.wav spped.wav speed 6.255
  123  sox outfile.wav spped.wav speed 6.25
  124  EXIT
  125  exit
  126  cd /media/icybox/
  127  ls
  128  avimerge --help
  129  avimerge -i video1.avi video2.avi -o video.avi
  130  vlc video.avi
  131  ffmpeg -i GOPR0028.MP4 -vn -acodec pcm_s16le -ar 44100 -ac 2 sound.wav
  132  ffmpeg -i GOPR0028.MP4 -vn -acodec pcm_s16le -ar 44100 -ac 2 sound.mp3
  133  ffmpeg -i GOPR0028.MP4 -ab 128 -ar 44100 nodame_theme.mp3
  134  ffmpeg -i GOPR0028.MP4 -ab 128 nodame_theme.mp3
  135  ffmpeg -i GOPR0028.MP4 nodame_theme.mp3
  136  mediainfo
  137  ffmpeg GOPR0028.MP4
  138  ffmpeg -i GOPR0028.MP4
  139  ffmpeg -i GOPR0028.MP4 sound.aac