Created
          August 11, 2020 13:26 
        
      - 
      
- 
        Save sergiks/829cfc32627bbff6f7cb5fa6f3868148 to your computer and use it in GitHub Desktop. 
    GIF with ffmpeg
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | palette="/tmp/palette.png" | |
| filters="fps=15,scale=320:-1:flags=lanczos" | |
| ffmpeg -i input.flv -vf "$filters,palettegen" -y $palette | |
| ffmpeg -i input.flv -i $palette -lavfi "$filters [x]; [x][1:v] paletteuse" -y output.gif | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
            
source