Posted By

Homitsu on 01/07/10


Tagged

ffmpeg


Versions (?)

FFMpeg base


 / Published in: Bash
 

  1. # Base:
  2.  
  3. ffmpeg -formats
  4. ffmpeg -codecs
  5.  
  6. # Per ottenere info su un video:
  7.  
  8. ffmpeg -i video.avi
  9.  
  10. # Convertire da .avi a .mpg e viceversa:
  11.  
  12. ffmpeg -i input.avi output.mpg
  13.  
  14. # Convertire da .avi a .flv:
  15.  
  16. ffmpeg -i input.avi -sameq -ar 44100 output.flv
  17.  
  18. # Convertire da .flv a .mpg:
  19.  
  20. ffmpeg -i input.flv -sameq -ab 56k -ar 22050 -b 500 -s 640x480 output.mpg
  21.  
  22. # Convertire da .avi a .mpeg per lettori dvd:
  23.  
  24. ffmpeg -i input.avi -target pal-dvd -ps 2000000000 -aspect 16:9 output.mpeg
  25.  
  26. # Convertire video per ipod/iphone 01:
  27.  
  28. ffmpeg -i input.flv -acodec libfaac -ab 96k -ac 2 -vcodec libx264 -vpre hq -vpre ipod320 -threads 0 -crf 22 output.mp4
  29.  
  30. # Convertire video per ipod/iphone 02:
  31. ffmpeg -threads 4 -i INPUT -r 29.97 -vcodec libx264 -s 480x272 -flags +loop -cmp +chroma -deblockalpha 0 -deblockbeta 0 -crf 24 -bt 256k -refs 1 -coder 0 -me umh -me_range 16 -subq 5 -partitions +parti4x4+parti8x8+partp8x8 -g 250 -keyint_min 25 -level 30 -qmin 10 -qmax 51 -trellis 2 -sc_threshold 40 -i_qfactor 0.71 -acodec libfaac -ab 128k -ar 48000 -ac 2 OUTPUT
  32.  
  33. # Estrarre suono da un video e convertirlo in mp3:
  34.  
  35. ffmpeg -i input.avi -vn -ar 44100 -ac 2 -ab 192 -f mp3 output.mp3
  36.  
  37. # Cancellare suono da un video:
  38.  
  39. ffmpeg -i input.avi -an -b 1200 output.avi
  40.  
  41. # Convertire un video in una sequenza di immagini:
  42.  
  43. ffmpeg -i input.flv -an -r 1 -y -s 320x240 video%d.jpg
  44.  
  45. # Conversione x PSP 01:
  46.  
  47. ffmpeg -y -i test.mpg -title "test" -timestamp "2005-04-08 03:12:36" -bitexact 1 -vcodec
  48. libxvid -s 320x240 -r 29.97 -b 1500 -acodec libfaac -ac 2 -ar 24000 -ab 65535 -f psp test.mp4
  49.  
  50. # Conversione x PSP 02
  51. ffmpeg -i input -acodec libfaac -ab 128kb -ac 2 -ar 48000 -vcodec libx264 -level 21 -b 640kb -coder 1 -f psp -flags +loop -trellis 2 -partitions +parti4x4+parti8x8+partp4x4+partp8x8+partb8x8 -g 250 -s 480x272 output.mp4

Report this snippet  

You need to login to post a comment.