Advertisement
Guest User

Untitled

a guest
Feb 6th, 2018
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.70 KB | None | 0 0
  1.  
  2. ffmpeg -i 1.mp4 -an -c:v libvpx -ss 00:00:00.000 -t 00:00:00.000 -sn -vf scale=900:-1 -lag-in-frames 0 -auto-alt-ref 1 -quality best -qcomp .5 -slices 8 -crf 10 -b:v 00k -bufsize 00 -f webm -pass 1 NULL &&
  3. ffmpeg -i 1.mp4 -an -c:v libvpx -ss 00:00:00.000 -t 00:00:00.000 -sn -vf scale=900:-1 -lag-in-frames 0 -auto-alt-ref 1 -quality best -qcomp .5 -slices 8 -crf 10 -b:v 00k -bufsize 00 -pass 2 output.webm
  4.  
  5.  
  6. ffmpeg -y -ss 0 -t 6.5 -i cut.mp4 -vf fps=24,scale=500:-1:flags=lanczos,palettegen palette.png &&
  7. ffmpeg -ss 0 -t 6.5 -i cut.mp4 -i palette.png -filter_complex "fps=24,scale=500:-1:flags=lanczos[x];[x][1:v]paletteuse" output1.gif
  8.  
  9.  
  10.  
  11. ffmpeg -i 1.mp4 -ss 00:00:00.0000 -t 00:00:00.000 -async 1 -c copy cut1.mp4
  12.  
  13.  
  14.  
  15.  
  16.  
  17. remove audio\\\\ -an
  18.  
  19. specify codec vp8\\\\\\ -c:v libvpx
  20.  
  21. start time and duration\\\\\ -ss 00:00:00.000 -t 00:00:30.000
  22.  
  23. use 2pass frame ahead check, unlimited\\\\ -auto-alt-ref 1 -lag-in-frames
  24.  
  25. slices\\\\\ -slices 8
  26.  
  27. disable subtitles\\\\\ -sn
  28.  
  29. scale width height\\\\\ -vf scale=-1:-1
  30.  
  31. insert metadata\\\\\ -metadata title="test"
  32.  
  33. 2 lines at once
  34.  
  35. VBR\\\\ -b:v 765k -bufsize 1000 -crf 10
  36.  
  37.  
  38. max size 3
  39. bitrate = total MB * 8192 \ seconds
  40.  
  41. maxrate/bufsize = frequency of checks. Keep this frequency between 1 and 2 seconds as a rule of thumb
  42.  
  43.  
  44.  
  45. CROPPING ////// -filter:v "crop=A:B:C:D"
  46.  
  47. A = width
  48. B = height
  49. C = starting pixels from left
  50. D = starting pixels from top
  51.  
  52.  
  53.  
  54. SPEED
  55.  
  56. ffmpeg -i input.webm -c:v libvpx -filter:v "setpts=0.5*PTS" newoutput.webm
  57.  
  58. setpts = fractions for faster, whole and above for slower (0.5 is twice as fast)
  59.  
  60. Screenscapture
  61.  
  62. ffmpeg -video_size 1366x768 -framerate 25 -f x11grab -i :0.0+00,00 output.mp4
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement