Welcome to the Tweaking4All community forums!
When participating, please keep the Forum Rules in mind!
Topics for particular software or systems: Start your topic link with the name of the application or system.
For example “MacOS X – Your question“, or “MS Word – Your Tip or Trick“.
Please note that switching to another language when reading a post will not bring you to the same post, in Dutch, as there is no translation for that post!
    
    
        
    
    
         
                
        
        
    
		
		
	        
		
	        
	    
	
        
            
				
            
                
					
[Solved] ffmpeg - How to extract a single thumbnail from a video file
                
                
					 					                
             
			
			
    
        
            
    
    
  	  	
              
    	      
	        
            		            	
	                            
                    
                    (@hans)
                                        Famed Member Admin
                        
                
                                            Joined: 12 years ago
                    Posts: 3009
	             
                
            	
		        	         
	        
	            
	                                     Topic starter
                    September 14, 2013 5:23 PM  
		                                	            
	            
					With the help of ffmpeg, it's simple to extract a single thumbnail from a video file:
./ffmpeg -ss 400 -i movie.mp4 -vframes 1 -s 316x145 -f image2 /tmp/preview.jpg
This statement: 
- extracts a frame (-vframes 1),
- at 400 seconds into the movie (-ss 400), 
- from the movie file (-i movie.mp4),
- with a size of 316x145 (-s 316x145),
- forced as a JPEG image called preview.jpg (-f image2 /tmp/preview.jpg).
ffmpeg is cross platform and runs under Windows, MacOSX, and Linux.