|  |  | @ -13,11 +13,13 @@ cd "$source" | 
			
		
	
		
		
			
				
					
					|  |  |  | # create directory structure |  |  |  | # create directory structure | 
			
		
	
		
		
			
				
					
					|  |  |  | find . -type d -exec mkdir -p "$destination/{}" \; |  |  |  | find . -type d -exec mkdir -p "$destination/{}" \; | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  | # copy existing mp3 files |  |  |  | # copy existing files | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  | find . -type f -name '*.mp3' -exec cp --reflink=always "{}" "$destination/{}" \; |  |  |  | find . -type f -name '*.mp3' -exec cp --reflink=always "{}" "$destination/{}" \; | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | find . -type f -name '*.m4a' -exec cp --reflink=always "{}" "$destination/{}" \; | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | find . -type f -name '*.ogg' -exec cp --reflink=always "{}" "$destination/{}" \; | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  | # set +e because ffmpeg errors on .jpg, .txt, etc. |  |  |  | # set +e because ffmpeg errors on .jpg, .txt, etc. | 
			
		
	
		
		
			
				
					
					|  |  |  | # compress with opus |  |  |  | # compress with mp3 | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  | set +e |  |  |  | set +e | 
			
		
	
		
		
			
				
					
					|  |  |  | find . -type f -not -name '*.mp3' | parallel --eta --progress 'ffmpeg -v 0 -n -i ""{}"" -c:a mp3 -b:a 320 -map_metadata 0 ""$destination/{.}.mp3""' |  |  |  | find . -type f | parallel --eta --progress 'ffmpeg -v 0 -n -i ""{}"" -c:a mp3 -b:a 320 -map_metadata 0 ""$destination/{.}.mp3""' | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  | #set -e |  |  |  | #set -e | 
			
		
	
	
		
		
			
				
					|  |  | 
 |