added option to display default CRF in help.
This commit is contained in:
		
							parent
							
								
									464f3e31ca
								
							
						
					
					
						commit
						4dff106fdb
					
				
					 1 changed files with 5 additions and 2 deletions
				
			
		
							
								
								
									
										7
									
								
								burnSubs
									
										
									
									
									
								
							
							
						
						
									
										7
									
								
								burnSubs
									
										
									
									
									
								
							| 
						 | 
					@ -5,7 +5,7 @@ set -o errexit
 | 
				
			||||||
 | 
					
 | 
				
			||||||
################################################################################
 | 
					################################################################################
 | 
				
			||||||
# burnSubs
 | 
					# burnSubs
 | 
				
			||||||
# version 0.11.2
 | 
					# version 0.11.3
 | 
				
			||||||
#################
 | 
					#################
 | 
				
			||||||
# Wishlist:
 | 
					# Wishlist:
 | 
				
			||||||
#   queue encodes
 | 
					#   queue encodes
 | 
				
			||||||
| 
						 | 
					@ -17,6 +17,8 @@ set -o errexit
 | 
				
			||||||
#   automatically select JPN audio if more than one audio channel found.
 | 
					#   automatically select JPN audio if more than one audio channel found.
 | 
				
			||||||
################################################################################
 | 
					################################################################################
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					DEFAULTS_OPTS_CRF=20
 | 
				
			||||||
 | 
					
 | 
				
			||||||
function machineSetup() {
 | 
					function machineSetup() {
 | 
				
			||||||
	# Default setup
 | 
						# Default setup
 | 
				
			||||||
	export FF_ENC="libx264"
 | 
						export FF_ENC="libx264"
 | 
				
			||||||
| 
						 | 
					@ -24,7 +26,7 @@ function machineSetup() {
 | 
				
			||||||
	export FILT_PFX=""
 | 
						export FILT_PFX=""
 | 
				
			||||||
	export FILT_SFX=""
 | 
						export FILT_SFX=""
 | 
				
			||||||
	
 | 
						
 | 
				
			||||||
	CRF=${OPTS_CRF:-23}
 | 
						CRF=${OPTS_CRF:-$DEFAULTS_OPTS_CRF}
 | 
				
			||||||
	export FF_STD="-preset myTranscoderPreset -crf $CRF -tune animation \
 | 
						export FF_STD="-preset myTranscoderPreset -crf $CRF -tune animation \
 | 
				
			||||||
		-preset medium -movflags +faststart"
 | 
							-preset medium -movflags +faststart"
 | 
				
			||||||
	export FF_EXT="-profile:v high -level 4.0"
 | 
						export FF_EXT="-profile:v high -level 4.0"
 | 
				
			||||||
| 
						 | 
					@ -629,6 +631,7 @@ while true; do
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    -t <t>      ffmpeg encoding time limit
 | 
					    -t <t>      ffmpeg encoding time limit
 | 
				
			||||||
    --crf <#>   override CRF setting
 | 
					    --crf <#>   override CRF setting
 | 
				
			||||||
 | 
					                    default: $DEFAULTS_OPTS_CRF
 | 
				
			||||||
    --soft      force software decode and encode
 | 
					    --soft      force software decode and encode
 | 
				
			||||||
    --psoft     use software encoding (allow hardware decode when available)
 | 
					    --psoft     use software encoding (allow hardware decode when available)
 | 
				
			||||||
    --audiofix  transcode audio
 | 
					    --audiofix  transcode audio
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue