upgrade create_jobs script
This commit is contained in:
		
							parent
							
								
									d4b52afff0
								
							
						
					
					
						commit
						50af33522d
					
				@ -17,25 +17,17 @@ for file in $files; do
 | 
			
		||||
 | 
			
		||||
	curl "$base_url"/add_job -X POST -H "Content-Type: application/json" -d \
 | 
			
		||||
	'
 | 
			
		||||
	    {
 | 
			
		||||
		"file_url": "'$file_url'",
 | 
			
		||||
		"file_name": "'$file_name'",
 | 
			
		||||
		"priority": 0,
 | 
			
		||||
		"length": '$length',
 | 
			
		||||
		"options": {
 | 
			
		||||
		    "mode": { "VBR": 33 },
 | 
			
		||||
		    "color_depth": 10,
 | 
			
		||||
		    "enable_fwd_keyframe": true,
 | 
			
		||||
		    "two_pass": true,
 | 
			
		||||
		    "speed": 0,
 | 
			
		||||
		    "resolution": {
 | 
			
		||||
		        "width": 960,
 | 
			
		||||
		        "height": 540
 | 
			
		||||
		    },
 | 
			
		||||
		    "kf_min_dist": 9999,
 | 
			
		||||
		    "kf_max_dist": 9999
 | 
			
		||||
		}
 | 
			
		||||
	    }
 | 
			
		||||
    {
 | 
			
		||||
        "file_url": "'$file_url'",
 | 
			
		||||
        "file_name": "'$file_name'",
 | 
			
		||||
        "priority": 0,
 | 
			
		||||
        "length": '$length',
 | 
			
		||||
        "options": {
 | 
			
		||||
            "aomenc": "--lag-in-frames=25 --tile-columns=0 --tile-rows=0 --enable-fwd-kf=1 --bit-depth=10 --cpu-used=0 --end-usage=vbr --target-bitrate=60 --kf-min-dist=9999 --kf-max-dist=9999",
 | 
			
		||||
            "ffmpeg": "-vf scale=540:960",
 | 
			
		||||
            "two_pass": true
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
	' 
 | 
			
		||||
done
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user