|  | @@ -0,0 +1,24 @@
 | 
	
		
			
				|  |  | +INPUT="$1"
 | 
	
		
			
				|  |  | +shift
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +OUTPUT="$1"
 | 
	
		
			
				|  |  | +shift
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +SPEED="$a1"
 | 
	
		
			
				|  |  | +shift
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +[ -z "$SPEED" ] && SPEED=0.05
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +GOURCE_OPTS=(
 | 
	
		
			
				|  |  | +    "--stop-at-end"
 | 
	
		
			
				|  |  | +    "-s" "$SPEED" "--highlight-users" "--log-format" "custom"
 | 
	
		
			
				|  |  | +    "-1920x1080" 
 | 
	
		
			
				|  |  | +   #  "--start-date" "2010-01-01" 
 | 
	
		
			
				|  |  | +    "--file-idle-time" "0" "--no-vsync"
 | 
	
		
			
				|  |  | +    "--key" "--output-ppm-stream" "-"  "--output-framerate" "60" "$INPUT"
 | 
	
		
			
				|  |  | +    "--hide" "bloom,mouse,progress,filenames"
 | 
	
		
			
				|  |  | +    "--auto-skip-seconds" ".01" "--multi-sampling"
 | 
	
		
			
				|  |  | +)
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +gource "${GOURCE_OPTS[@]}" |
 | 
	
		
			
				|  |  | +    ffmpeg -y -r 60 -f image2pipe -vcodec ppm -i - -b:v 10000000 -vcodec libx264 -crf 24 "$OUTPUT"
 |