Hello everyone, I'm Waveguide Terminator.
I've shared with you before that I used coding to compress or stream live, although I have also shared the script, but I really didn't write the steps before and after very clearly, and there is still a certain threshold. This time, I will share the whole process in detail.
First of all, you have to have a graphics card that supports hardware encoding, because nowadays CPU software is very slow to encode only a single bit of frames per second. In terms of independent graphics, NVIDIA's 40 series, Intel ARC Iris independent graphics series, AMD RX 7000 series, and core graphics, Intel 14th generation, AMD Ryzen 7000 are supported by most models, please refer to the official model list for details.
Because the encoding format is too new, and the graphics cards of each company have just come out, there are not many software on the market that can support **1 hardware encoding. Except for commercial or paid software, the shanaencoder I have been using has not been updated until now with **1 hardware encoding support. So here you can try another open-source and free software, Handbrake. After I used the latest version of the 20240210 version of the software to optimize and measure, the encoding speed is about 450 frames, and the CPU and graphics card utilization are around 80% to 90%. If you need a graphical interface, Chinese, free and open source software, then this should be the best choice for civilian use at present.
If you want to use the latest version at all times and get the best performance, I still recommend using ffmpeg's command line to write scripts. It's a little complicated, but it's the best out there. Generally, the online tutorial will teach you to set up the system directory in order to avoid maintenance-free ffmpeg paths, but I also need to keep an old version here because of compatibility problems, so I use a relative path directly.
I wrote several scripts for the use of compressed learning materials, and the most important ones are two differences, one is single-file compression, and the other is compression of all files in the directory. The default learning materials only retain the AAC with a bitrate of 128K, and the version with CopyAudio is a copy of the audio, because the original audio of some learning materials is about 128K, and secondary compression is meaningless except to reduce the quality.
To use the single-file compressed version, I recommend using PowerShell, hold down Shift in any folder, and then right-click to see "Open PowerShell window here". Then drag the script in, space, and then drag the ** file you want to compress in, and press enter.
Using ffmpeg script compression, you can encode the graphics card to the fullest, and the speed can reach about 530-550 frames. This should be the fastest compression method out there. And with the optimization of software and drivers, you only need to replace ffmpeg with the latest version in the future, and you can continue to get the fastest compression experience.
As for the script that compresses all the files in the directory, my recommended way is to copy the script and the main program of ffmpeg to the target directory, and then run the script and wait.
At present, for 1080p**, I use **1 encoding with 1500 bit rate, and there is basically no problem with invisible eye loss. Of course, the nitpicker must be the collection of the 10m,20m bit rate of the original disk pressed by people on the Internet. As for the compressed quality, I also compared Handbrake with the latest version of ffmpeg. The file size converted under the same parameter is almost exactly the same as 171GB, and even the target bitrate is exactly the same 1634KB, after all, Handbrake is the encapsulated FFMPEG.
If you have other questions, or if you need a script, you can leave a message to communicate. Thank you all for your **, like and follow, and we'll see you next time.