adding slideshow script
This commit is contained in:
		
							parent
							
								
									475e72e3fd
								
							
						
					
					
						commit
						84f6c6e8e3
					
				
					 1 changed files with 19 additions and 0 deletions
				
			
		
							
								
								
									
										19
									
								
								scripts/slideshow
									
										
									
									
									
										Executable file
									
								
							
							
						
						
									
										19
									
								
								scripts/slideshow
									
										
									
									
									
										Executable file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,19 @@
 | 
			
		|||
#!/usr/bin/env bash
 | 
			
		||||
 | 
			
		||||
while getopts af: flag
 | 
			
		||||
do
 | 
			
		||||
    case "${flag}" in
 | 
			
		||||
        a) all="true";;
 | 
			
		||||
        f) fullname=${OPTARG};;
 | 
			
		||||
        *) echo ${OPTARG};;
 | 
			
		||||
    esac
 | 
			
		||||
done
 | 
			
		||||
 | 
			
		||||
echo $all
 | 
			
		||||
# echo $2
 | 
			
		||||
 | 
			
		||||
if [ $all ]; then
 | 
			
		||||
    ffmpeg -framerate 1 -pattern_type glob -i '*.jpg' -c:v libx264 -r 30 -pix_fmt yuv420p slideshow.mp4
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue