Cara mengurangi penggunaan CPU saat mencapai 100% saat reencoding video
Saya menggunakan perintah berikut untuk mengubah video: ffmpeg -loop 1 -i max.png -i video.mp4 -i 1.flv -filter_complex " [1:v]scale=1280x720,setpts=PTS/1.15[a];[2:v]scale=750:420,setpts=PTS/1.15,pad=iw+5:ih+5:2:2:color=black[b];[0:v][a]overlay=10:(main_h/2)-(overlay_h/2)[a]; [a][b]overlay=(main_w-overlay_w-0.1): (main_h-overlay_h-0.1):shortest=1,setdar=16/9[video],[1:a][2:a]amix=inputs=2:duration=shortest,atempo=1.15,volume=1.6,equalizer=f=1000:width_type=o:width=1:g=1,equalizer=f=1000:width_type=o:width=1:g=2,equalizer=f=1000:width_type=o:width=1:g=3,equalizer=f=1000:width_type=o:width=1:g=4,equalizer=f=1000:width_type=o:width=1:g=5,aecho=0.8:0.88:6:0.1,aecho=0.8:0.88:6:0.2,aecho=0.8:0.88:6:0.3,bass=g=3:f=110:w=1,bass=g=3:f=110:w=2,bass=g=3:f=110:w=3,pan=stereo|c0<c0+0*c1|c1<c0+0*c1,aeval=-val(0)|-val(1)[audio];[video][audio]concat=n=1:v=1:a=1 " -vcodec libx264 -pix_fmt yuv420p -r 30 -g 60 -b:v 1000k -minrate 1000k -maxrate 1000k -profile:v main -level 3.1 -acodec libmp3lame -b:a 228k -ar 44100 -preset fast output1.mp4 Seperti …