Created
          August 16, 2015 02:41 
        
      - 
      
- 
        Save bertrandmartel/f22cc8d106bead29c2a4 to your computer and use it in GitHub Desktop. 
    ffmpeg create a video from a sequence of image and add a new image to video
  
        
  
    
      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
    
  
  
    
  | ######################################################################## | |
| # create a video from one or several images in sequence ################ | |
| ######################################################################## | |
| #create a video from input image ( with name image1.jpg image2.jpg image3.jpg ...) with a framerate of 1 image per second | |
| ffmpeg -f image2 -pattern_type sequence -start_number 0 -r 1 -i picture%d.jpg -s 1920x1080 picture.avi | |
| ######################################################################## | |
| # add an image to video ################################################ | |
| ######################################################################## | |
| # first create a fresh new video from input image | |
| ffmpeg -f image2 -pattern_type sequence -start_number 0 -r 1 -i earth.jpg -s 1920x1080 earth.avi | |
| # concat this video and former video | |
| ffmpeg -i "concat:picture.avi|earth.avi" -c copy output.avi | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment