Initialize PeerTube
Change interface language
Click ”root” - “interface” in the upper left corner:

Select Simplified Chinese in the subsequent language selection box:

Several important options
Help share the video currently playing

This option will also store your video via WebTorrent on other PeerTube servers set up by others who have also checked this option. In theory, when others play this video, they can play it from multiple sources. However, after enabling this option, it might actually be slower than connecting directly to you, because it is highly likely that you are the only one with this source, in which case it would be better to play directly from you. Therefore, it is recommended not to check this option.
Enable registration

If you want your PeerTube server to be open for others to register and upload videos just like YouTube, you can turn on this option.
Video import

If you need to import videos from other video websites using URLs, you need to check the relevant options here.
Search and federation

These 2 options both involve the relationship between your PeerTube and PeerTube servers set up by others. If you just want to be a quiet, independent site, then it is right not to select any of these options.
Transcoding

The options here are quite important. If the hardware building PeerTube is not bad, it is recommended to enable transcoding. Otherwise, some browsers will not be able to play the video if they do not have the corresponding plugins installed to play the source video. I am using an M1 Mac mini, and it feels like a 400MB MV takes less than 10 minutes to finish transcoding. Of course, if it is a movie, it is hard to say how long it will take. It is recommended not to check the option to enable WebTorrent; playing directly using HLS is the fastest. As for the resolutions below, I think having 720p and 1080p is sufficient under normal circumstances. This way, transcoding will only generate files for 2 resolutions, and the time will be shorter.

I won't go into detail about the number of transcoding threads, as it is written very clearly. The ”Enable remote runners for VOD” option above is quite interesting; it means you can use remote runners to help decode. I will look into this when I have time.
Live streaming

If you have this need, please research it yourself. I don't have much need for it, so I won't bother, but this requires mapping port 1935 for RTMP use.
Administration - Plugins/Themes

The plugins that are actually somewhat useful are these two: ”privacysettings” and ”transcoding-custom-quality”. The former can set all videos to be used within the site by default, and the latter can set the default quality of the default transcoded videos:

Actually, the default "good" is fine, so it doesn't really matter whether you install these 2 plugins or not.
Publish video
Note: For security reasons, do not use the root account to publish videos directly. Create a new account specifically for publishing videos.
Create a new account
“Administration” - “Overview” - “Create User”:

The following interface appears:

Just fill in the relevant information according to the prompts. Pay attention to the channel name. Create a channel here first, as subsequently published videos must reside in a channel. For example, I created an "mv" channel, and all published MVs are located in this channel.
Note the option in the red box below: ”User bypasses video validation by moderators”. By default, this option is not checked, which means videos published by this user need to be reviewed by an administrator. If it is just you, there is no need for review, so just check this option. Finally, click the ”Create User” button at the very bottom.
Start publishing
Log out of the root account and log in with the newly created account. First, change the language to Chinese and uncheck the ”Help share video option”:

Then directly click ”Publish” in the upper right corner:

The following interface appears. For the channel, select the channel created when the new account was made. Choose the privacy method according to your needs, and then click the button in the red box to upload files:


After selecting, click "Open" in the lower right corner, and the following interface will appear:

There are 5 options for privacy:


Just choose according to your own needs.

If "Contains sensitive content" is selected, the settings for sensitive content in the previous video section will be applied:

If you choose to publish after transcoding, it will not be published until transcoding is successful. If you prefer to upload all videos first and then transcode them together, do not check this option.
In the advanced settings, there is also an option for whether to allow downloads. If you do not allow it, do not check "Allow download":

After setting up, click the publish button in the lower right corner to publish.
A tip to share: log in as root, and under ”Administration” - “Overview” - “Videos”, you can see all videos uploaded by users, as well as their privacy settings, whether the files are transcoded, and what format they are transcoded into:

And after selecting one or more files, you can choose to perform transcoding:

However, normally, if the transcoding function is enabled in the options, even if you did not select "Publish after transcoding" when publishing, transcoding will automatically proceed after publishing is complete.
Result demonstration
Final result:

And the address can be directly shared for others to watch, without requiring them to log in (provided that the video privacy is set to public):

You can also share the link of a specific video individually:

You can also directly generate a QR code for sharing, and most importantly, embed it:

Directly generating the embed code allows you to place it directly into WordPress pages or posts.
A few final words: the biggest advantage of PeerTube is that you can self-host your own videos and embed them into your own website without relying on those video hosting platforms, thus avoiding censorship policy restrictions. Of course, if it is for traffic, videos still must be placed on those large platforms. But if you don't have this need and just want to put them on your own website, then PeerTube is the best choice.
At the same time, you can also adopt the method of setting all videos to unlisted, then creating a playlist, adding the videos to the playlist, and setting the playlist to public to publish the videos. This ensures that the videos cannot be seen during anonymous access, but you can optionally publish the videos that need to be published by sharing the playlist, getting the best of both worlds.
Note: If you use Nginx as a reverse proxy for PeerTube, you may encounter playback issues. For specific issues and solutions, please refer to:Using aaPanel (Nginx) to configure PeerTube (HLS) reverse proxy
Boss, is this setup of yours on your own home machine?
I plan to set up this on my own home machine
Basically all the applications I set up are deployed on my own home machine, including PeerTube.